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

颜色调整

parent c2ddcee2
...@@ -33,6 +33,31 @@ ...@@ -33,6 +33,31 @@
config: { config: {
// delUrl: 'lxyl/ckgl/pkck/delete/ckdj', // delUrl: 'lxyl/ckgl/pkck/delete/ckdj',
queryDetail: true, 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', url: 'lxyl/ckgl/ckdj',
tableTitle: [ tableTitle: [
...@@ -102,7 +127,7 @@ ...@@ -102,7 +127,7 @@
startValue: new Date().getTime() - 1000 * 60 * 60 * 24 * 30, startValue: new Date().getTime() - 1000 * 60 * 60 * 24 * 30,
endValue: new Date().getTime(), endValue: new Date().getTime(),
}, },
{ {
"label": "仓库", "label": "仓库",
"prop": "ckid", "prop": "ckid",
......
...@@ -29,6 +29,31 @@ ...@@ -29,6 +29,31 @@
saveSelected: false saveSelected: false
}, },
config: { 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', delUrl: 'lxyl/rkgl/pksj/delete/rkdj',
queryDetail: true, 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