Prechádzať zdrojové kódy

:tada: 优化列表显示

smallchill 7 rokov pred
rodič
commit
13033a8719

+ 5 - 0
src/views/flow/follow.vue

@@ -65,6 +65,7 @@
           viewBtn: false,
           dialogWidth: 300,
           dialogHeight: 400,
+          menuWidth: 100,
           column: [
             {
               label: "执行id",
@@ -75,6 +76,7 @@
               label: "流程key",
               prop: "processDefinitionKey",
               search: true,
+              width: 80,
             },
             {
               label: "流程实例id",
@@ -85,14 +87,17 @@
               label: "状态",
               prop: "suspensionState",
               slot: true,
+              width: 80,
             },
             {
               label: "发起人",
               prop: "startUser",
+              width: 100,
             },
             {
               label: '开始时间',
               prop: 'startTime',
+              width: 165,
             },
           ]
         },

+ 7 - 0
src/views/flow/manager.vue

@@ -140,6 +140,7 @@
           delBtn: false,
           dialogWidth: 300,
           dialogHeight: 400,
+          menuWidth: 150,
           column: [
             {
               label: '流程主键',
@@ -148,10 +149,12 @@
             {
               label: '流程标识',
               prop: 'key',
+              width: 150,
             },
             {
               label: '流程名称',
               prop: 'name',
+              width: 150,
             },
             {
               label: "流程分类",
@@ -165,20 +168,24 @@
               slot: true,
               prop: "category",
               search: true,
+              width: 100,
             },
             {
               label: '流程版本',
               prop: 'version',
               slot: true,
+              width: 80,
             },
             {
               label: '状态',
               prop: 'suspensionState',
               slot: true,
+              width: 80,
             },
             {
               label: '部署时间',
               prop: 'deploymentTime',
+              width: 165,
             },
           ]
         },

+ 8 - 2
src/views/flow/model.vue

@@ -143,6 +143,7 @@
           delBtn: false,
           dialogWidth: 300,
           dialogHeight: 400,
+          menuWidth: 150,
           column: [
             {
               label: '模型主键',
@@ -152,24 +153,29 @@
               label: '模型标识',
               prop: 'modelKey',
               search: true,
+              width: 150,
             },
             {
               label: '模型名称',
               prop: 'name',
               search: true,
+              width: 150,
             },
             {
               label: '流程版本',
               prop: 'version',
               slot: true,
+              width: 80,
             },
             {
               label: '创建时间',
               prop: 'created',
+              width: 165,
             },
             {
               label: '更新时间',
               prop: 'lastUpdated',
+              width: 165,
             },
           ]
         },
@@ -238,7 +244,7 @@
           });
           return;
         }
-        deployModel({ modelId: this.selectionId, category: flowCategory(this.categoryValue) }).then(res =>{
+        deployModel({modelId: this.selectionId, category: flowCategory(this.categoryValue)}).then(res => {
           const data = res.data;
           if (data.success) {
             this.$message({
@@ -296,6 +302,6 @@
 <style>
   .none-border {
     border: 0;
-    background-color: transparent!important;
+    background-color: transparent !important;
   }
 </style>

+ 4 - 0
src/views/work/claim.vue

@@ -90,6 +90,7 @@
           delBtn: false,
           dialogWidth: 300,
           dialogHeight: 400,
+          menuWidth: 150,
           column: [
             {
               label: "流程分类",
@@ -104,6 +105,7 @@
               prop: "category",
               search: true,
               hide: true,
+              width: 100,
             },
             {
               label: '流程名称',
@@ -117,10 +119,12 @@
               label: '流程版本',
               prop: 'processDefinitionVersion',
               slot: true,
+              width: 80,
             },
             {
               label: '申请时间',
               prop: 'createTime',
+              width: 165,
             },
           ]
         },

+ 4 - 0
src/views/work/done.vue

@@ -83,6 +83,7 @@
           delBtn: false,
           dialogWidth: 300,
           dialogHeight: 400,
+          menuWidth: 150,
           column: [
             {
               label: "流程分类",
@@ -97,6 +98,7 @@
               prop: "category",
               search: true,
               hide: true,
+              width: 100,
             },
             {
               label: '流程名称',
@@ -110,10 +112,12 @@
               label: '流程版本',
               prop: 'processDefinitionVersion',
               slot: true,
+              width: 80,
             },
             {
               label: '申请时间',
               prop: 'createTime',
+              width: 165,
             },
           ]
         },

+ 5 - 0
src/views/work/send.vue

@@ -87,6 +87,7 @@
           delBtn: false,
           dialogWidth: 300,
           dialogHeight: 400,
+          menuWidth: 150,
           column: [
             {
               label: "流程分类",
@@ -101,6 +102,7 @@
               prop: "category",
               search: true,
               hide: true,
+              width: 100,
             },
             {
               label: '流程名称',
@@ -114,15 +116,18 @@
               label: '流程版本',
               prop: 'processDefinitionVersion',
               slot: true,
+              width: 80,
             },
             {
               label: '流程进度',
               prop: 'processIsFinished',
               slot: true,
+              width: 80,
             },
             {
               label: '申请时间',
               prop: 'createTime',
+              width: 165,
             },
           ]
         },

+ 5 - 0
src/views/work/start.vue

@@ -89,6 +89,7 @@
           addBtn: false,
           viewBtn: false,
           delBtn: false,
+          menuWidth: 150,
           dialogWidth: 300,
           dialogHeight: 400,
           column: [
@@ -104,6 +105,7 @@
               slot: true,
               prop: "category",
               search: true,
+              width: 100,
             },
             {
               label: '流程标识',
@@ -117,15 +119,18 @@
               label: '流程版本',
               prop: 'version',
               slot: true,
+              width: 80,
             },
             {
               label: '状态',
               prop: 'suspensionState',
               slot: true,
+              width: 80,
             },
             {
               label: '部署时间',
               prop: 'deploymentTime',
+              width: 165,
             },
           ]
         },

+ 4 - 0
src/views/work/todo.vue

@@ -90,6 +90,7 @@
           delBtn: false,
           dialogWidth: 300,
           dialogHeight: 400,
+          menuWidth: 150,
           column: [
             {
               label: "流程分类",
@@ -104,6 +105,7 @@
               prop: "category",
               search: true,
               hide: true,
+              width: 100,
             },
             {
               label: '流程名称',
@@ -117,10 +119,12 @@
               label: '流程版本',
               prop: 'processDefinitionVersion',
               slot: true,
+              width: 80,
             },
             {
               label: '申请时间',
               prop: 'createTime',
+              width: 165,
             },
           ]
         },