From 3264eb90d9f6ae57a6fdf25a900e70d6b53e5211 Mon Sep 17 00:00:00 2001 From: x_ying <2438792676@qq.com> Date: Tue, 26 Jul 2022 14:24:25 +0800 Subject: [PATCH] =?UTF-8?q?=E7=B3=BB=E7=BB=9F=E7=AE=A1=E7=90=86=20?= =?UTF-8?q?=E4=BB=BB=E5=8A=A1=E8=B0=83=E5=BA=A6=20=E5=8A=9F=E8=83=BD?= =?UTF-8?q?=E5=88=A0=E5=87=8F=20css=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/timing/index.vue | 166 +++++++++++++++++++----------- 1 file changed, 104 insertions(+), 62 deletions(-) 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' + } } } } + +