Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gs1-admin
Overview
Overview
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
吴迪
gs1-admin
Commits
b14cf710
Commit
b14cf710
authored
Sep 18, 2024
by
田爽
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
文章新增默认显示时间,图片列表顺序
parent
4fce9f22
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
15 deletions
+15
-15
news-add-or-update.vue
src/views/modules/info/news-add-or-update.vue
+1
-1
picture.vue
src/views/modules/info/picture.vue
+14
-14
No files found.
src/views/modules/info/news-add-or-update.vue
View file @
b14cf710
...
...
@@ -157,7 +157,7 @@ export default {
pic
:
''
,
content
:
''
,
ishead
:
0
,
showtime
:
''
,
showtime
:
`
${
new
Date
().
getFullYear
()}
-
${
new
Date
().
getMonth
()
+
1
}
-
${
new
Date
().
getDate
()}
`
,
classid
:
''
,
cclassid
:
''
},
...
...
src/views/modules/info/picture.vue
View file @
b14cf710
...
...
@@ -68,24 +68,13 @@
@
sort-change=
"changeTableSort"
>
<el-table-column
prop=
"piclevel"
header-align=
"center"
align=
"center"
label=
"级别"
>
</el-table-column>
<el-table-column
prop=
"title"
header-align=
"center"
align=
"left"
label=
"标题"
width=
"360px"
>
<el-table-column
prop=
"piclevel"
header-align=
"center"
align=
"center"
label=
"级别"
width=
"50px"
>
</el-table-column>
<el-table-column
prop=
"title"
header-align=
"center"
align=
"left"
label=
"标题"
>
<template
slot-scope=
"scope"
>
<a
:href=
"urlsJson[scope.row.title]"
target=
"_blank"
>
{{
scope
.
row
.
title
}}
</a>
</
template
>
</el-table-column>
<el-table-column
prop=
"pictureType"
header-align=
"center"
align=
"center"
label=
"分类"
>
</el-table-column>
<el-table-column
prop=
"showtime"
header-align=
"center"
align=
"center"
sortable=
'custom'
label=
"显示时间"
width=
"120px"
>
</el-table-column>
<el-table-column
prop=
"inputdate"
header-align=
"center"
align=
"center"
sortable=
'custom'
label=
"发布时间"
width=
"120px"
>
<
template
slot-scope=
"scope"
>
<div>
{{
scope
.
row
.
inputdate
&&
scope
.
row
.
inputdate
.
substring
(
0
,
10
)
}}
</div>
</
template
>
</el-table-column>
<el-table-column
prop=
"keyword"
header-align=
"center"
align=
"left"
label=
"关键字"
width=
"260px"
>
</el-table-column>
<el-table-column
prop=
"editor"
header-align=
"center"
align=
"center"
label=
"编辑"
>
</el-table-column>
<el-table-column
prop=
"lasteditor"
header-align=
"center"
align=
"center"
label=
"最后编辑"
>
</el-table-column>
<el-table-column
prop=
"auditor"
header-align=
"center"
align=
"center"
label=
"审核人"
>
</el-table-column>
<el-table-column
prop=
"status"
header-align=
"center"
align=
"center"
label=
"状态"
>
<el-table-column
prop=
"status"
header-align=
"center"
align=
"center"
label=
"状态"
width=
"90px"
>
<
template
slot-scope=
"scope"
>
<div>
<span
v-if=
"scope.row.status === 0"
>
待审核
</span>
...
...
@@ -108,6 +97,17 @@
<el-button
v-if=
"isAuth('manage:picture:delete')"
type=
"text"
size=
"small"
@
click=
"deleteHandle(scope.row.pictureid,scope.row.title)"
>
删除
</el-button>
</
template
>
</el-table-column>
<el-table-column
prop=
"pictureType"
header-align=
"center"
align=
"center"
label=
"分类"
width=
"100px"
>
</el-table-column>
<el-table-column
prop=
"showtime"
header-align=
"center"
align=
"center"
sortable=
'custom'
label=
"显示时间"
width=
"110px"
>
</el-table-column>
<el-table-column
prop=
"inputdate"
header-align=
"center"
align=
"center"
sortable=
'custom'
label=
"发布时间"
width=
"110px"
>
<
template
slot-scope=
"scope"
>
<div>
{{
scope
.
row
.
inputdate
&&
scope
.
row
.
inputdate
.
substring
(
0
,
10
)
}}
</div>
</
template
>
</el-table-column>
<el-table-column
prop=
"keyword"
header-align=
"center"
align=
"left"
label=
"关键字"
width=
"130px"
>
</el-table-column>
<el-table-column
prop=
"editor"
header-align=
"center"
align=
"center"
label=
"编辑"
width=
"90px"
>
</el-table-column>
<el-table-column
prop=
"lasteditor"
header-align=
"center"
align=
"center"
label=
"最后编辑"
width=
"90px"
>
</el-table-column>
<el-table-column
prop=
"auditor"
header-align=
"center"
align=
"center"
label=
"审核人"
width=
"90px"
>
</el-table-column>
</el-table>
<el-pagination
@
size-change=
"sizeChangeHandle"
...
...
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