Bladeren bron

Update create.vue

lex 2 jaren geleden
bovenliggende
commit
ef4d3387db
1 gewijzigde bestanden met toevoegingen van 7 en 0 verwijderingen
  1. 7 0
      src/views/process/list/create.vue

+ 7 - 0
src/views/process/list/create.vue

@@ -170,6 +170,11 @@ export default {
     this.searchs = new Searchs("process" + processId);
     const getSearch = this.searchs.get();
     this.cacheFormData = getSearch || [];
+    if (this.cacheFormData.length > 0) {
+      const tempSearch = this.cacheFormData[0];
+      this.ruleForm.deptId = tempSearch.deptId;
+      this.ruleForm.priority = tempSearch.priority;
+    }
 
     await this.getUserInfo();
     await this.getAllOrgan();
@@ -181,6 +186,8 @@ export default {
       for (var tpl of this.processStructureValue.tpls) {
         promiseList.push({
           tplId: tpl.id,
+          priority: this.ruleForm.priority,
+          deptId: this.ruleForm.deptId,
           formData: this.$refs["generateForm-" + tpl.id][0].getDataNoValid(),
         });
       }