Merge branch 'develop' of http://117.78.60.236:8000/csbr-daop/fe-data-asset-management into develop
Showing
4 changed files
with
40 additions
and
37 deletions
| ... | @@ -54,24 +54,24 @@ const useUserStore = defineStore( | ... | @@ -54,24 +54,24 @@ 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 | return getSystemMenu({ tenantGuid: currentTenantGuid.value }).then((info: any) => { //解决页面调用流程接口传递staffGuid,为空的问题 | ||
| 64 | if (info.code == '00000') { | ||
| 65 | localStorage.setItem('userInfoData', JSON.stringify(info.data)); | ||
| 66 | userInfoData.value = info.data; | ||
| 67 | } else { | ||
| 68 | ElMessage.error(info.msg) | ||
| 69 | } | ||
| 70 | }) | ||
| 63 | } else { | 71 | } else { |
| 64 | ElMessage.error(res.msg) | 72 | ElMessage.error(res.msg) |
| 65 | } | 73 | } |
| 66 | }) | 74 | }) |
| 67 | return getSystemMenu({ tenantGuid: currentTenantGuid.value }).then((info: any) => { | ||
| 68 | if (info.code == '00000') { | ||
| 69 | localStorage.setItem('userInfoData', JSON.stringify(info.data)); | ||
| 70 | userInfoData.value = info.data; | ||
| 71 | } else { | ||
| 72 | ElMessage.error(info.msg) | ||
| 73 | } | ||
| 74 | }) | ||
| 75 | } else { | 75 | } else { |
| 76 | isLogin.value = false; | 76 | isLogin.value = false; |
| 77 | // ElMessage.error(res.msg);//授权码被重复使用,不抛出异常。 | 77 | // ElMessage.error(res.msg);//授权码被重复使用,不抛出异常。 | ... | ... |
| ... | @@ -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,31 +531,33 @@ const rejectDialogBtnClick = (btn, info) => { | ... | @@ -531,31 +531,33 @@ 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> |
| 542 | <div class="count-group"> | 542 | <div class="count-group"> |
| 543 | <div class="count-item"> | 543 | <div class="count-item"> |
| 544 | <div class="item-label">已登记产品数</div> | 544 | <div class="item-label">已登记产品数</div> |
| 545 | <div class="item-num">{{ changeNum(item.listingNum || 0) }}</div> | 545 | <div class="item-num">{{ changeNum(item.listingNum || 0) }}</div> |
| 546 | </div> | 546 | </div> |
| 547 | <div class="count-item"> | 547 | <div class="count-item"> |
| 548 | <div class="item-label">审批中产品数</div> | 548 | <div class="item-label">审批中产品数</div> |
| 549 | <div class="item-num">{{ changeNum(item.underReviewNum || 0) }}</div> | 549 | <div class="item-num">{{ changeNum(item.underReviewNum || 0) }}</div> |
| 550 | </div> | ||
| 550 | </div> | 551 | </div> |
| 551 | </div> | 552 | </div> |
| 552 | </div> | 553 | </div> |
| 554 | <div class="operator-btn"> | ||
| 555 | <!-- <div class="left-btn borderRight" @click="btnClick(item)">更新模板</div> --> | ||
| 556 | <div class="left-btn is_block" @click="btnClick({ value: 'create', ...item })">资产登记</div> | ||
| 557 | </div> | ||
| 553 | </div> | 558 | </div> |
| 554 | <div class="operator-btn"> | 559 | <div v-if="i < exchangeList.length - 1" class="space_partition"></div> |
| 555 | <!-- <div class="left-btn borderRight" @click="btnClick(item)">更新模板</div> --> | 560 | </template> |
| 556 | <div class="left-btn is_block" @click="btnClick({ value: 'create', ...item })">资产登记</div> | ||
| 557 | </div> | ||
| 558 | </div> | ||
| 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 || {} | ... | ... |
-
Please register or sign in to post a comment