Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
lxyl-vue
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李苏
lxyl-vue
Commits
eda1344f
Commit
eda1344f
authored
Jul 03, 2024
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
表格样式调整
parent
032584a3
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
82 additions
and
14 deletions
+82
-14
index.vue
src/views/ccgl/zlgl/jyd/top/index.vue
+36
-1
index.vue
src/views/ccgl/zlgl/kccjd/top/index.vue
+46
-13
No files found.
src/views/ccgl/zlgl/jyd/top/index.vue
View file @
eda1344f
...
...
@@ -38,6 +38,34 @@
saveSelected
:
true
},
cellStyle
({
row
,
column
,
rowIndex
,
columnIndex
})
{
// 定义样式变量
let
cellStyle
;
switch
(
row
.
isSendSap
)
{
// 0代表正常
case
'Y'
:
// 设置文本颜色 绿色 可以直接写颜色编码,也可以直接写颜色的单词
cellStyle
=
'color:green'
;
break
;
// 0代表金禁用
case
'N'
:
// 设置文本颜色 红色
cellStyle
=
'color:red'
;
break
;
// 如果有其他状态,就默认显示,不给文本颜色
default
:
cellStyle
=
''
;
}
if
(
column
.
label
==
"是否发送sap"
)
{
return
cellStyle
}
},
config
:
{
/* Dialog*/
// queryDetail: true,
...
...
@@ -134,7 +162,14 @@
{
title
:
"是否发送sap"
,
field
:
"isSendSap"
,
width
:
240
align
:
'center'
,
width
:
80
,
formatter
(
a
,
b
,
v
)
{
let
map
=
{
Y
:
'✔'
,
N
:
'X'
}
return
map
[
v
];
}
},
{
title
:
"备注"
,
...
...
src/views/ccgl/zlgl/kccjd/top/index.vue
View file @
eda1344f
...
...
@@ -6,9 +6,12 @@
<Xj
ref=
"xj"
:app=
'ctx.basePage'
v-if=
"ctx.basePage.showDialog&&ctx.basePage.DialogTitle=='下架'"
/>
</
template
>
<
template
#
toolbar=
"ctx"
>
<el-button
v-if=
"ctx.basePage.powerObj['01']"
@
click=
"showAdd(ctx.basePage)"
size=
'mini'
type=
"primary"
>
新增
</el-button>
<el-button
v-if=
"ctx.basePage.powerObj['21']"
@
click=
"cxjyrw(ctx.basePage)"
size=
'mini'
type=
"primary"
>
创建检验单
</el-button>
<el-button
v-if=
"ctx.basePage.powerObj['22']"
@
click=
"cjxjrw(ctx.basePage)"
size=
'mini'
type=
"primary"
>
下架
</el-button>
<el-button
v-if=
"ctx.basePage.powerObj['01']"
@
click=
"showAdd(ctx.basePage)"
size=
'mini'
type=
"primary"
>
新增
</el-button>
<el-button
v-if=
"ctx.basePage.powerObj['21']"
@
click=
"cxjyrw(ctx.basePage)"
size=
'mini'
type=
"primary"
>
创建检验单
</el-button>
<el-button
v-if=
"ctx.basePage.powerObj['22']"
@
click=
"cjxjrw(ctx.basePage)"
size=
'mini'
type=
"primary"
>
下架
</el-button>
</
template
>
...
...
@@ -63,6 +66,7 @@
title
:
"已创建检验单"
,
field
:
"issuedJyd"
,
width
:
140
,
align
:
'center'
,
width
:
80
,
formatter
(
a
,
b
,
v
)
{
let
map
=
{
Y
:
'✔'
,
...
...
@@ -82,6 +86,34 @@
fieldType
:
'ftDateTime'
}
],
cellStyle
({
row
,
column
,
rowIndex
,
columnIndex
})
{
// 定义样式变量
let
cellStyle
;
switch
(
row
.
issuedJyd
)
{
// 0代表正常
case
'Y'
:
// 设置文本颜色 绿色 可以直接写颜色编码,也可以直接写颜色的单词
cellStyle
=
'color:green'
;
break
;
// 0代表金禁用
case
'N'
:
// 设置文本颜色 红色
cellStyle
=
'color:red'
;
break
;
// 如果有其他状态,就默认显示,不给文本颜色
default
:
cellStyle
=
''
;
}
if
(
column
.
label
==
"已创建检验单"
)
{
return
cellStyle
}
},
queryParams
:
[
[{
label
:
'重检单号'
,
...
...
@@ -143,8 +175,8 @@
ctx
.
DialogTitle
=
'下架'
ctx
.
DialogWidth
=
'70vw'
ctx
.
showDialog
=
true
this
.
$nextTick
(()
=>
{
this
.
$refs
.
xj
.
$refs
.
basePage
.
queryParams
.
mid
=
ctx
.
singleItem
.
id
this
.
$nextTick
(()
=>
{
this
.
$refs
.
xj
.
$refs
.
basePage
.
queryParams
.
mid
=
ctx
.
singleItem
.
id
this
.
$refs
.
xj
.
$refs
.
basePage
.
refresh
()
})
...
...
@@ -155,7 +187,8 @@
}
},
components
:
{
Add
,
Xj
Add
,
Xj
// Edit
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment