fe41f56f by lxs

数据资产登记bug修改

1 parent 58c40233
......@@ -271,7 +271,7 @@ const getDetailInfo = () => {
ps.push(getTenantDetailInfo(userData.tenantGuid).then((res: any) => {
if (res.code == proxy.$passCode) {
const data = res.data ?? {};
tentData = {...tentData, ...data};
tentData = { ...tentData, ...data };
} else {
ElMessage.error(res.msg);
}
......@@ -279,7 +279,7 @@ const getDetailInfo = () => {
ps.push(getTenantInfo({ tenantName: userData.tenantName }).then((res: any) => {
if (res.code == proxy.$passCode) {
const data = res.data ?? {};
tentData = {...tentData, ...data};
tentData = { ...tentData, ...data };
} else {
ElMessage.error(res.msg);
}
......@@ -1050,6 +1050,14 @@ const handleClickDamCatalogDetail = () => {
});
}
const formattedDate = (dateVal) => {
const date = new Date(dateVal);
const year = date.getFullYear();
const month = (date.getMonth() + 1).toString().padStart(2, '0');
const day = date.getDate().toString().padStart(2, '0');
return `${year}-${month}-${day}`;
}
</script>
<template>
......@@ -1647,7 +1655,9 @@ const handleClickDamCatalogDetail = () => {
</div>
<div class="list_item">
<span class="item_label">注册日期:</span>
<span class="item_value">{{ tenantDetail.registrationDate ?? "--" }}</span>
<span class="item_value">{{ tenantDetail.registrationDate ? formattedDate(tenantDetail.registrationDate) :
"--"
}}</span>
</div>
<div class="list_item">
<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!