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