|
|
|
@ -454,7 +454,9 @@ |
|
|
|
style="width: 240px" |
|
|
|
@change="changeTableTag" |
|
|
|
> |
|
|
|
<el-option v-for="item in metaClasList" :key="item.clasOnum" :value="item.clasOnum" :label="item.clasOnum+' - '+item.clasName"/> |
|
|
|
<template v-for="item in metaClasList"> |
|
|
|
<el-option v-if="item.clasOnum && (item.clasOnum+'')[0] === '1'" :key="item.clasOnum" :value="item.clasOnum" :label="item.clasOnum+' - '+item.clasName"/> |
|
|
|
</template> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item> |
|
|
|
@ -612,7 +614,9 @@ |
|
|
|
style="width: 192px" |
|
|
|
@change="changeColumnTag" |
|
|
|
> |
|
|
|
<el-option v-for="item in metaClasList" :key="item.clasOnum" :value="item.clasOnum" :label="item.clasOnum+' - '+item.clasName"/> |
|
|
|
<template v-for="item in metaClasList"> |
|
|
|
<el-option v-if="item.clasOnum && (item.clasOnum+'')[0] === '2'" :key="item.clasOnum" :value="item.clasOnum" :label="item.clasOnum+' - '+item.clasName"/> |
|
|
|
</template> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item> |
|
|
|
@ -889,6 +893,12 @@ |
|
|
|
import {EditPen} from "@element-plus/icons-vue"; |
|
|
|
import { useRoute} from 'vue-router'; |
|
|
|
import {datasourcetree} from "@/api/meta/metatask.js"; |
|
|
|
import {ElMessage} from "element-plus"; |
|
|
|
import useUserStore from '@/store/modules/user' |
|
|
|
|
|
|
|
|
|
|
|
const userStore = useUserStore() |
|
|
|
const dsSysList = userStore.dsSysList |
|
|
|
const data = reactive({ |
|
|
|
queryParams:{ |
|
|
|
ssysId:'', |
|
|
|
@ -976,6 +986,8 @@ |
|
|
|
const stddictOptions = ref([]) |
|
|
|
const secLvlOptions = ref([]) |
|
|
|
const directoryTree = ref([]) |
|
|
|
|
|
|
|
|
|
|
|
/*** 导入参数 */ |
|
|
|
const upload = reactive({ |
|
|
|
// 是否显示弹出层(导入) |
|
|
|
@ -1049,14 +1061,35 @@ |
|
|
|
loadingBusiness.value = false; |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|
const getSrcSysName = (id) => { |
|
|
|
const match = dsSysList.find(item => item.id === id); |
|
|
|
return match ? match.name : id; |
|
|
|
}; |
|
|
|
function changeBloodOption(){ |
|
|
|
if (procId.value === -1){ |
|
|
|
proxy.$modal.msgWarning("此表暂无血缘,请执行存储过程跑批任务后查看"); |
|
|
|
bloodRelation.value = {} |
|
|
|
}else { |
|
|
|
getMetaDataBloodRelship(procId.value).then(res=>{ |
|
|
|
bloodRelation.value = res.data |
|
|
|
let tableList = res.data.tableList |
|
|
|
let emptyTable = [] |
|
|
|
if (tableList && tableList.length>0){ |
|
|
|
tableList.forEach(table=>{ |
|
|
|
let column = table.column |
|
|
|
if (column === null || column.length === 0){ |
|
|
|
emptyTable.push('系统:'+getSrcSysName(table.ssys_id)+',模式:'+table.mdl_name+',表:'+table.tab_eng_name+"在系统中无该表元数据信息<br>") |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
if (emptyTable.length>0){ |
|
|
|
bloodRelation.value = [] |
|
|
|
let message = emptyTable.join("")+'请核对存储过程以及元数据信息' |
|
|
|
ElMessage.warning({message: message,dangerouslyUseHTMLString:true}) |
|
|
|
bloodRelation.value = [] |
|
|
|
}else { |
|
|
|
bloodRelation.value = res.data |
|
|
|
} |
|
|
|
|
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
|