whj 1 年之前
父节点
当前提交
c9f487f37a
共有 3 个文件被更改,包括 18 次插入18 次删除
  1. 1 1
      src/components/custom/Badge.vue
  2. 1 1
      src/utils/dict.js
  3. 16 16
      src/views/sb/info/SbInfoC.vue

+ 1 - 1
src/components/custom/Badge.vue

@@ -30,7 +30,7 @@ export default {
         myShowStyle = { ...myShowStyle, ...{ backgroundColor: '#52c41a' } }
       }
       if (this.status === 'error') {
-        myShowStyle = { ...myShowStyle, ...{ backgroundColor: '#f5222d' } }
+        myShowStyle = { ...myShowStyle, ...{ backgroundColor: '#ff0000b3' } }
       }
       if (this.status === 'default') {
         myShowStyle = { ...myShowStyle, ...{ backgroundColor: '#d9d9d9' } }

+ 1 - 1
src/utils/dict.js

@@ -1446,7 +1446,7 @@ DictCache.COLOR = {
     4: 'error', // 已报废
     5: 'warning', // 置换中
     6: 'default', // 已置换
-    7: 'error', // 停用中
+    7: 'default', // 停用中
     8: 'error' // 维修中
   },
   /**

+ 16 - 16
src/views/sb/info/SbInfoC.vue

@@ -223,7 +223,8 @@
               :rowSelection="options.rowSelection"
               :scroll="{x: 1300, y: BaseTool.Constant.scrollY}"
               showPagination="auto"
-              :rowClassName="rowClassName">
+            >
+              <!-- :rowClassName="rowClassName" -->
               <template #positionNo="text,record">
                 <a @click="showChangeLog(record)">{{ text }}</a>
               </template>
@@ -480,7 +481,14 @@ export default {
             return `${(this.$refs.table.localPagination.current - 1) * this.$refs.table.localPagination.pageSize + index + 1}`
           }
         }, */
-
+        {
+          title: '状态',
+          checked: true,
+          dataIndex: 'status',
+          align: 'center',
+          width: 100,
+          scopedSlots: { customRender: 'status' }
+        },
         {
           title: '车间',
           checked: true,
@@ -719,21 +727,13 @@ export default {
             return this.BaseTool.Object.getField(this.checkTypeMap, text)
           }
         },
-        {
-          title: '备注',
-          checked: true,
-          dataIndex: 'remark',
-          width: 100
-        },
-        {
-          title: '状态',
-          checked: true,
-          dataIndex: 'status',
-          align: 'center',
-          width: 100,
-          scopedSlots: { customRender: 'status' }
+        // {
+        //   title: '备注',
+        //   checked: true,
+        //   dataIndex: 'remark',
+        //   width: 100
+        // },
 
-        },
         {
           title: '操作',
           key: 'action',