fe41f56f by lxs

数据资产登记bug修改

1 parent 58c40233
...@@ -271,7 +271,7 @@ const getDetailInfo = () => { ...@@ -271,7 +271,7 @@ const getDetailInfo = () => {
271 ps.push(getTenantDetailInfo(userData.tenantGuid).then((res: any) => { 271 ps.push(getTenantDetailInfo(userData.tenantGuid).then((res: any) => {
272 if (res.code == proxy.$passCode) { 272 if (res.code == proxy.$passCode) {
273 const data = res.data ?? {}; 273 const data = res.data ?? {};
274 tentData = {...tentData, ...data}; 274 tentData = { ...tentData, ...data };
275 } else { 275 } else {
276 ElMessage.error(res.msg); 276 ElMessage.error(res.msg);
277 } 277 }
...@@ -279,7 +279,7 @@ const getDetailInfo = () => { ...@@ -279,7 +279,7 @@ const getDetailInfo = () => {
279 ps.push(getTenantInfo({ tenantName: userData.tenantName }).then((res: any) => { 279 ps.push(getTenantInfo({ tenantName: userData.tenantName }).then((res: any) => {
280 if (res.code == proxy.$passCode) { 280 if (res.code == proxy.$passCode) {
281 const data = res.data ?? {}; 281 const data = res.data ?? {};
282 tentData = {...tentData, ...data}; 282 tentData = { ...tentData, ...data };
283 } else { 283 } else {
284 ElMessage.error(res.msg); 284 ElMessage.error(res.msg);
285 } 285 }
...@@ -1050,6 +1050,14 @@ const handleClickDamCatalogDetail = () => { ...@@ -1050,6 +1050,14 @@ const handleClickDamCatalogDetail = () => {
1050 }); 1050 });
1051 } 1051 }
1052 1052
1053 const formattedDate = (dateVal) => {
1054 const date = new Date(dateVal);
1055 const year = date.getFullYear();
1056 const month = (date.getMonth() + 1).toString().padStart(2, '0');
1057 const day = date.getDate().toString().padStart(2, '0');
1058 return `${year}-${month}-${day}`;
1059 }
1060
1053 </script> 1061 </script>
1054 1062
1055 <template> 1063 <template>
...@@ -1647,7 +1655,9 @@ const handleClickDamCatalogDetail = () => { ...@@ -1647,7 +1655,9 @@ const handleClickDamCatalogDetail = () => {
1647 </div> 1655 </div>
1648 <div class="list_item"> 1656 <div class="list_item">
1649 <span class="item_label">注册日期:</span> 1657 <span class="item_label">注册日期:</span>
1650 <span class="item_value">{{ tenantDetail.registrationDate ?? "--" }}</span> 1658 <span class="item_value">{{ tenantDetail.registrationDate ? formattedDate(tenantDetail.registrationDate) :
1659 "--"
1660 }}</span>
1651 </div> 1661 </div>
1652 <div class="list_item"> 1662 <div class="list_item">
1653 <span class="item_label">营业开始日期:</span> 1663 <span class="item_label">营业开始日期:</span>
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!