fix:根据ui修改样式 添加逻辑判断

This commit is contained in:
zhaohy
2024-08-21 13:35:28 +08:00
parent def744926f
commit ece2712b09
14 changed files with 113 additions and 64 deletions

View File

@@ -60,18 +60,18 @@
5: '已关闭',
};
let colorMap = {
1: 'rgba(191, 205, 226, 1)',
2: 'rgba(243, 97, 99, 1)',
1: 'rgba(255, 188, 70, 1)',
2: 'rgba(67, 136, 251, 1)',
3: 'rgba(41, 196, 154, 1)',
4: 'rgba(217, 0, 27,1)',
5: 'rgba(166, 166, 166,1)',
4: 'rgba(243, 97, 99, 1)',
5: 'rgba(141, 150, 163, 1)',
};
let bgColorMap = {
1: 'rgba(191, 205, 226, 0.1)',
2: 'rgba(243, 97, 99, 0.1)',
1: 'rgba(255, 188, 70, 0.1)',
2: 'rgba(67, 136, 251, 0.1)',
3: 'rgba(41, 196, 154, 0.1)',
4: 'rgba(217, 0, 27, 0.1)',
5: 'rgba(166, 166, 166,0.1)',
4: 'rgba(243, 97, 99, 0.1)',
5: 'rgba(141, 150, 163, 0.1)',
};
logList.value.forEach((item) => {
item.stateName = stateMap[item.state];