|
|
|
|
@ -87,7 +87,7 @@ |
|
|
|
|
allow-create |
|
|
|
|
clearable |
|
|
|
|
v-model="form.xitongmingchengshujuku" |
|
|
|
|
placeholder="请选择系统名称/数据库/别名" |
|
|
|
|
placeholder=" " |
|
|
|
|
:disabled="sqlDisabled" |
|
|
|
|
@change="systemChange" |
|
|
|
|
> |
|
|
|
|
@ -100,6 +100,24 @@ |
|
|
|
|
</el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</template> |
|
|
|
|
<template slot="xitongmokuaishujubiao"> |
|
|
|
|
<el-select |
|
|
|
|
filterable |
|
|
|
|
allow-create |
|
|
|
|
clearable |
|
|
|
|
v-model="form.xitongmokuaishujubiao" |
|
|
|
|
placeholder=" " |
|
|
|
|
:disabled="sqlDisabled" |
|
|
|
|
> |
|
|
|
|
<el-option |
|
|
|
|
v-for="item in taskTableData" |
|
|
|
|
:key="item.id" |
|
|
|
|
:label="item.datatableModuleName" |
|
|
|
|
:value="item.id" |
|
|
|
|
> |
|
|
|
|
</el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</template> |
|
|
|
|
<template slot="uploadrecord"> |
|
|
|
|
<el-table |
|
|
|
|
v-if="form.uploadrecord && form.uploadrecord.length > 0" |
|
|
|
|
@ -272,6 +290,7 @@ export default { |
|
|
|
|
sqlDisabled:false,//数据库/系统名称是否禁用 |
|
|
|
|
kindDisabled:false, //任务种类是否禁用 |
|
|
|
|
repeatList:[],//重复模式数组 |
|
|
|
|
taskTableData:[], //数据模块数据表 |
|
|
|
|
}; |
|
|
|
|
}, |
|
|
|
|
computed: { |
|
|
|
|
@ -369,13 +388,16 @@ export default { |
|
|
|
|
getDatabaseTab({ |
|
|
|
|
id: id, |
|
|
|
|
}).then(res =>{ |
|
|
|
|
let xitongmokuaishujubiao = this.findObject( |
|
|
|
|
this.option.column, |
|
|
|
|
"xitongmokuaishujubiao" |
|
|
|
|
); |
|
|
|
|
xitongmokuaishujubiao.dicData = res.data.data; |
|
|
|
|
// let xitongmokuaishujubiao = this.findObject( |
|
|
|
|
// this.option.column, |
|
|
|
|
// "xitongmokuaishujubiao" |
|
|
|
|
// ); |
|
|
|
|
// xitongmokuaishujubiao.dicData = res.data.data; |
|
|
|
|
this.taskTableData = res.data.data; |
|
|
|
|
console.log('taskTableData ===>',this.taskTableData) |
|
|
|
|
if(xitongmokuaishujubiao.dicData.length !== 0){ |
|
|
|
|
this.form.xitongmokuaishujubiao = xitongmokuaishujubiao.dicData[0].id; |
|
|
|
|
// this.form.xitongmokuaishujubiao = xitongmokuaishujubiao.dicData[0].id; |
|
|
|
|
this.form.xitongmokuaishujubiao = this.taskTableData[0].id; |
|
|
|
|
}else{ |
|
|
|
|
this.form.xitongmokuaishujubiao = '' |
|
|
|
|
} |
|
|
|
|
@ -467,10 +489,17 @@ export default { |
|
|
|
|
} |
|
|
|
|
option.column.find(item => item.prop == 'renwudengji').dicUrl = '' |
|
|
|
|
this.option = option; |
|
|
|
|
let colTmp = this.option.column.find(item => item.label == "系统名称/数据库/部门"); |
|
|
|
|
if(colTmp) { |
|
|
|
|
colTmp.label = '部门系统' |
|
|
|
|
} |
|
|
|
|
console.log('option ===>',this.option) |
|
|
|
|
this.vars = vars; |
|
|
|
|
// 运维公司 |
|
|
|
|
const { yunweigongsi, renwufulei, xitongmingchengshujuku } = |
|
|
|
|
variables; |
|
|
|
|
|
|
|
|
|
console.log('status ==>',status) |
|
|
|
|
// 其它下拉字典匹配 |
|
|
|
|
if(status !== 'todo'){ |
|
|
|
|
const companyData = await getCompany({isDetail:1}); |
|
|
|
|
@ -552,11 +581,12 @@ export default { |
|
|
|
|
const moduleAndDataTableData = await getDatabaseTab({ |
|
|
|
|
id: obj.id, |
|
|
|
|
}); |
|
|
|
|
let xitongmokuaishujubiao = this.findObject( |
|
|
|
|
this.option.column, |
|
|
|
|
"xitongmokuaishujubiao" |
|
|
|
|
); |
|
|
|
|
xitongmokuaishujubiao.dicData = moduleAndDataTableData.data.data; |
|
|
|
|
// let xitongmokuaishujubiao = this.findObject( |
|
|
|
|
// this.option.column, |
|
|
|
|
// "xitongmokuaishujubiao" |
|
|
|
|
// ); |
|
|
|
|
// xitongmokuaishujubiao.dicData = moduleAndDataTableData.data.data; |
|
|
|
|
this.taskTableData = moduleAndDataTableData.data.data; |
|
|
|
|
} |
|
|
|
|
// const moduleAndDataTableData = await getModuleAndDataTable({ |
|
|
|
|
// id: obj.id, |
|
|
|
|
|