diff --git a/src/views/system/timing/index.vue b/src/views/system/timing/index.vue index bb3bf77..705606a 100644 --- a/src/views/system/timing/index.vue +++ b/src/views/system/timing/index.vue @@ -2,7 +2,7 @@
-
+
@@ -22,77 +22,87 @@
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 启用 - 暂停 - - - - - - + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 启用 + 暂停 + + + + + + +
- + - - - - - - - + + + + + + + - - + + @@ -204,7 +214,39 @@ export default { }, checkboxT(row, rowIndex) { return row.id !== 1 + }, + // 单元格样式 + cell({ row, columnIndex }) { + if (row.isPause === true && columnIndex === 7) { // 已暂停 + console.log(1) + return 'fail-clear' + } else if (row.isPause === false && columnIndex === 7) { // 运行中 + return 'have-clear' + } } } } + +