ba1bb492 by lihua

fix

1 parent 504be555
...@@ -146,11 +146,14 @@ const getFieldTypeData = async () => { ...@@ -146,11 +146,14 @@ const getFieldTypeData = async () => {
146 146
147 onMounted(async () => { 147 onMounted(async () => {
148 await getExecGuid(); 148 await getExecGuid();
149 await getCgDirTreeData(); 149 if (!execGuidInfo.value?.execGuid) {
150 return;
151 }
150 await getCgDirFieldPage({ 152 await getCgDirFieldPage({
151 execGuid: execGuidInfo.value?.execGuid, 153 execGuid: execGuidInfo.value?.execGuid,
152 classifyDetail: classifyDetailGuidInfo.value 154 classifyDetail: classifyDetailGuidInfo.value
153 }); 155 });
156 await getCgDirTreeData();
154 // getDictionaryList(); 157 // getDictionaryList();
155 getSearchTableList(); 158 getSearchTableList();
156 // getLabelListData(); 159 // getLabelListData();
...@@ -1233,6 +1236,9 @@ const handleClick = async (tab: any) => { ...@@ -1233,6 +1236,9 @@ const handleClick = async (tab: any) => {
1233 // 切换时选中的配置业务规则清空 1236 // 切换时选中的配置业务规则清空
1234 selectedRulesData.value = {}; 1237 selectedRulesData.value = {};
1235 activeName.value = tab.props.name; 1238 activeName.value = tab.props.name;
1239 if (!execGuidInfo.value?.execGuid) {
1240 return;
1241 }
1236 if (tab.props.name === 'second') { 1242 if (tab.props.name === 'second') {
1237 classifyDetailGuidInfo.value = ''; 1243 classifyDetailGuidInfo.value = '';
1238 // if (activeTab.value === 'table') { 1244 // if (activeTab.value === 'table') {
...@@ -1278,7 +1284,7 @@ const dataBaseTreeData = ref<any>(); ...@@ -1278,7 +1284,7 @@ const dataBaseTreeData = ref<any>();
1278 const getDataBaseTreeData = async () => { 1284 const getDataBaseTreeData = async () => {
1279 dataBaseTreeInfo.value.loading = true; 1285 dataBaseTreeInfo.value.loading = true;
1280 const res: any = await getDbDirTreeList({}); 1286 const res: any = await getDbDirTreeList({});
1281 if (res.data.length === 0 || !res.data) { 1287 if (!res.data) {
1282 dataBaseTreeInfo.value.loading = false; 1288 dataBaseTreeInfo.value.loading = false;
1283 return; 1289 return;
1284 } 1290 }
...@@ -1710,6 +1716,9 @@ const getDbDirFieldSelectData = async (type, params = {}) => { ...@@ -1710,6 +1716,9 @@ const getDbDirFieldSelectData = async (type, params = {}) => {
1710 1716
1711 // 获取查询的数据库名 execTaskSheetList 1717 // 获取查询的数据库名 execTaskSheetList
1712 const getSearchTableList = async (type = 1, dbGuid = '') => { 1718 const getSearchTableList = async (type = 1, dbGuid = '') => {
1719 if (!execGuidInfo.value?.execGuid) {
1720 return;
1721 }
1713 const res: any = await getDbFieldList({ 1722 const res: any = await getDbFieldList({
1714 execGuid: execGuidInfo.value.execGuid, 1723 execGuid: execGuidInfo.value.execGuid,
1715 dbGuid, 1724 dbGuid,
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!