diff --git a/src/views/personal/project/childSystem/manage.vue b/src/views/personal/project/childSystem/manage.vue index 08fc903..1305120 100644 --- a/src/views/personal/project/childSystem/manage.vue +++ b/src/views/personal/project/childSystem/manage.vue @@ -38,7 +38,9 @@ - + + {{ new Date(row.deadLine).toLocaleDateString() }} + 查看详情 diff --git a/src/views/personal/project/childSystem/participate.vue b/src/views/personal/project/childSystem/participate.vue index 444657a..7f5eef3 100644 --- a/src/views/personal/project/childSystem/participate.vue +++ b/src/views/personal/project/childSystem/participate.vue @@ -37,7 +37,9 @@ {{ row.description.description }} - + + {{ new Date(row.deadLine).toLocaleDateString() }} + 查看详情 diff --git a/src/views/personal/project/childmodel/manage.vue b/src/views/personal/project/childmodel/manage.vue index 0f17115..355f1dd 100644 --- a/src/views/personal/project/childmodel/manage.vue +++ b/src/views/personal/project/childmodel/manage.vue @@ -39,7 +39,9 @@ {{row.description.description}} - + + {{ new Date(row.deadLine).toLocaleDateString() }} + 查看详情 diff --git a/src/views/personal/project/childmodel/participate.vue b/src/views/personal/project/childmodel/participate.vue index ba6a044..a49c2e7 100644 --- a/src/views/personal/project/childmodel/participate.vue +++ b/src/views/personal/project/childmodel/participate.vue @@ -36,7 +36,9 @@ {{ row.description.description }} - + + {{ new Date(row.deadLine).toLocaleDateString() }} + 查看详情 diff --git a/src/views/personal/project/detail/manage.vue b/src/views/personal/project/detail/manage.vue index d74863c..295917f 100644 --- a/src/views/personal/project/detail/manage.vue +++ b/src/views/personal/project/detail/manage.vue @@ -71,11 +71,7 @@ const selectedStatus = ref('进行中'); const route = useRoute(); const projectId = route.query.id; -//修改时间方法 -function renderTime(date) { - var dateee = new Date(date).toJSON(); - return new Date(+new Date(dateee) + 8 * 3600 * 1000).toISOString().replace(/T/g, ' ').replace(/\.[\d]{3}Z/, '') - } + //加载数据 //修改表单内数据 @@ -94,7 +90,7 @@ projectItems.value.forEach(item => { } else if (item.label === '05.状态') { item.value = data.status ? data.status : '未知'; } else if (item.label === '06.时间') { - item.value = renderTime(data.deadLine) ? data.deadLine : '2024-01-01 12:00:00'; + item.value = new Date(data.deadLine).toLocaleDateString(); } else if (item.label === '07.简介') { item.value = data.description; } diff --git a/src/views/personal/project/detail/participate.vue b/src/views/personal/project/detail/participate.vue index d08edfd..56926b8 100644 --- a/src/views/personal/project/detail/participate.vue +++ b/src/views/personal/project/detail/participate.vue @@ -90,7 +90,7 @@ const parseData = (data) => { } else if (item.label === '05.状态') { item.value = data.status ? data.status : '未知'; } else if (item.label === '06.时间') { - item.value = data.deadLine ? data.deadLine : '2024-01-01 12:00:00'; + item.value = new Date(data.deadLine).toLocaleDateString(); } else if (item.label === '07.简介') { item.value = data.description; }