diff --git a/public/favicon.ico b/public/favicon.ico new file mode 100644 index 0000000..e228f48 Binary files /dev/null and b/public/favicon.ico differ diff --git a/public/favicon.png b/public/favicon.png deleted file mode 100644 index ecd70ca..0000000 Binary files a/public/favicon.png and /dev/null differ diff --git a/public/index.html b/public/index.html index e06d35c..cb1c9e5 100644 --- a/public/index.html +++ b/public/index.html @@ -18,7 +18,7 @@ - + 工单系统 \ No newline at end of file + diff --git a/src/views/plugin/workflow/process/components/form.vue b/src/views/plugin/workflow/process/components/form.vue index 84839fe..eab8c0a 100644 --- a/src/views/plugin/workflow/process/components/form.vue +++ b/src/views/plugin/workflow/process/components/form.vue @@ -268,12 +268,14 @@ export default { renwuzhonglei.dicData = res.data.data; }); }, - systemChange(id) { + systemChange(id, index) { let obj = this.taskAndDataBaseList.find(function (i) { return i.id === id; }); getModuleAndDataTable({ id: obj.id, type: obj.type }).then((res) => { - this.form.xitongmokuaishujubiao = ""; + if (index !== 1) { + this.form.xitongmokuaishujubiao = ""; + } const xitongmokuaishujubiao = this.findObject( this.option.column, "xitongmokuaishujubiao" @@ -317,7 +319,7 @@ export default { this.form.uploadrecord.splice(index, 1); }); }, - getForm(processId, processDefKey) { + getForm(processId, processDefKey) { let param; let method; if (processId) { @@ -327,7 +329,7 @@ export default { param = processDefKey; method = "getStartFormByProcessDefKey"; } - this[method](param).then(async(res) => { + this[method](param).then(async (res) => { let { process, form, startForm } = res; this.form.processId = process.id; if (form) { @@ -348,14 +350,14 @@ export default { option.group = groupArr; this.option = option; // 运维公司 - const companyData = await getCompany() + const companyData = await getCompany(); this.companyList = companyData.data.data; if (companyData.data.data.length > 0) { const id = companyData.data.data[0].id; this.form.yunweigongsi = id; this.companyChange(id); } - const taskParentData = await getTaskParent() + const taskParentData = await getTaskParent(); this.taskParentList = taskParentData.data.data; if (this.$route.query.parent) { const id = this.$route.query.parent; @@ -376,8 +378,9 @@ export default { this.initDraft(process.id).then((data) => { this.$confirm("是否恢复之前保存的草稿?", "提示", {}) .then(() => { - this.form = JSON.parse(data); - this.systemChange(this.form.xitongmingchengshujuku); + const form = JSON.parse(data); + this.systemChange(form.xitongmingchengshujuku, 1); + this.form = form }) .catch(() => {}); });