Commit 23f5b433 authored by 郭铭瑶's avatar 郭铭瑶 🤘

修改日期显示方式

parent c9e7365e
...@@ -220,7 +220,7 @@ export const transMemberHtml = (data: any) => { ...@@ -220,7 +220,7 @@ export const transMemberHtml = (data: any) => {
</div> </div>
<div> <div>
<span>出生日期</span> <span>出生日期</span>
<p>${dayjs(data['出生日期']).format('ll')}</p> <p>${dayjs(data['出生日期']).format('YYYY-MM-DD')}</p>
</div> </div>
<div> <div>
<span>学历</span> <span>学历</span>
...@@ -232,7 +232,7 @@ export const transMemberHtml = (data: any) => { ...@@ -232,7 +232,7 @@ export const transMemberHtml = (data: any) => {
</div> </div>
<div> <div>
<span>入党日期</span> <span>入党日期</span>
<p>${dayjs(data['加入中共党组织日期']).format('ll')}</p> <p>${dayjs(data['加入中共党组织日期']).format('YYYY-MM-DD')}</p>
</div> </div>
</div> </div>
<div class="box"> <div class="box">
...@@ -287,7 +287,7 @@ export const transActivityHtml = (data: any) => { ...@@ -287,7 +287,7 @@ export const transActivityHtml = (data: any) => {
<div class="box inline"> <div class="box inline">
<div> <div>
<span>活动日期:</span> <span>活动日期:</span>
<p>${dayjs(+(data['活动日期'] + '000')).format('ll')}</p> <p>${dayjs(+(data['活动日期'] + '000')).format('YYYY-MM-DD')}</p>
</div> </div>
<div> <div>
<span>活动地址:</span> <span>活动地址:</span>
...@@ -382,7 +382,7 @@ export const transListHtml = (data: any) => { ...@@ -382,7 +382,7 @@ export const transListHtml = (data: any) => {
data['性别'] data['性别']
}</p></div><div><span>出生日期</span><p>${dayjs( }</p></div><div><span>出生日期</span><p>${dayjs(
data['出生日期'], data['出生日期'],
).format('ll')}</p></div><div><span>学历</span><p>${ ).format('YYYY-MM-DD')}</p></div><div><span>学历</span><p>${
data['学历'] || '无' data['学历'] || '无'
}</p></div><div><span>党员身份</span><p>${ }</p></div><div><span>党员身份</span><p>${
data['党员身份'] data['党员身份']
......
...@@ -212,7 +212,7 @@ const columns = [ ...@@ -212,7 +212,7 @@ const columns = [
{ {
default: () => default: () =>
row['活动日期'] row['活动日期']
? dayjs(+(row['活动日期'] + '000')).format('ll') ? dayjs(+(row['活动日期'] + '000')).format('YYYY-MM-DD')
: '', : '',
}, },
) )
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
</div> </div>
<div> <div>
<span>出生日期</span> <span>出生日期</span>
<p>{{ dayjs(data['出生日期']).format('ll') }}</p> <p>{{ dayjs(data['出生日期']).format('YYYY-MM-DD') }}</p>
</div> </div>
<div> <div>
<span>学历</span> <span>学历</span>
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
</div> </div>
<div> <div>
<span>入党日期</span> <span>入党日期</span>
<p>{{ dayjs(data['加入中共党组织日期']).format('ll') }}</p> <p>{{ dayjs(data['加入中共党组织日期']).format('YYYY-MM-DD') }}</p>
</div> </div>
</div> </div>
<div class="box"> <div class="box">
......
...@@ -79,7 +79,7 @@ ...@@ -79,7 +79,7 @@
</n-form-item-gi> </n-form-item-gi>
<n-form-item-gi :span="12" label="活动日期" path="date"> <n-form-item-gi :span="12" label="活动日期" path="date">
<p v-if="mode === 'view'"> <p v-if="mode === 'view'">
{{ dayjs(basicData.date).format('ll') }} {{ dayjs(basicData.date).format('YYYY-MM-DD') }}
</p> </p>
<n-date-picker <n-date-picker
v-else v-else
...@@ -798,7 +798,7 @@ const handleExport = async () => { ...@@ -798,7 +798,7 @@ const handleExport = async () => {
活动名称: name, 活动名称: name,
标签类别: type, 标签类别: type,
党组织名称: orgName, 党组织名称: orgName,
活动日期: dayjs(date).format('ll'), // 截掉10位后的10,不然这接口会认为不是时间戳 活动日期: dayjs(date).format('YYYY-MM-DD'), // 截掉10位后的10,不然这接口会认为不是时间戳
活动地址: address, 活动地址: address,
}, },
{ {
......
...@@ -29,5 +29,6 @@ export default defineConfig({ ...@@ -29,5 +29,6 @@ export default defineConfig({
}, },
}, },
}, },
base: '/statics/huamu_party_building_3d/', // base: '/statics/huamu_party_building_3d/',
base: './',
}) })
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment