ba1bb492 by lihua

fix

1 parent 504be555
......@@ -146,11 +146,14 @@ const getFieldTypeData = async () => {
onMounted(async () => {
await getExecGuid();
await getCgDirTreeData();
if (!execGuidInfo.value?.execGuid) {
return;
}
await getCgDirFieldPage({
execGuid: execGuidInfo.value?.execGuid,
classifyDetail: classifyDetailGuidInfo.value
});
await getCgDirTreeData();
// getDictionaryList();
getSearchTableList();
// getLabelListData();
......@@ -1233,6 +1236,9 @@ const handleClick = async (tab: any) => {
// 切换时选中的配置业务规则清空
selectedRulesData.value = {};
activeName.value = tab.props.name;
if (!execGuidInfo.value?.execGuid) {
return;
}
if (tab.props.name === 'second') {
classifyDetailGuidInfo.value = '';
// if (activeTab.value === 'table') {
......@@ -1278,7 +1284,7 @@ const dataBaseTreeData = ref<any>();
const getDataBaseTreeData = async () => {
dataBaseTreeInfo.value.loading = true;
const res: any = await getDbDirTreeList({});
if (res.data.length === 0 || !res.data) {
if (!res.data) {
dataBaseTreeInfo.value.loading = false;
return;
}
......@@ -1710,6 +1716,9 @@ const getDbDirFieldSelectData = async (type, params = {}) => {
// 获取查询的数据库名 execTaskSheetList
const getSearchTableList = async (type = 1, dbGuid = '') => {
if (!execGuidInfo.value?.execGuid) {
return;
}
const res: any = await getDbFieldList({
execGuid: execGuidInfo.value.execGuid,
dbGuid,
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!