Z 1 год назад
Родитель
Сommit
ee6f70acf7
2 измененных файлов с 24 добавлено и 4 удалено
  1. 15 2
      src/views/bpm/todo/index.vue
  2. 9 2
      src/views/home/index.vue

+ 15 - 2
src/views/bpm/todo/index.vue

@@ -10,7 +10,12 @@
         >
           <el-row :gutter="15">
             <el-col v-bind="styleResponsive ? { lg: 6, md: 12 } : { span: 6 }">
-              <el-form-item label="流程名:" prop="name">
+              <el-form-item label="流程分类:" prop="processTypeName">
+                <el-input clearable v-model.trim="params.processTypeName"></el-input>
+              </el-form-item>
+            </el-col>
+            <el-col v-bind="styleResponsive ? { lg: 6, md: 12 } : { span: 6 }">
+              <el-form-item label="任务名:" prop="name">
                 <el-input clearable v-model.trim="params.name"></el-input>
               </el-form-item>
             </el-col>
@@ -130,6 +135,7 @@
   // 默认表单数据
   const defaultParams = {
     status: '',
+    processTypeName: '',
     name: ''
   };
   export default {
@@ -158,6 +164,13 @@
             showOverflowTooltip: true,
             fixed: 'left'
           },
+          {
+            prop: 'processInstance.processTypeName',
+            label: '流程分类',
+            align: 'center',
+            showOverflowTooltip: true,
+            minWidth: 200
+          },
           {
             prop: 'processInstance.name',
             label: '流程名称',
@@ -234,7 +247,7 @@
       /** 处理审批按钮 */
 
       handleAudit(type, row) {
-      
+
         if (type == 'audit') {
           this.$refs.handleTaskRef.open({
             id: row.processInstance.id,

+ 9 - 2
src/views/home/index.vue

@@ -243,6 +243,13 @@ export default {
           showOverflowTooltip: true,
           fixed: 'left'
         },
+        {
+          prop: 'processInstance.processTypeName',
+          label: '流程分类',
+          align: 'center',
+          showOverflowTooltip: true,
+          minWidth: 120
+        },
         {
           prop: 'processInstance.name',
           label: '流程名称',
@@ -264,7 +271,7 @@ export default {
           label: '流程发起人',
           align: 'center',
           showOverflowTooltip: true,
-          minWidth: 200
+          minWidth: 120
         },
         // {
         //   prop: 'suspensionState',
@@ -286,7 +293,7 @@ export default {
         {
           columnKey: 'action',
           label: '操作',
-          width: 230,
+          width: 200,
           align: 'center',
           resizable: false,
           slot: 'action',