Commit 76609861 authored by 李苏's avatar 李苏 💬

颜色调整

parent c2ddcee2
......@@ -33,6 +33,31 @@
config: {
// delUrl: 'lxyl/ckgl/pkck/delete/ckdj',
queryDetail: true,
cellStyle({
row,
column,
rowIndex,
columnIndex
}) {
// 定义样式变量
let cellStyle;
switch (row.gzzt) {
case 'Y':
cellStyle = 'color:green';
break;
case 'N':
cellStyle = 'color:red';
break;
case 'F':
cellStyle = 'color:red';
break;
default:
cellStyle = '';
}
if (column.label == "过账状态") {
return cellStyle
}
},
/* 基本配置*/
url: 'lxyl/ckgl/ckdj',
tableTitle: [
......
......@@ -29,6 +29,31 @@
saveSelected: false
},
config: {
cellStyle({
row,
column,
rowIndex,
columnIndex
}) {
// 定义样式变量
let cellStyle;
switch (row.gzzt) {
case 'Y':
cellStyle = 'color:green';
break;
case 'N':
cellStyle = 'color:red';
break;
case 'F':
cellStyle = 'color:red';
break;
default:
cellStyle = '';
}
if (column.label == "过账状态") {
return cellStyle
}
},
delUrl: 'lxyl/rkgl/pksj/delete/rkdj',
queryDetail: true,
/* 基本配置*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment