b462ec6d by xukangle

fix

1 parent 1d8d7b9d
...@@ -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
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!