fix
Showing
1 changed file
with
8 additions
and
6 deletions
| ... | @@ -46,7 +46,7 @@ const getCgDirTreeData = async () => { | ... | @@ -46,7 +46,7 @@ const getCgDirTreeData = async () => { |
| 46 | const params = { | 46 | const params = { |
| 47 | execGuid: execGuidInfo.value?.execGuid | 47 | execGuid: execGuidInfo.value?.execGuid |
| 48 | } | 48 | } |
| 49 | if (!execGuidInfo.value?.execGuid || !execGuidInfo.value?.execGuid) { | 49 | if (!execGuidInfo.value?.execGuid) { |
| 50 | treeInfo.value.loading = false; | 50 | treeInfo.value.loading = false; |
| 51 | return; | 51 | return; |
| 52 | } | 52 | } |
| ... | @@ -146,11 +146,10 @@ const getFieldTypeData = async () => { | ... | @@ -146,11 +146,10 @@ const getFieldTypeData = async () => { |
| 146 | 146 | ||
| 147 | onMounted(async () => { | 147 | onMounted(async () => { |
| 148 | await getExecGuid(); | 148 | await getExecGuid(); |
| 149 | if (!execGuidInfo.value?.execGuid) { | ||
| 150 | return; | ||
| 151 | } | ||
| 149 | await getCgDirTreeData(); | 152 | await getCgDirTreeData(); |
| 150 | await getCgDirFieldPage({ | ||
| 151 | execGuid: execGuidInfo.value?.execGuid, | ||
| 152 | classifyDetail: classifyDetailGuidInfo.value | ||
| 153 | }); | ||
| 154 | // getDictionaryList(); | 153 | // getDictionaryList(); |
| 155 | getSearchTableList(); | 154 | getSearchTableList(); |
| 156 | // getLabelListData(); | 155 | // getLabelListData(); |
| ... | @@ -1229,6 +1228,9 @@ const handleClick = async (tab: any) => { | ... | @@ -1229,6 +1228,9 @@ const handleClick = async (tab: any) => { |
| 1229 | // 切换时选中的配置业务规则清空 | 1228 | // 切换时选中的配置业务规则清空 |
| 1230 | selectedRulesData.value = {}; | 1229 | selectedRulesData.value = {}; |
| 1231 | activeName.value = tab.props.name; | 1230 | activeName.value = tab.props.name; |
| 1231 | if (!execGuidInfo.value?.execGuid) { | ||
| 1232 | return; | ||
| 1233 | } | ||
| 1232 | if (tab.props.name === 'second') { | 1234 | if (tab.props.name === 'second') { |
| 1233 | classifyDetailGuidInfo.value = ''; | 1235 | classifyDetailGuidInfo.value = ''; |
| 1234 | // if (activeTab.value === 'table') { | 1236 | // if (activeTab.value === 'table') { |
| ... | @@ -1274,7 +1276,7 @@ const dataBaseTreeData = ref<any>(); | ... | @@ -1274,7 +1276,7 @@ const dataBaseTreeData = ref<any>(); |
| 1274 | const getDataBaseTreeData = async () => { | 1276 | const getDataBaseTreeData = async () => { |
| 1275 | dataBaseTreeInfo.value.loading = true; | 1277 | dataBaseTreeInfo.value.loading = true; |
| 1276 | const res: any = await getDbDirTreeList({}); | 1278 | const res: any = await getDbDirTreeList({}); |
| 1277 | if (res.data.length === 0 || !res.data) { | 1279 | if (!res.data) { |
| 1278 | dataBaseTreeInfo.value.loading = false; | 1280 | dataBaseTreeInfo.value.loading = false; |
| 1279 | return; | 1281 | return; |
| 1280 | } | 1282 | } | ... | ... |
-
Please register or sign in to post a comment