lilei 3 years ago
parent
commit
f2f9c8aec8

+ 5 - 6
src/views/productManagement/productLaunchAudit/list.vue

@@ -125,19 +125,18 @@ export default {
   computed: {
     columns () {
       const arr = [
-        { title: '产品名称', dataIndex: 'name', align: 'center', width: '25%', customRender: function (text) { return text || '--' }, ellipsis: true },
+        { title: '产品名称', dataIndex: 'name', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
         { title: '产品编码', dataIndex: 'code', width: '10%', align: 'center', customRender: function (text) { return text || '--' } },
         { title: '产品分类', scopedSlots: { customRender: 'productType' }, width: '15%', align: 'center' },
         { title: '提交时间', dataIndex: 'submitTime', width: '10%', align: 'center', customRender: function (text) { return text || '--' } },
         { title: '提交人', dataIndex: 'submitPerson', width: '10%', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
-        { title: '审核状态', dataIndex: 'bizStateDictValue', width: '10%', align: 'center', customRender: function (text) { return text || '--' } },
-        { title: '审核时间', dataIndex: 'auditTime', width: '10%', align: 'center', customRender: function (text) { return text || '--' } },
-        { title: '审核人', dataIndex: 'auditPerson', width: '10%', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true }
+        { title: '审核状态', dataIndex: 'bizStateDictValue', width: '10%', align: 'center', customRender: function (text) { return text || '--' } }
       ]
       if (this.queryParam.bizState == 'WAIT') {
-        arr.splice(7, 1, { title: '操作', scopedSlots: { customRender: 'action' }, width: '6%', align: 'center' })
+        arr.splice(6, 1, { title: '操作', scopedSlots: { customRender: 'action' }, width: '6%', align: 'center' })
       } else {
-        arr.splice(8, 1)
+        arr.splice(6, 1, { title: '审核时间', dataIndex: 'auditTime', width: '10%', align: 'center', customRender: function (text) { return text || '--' } })
+        arr.splice(7, 1, { title: '审核人', dataIndex: 'auditPerson', width: '10%', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true })
       }
       return arr
     }

+ 8 - 6
src/views/productManagement/productOfflineAudit/list.vue

@@ -164,7 +164,7 @@ export default {
   computed: {
     columns () {
       const arr = [
-        { title: '产品名称', dataIndex: 'name', align: 'center', width: '16%', customRender: function (text) { return text || '--' }, ellipsis: true },
+        { title: '产品名称', dataIndex: 'name', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
         { title: '产品编码', dataIndex: 'code', width: '10%', align: 'center', customRender: function (text) { return text || '--' } },
         { title: '产品分类', scopedSlots: { customRender: 'productType' }, width: '10%', align: 'center' },
         { title: '提交时间', dataIndex: 'submitTime', width: '8%', align: 'center', customRender: function (text) { return text || '--' } },
@@ -172,14 +172,13 @@ export default {
         { title: '下线选项', dataIndex: 'reasonType', width: '8%', align: 'center', customRender: function (text) { return text || '--' } },
         { title: '通用编码', dataIndex: 'commonCode', width: '8%', align: 'center', customRender: function (text) { return text || '--' } },
         { title: '下线备注', dataIndex: 'submitNote', width: '8%', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
-        { title: '审核状态', dataIndex: 'bizStateDictValue', width: '8%', align: 'center', customRender: function (text) { return text || '--' } },
-        { title: '审核时间', dataIndex: 'auditTime', width: '8%', align: 'center', customRender: function (text) { return text || '--' } },
-        { title: '审核人', dataIndex: 'auditPerson', width: '8%', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true }
+        { title: '审核状态', dataIndex: 'bizStateDictValue', width: '8%', align: 'center', customRender: function (text) { return text || '--' } }
       ]
       if (this.queryParam.bizState == 'WAIT') {
-        arr.splice(10, 1, { title: '操作', scopedSlots: { customRender: 'action' }, width: '5%', align: 'center' })
+        arr.splice(8, 1, { title: '操作', scopedSlots: { customRender: 'action' }, width: '5%', align: 'center' })
       } else {
-        arr.splice(11, 1)
+        arr.splice(8, 1, { title: '审核时间', dataIndex: 'auditTime', width: '8%', align: 'center', customRender: function (text) { return text || '--' } })
+        arr.splice(9, 1, { title: '审核人', dataIndex: 'auditPerson', width: '8%', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true })
       }
       return arr
     }
@@ -352,5 +351,8 @@ export default {
     .green{
       color: #19be6b;
     }
+    .ant-tabs-bar{
+      margin: 0;
+    }
   }
 </style>