Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
H
huamu
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
郭铭瑶
huamu
Commits
23f5b433
Commit
23f5b433
authored
Sep 23, 2021
by
郭铭瑶
🤘
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改日期显示方式
parent
c9e7365e
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
10 deletions
+11
-10
data2html.ts
src/util/data2html.ts
+4
-4
activity-list-modal.vue
src/view/components/activity-list-modal.vue
+1
-1
member-info.vue
src/view/components/member-info.vue
+2
-2
new-activity-drawer.vue
src/view/components/new-activity-drawer.vue
+2
-2
vite.config.js
vite.config.js
+2
-1
No files found.
src/util/data2html.ts
View file @
23f5b433
...
@@ -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
[
'党员身份'
]
...
...
src/view/components/activity-list-modal.vue
View file @
23f5b433
...
@@ -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
'
)
:
''
,
:
''
,
},
},
)
)
...
...
src/view/components/member-info.vue
View file @
23f5b433
...
@@ -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"
>
...
...
src/view/components/new-activity-drawer.vue
View file @
23f5b433
...
@@ -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
,
},
},
{
{
...
...
vite.config.js
View file @
23f5b433
...
@@ -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
:
'./'
,
})
})
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment