|
|
@ -500,13 +500,22 @@ |
|
|
|
|
|
|
|
|
</div> |
|
|
</div> |
|
|
<el-form-item label="模式列表" prop="dbSName"> |
|
|
<el-form-item label="模式列表" prop="dbSName"> |
|
|
<el-input |
|
|
<el-select |
|
|
v-model="form.dbSName" |
|
|
v-model="form.dbSName" |
|
|
|
|
|
filterable |
|
|
|
|
|
allow-create |
|
|
|
|
|
clearable |
|
|
placeholder="请输入模式列表,不填即采集全部的模式" |
|
|
placeholder="请输入模式列表,不填即采集全部的模式" |
|
|
maxlength="30" |
|
|
|
|
|
:disabled="isEdit" |
|
|
:disabled="isEdit" |
|
|
style="width: 80%" |
|
|
style="width: 80%" |
|
|
/> |
|
|
> |
|
|
|
|
|
<el-option |
|
|
|
|
|
v-for="item in dbSCodeList" |
|
|
|
|
|
:key="item" |
|
|
|
|
|
:label="item" |
|
|
|
|
|
:value="item" |
|
|
|
|
|
/> |
|
|
|
|
|
</el-select> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
</el-row> |
|
|
</el-row> |
|
|
@ -568,6 +577,7 @@ |
|
|
<script setup name="MetaTask"> |
|
|
<script setup name="MetaTask"> |
|
|
import { ref, reactive, onMounted, watch } from "vue"; |
|
|
import { ref, reactive, onMounted, watch } from "vue"; |
|
|
import { listmetatask, getmetatask, delmetatask, addmetatask, updatemetatask, downOrUpmetatask, datasourcetree, datasourceall ,dsmetataskdelete} from "@/api/meta/metatask"; |
|
|
import { listmetatask, getmetatask, delmetatask, addmetatask, updatemetatask, downOrUpmetatask, datasourcetree, datasourceall ,dsmetataskdelete} from "@/api/meta/metatask"; |
|
|
|
|
|
import { getschemaById} from "@/api/meta/metaInfo"; |
|
|
import runDialog from "./runDialog"; |
|
|
import runDialog from "./runDialog"; |
|
|
import dsDialog from "./dsDialog"; |
|
|
import dsDialog from "./dsDialog"; |
|
|
import logDialog from "./logsDialog"; |
|
|
import logDialog from "./logsDialog"; |
|
|
@ -595,10 +605,7 @@ const workerGroupList = ref(undefined); |
|
|
const defindName = ref(""); |
|
|
const defindName = ref(""); |
|
|
const dbResourceOptions = ref(undefined); |
|
|
const dbResourceOptions = ref(undefined); |
|
|
const dbRCodeList = ref(undefined); |
|
|
const dbRCodeList = ref(undefined); |
|
|
const dbSCodeList = ref([ |
|
|
const dbSCodeList = ref([]); |
|
|
{ value: "scheam", label: "scheam" }, |
|
|
|
|
|
{ value: "scheam2", label: "scheam2" } |
|
|
|
|
|
]); |
|
|
|
|
|
const metataskTypeOptions = ref([ |
|
|
const metataskTypeOptions = ref([ |
|
|
{ value: "0", label: "元数据采集", children: [{ value: "00", label: "表字段" }, { value: "01", label: "存储过程" }] }, |
|
|
{ value: "0", label: "元数据采集", children: [{ value: "00", label: "表字段" }, { value: "01", label: "存储过程" }] }, |
|
|
{ value: "1", label: "元数据加工" } |
|
|
{ value: "1", label: "元数据加工" } |
|
|
@ -760,6 +767,17 @@ const reset = () => { |
|
|
proxy.resetForm("taskForm"); |
|
|
proxy.resetForm("taskForm"); |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
const loadSchemaList = async (dbRCode) => { |
|
|
|
|
|
dbSCodeList.value = []; |
|
|
|
|
|
if (!dbRCode) return; |
|
|
|
|
|
try { |
|
|
|
|
|
const response = await getschemaById(dbRCode); |
|
|
|
|
|
dbSCodeList.value = response?.data || []; |
|
|
|
|
|
} catch { |
|
|
|
|
|
dbSCodeList.value = []; |
|
|
|
|
|
} |
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
const getIconClass = (data) => { |
|
|
const getIconClass = (data) => { |
|
|
let icon="" |
|
|
let icon="" |
|
|
if (data.parentId == '0') icon= 'Monitor'; |
|
|
if (data.parentId == '0') icon= 'Monitor'; |
|
|
@ -821,6 +839,7 @@ const handleAdd = () => { |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
reset(); |
|
|
reset(); |
|
|
|
|
|
loadSchemaList(clickNode.value?.id); |
|
|
isEdit.value=false; |
|
|
isEdit.value=false; |
|
|
open.value = true; |
|
|
open.value = true; |
|
|
}; |
|
|
}; |
|
|
@ -830,6 +849,7 @@ const handleUpdate = async (row) => { |
|
|
const metataskId = row.metataskId || ids.value; |
|
|
const metataskId = row.metataskId || ids.value; |
|
|
const response = await getmetatask(metataskId); |
|
|
const response = await getmetatask(metataskId); |
|
|
form.value = response.data; |
|
|
form.value = response.data; |
|
|
|
|
|
await loadSchemaList(form.value.dbRCode); |
|
|
open.value = true; |
|
|
open.value = true; |
|
|
isEdit.value=true; |
|
|
isEdit.value=true; |
|
|
|
|
|
|
|
|
|