Răsfoiți Sursa

fix: 流程加注释

liuc 4 luni în urmă
părinte
comite
1dae2ec50c

+ 73 - 1
src/views/flow/stFormDesign/packages/StFormDesign/module/jsModal.vue

@@ -74,6 +74,12 @@
                 </template>
               </a-tree>
             </a-collapse-panel>
+            <a-collapse-panel key="4" header="参数说明">
+              <a-card size="small" :title="item.title" style="width: 100%" v-for="(item,index) in descItems">
+                <p v-for="(p,i) in item.items"><span class="header-des">{{ p.label }}:  </span>{{ p.value }}</p>
+              </a-card>
+            </a-collapse-panel>
+
           </a-collapse>
         </div>
 
@@ -129,6 +135,7 @@ export default {
   data() {
     return {
       commonMethods: commonMethods,
+      descItems: descItems,
       commonParams: commonParams,
       treeClickCount: 0,
       visible: false,
@@ -412,7 +419,68 @@ export default {
     },
   },
 };
-
+const descItems = [
+  {
+    "title": "表单属性:this.tag.value",
+    items: [{
+      "label": '发起(保存前)',
+      "value": 'START',
+    }, {
+      "label": '填写(保存后)',
+      "value": 'WRITE',
+    }, {
+      "label": '审核',
+      "value": 'AUDIT',
+    }, {
+      "label": '查看',
+      "value": 'VIEW',
+    }, {
+      "label": '传阅',
+      "value": 'CIRCULATE',
+    },
+    ]
+  },
+  {
+    "title": "任务属性:this.taskObj.value",
+    items: [{
+      "label": 'activityCode',
+      "value": '流程节点编码,如(Task2)',
+    }, {
+      "label": 'bizObjectid',
+      "value": '流程l_表的主键',
+    }, {
+      "label": 'instanceid',
+      "value": '流程id',
+    }, {
+      "label": 'taskid',
+      "value": '任务id',
+    }, {
+        "label": 'itemType',
+        "value": '节点类型(1填写,2审核,3传阅)',
+      },
+    ]
+  },
+  {
+    "title": "流程属性:this.instanceObj.value",
+    items: [{
+      "label": 'exceptional',
+      "value": '流程异常标志(0正常,1异常)',
+    }, {
+      "label": 'flowCode',
+      "value": '流程编码',
+    }, {
+      "label": 'flowVersion',
+      "value": '流程版本',
+    }, {
+      "label": 'originator',
+      "value": '流程发起人',
+    }, {
+      "label": 'state',
+      "value": '流程状态(0保存未提交,1被驳回,2运行中,4结束,5取消)',
+    },
+    ]
+  },
+]
 const commonMethods = [
   {
     "type": "基本操作",
@@ -841,4 +909,8 @@ const commonParams = [
   justify-content: flex-end;
   gap: 10px;
 }
+
+.header-des {
+  color: #4fbf67;
+}
 </style>