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
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
26 deletions
+25
-26
news-add-or-update.vue
src/views/modules/info/news-add-or-update.vue
+5
-5
picture.vue
src/views/modules/info/picture.vue
+20
-21
No files found.
src/views/modules/info/news-add-or-update.vue
View file @
b14cf710
...
...
@@ -75,7 +75,7 @@
<el-form-item
label=
"展示时间:"
prop=
"showtime"
>
<el-date-picker
v-show=
"!showInfo"
v-model=
"dataForm.showtime"
value-format=
'yyyy-MM-dd'
type=
"date"
...
...
@@ -108,7 +108,7 @@
</el-upload>
<p
v-show=
"showInfo"
><img
:src=
"imgUrlStr"
class=
"avatar2"
></p>
</el-form-item>
<el-form-item
label=
"简介:"
prop=
"brief"
>
<el-input
type=
"textarea"
rows=
"5"
v-model=
"dataForm.brief"
placeholder=
"请输入简介"
v-show=
"!showInfo"
></el-input>
<p
v-show=
"showInfo"
>
{{dataForm.brief}}
</p>
...
...
@@ -157,7 +157,7 @@ export default {
pic
:
''
,
content
:
''
,
ishead
:
0
,
showtime
:
''
,
showtime
:
`
${
new
Date
().
getFullYear
()}
-
${
new
Date
().
getMonth
()
+
1
}
-
${
new
Date
().
getDate
()}
`
,
classid
:
''
,
cclassid
:
''
},
...
...
@@ -510,7 +510,7 @@ export default {
.edui-editor{
width: 100%;
} */
</
style
>
<
style
scoped
lang=
"scss"
>
.icon-list__tips
{
...
...
@@ -519,7 +519,7 @@ export default {
color
:
#e6a23c
;
cursor
:
pointer
;
}
.el-form
/
deep
/
.el-form-item__label
,
.el-table
{
//
font-size
:
12px
;
}
...
...
src/views/modules/info/picture.vue
View file @
b14cf710
...
...
@@ -43,7 +43,7 @@
<el-form-item
label=
'发布日期'
prop=
'releaseDate'
>
<el-date-picker
clearable
v-model=
"releaseDate"
type=
"daterange"
start-placeholder=
"开始日期"
...
...
@@ -67,25 +67,14 @@
style=
"width: 100%; "
@
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>
...
...
@@ -94,7 +83,7 @@
</div>
</
template
>
</el-table-column>
<el-table-column
<el-table-column
header-align=
"center"
align=
"center"
width=
"150"
...
...
@@ -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"
...
...
@@ -362,12 +362,12 @@ export default {
}
</
script
>
<
style
scoped
>
/*
/*
.el-select-dropdown__item,.el-form-item__label{
font-size: 12px!important;
} */
/* .el-table .cell, .el-table th div {
padding-right: 0;
} */
</
style
>
\ No newline at end of file
</
style
>
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