2ee7a970 by lihua

fix: 解决评估机构的问题

1 parent 5e9aa653
...@@ -39,7 +39,7 @@ watch([ ...@@ -39,7 +39,7 @@ watch([
39 ], () => { 39 ], () => {
40 if (settingsStore.settings.app.enableDynamicTitle && settingsStore.title) { 40 if (settingsStore.settings.app.enableDynamicTitle && settingsStore.title) {
41 const title = typeof settingsStore.title === 'function' ? settingsStore.title() : settingsStore.title 41 const title = typeof settingsStore.title === 'function' ? settingsStore.title() : settingsStore.title
42 document.title = `${title}` 42 document.title = `${title} - ${import.meta.env.VITE_APP_TITLE}`
43 } 43 }
44 else { 44 else {
45 document.title = import.meta.env.VITE_APP_TITLE 45 document.title = import.meta.env.VITE_APP_TITLE
......
...@@ -96,6 +96,13 @@ export const getTenantDetailInfo = (params) => request({ ...@@ -96,6 +96,13 @@ export const getTenantDetailInfo = (params) => request({
96 method: 'get' 96 method: 'get'
97 }) 97 })
98 98
99 // 查看人员详情
100 export const getStaffDetailInfo = (params) => request({
101 url: `${import.meta.env.VITE_APP_PERSONAL_URL}/staff/getByGuid/${params}`,
102 method: 'get'
103 })
104
105
99 106
100 /** 107 /**
101 * 日志管理 108 * 日志管理
......
...@@ -13,10 +13,13 @@ import { ...@@ -13,10 +13,13 @@ import {
13 saveQuality, 13 saveQuality,
14 qualityAllow, 14 qualityAllow,
15 deleteQuality, 15 deleteQuality,
16 updatQuality 16 updatQuality,
17 } from "@/api/modules/dataAsset"; 17 } from "@/api/modules/dataAsset";
18 import useUserStore from "@/store/modules/user"; 18 import useUserStore from "@/store/modules/user";
19 import useDataAssetStore from "@/store/modules/dataAsset"; 19 import useDataAssetStore from "@/store/modules/dataAsset";
20 import {
21 getStaffDetailInfo
22 } from "@/api/modules/queryService";
20 import { rejectFlowData, revokeFlowData, getCamundaDeploymentId, getProcessNodesPromise } from "@/api/modules/workFlowService"; 23 import { rejectFlowData, revokeFlowData, getCamundaDeploymentId, getProcessNodesPromise } from "@/api/modules/workFlowService";
21 24
22 const assetStore = useDataAssetStore(); 25 const assetStore = useDataAssetStore();
...@@ -41,7 +44,7 @@ const tableFields = ref([ ...@@ -41,7 +44,7 @@ const tableFields = ref([
41 44
42 const deploymentId = ref(''); 45 const deploymentId = ref('');
43 46
44 onBeforeMount(() => { 47 onMounted(() => {
45 getCamundaDeploymentId('10018', userData.tenantGuid, userData.staffGuid).then((res: any) => { 48 getCamundaDeploymentId('10018', userData.tenantGuid, userData.staffGuid).then((res: any) => {
46 if (res.code == proxy.$passCode) { 49 if (res.code == proxy.$passCode) {
47 deploymentId.value = res.data; 50 deploymentId.value = res.data;
...@@ -413,6 +416,8 @@ const dialogBtnClick = (btn, info) => { ...@@ -413,6 +416,8 @@ const dialogBtnClick = (btn, info) => {
413 processInstanceId: null, 416 processInstanceId: null,
414 }).then((res: any) => { 417 }).then((res: any) => {
415 if (res?.code == proxy.$passCode) { 418 if (res?.code == proxy.$passCode) {
419 getStaffDetailInfo(res.data?.[1]?.candidateUsers?.[0]?.staffGuid).then((resUser: any) => {
420 if (resUser?.code == proxy.$passCode) {
416 if (dialogInfo.value.type == 'reSubmit') { 421 if (dialogInfo.value.type == 'reSubmit') {
417 updatQuality({ 422 updatQuality({
418 guid: currTableData.value.guid, 423 guid: currTableData.value.guid,
...@@ -420,7 +425,7 @@ const dialogBtnClick = (btn, info) => { ...@@ -420,7 +425,7 @@ const dialogBtnClick = (btn, info) => {
420 damGuid: currTableData.value.damGuid, 425 damGuid: currTableData.value.damGuid,
421 daName: currTableData.value.daName, 426 daName: currTableData.value.daName,
422 immediateApprove: true, 427 immediateApprove: true,
423 evaluationAgencyGuid: res.data?.[1]?.candidateUsers?.[0]?.staffGuid, 428 evaluationAgencyGuid: resUser.data?.tenantGuid,
424 qualityEvaluationFile: info.qualityEvaluationFile?.map(file => { 429 qualityEvaluationFile: info.qualityEvaluationFile?.map(file => {
425 return { 430 return {
426 name: file.name, 431 name: file.name,
...@@ -445,7 +450,7 @@ const dialogBtnClick = (btn, info) => { ...@@ -445,7 +450,7 @@ const dialogBtnClick = (btn, info) => {
445 damGuid: info.damGuid, 450 damGuid: info.damGuid,
446 daName: daInfo.damName, 451 daName: daInfo.damName,
447 immediateApprove: true, 452 immediateApprove: true,
448 evaluationAgencyGuid: res.data?.[1]?.candidateUsers?.[0]?.staffGuid, 453 evaluationAgencyGuid: resUser.data?.tenantGuid,
449 qualityEvaluationFile: info.qualityEvaluationFile?.map(file => { 454 qualityEvaluationFile: info.qualityEvaluationFile?.map(file => {
450 return { 455 return {
451 name: file.name, 456 name: file.name,
...@@ -469,6 +474,11 @@ const dialogBtnClick = (btn, info) => { ...@@ -469,6 +474,11 @@ const dialogBtnClick = (btn, info) => {
469 ElMessage.error(res.msg); 474 ElMessage.error(res.msg);
470 } 475 }
471 }) 476 })
477 } else {
478 dialogInfo.value.footer.btns[1].loading = false;
479 ElMessage.error(res.msg);
480 }
481 })
472 } else if (btn.value == 'cancel') { 482 } else if (btn.value == 'cancel') {
473 dialogInfo.value.visible = false; 483 dialogInfo.value.visible = false;
474 } 484 }
......
...@@ -17,7 +17,7 @@ import { ...@@ -17,7 +17,7 @@ import {
17 costAssessAllow 17 costAssessAllow
18 } from "@/api/modules/dataAsset"; 18 } from "@/api/modules/dataAsset";
19 import { 19 import {
20 getTenantAttach 20 getStaffDetailInfo
21 } from "@/api/modules/queryService"; 21 } from "@/api/modules/queryService";
22 import useUserStore from "@/store/modules/user"; 22 import useUserStore from "@/store/modules/user";
23 import useDataAssetStore from "@/store/modules/dataAsset"; 23 import useDataAssetStore from "@/store/modules/dataAsset";
...@@ -741,7 +741,8 @@ const dialogBtnClick = (btn, info) => { ...@@ -741,7 +741,8 @@ const dialogBtnClick = (btn, info) => {
741 deploymentId: deploymentId.value, 741 deploymentId: deploymentId.value,
742 processInstanceId: null, 742 processInstanceId: null,
743 }).then((res: any) => { 743 }).then((res: any) => {
744 console.log('res', res); 744 getStaffDetailInfo(res.data?.[1]?.candidateUsers?.[0]?.staffGuid).then((resUser: any) => {
745 if (resUser?.code == proxy.$passCode) {
745 if (dialogInfo.value.type == 'reSubmit') { 746 if (dialogInfo.value.type == 'reSubmit') {
746 if (reSubmitPromise.value) { 747 if (reSubmitPromise.value) {
747 return; 748 return;
...@@ -768,7 +769,7 @@ const dialogBtnClick = (btn, info) => { ...@@ -768,7 +769,7 @@ const dialogBtnClick = (btn, info) => {
768 evaluationRangeStart: info.evaluationRange ? info.evaluationRange[0] : null, 769 evaluationRangeStart: info.evaluationRange ? info.evaluationRange[0] : null,
769 evaluationRangeEnd: info.evaluationRange ? info.evaluationRange[1] : null, 770 evaluationRangeEnd: info.evaluationRange ? info.evaluationRange[1] : null,
770 evaluationNote: info.evaluationNote || null, 771 evaluationNote: info.evaluationNote || null,
771 evaluationAgencyGuid: res.data?.[1]?.candidateUsers?.[0]?.staffGuid, 772 evaluationAgencyGuid: resUser.data?.tenantGuid,
772 }).then((res: any) => { 773 }).then((res: any) => {
773 reSubmitPromise.value = null; 774 reSubmitPromise.value = null;
774 if (res?.code == proxy.$passCode) { 775 if (res?.code == proxy.$passCode) {
...@@ -800,7 +801,7 @@ const dialogBtnClick = (btn, info) => { ...@@ -800,7 +801,7 @@ const dialogBtnClick = (btn, info) => {
800 url: file.url 801 url: file.url
801 } 802 }
802 }) || [], 803 }) || [],
803 evaluationAgencyGuid: res.data?.[1]?.candidateUsers?.[0]?.staffGuid, 804 evaluationAgencyGuid: resUser.data?.tenantGuid,
804 } 805 }
805 } else { 806 } else {
806 //未通过质量评估发起资产申请 807 //未通过质量评估发起资产申请
...@@ -841,6 +842,10 @@ const dialogBtnClick = (btn, info) => { ...@@ -841,6 +842,10 @@ const dialogBtnClick = (btn, info) => {
841 } 842 }
842 }) 843 })
843 } 844 }
845 } else {
846 ElMessage.error(res.msg);
847 }
848 });
844 }) 849 })
845 } else if (btn.value == 'cancel') { 850 } else if (btn.value == 'cancel') {
846 dialogInfo.value.visible = false; 851 dialogInfo.value.visible = false;
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!