b462ec6d by xukangle

fix

1 parent 1d8d7b9d
......@@ -46,7 +46,7 @@ const getCgDirTreeData = async () => {
const params = {
execGuid: execGuidInfo.value?.execGuid
}
if (!execGuidInfo.value.execGuid) {
if (!execGuidInfo.value?.execGuid) {
return;
}
const res: any = await getTaskExeTreeList(params);
......
......@@ -40,6 +40,10 @@ const getClassifyGradeTree = async () => {
// 分别赋值 分类guid
classifyGuid.value = classGradeTreeData.value[0]?.guid;
console.log('getClassifyGradeTree', transformedData);
if (transformedData.length == 0) {
treeInfo.value.loading = false;
return;
}
newCreateGradeFormItems.value[1].options = transformDataForTree([transformedData[0]])
treeInfo.value.loading = false;
isAddDisabled.value = false;
......@@ -106,6 +110,9 @@ const getLabelListData = async () => {
if (res.code == proxy.$passCode) {
LabelListData.value = res.data;
const data = res.data
if (data.length == 0) {
return;
}
data.map(item => {
item.label = item.label
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!