瀏覽代碼

拖拽表单下拉框数据缺失问题处理

lph 1 年之前
父節點
當前提交
57bfe08e64
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      ruoyi-ui/src/views/bussiness/processMange.vue

+ 6 - 0
ruoyi-ui/src/views/bussiness/processMange.vue

@@ -315,6 +315,7 @@ export default {
     },
     // 打开运行节点弹窗
     async opneExecuteNode(row) {
+      console.log(row);
       this.resetDialogForm();
       let preFix = row.benTaskNodeName.split("-")[0];
       if (row.benTaskNodeFormKey) {
@@ -377,8 +378,13 @@ export default {
     async getDragFormInfo(fid) {
       try {
         let res = await getForm(fid);
+        console.log(res);
         if (res.code == 200) {
           this.jsonData = JSON.parse(res.data.dfVueTemplate);
+          if (res.data.dfFormSql) {
+            this.dynamicData = JSON.parse(res.data.dfFormSql);
+            console.log(this.dynamicData);
+          }
         } else {
           console.log(res);
           this.$message.error("网络异常,请稍后再试");