7f57de30 by xukangle

Merge branch 'develop' into release-test

2 parents b462ec6d d41c7c0b
...@@ -46,7 +46,8 @@ const getCgDirTreeData = async () => { ...@@ -46,7 +46,8 @@ 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 || !execGuidInfo.value?.execGuid) {
50 treeInfo.value.loading = false;
50 return; 51 return;
51 } 52 }
52 const res: any = await getTaskExeTreeList(params); 53 const res: any = await getTaskExeTreeList(params);
...@@ -1273,6 +1274,10 @@ const dataBaseTreeData = ref<any>(); ...@@ -1273,6 +1274,10 @@ const dataBaseTreeData = ref<any>();
1273 const getDataBaseTreeData = async () => { 1274 const getDataBaseTreeData = async () => {
1274 dataBaseTreeInfo.value.loading = true; 1275 dataBaseTreeInfo.value.loading = true;
1275 const res: any = await getDbDirTreeList({}); 1276 const res: any = await getDbDirTreeList({});
1277 if (res.data.length === 0 || !res.data) {
1278 dataBaseTreeInfo.value.loading = false;
1279 return;
1280 }
1276 if (res.code == proxy.$passCode) { 1281 if (res.code == proxy.$passCode) {
1277 const dataArray = res.data; 1282 const dataArray = res.data;
1278 // 遍历并添加 GUIDs 1283 // 遍历并添加 GUIDs
...@@ -1313,15 +1318,15 @@ const getDataBaseTreeData = async () => { ...@@ -1313,15 +1318,15 @@ const getDataBaseTreeData = async () => {
1313 dataBaseTreeInfo.value.loading = false; 1318 dataBaseTreeInfo.value.loading = false;
1314 return; 1319 return;
1315 } 1320 }
1316 dataBaseTreeInfo.value.expandedKey.push(dataArray[0].guid); 1321 dataBaseTreeInfo.value.expandedKey.push(dataArray[0]?.guid);
1317 dataBaseTreeInfo.value.currentNodeKey = dataArray[0].guid; 1322 dataBaseTreeInfo.value.currentNodeKey = dataArray[0]?.guid;
1318 dataBaseGuid.value = dataArray[0].databaseGuid; 1323 dataBaseGuid.value = dataArray[0].databaseGuid;
1319 currentDatabasePath.value = [dataArray[0].name]; 1324 currentDatabasePath.value = [dataArray[0]?.name];
1320 selectedA.value = dataArray[0].databaseGuid; 1325 selectedA.value = dataArray[0].databaseGuid;
1321 if (dataArray[0].dicType === 1) { 1326 if (dataArray[0]?.dicType === 1) {
1322 isShowCreateBtn.value = true; 1327 isShowCreateBtn.value = true;
1323 } 1328 }
1324 if (dataArray[0].dicType === 2) { 1329 if (dataArray[0]?.dicType === 2) {
1325 isShowCreateBtn.value = false; 1330 isShowCreateBtn.value = false;
1326 } 1331 }
1327 1332
......
...@@ -24,7 +24,10 @@ const getClassifyGradeTree = async () => { ...@@ -24,7 +24,10 @@ const getClassifyGradeTree = async () => {
24 treeInfo.value.loading = true; 24 treeInfo.value.loading = true;
25 const res: any = await getClassifyGradeTreeList(); 25 const res: any = await getClassifyGradeTreeList();
26 if (res.code == proxy.$passCode) { 26 if (res.code == proxy.$passCode) {
27 27 if (!res.data || res.data.length === 0) {
28 treeInfo.value.loading = false;
29 return;
30 }
28 const transformedData = transformData(res.data); 31 const transformedData = transformData(res.data);
29 classGradeTreeData.value = transformedData || []; 32 classGradeTreeData.value = transformedData || [];
30 treeInfo.value.data = classGradeTreeData.value; 33 treeInfo.value.data = classGradeTreeData.value;
...@@ -108,6 +111,10 @@ const LabelListData = ref<any>([]); ...@@ -108,6 +111,10 @@ const LabelListData = ref<any>([]);
108 const getLabelListData = async () => { 111 const getLabelListData = async () => {
109 const res: any = await getLabelList({ label: '' }); 112 const res: any = await getLabelList({ label: '' });
110 if (res.code == proxy.$passCode) { 113 if (res.code == proxy.$passCode) {
114 // 判空
115 if (!res.data || res.data.length === 0) {
116 return;
117 }
111 LabelListData.value = res.data; 118 LabelListData.value = res.data;
112 const data = res.data 119 const data = res.data
113 if (data.length == 0) { 120 if (data.length == 0) {
......
...@@ -105,7 +105,7 @@ const tableInfo = ref({ ...@@ -105,7 +105,7 @@ const tableInfo = ref({
105 const { row } = scope; 105 const { row } = scope;
106 const approveVO = row.approveVO || {}; 106 const approveVO = row.approveVO || {};
107 const currentStaffGuid = userData.staffGuid 107 const currentStaffGuid = userData.staffGuid
108 const bizApproveState = row.bizApproveState; 108 const bizApproveState = row.approveState;
109 const approveState = approveVO.approveState || null; 109 const approveState = approveVO.approveState || null;
110 const approveStaffGuids = approveVO.approveStaffGuids || []; 110 const approveStaffGuids = approveVO.approveStaffGuids || [];
111 const staffGuid = approveVO.staffGuid || ''; 111 const staffGuid = approveVO.staffGuid || '';
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!