a04a9a71 by xukangle

Merge branch 'develop' of http://117.78.60.236:8000/csbr-daop/fe-data-asset-management into develop

2 parents 481e1e5e bd5df826
...@@ -54,17 +54,13 @@ const useUserStore = defineStore( ...@@ -54,17 +54,13 @@ const useUserStore = defineStore(
54 currentTenantGuid.value = res.data.tenantInfoList && res.data.tenantInfoList.length ? res.data.tenantInfoList[0].guid : ''; 54 currentTenantGuid.value = res.data.tenantInfoList && res.data.tenantInfoList.length ? res.data.tenantInfoList[0].guid : '';
55 localStorage.setItem('currentTenantGuid', currentTenantGuid.value); 55 localStorage.setItem('currentTenantGuid', currentTenantGuid.value);
56 let currentTenant = res.data.tenantInfoList?.[0]; 56 let currentTenant = res.data.tenantInfoList?.[0];
57 getCurrentUserInfo({tenantGuid: currentTenantGuid.value}).then((res: any) => { 57 return getCurrentUserInfo({tenantGuid: currentTenantGuid.value}).then((res: any) => {
58 console.log(res, 'getCurrentUserInfo'); 58 console.log(res, 'getCurrentUserInfo');
59 if (res.code == '00000') { 59 if (res.code == '00000') {
60 userName.value = res.data.staffName; 60 userName.value = res.data.staffName;
61 localStorage.setItem('userName', res.data?.staffName); 61 localStorage.setItem('userName', res.data?.staffName);
62 localStorage.setItem('userData', JSON.stringify(res.data)); 62 localStorage.setItem('userData', JSON.stringify(res.data));
63 } else { 63 return getSystemMenu({ tenantGuid: currentTenantGuid.value }).then((info: any) => { //解决页面调用流程接口传递staffGuid,为空的问题
64 ElMessage.error(res.msg)
65 }
66 })
67 return getSystemMenu({ tenantGuid: currentTenantGuid.value }).then((info: any) => {
68 if (info.code == '00000') { 64 if (info.code == '00000') {
69 localStorage.setItem('userInfoData', JSON.stringify(info.data)); 65 localStorage.setItem('userInfoData', JSON.stringify(info.data));
70 userInfoData.value = info.data; 66 userInfoData.value = info.data;
...@@ -73,6 +69,10 @@ const useUserStore = defineStore( ...@@ -73,6 +69,10 @@ const useUserStore = defineStore(
73 } 69 }
74 }) 70 })
75 } else { 71 } else {
72 ElMessage.error(res.msg)
73 }
74 })
75 } else {
76 isLogin.value = false; 76 isLogin.value = false;
77 // ElMessage.error(res.msg);//授权码被重复使用,不抛出异常。 77 // ElMessage.error(res.msg);//授权码被重复使用,不抛出异常。
78 } 78 }
......
...@@ -35,7 +35,7 @@ const tableFields = ref([ ...@@ -35,7 +35,7 @@ const tableFields = ref([
35 { label: "资产名称", field: "daName", width: 160, align: "left", type: 'text_btn', value: 'productDetail', columClass: 'text_btn' }, 35 { label: "资产名称", field: "daName", width: 160, align: "left", type: 'text_btn', value: 'productDetail', columClass: 'text_btn' },
36 { label: "登记时间", field: "registerTime", width: 120 }, 36 { label: "登记时间", field: "registerTime", width: 120 },
37 // { label: "企业名称", field: "tenantName", width: 240, align: "left" }, 37 // { label: "企业名称", field: "tenantName", width: 240, align: "left" },
38 { label: "评估机构", field: "issuingEntityName", width: 250, align: "left" }, 38 { label: "评估机构", field: "evaluationAgencyName", width: 250, align: "left" },
39 { label: "审批状态", field: "approveVO", type: "approveTag", width: 96, align: 'center' }, 39 { label: "审批状态", field: "approveVO", type: "approveTag", width: 96, align: 'center' },
40 ]); 40 ]);
41 41
...@@ -465,6 +465,7 @@ const dialogBtnClick = (btn, info) => { ...@@ -465,6 +465,7 @@ const dialogBtnClick = (btn, info) => {
465 }) 465 })
466 } 466 }
467 } else { 467 } else {
468 dialogInfo.value.footer.btns[1].loading = false;
468 ElMessage.error(res.msg); 469 ElMessage.error(res.msg);
469 } 470 }
470 }) 471 })
......
...@@ -531,11 +531,11 @@ const rejectDialogBtnClick = (btn, info) => { ...@@ -531,11 +531,11 @@ const rejectDialogBtnClick = (btn, info) => {
531 </div> 531 </div>
532 <div class="content_main_wrap"> 532 <div class="content_main_wrap">
533 <div class="list-content"> 533 <div class="list-content">
534 <div class="card-content" :class="{ active: exchangGuid == item.exchangeGuid }" v-for="item in exchangeList" 534 <template v-for="(item, i) in exchangeList" :key="item.exchangeGuid">
535 :key="item.exchangeGuid"> 535 <div class="card-content" :class="{ active: exchangGuid == item.exchangeGuid }">
536 <div class="header"> 536 <div class="header">
537 <img class="left-img" :src="(item.picUrl && typeof item.picUrl == 'string') ? item.picUrl : defaultItemLogo" 537 <img class="left-img"
538 alt="" /> 538 :src="(item.picUrl && typeof item.picUrl == 'string') ? item.picUrl : defaultItemLogo" alt="" />
539 <div class="right-main"> 539 <div class="right-main">
540 <div class="title" :class="{ active: exchangGuid == item.exchangeGuid }" 540 <div class="title" :class="{ active: exchangGuid == item.exchangeGuid }"
541 @click="btnClick({ value: 'search', ...item })" v-preReClick>{{ item.exchangeName ?? '--' }}</div> 541 @click="btnClick({ value: 'search', ...item })" v-preReClick>{{ item.exchangeName ?? '--' }}</div>
...@@ -556,6 +556,8 @@ const rejectDialogBtnClick = (btn, info) => { ...@@ -556,6 +556,8 @@ const rejectDialogBtnClick = (btn, info) => {
556 <div class="left-btn is_block" @click="btnClick({ value: 'create', ...item })">资产登记</div> 556 <div class="left-btn is_block" @click="btnClick({ value: 'create', ...item })">资产登记</div>
557 </div> 557 </div>
558 </div> 558 </div>
559 <div v-if="i < exchangeList.length - 1" class="space_partition"></div>
560 </template>
559 </div> 561 </div>
560 <div class="table_panel_wrap"> 562 <div class="table_panel_wrap">
561 <Table :tableInfo="tableInfo" @tableBtnClick="tableBtnClick" /> 563 <Table :tableInfo="tableInfo" @tableBtnClick="tableBtnClick" />
...@@ -727,16 +729,12 @@ const rejectDialogBtnClick = (btn, info) => { ...@@ -727,16 +729,12 @@ const rejectDialogBtnClick = (btn, info) => {
727 flex-wrap: wrap; 729 flex-wrap: wrap;
728 730
729 .card-content { 731 .card-content {
730 width: calc(33.33% - 6px); 732 width: calc(25% - 6px);
731 padding: 16px; 733 padding: 16px;
732 box-shadow: 0 0 0 1px #d9d9d9; 734 box-shadow: 0 0 0 1px #d9d9d9;
733 margin-bottom: 8px; 735 margin-bottom: 8px;
734 max-width: 400px; 736 max-width: 400px;
735 737
736 +.card-content {
737 margin-left: 8px;
738 }
739
740 &.active { 738 &.active {
741 box-shadow: 0 0 0 1px var(--el-color-primary); 739 box-shadow: 0 0 0 1px var(--el-color-primary);
742 } 740 }
...@@ -819,5 +817,9 @@ const rejectDialogBtnClick = (btn, info) => { ...@@ -819,5 +817,9 @@ const rejectDialogBtnClick = (btn, info) => {
819 } 817 }
820 } 818 }
821 } 819 }
820
821 .space_partition {
822 width: 8px;
823 }
822 } 824 }
823 </style> 825 </style>
......
...@@ -44,7 +44,7 @@ const tableFields = ref([ ...@@ -44,7 +44,7 @@ const tableFields = ref([
44 { label: "资产名称", field: "daName", width: 160, align: "left", type: 'text_btn', value: 'productDetail', columClass: 'text_btn' }, 44 { label: "资产名称", field: "daName", width: 160, align: "left", type: 'text_btn', value: 'productDetail', columClass: 'text_btn' },
45 { label: "登记时间", field: "registerTime", width: 120 }, 45 { label: "登记时间", field: "registerTime", width: 120 },
46 // { label: "企业名称", field: "tenantName", width: 240, align: "left" }, 46 // { label: "企业名称", field: "tenantName", width: 240, align: "left" },
47 { label: "评估机构", field: "issuingEntityName", width: 250, align: "left" }, 47 { label: "评估机构", field: "evaluationAgencyName", width: 250, align: "left" },
48 { 48 {
49 label: "审批状态", field: "approveState", type: "tag", width: 96, align: 'center', getName: (scope) => { 49 label: "审批状态", field: "approveState", type: "tag", width: 96, align: 'center', getName: (scope) => {
50 const approveVO = scope.row.approveVO || {} 50 const approveVO = scope.row.approveVO || {}
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!