fix
Showing
2 changed files
with
8 additions
and
1 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) { | 49 | if (!execGuidInfo.value?.execGuid) { |
| 50 | return; | 50 | return; |
| 51 | } | 51 | } |
| 52 | const res: any = await getTaskExeTreeList(params); | 52 | const res: any = await getTaskExeTreeList(params); | ... | ... |
| ... | @@ -40,6 +40,10 @@ const getClassifyGradeTree = async () => { | ... | @@ -40,6 +40,10 @@ const getClassifyGradeTree = async () => { |
| 40 | // 分别赋值 分类guid | 40 | // 分别赋值 分类guid |
| 41 | classifyGuid.value = classGradeTreeData.value[0]?.guid; | 41 | classifyGuid.value = classGradeTreeData.value[0]?.guid; |
| 42 | console.log('getClassifyGradeTree', transformedData); | 42 | console.log('getClassifyGradeTree', transformedData); |
| 43 | if (transformedData.length == 0) { | ||
| 44 | treeInfo.value.loading = false; | ||
| 45 | return; | ||
| 46 | } | ||
| 43 | newCreateGradeFormItems.value[1].options = transformDataForTree([transformedData[0]]) | 47 | newCreateGradeFormItems.value[1].options = transformDataForTree([transformedData[0]]) |
| 44 | treeInfo.value.loading = false; | 48 | treeInfo.value.loading = false; |
| 45 | isAddDisabled.value = false; | 49 | isAddDisabled.value = false; |
| ... | @@ -106,6 +110,9 @@ const getLabelListData = async () => { | ... | @@ -106,6 +110,9 @@ const getLabelListData = async () => { |
| 106 | if (res.code == proxy.$passCode) { | 110 | if (res.code == proxy.$passCode) { |
| 107 | LabelListData.value = res.data; | 111 | LabelListData.value = res.data; |
| 108 | const data = res.data | 112 | const data = res.data |
| 113 | if (data.length == 0) { | ||
| 114 | return; | ||
| 115 | } | ||
| 109 | data.map(item => { | 116 | data.map(item => { |
| 110 | item.label = item.label | 117 | item.label = item.label |
| 111 | item.value = item.guid | 118 | item.value = item.guid | ... | ... |
-
Please register or sign in to post a comment