duy 1 年之前
父節點
當前提交
c665599180
共有 1 個文件被更改,包括 7 次插入7 次删除
  1. 7 7
      src/views/anomaly/index.vue

+ 7 - 7
src/views/anomaly/index.vue

@@ -28,7 +28,7 @@
                 class="anonaly-page-table" is-check @selection-change="tableSelectionChange"
             >
                 <template #action="{ row }">
-                    <el-link type="danger" @click="cancleClick(row)">
+                    <el-link type="success" @click="cancleClick(row)">
                         <hc-icon name="arrow-go-back" />撤销
                     </el-link>
                     <!-- <el-link type="success" @click="exportClick(row)">  <hc-icon name="download" />导出</el-link> -->
@@ -85,7 +85,7 @@ const tableData = ref([
         key2: '项目进度异常',
         key3: '第一季度',
         key4: '2021-3-1 14:31',
-        key5: '三级异常',
+        key5: '三级',
         key6: '否',
         key7: '',
     },
@@ -94,7 +94,7 @@ const tableData = ref([
         key2: '项目进度异常',
         key3: '第一季度',
         key4: '2021-3-1 14:31',
-        key5: '一级异常',
+        key5: '一级',
         key6: '否',
         key7: '',
     },
@@ -103,24 +103,24 @@ const tableData = ref([
         key2: '项目进度异常',
         key3: '第一季度',
         key4: '2021-3-1 14:31',
-        key5: '二级异常',
+        key5: '二级',
         key6: '否',
         key7: '',
     },
 ])
 //设置单元格的样式
 const tableCellStyle = ({ row, column, rowIndex, columnIndex }) => {
-    if (column.property === 'key5' && row.key5 === '二级异常') {
+    if (column.property === 'key5' && row.key5 === '二级') {
         return {
             backgroundColor: '#FF9102',
             color: 'white',
         }
-    } else if (column.property === 'key5' && row.key5 === '三级异常') {
+    } else if (column.property === 'key5' && row.key5 === '三级') {
         return {
             backgroundColor: '#06B2F6',
             color: 'white',
         }
-    } else if (column.property === 'key5' && row.key5 === '一级异常') {
+    } else if (column.property === 'key5' && row.key5 === '一级') {
         return {
             backgroundColor: '#FF0001',
             color: 'white',