|
|
|
|
@ -243,26 +243,7 @@ export default { |
|
|
|
|
visible: false, |
|
|
|
|
}; |
|
|
|
|
}, |
|
|
|
|
created() { |
|
|
|
|
// 运维公司 |
|
|
|
|
getCompany().then((res) => { |
|
|
|
|
const data = res.data.data; |
|
|
|
|
this.companyList = data; |
|
|
|
|
if (data.length > 0) { |
|
|
|
|
const id = data[0].id; |
|
|
|
|
this.form.yunweigongsi = id; |
|
|
|
|
this.companyChange(id); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
getTaskParent().then((res) => { |
|
|
|
|
this.taskParentList = res.data.data; |
|
|
|
|
if (this.$route.query.parent) { |
|
|
|
|
const id = this.$route.query.parent; |
|
|
|
|
this.form.renwufulei = id; |
|
|
|
|
this.taskParentChange(id); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
created() {}, |
|
|
|
|
methods: { |
|
|
|
|
// 运维公司-查部门 |
|
|
|
|
companyChange(id) { |
|
|
|
|
@ -346,7 +327,7 @@ export default { |
|
|
|
|
param = processDefKey; |
|
|
|
|
method = "getStartFormByProcessDefKey"; |
|
|
|
|
} |
|
|
|
|
this[method](param).then((res) => { |
|
|
|
|
this[method](param).then(async(res) => { |
|
|
|
|
let { process, form, startForm } = res; |
|
|
|
|
this.form.processId = process.id; |
|
|
|
|
if (form) { |
|
|
|
|
@ -366,6 +347,21 @@ export default { |
|
|
|
|
option.column = columnArr; |
|
|
|
|
option.group = groupArr; |
|
|
|
|
this.option = option; |
|
|
|
|
// 运维公司 |
|
|
|
|
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() |
|
|
|
|
this.taskParentList = taskParentData.data.data; |
|
|
|
|
if (this.$route.query.parent) { |
|
|
|
|
const id = this.$route.query.parent; |
|
|
|
|
this.form.renwufulei = id; |
|
|
|
|
this.taskParentChange(id); |
|
|
|
|
} |
|
|
|
|
const time = this.findObject( |
|
|
|
|
this.option.column, |
|
|
|
|
"qiwangwanchengshijian" |
|
|
|
|
|