|
|
|
|
@ -200,7 +200,9 @@ export default { |
|
|
|
|
"renwuzhonglei" |
|
|
|
|
); |
|
|
|
|
for (let i in renwuzhonglei.dicData) { |
|
|
|
|
this.form.renwudengji = renwuzhonglei.dicData[i].taskLevel; |
|
|
|
|
if (val === renwuzhonglei.dicData[i].id) { |
|
|
|
|
this.form.renwudengji = renwuzhonglei.dicData[i].taskLevel; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
@ -241,7 +243,7 @@ export default { |
|
|
|
|
visible: false, |
|
|
|
|
}; |
|
|
|
|
}, |
|
|
|
|
mounted() { |
|
|
|
|
created() { |
|
|
|
|
// 运维公司 |
|
|
|
|
getCompany().then((res) => { |
|
|
|
|
const data = res.data.data; |
|
|
|
|
@ -282,13 +284,9 @@ export default { |
|
|
|
|
getTaskTypeData({ parentId: id }).then((res) => { |
|
|
|
|
this.form.renwuzhonglei = ""; |
|
|
|
|
this.form.renwudengji = ""; |
|
|
|
|
const renwuzhonglei = this.findObject( |
|
|
|
|
this.option.column, |
|
|
|
|
"renwuzhonglei" |
|
|
|
|
); |
|
|
|
|
this.$nextTick(() => { |
|
|
|
|
renwuzhonglei.dicData = res.data.data; |
|
|
|
|
}); |
|
|
|
|
console.log(this.option); |
|
|
|
|
const renwuzhonglei = this.option.column[3]; |
|
|
|
|
renwuzhonglei.dicData = res.data.data; |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
systemChange(id) { |
|
|
|
|
@ -370,17 +368,15 @@ export default { |
|
|
|
|
option.column = columnArr; |
|
|
|
|
option.group = groupArr; |
|
|
|
|
this.option = option; |
|
|
|
|
|
|
|
|
|
// this.findObject(this.option.column, 'yunweigongsi').disabled = true |
|
|
|
|
// 输入框禁用 |
|
|
|
|
// const gongshimingcheng = this.findObject( |
|
|
|
|
// this.option.column, |
|
|
|
|
// "gongshimingcheng" |
|
|
|
|
// ); |
|
|
|
|
// if(gongshimingcheng.dicData.length === 1) { |
|
|
|
|
// gongshimingcheng.disabled = true; |
|
|
|
|
// gongshimingcheng.value = gongshimingcheng.dicData[0].dictKey; |
|
|
|
|
// } |
|
|
|
|
const time = this.findObject( |
|
|
|
|
this.option.column, |
|
|
|
|
"qiwangwanchengshijian" |
|
|
|
|
); |
|
|
|
|
time.pickerOptions = { |
|
|
|
|
disabledDate(time) { |
|
|
|
|
return time.getTime() < Date.now() - 24 * 60 * 60 * 1000; |
|
|
|
|
}, |
|
|
|
|
}; |
|
|
|
|
if (this.permission.wf_process_draft) { |
|
|
|
|
// 查询是否有草稿箱 |
|
|
|
|
this.initDraft(process.id).then((data) => { |
|
|
|
|
|