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
2cdf3fe6
Commit
2cdf3fe6
authored
Sep 23, 2024
by
田爽
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
资讯管理列表宽度调整,编辑页显示时间默认
parent
ad0e3627
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
162 additions
and
136 deletions
+162
-136
announce-add-or-update.vue
src/views/modules/info/announce-add-or-update.vue
+1
-1
announce.vue
src/views/modules/info/announce.vue
+34
-30
indexcarouselmanage.vue
src/views/modules/info/indexcarouselmanage.vue
+40
-33
news-add-or-update.vue
src/views/modules/info/news-add-or-update.vue
+2
-2
newsmovie-add-or-update.vue
src/views/modules/info/newsmovie-add-or-update.vue
+2
-2
newsmovie.vue
src/views/modules/info/newsmovie.vue
+38
-29
newtopic-add-or-update.vue
src/views/modules/info/newtopic-add-or-update.vue
+1
-1
newtopic.vue
src/views/modules/info/newtopic.vue
+35
-29
picture-add-or-update.vue
src/views/modules/info/picture-add-or-update.vue
+1
-1
picture.vue
src/views/modules/info/picture.vue
+8
-8
No files found.
src/views/modules/info/announce-add-or-update.vue
View file @
2cdf3fe6
...
...
@@ -100,7 +100,7 @@ export default {
levels
:
1
,
fileurl
:
''
,
content
:
''
,
showtime
:
''
,
showtime
:
`
${
new
Date
().
getFullYear
()}
-
${
new
Date
().
getMonth
()
+
1
}
-
${
new
Date
().
getDate
()}
`
,
announcetype
:
''
},
typeList
:
[
...
...
src/views/modules/info/announce.vue
View file @
2cdf3fe6
...
...
@@ -76,16 +76,45 @@
prop=
"title"
header-align=
"center"
align=
"left"
width=
"36
0px"
min-width=
"30
0px"
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=
"status"
header-align=
"center"
align=
"center"
width=
"70px"
label=
"状态"
>
<
template
slot-scope=
"scope"
>
<div>
<span
v-if=
"scope.row.status === 0"
>
待审核
</span>
<span
v-if=
"scope.row.status === -1"
>
失败
</span>
<span
v-if=
"scope.row.status === 1"
>
成功
</span>
</div>
</
template
>
</el-table-column>
<el-table-column
header-align=
"center"
align=
"center"
width=
"150"
label=
"操作"
>
<
template
slot-scope=
"scope"
>
<el-button
v-if=
"isAuth('manage:announce:check')"
type=
"text"
size=
"small"
@
click=
"checkHandle(scope.row.id,scope.row.title,1)"
>
[成功]
</el-button>
<el-button
v-if=
"isAuth('manage:announce:check')"
type=
"text"
size=
"small"
@
click=
"checkHandle(scope.row.id,scope.row.title,-1)"
>
[失败]
</el-button>
<br
v-if=
"isAuth('manage:announce:check')"
/>
<el-button
v-if=
"isAuth('manage:announce:info')"
type=
"text"
size=
"small"
@
click=
"showMsg(scope.row)"
>
预览
</el-button>
<el-button
v-if=
"isAuth('manage:announce:update')"
type=
"text"
size=
"small"
@
click=
"addOrUpdateHandle(scope.row.id)"
>
修改
</el-button>
<el-button
v-if=
"isAuth('manage:announce:delete')"
type=
"text"
size=
"small"
@
click=
"deleteHandle(scope.row.id,scope.row.title)"
>
删除
</el-button>
</
template
>
</el-table-column>
<el-table-column
prop=
"announcetype"
header-align=
"center"
align=
"center"
width=
"90px"
label=
"分类"
>
<
template
slot-scope=
"scope"
>
<div>
...
...
@@ -97,6 +126,7 @@
prop=
"editor"
header-align=
"center"
align=
"center"
width=
"90px"
label=
"编辑"
>
</el-table-column>
<el-table-column
...
...
@@ -111,7 +141,7 @@
header-align=
"center"
align=
"center"
sortable=
'custom'
width=
"1
2
0px"
width=
"1
1
0px"
label=
"显示时间"
>
</el-table-column>
<el-table-column
...
...
@@ -119,7 +149,7 @@
header-align=
"center"
align=
"center"
sortable=
'custom'
width=
"1
2
0px"
width=
"1
1
0px"
label=
"发布时间"
>
<
template
slot-scope=
"scope"
>
<div>
{{
scope
.
row
.
releasedate
&&
scope
.
row
.
releasedate
.
substring
(
0
,
10
)
}}
</div>
...
...
@@ -137,35 +167,9 @@
prop=
"auditor"
header-align=
"center"
align=
"center"
width=
"90px"
label=
"审核人"
>
</el-table-column>
<el-table-column
prop=
"status"
header-align=
"center"
align=
"center"
label=
"状态"
>
<
template
slot-scope=
"scope"
>
<div>
<span
v-if=
"scope.row.status === 0"
>
待审核
</span>
<span
v-if=
"scope.row.status === -1"
>
失败
</span>
<span
v-if=
"scope.row.status === 1"
>
成功
</span>
</div>
</
template
>
</el-table-column>
<el-table-column
header-align=
"center"
align=
"center"
width=
"150"
label=
"操作"
>
<
template
slot-scope=
"scope"
>
<el-button
v-if=
"isAuth('manage:announce:check')"
type=
"text"
size=
"small"
@
click=
"checkHandle(scope.row.id,scope.row.title,1)"
>
[成功]
</el-button>
<el-button
v-if=
"isAuth('manage:announce:check')"
type=
"text"
size=
"small"
@
click=
"checkHandle(scope.row.id,scope.row.title,-1)"
>
[失败]
</el-button>
<br
v-if=
"isAuth('manage:announce:check')"
/>
<el-button
v-if=
"isAuth('manage:announce:info')"
type=
"text"
size=
"small"
@
click=
"showMsg(scope.row)"
>
预览
</el-button>
<el-button
v-if=
"isAuth('manage:announce:update')"
type=
"text"
size=
"small"
@
click=
"addOrUpdateHandle(scope.row.id)"
>
修改
</el-button>
<el-button
v-if=
"isAuth('manage:announce:delete')"
type=
"text"
size=
"small"
@
click=
"deleteHandle(scope.row.id,scope.row.title)"
>
删除
</el-button>
</
template
>
</el-table-column>
</el-table>
<el-pagination
...
...
src/views/modules/info/indexcarouselmanage.vue
View file @
2cdf3fe6
...
...
@@ -74,16 +74,50 @@
prop=
"title"
header-align=
"center"
align=
"left"
width=
"36
0px"
min-width=
"30
0px"
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=
"checkflagIndex"
header-align=
"center"
align=
"center"
width=
"70px"
label=
"状态"
>
<
template
slot-scope=
"scope"
>
<div>
<span
v-if=
"scope.row.checkflagIndex === 0"
>
待审核
</span>
<span
v-if=
"scope.row.checkflagIndex === -1"
>
失败
</span>
<span
v-if=
"scope.row.checkflagIndex === 1"
>
成功
</span>
</div>
</
template
>
</el-table-column>
<el-table-column
header-align=
"center"
align=
"center"
width=
"150"
label=
"操作"
>
<
template
slot-scope=
"scope"
>
<el-button
v-if=
"isAuth('manage:indexcarouselmanage:check')"
type=
"text"
size=
"small"
@
click=
"checkHandle(scope.row.id,scope.row.title,1)"
>
[成功]
</el-button>
<el-button
v-if=
"isAuth('manage:indexcarouselmanage:check')"
type=
"text"
size=
"small"
@
click=
"checkHandle(scope.row.id,scope.row.title,-1)"
>
[失败]
</el-button>
<br
v-if=
"isAuth('manage:indexcarouselmanage:check')"
/>
<el-button
v-if=
"isAuth('manage:indexcarouselmanage:info')"
type=
"text"
size=
"small"
@
click=
"showMsg(scope.row)"
>
预览
</el-button>
<el-button
v-if=
"isAuth('manage:indexcarouselmanage:update')"
type=
"text"
size=
"small"
@
click=
"addOrUpdateHandle(scope.row.id)"
>
修改
</el-button>
<el-button
v-if=
"isAuth('manage:indexcarouselmanage:delete')"
type=
"text"
size=
"small"
@
click=
"deleteHandle(scope.row.id,scope.row.title)"
>
删除
</el-button>
<br
v-if=
"scope.row.classnum=='大轮播'"
/>
<el-button
v-if=
"scope.row.classnum=='大轮播'"
type=
"text"
size=
"small"
>
<span
v-if=
"scope.row.isShow==1"
@
click=
"updateIsShow(scope.row.id,0)"
>
了解更多隐藏
</span>
<span
v-if=
"scope.row.isShow==0"
@
click=
"updateIsShow(scope.row.id,1)"
>
了解更多显示
</span>
</el-button>
</
template
>
</el-table-column>
<el-table-column
prop=
"classnum"
header-align=
"center"
align=
"center"
width=
"90px"
label=
"类别"
>
</el-table-column>
<el-table-column
...
...
@@ -91,6 +125,7 @@
header-align=
"center"
align=
"center"
sortable=
'custom'
width=
"110px"
label=
"首页添加时间"
>
<
template
slot-scope=
"scope"
>
<div>
{{
scope
.
row
.
starttimeIndex
&&
scope
.
row
.
starttimeIndex
.
substring
(
0
,
10
)
}}
</div>
...
...
@@ -101,6 +136,7 @@
header-align=
"center"
align=
"center"
sortable=
'custom'
width=
"110px"
label=
"首页修改时间"
>
<
template
slot-scope=
"scope"
>
<div>
{{
scope
.
row
.
updatetimeIndex
&&
scope
.
row
.
updatetimeIndex
.
substring
(
0
,
10
)
}}
</div>
...
...
@@ -110,52 +146,23 @@
prop=
"editorIndex"
header-align=
"center"
align=
"center"
width=
"90px"
label=
"编辑"
>
</el-table-column>
<el-table-column
prop=
"lasteditorIndex"
header-align=
"center"
align=
"center"
width=
"90px"
label=
"最后编辑"
>
</el-table-column>
<el-table-column
prop=
"checkIndexAuthor"
header-align=
"center"
align=
"center"
width=
"90px"
label=
"审核人"
>
</el-table-column>
<el-table-column
prop=
"checkflagIndex"
header-align=
"center"
align=
"center"
label=
"状态"
>
<
template
slot-scope=
"scope"
>
<div>
<span
v-if=
"scope.row.checkflagIndex === 0"
>
待审核
</span>
<span
v-if=
"scope.row.checkflagIndex === -1"
>
失败
</span>
<span
v-if=
"scope.row.checkflagIndex === 1"
>
成功
</span>
</div>
</
template
>
</el-table-column>
<el-table-column
header-align=
"center"
align=
"center"
width=
"150"
label=
"操作"
>
<
template
slot-scope=
"scope"
>
<el-button
v-if=
"isAuth('manage:indexcarouselmanage:check')"
type=
"text"
size=
"small"
@
click=
"checkHandle(scope.row.id,scope.row.title,1)"
>
[成功]
</el-button>
<el-button
v-if=
"isAuth('manage:indexcarouselmanage:check')"
type=
"text"
size=
"small"
@
click=
"checkHandle(scope.row.id,scope.row.title,-1)"
>
[失败]
</el-button>
<br
v-if=
"isAuth('manage:indexcarouselmanage:check')"
/>
<el-button
v-if=
"isAuth('manage:indexcarouselmanage:info')"
type=
"text"
size=
"small"
@
click=
"showMsg(scope.row)"
>
预览
</el-button>
<el-button
v-if=
"isAuth('manage:indexcarouselmanage:update')"
type=
"text"
size=
"small"
@
click=
"addOrUpdateHandle(scope.row.id)"
>
修改
</el-button>
<el-button
v-if=
"isAuth('manage:indexcarouselmanage:delete')"
type=
"text"
size=
"small"
@
click=
"deleteHandle(scope.row.id,scope.row.title)"
>
删除
</el-button>
<br
v-if=
"scope.row.classnum=='大轮播'"
/>
<el-button
v-if=
"scope.row.classnum=='大轮播'"
type=
"text"
size=
"small"
>
<span
v-if=
"scope.row.isShow==1"
@
click=
"updateIsShow(scope.row.id,0)"
>
了解更多隐藏
</span>
<span
v-if=
"scope.row.isShow==0"
@
click=
"updateIsShow(scope.row.id,1)"
>
了解更多显示
</span>
</el-button>
</
template
>
</el-table-column>
</el-table>
<el-pagination
@
size-change=
"sizeChangeHandle"
...
...
src/views/modules/info/news-add-or-update.vue
View file @
2cdf3fe6
...
...
@@ -72,14 +72,14 @@
</el-select>
<p
v-show=
"showInfo"
>
{{dataForm.levels}}
</p>
</el-form-item>
<el-form-item
label=
"
展
示时间:"
prop=
"showtime"
>
<el-form-item
label=
"
显
示时间:"
prop=
"showtime"
>
<el-date-picker
v-show=
"!showInfo"
v-model=
"dataForm.showtime"
value-format=
'yyyy-MM-dd'
type=
"date"
placeholder=
"请选择
展
示时间"
>
placeholder=
"请选择
显
示时间"
>
</el-date-picker>
<p
v-show=
"showInfo"
>
{{dataForm.showtime}}
</p>
</el-form-item>
...
...
src/views/modules/info/newsmovie-add-or-update.vue
View file @
2cdf3fe6
...
...
@@ -104,7 +104,7 @@
<Ueditor
@
ready=
"editorReady"
:value=
"ueditor.value"
:config=
"ueditor.config"
ref=
"ue"
v-show=
"!showInfo"
></Ueditor>
<div
v-show=
"showInfo"
v-html=
"dataForm.content"
></div>
</el-form-item>
-->
<el-form-item
label=
"时间"
prop=
"showtime"
>
<el-form-item
label=
"
显示
时间"
prop=
"showtime"
>
<el-date-picker
v-show=
"!showInfo"
...
...
@@ -155,7 +155,7 @@ export default {
clanguage
:
''
,
brief
:
''
,
wavname
:
''
,
showtime
:
''
showtime
:
`
${
new
Date
().
getFullYear
()}
-
${
new
Date
().
getMonth
()
+
1
}
-
${
new
Date
().
getDate
()}
`
},
cclassidStr
:
undefined
,
dataRule
:
{
...
...
src/views/modules/info/newsmovie.vue
View file @
2cdf3fe6
...
...
@@ -86,19 +86,47 @@
prop=
"levels"
header-align=
"center"
align=
"center"
style=
"width: 50px;
"
width=
"50px
"
label=
"级别"
>
</el-table-column>
<el-table-column
prop=
"title"
header-align=
"center"
align=
"left"
width=
"36
0px"
min-width=
"30
0px"
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=
"status"
header-align=
"center"
align=
"center"
width=
"70"
label=
"状态"
>
<
template
slot-scope=
"scope"
>
<div>
<span
v-if=
"scope.row.status === 0"
>
待审核
</span>
<span
v-if=
"scope.row.status === -1"
>
失败
</span>
<span
v-if=
"scope.row.status === 1"
>
成功
</span>
</div>
</
template
>
</el-table-column>
<el-table-column
header-align=
"center"
align=
"center"
width=
"150"
label=
"操作"
>
<
template
slot-scope=
"scope"
>
<el-button
v-if=
"isAuth('manage:newsmovie:check')"
type=
"text"
size=
"small"
@
click=
"checkHandle(scope.row.id,scope.row.title,1)"
>
[成功]
</el-button>
<el-button
v-if=
"isAuth('manage:newsmovie:check')"
type=
"text"
size=
"small"
@
click=
"checkHandle(scope.row.id,scope.row.title,-1)"
>
[失败]
</el-button>
<br
v-if=
"isAuth('manage:newsmovie:check')"
/>
<el-button
v-if=
"isAuth('manage:newsmovie:info')"
type=
"text"
size=
"small"
@
click=
"showMsg(scope.row)"
>
预览
</el-button>
<el-button
v-if=
"isAuth('manage:newsmovie:update')"
type=
"text"
size=
"small"
@
click=
"addOrUpdateHandle(scope.row.id)"
>
修改
</el-button>
<el-button
v-if=
"isAuth('manage:newsmovie:delete')"
type=
"text"
size=
"small"
@
click=
"deleteHandle(scope.row.id,scope.row.title)"
>
删除
</el-button>
</
template
>
</el-table-column>
<!-- <el-table-column
prop="keyword"
header-align="center"
...
...
@@ -109,6 +137,7 @@
prop=
"author"
header-align=
"center"
align=
"center"
width=
"90px"
label=
"演讲人"
>
</el-table-column>
...
...
@@ -128,6 +157,7 @@
prop=
"clanguage"
header-align=
"center"
align=
"center"
width=
"90px"
label=
"语种"
>
</el-table-column>
...
...
@@ -136,12 +166,14 @@
prop=
"editor"
header-align=
"center"
align=
"center"
width=
"90px"
label=
"编辑"
>
</el-table-column>
<el-table-column
prop=
"lasteditor"
header-align=
"center"
align=
"center"
width=
"90px"
label=
"最后编辑"
>
</el-table-column>
<el-table-column
...
...
@@ -149,6 +181,7 @@
header-align=
"center"
align=
"center"
sortable=
'custom'
width=
"110px"
label=
"显示时间"
>
</el-table-column>
<el-table-column
...
...
@@ -156,6 +189,7 @@
header-align=
"center"
align=
"center"
sortable=
'custom'
width=
"110px"
label=
"发布时间"
>
<
template
slot-scope=
"scope"
>
<div>
{{
scope
.
row
.
releasedate
&&
scope
.
row
.
releasedate
.
substring
(
0
,
10
)
}}
</div>
...
...
@@ -166,6 +200,7 @@
header-align=
"center"
align=
"center"
sortable=
'custom'
width=
"110px"
label=
"更新时间"
>
<
template
slot-scope=
"scope"
>
<div>
{{
scope
.
row
.
updatedate
&&
scope
.
row
.
updatedate
.
substring
(
0
,
10
)
}}
</div>
...
...
@@ -175,35 +210,9 @@
prop=
"auditor"
header-align=
"center"
align=
"center"
width=
"90px"
label=
"审核人"
>
</el-table-column>
<el-table-column
prop=
"status"
header-align=
"center"
align=
"center"
label=
"状态"
>
<
template
slot-scope=
"scope"
>
<div>
<span
v-if=
"scope.row.status === 0"
>
待审核
</span>
<span
v-if=
"scope.row.status === -1"
>
失败
</span>
<span
v-if=
"scope.row.status === 1"
>
成功
</span>
</div>
</
template
>
</el-table-column>
<el-table-column
header-align=
"center"
align=
"center"
width=
"150"
label=
"操作"
>
<
template
slot-scope=
"scope"
>
<el-button
v-if=
"isAuth('manage:newsmovie:check')"
type=
"text"
size=
"small"
@
click=
"checkHandle(scope.row.id,scope.row.title,1)"
>
[成功]
</el-button>
<el-button
v-if=
"isAuth('manage:newsmovie:check')"
type=
"text"
size=
"small"
@
click=
"checkHandle(scope.row.id,scope.row.title,-1)"
>
[失败]
</el-button>
<br
v-if=
"isAuth('manage:newsmovie:check')"
/>
<el-button
v-if=
"isAuth('manage:newsmovie:info')"
type=
"text"
size=
"small"
@
click=
"showMsg(scope.row)"
>
预览
</el-button>
<el-button
v-if=
"isAuth('manage:newsmovie:update')"
type=
"text"
size=
"small"
@
click=
"addOrUpdateHandle(scope.row.id)"
>
修改
</el-button>
<el-button
v-if=
"isAuth('manage:newsmovie:delete')"
type=
"text"
size=
"small"
@
click=
"deleteHandle(scope.row.id,scope.row.title)"
>
删除
</el-button>
</
template
>
</el-table-column>
</el-table>
<el-pagination
...
...
src/views/modules/info/newtopic-add-or-update.vue
View file @
2cdf3fe6
...
...
@@ -126,7 +126,7 @@ export default {
categoryid
:
''
,
newtmpid
:
''
,
levels
:
1
,
showtime
:
''
,
showtime
:
`
${
new
Date
().
getFullYear
()}
-
${
new
Date
().
getMonth
()
+
1
}
-
${
new
Date
().
getDate
()}
`
,
ppath
:
''
,
content
:
''
,
shortcontent
:
''
,
...
...
src/views/modules/info/newtopic.vue
View file @
2cdf3fe6
...
...
@@ -54,14 +54,14 @@
prop=
"levels"
header-align=
"center"
align=
"center"
width=
"
7
0px"
width=
"
5
0px"
label=
"级别"
>
</el-table-column>
<el-table-column
prop=
"title"
header-align=
"center"
align=
"left"
width=
"36
0px"
min-width=
"30
0px"
label=
"专题标题"
>
<template
slot-scope=
"scope"
>
<a
:href=
"urlsJson[scope.row.title]"
target=
"_blank"
>
{{
scope
.
row
.
title
}}
</a>
...
...
@@ -74,10 +74,39 @@
label="专题分类">
</el-table-column> -->
<el-table-column
prop=
"checkflag"
header-align=
"center"
align=
"center"
width=
"70px"
label=
"状态"
>
<
template
slot-scope=
"scope"
>
<div>
<span
v-if=
"scope.row.checkflag === 0"
>
待审核
</span>
<span
v-if=
"scope.row.checkflag === -1"
>
失败
</span>
<span
v-if=
"scope.row.checkflag === 1"
>
成功
</span>
</div>
</
template
>
</el-table-column>
<el-table-column
header-align=
"center"
align=
"center"
width=
"150"
label=
"操作"
>
<
template
slot-scope=
"scope"
>
<el-button
v-if=
"isAuth('manage:newtopic:check')"
type=
"text"
size=
"small"
@
click=
"checkHandle(scope.row.classid,scope.row.title,1)"
>
[成功]
</el-button>
<el-button
v-if=
"isAuth('manage:newtopic:check')"
type=
"text"
size=
"small"
@
click=
"checkHandle(scope.row.classid,scope.row.title,-1)"
>
[失败]
</el-button>
<br
v-if=
"isAuth('manage:newtopic:check')"
/>
<el-button
v-if=
"isAuth('manage:newtopic:info')"
type=
"text"
size=
"small"
@
click=
"showMsg(scope.row)"
>
预览
</el-button>
<el-button
v-if=
"isAuth('manage:newtopic:update')"
type=
"text"
size=
"small"
@
click=
"addOrUpdateHandle(scope.row.classid)"
>
修改
</el-button>
<el-button
v-if=
"isAuth('manage:newtopic:delete')"
type=
"text"
size=
"small"
@
click=
"deleteHandle(scope.row.classid,scope.row.title)"
>
删除
</el-button>
</
template
>
</el-table-column>
<el-table-column
prop=
"showtime"
header-align=
"center"
align=
"center"
sortable=
'custom'
width=
"110px"
label=
"显示时间"
>
</el-table-column>
<el-table-column
...
...
@@ -85,6 +114,7 @@
header-align=
"center"
align=
"center"
sortable=
'custom'
width=
"110px"
label=
"发布时间"
>
<
template
slot-scope=
"scope"
>
<div>
{{
scope
.
row
.
time
&&
scope
.
row
.
time
.
substring
(
0
,
10
)
}}
</div>
...
...
@@ -94,47 +124,23 @@
prop=
"editor"
header-align=
"center"
align=
"center"
width=
"90px"
label=
"编辑"
>
</el-table-column>
<el-table-column
prop=
"lasteditor"
header-align=
"center"
align=
"center"
width=
"90px"
label=
"最后编辑"
>
</el-table-column>
<el-table-column
prop=
"checkname"
header-align=
"center"
align=
"center"
width=
"90px"
label=
"审核人"
>
</el-table-column>
<el-table-column
prop=
"checkflag"
header-align=
"center"
align=
"center"
label=
"状态"
>
<
template
slot-scope=
"scope"
>
<div>
<span
v-if=
"scope.row.checkflag === 0"
>
待审核
</span>
<span
v-if=
"scope.row.checkflag === -1"
>
失败
</span>
<span
v-if=
"scope.row.checkflag === 1"
>
成功
</span>
</div>
</
template
>
</el-table-column>
<el-table-column
header-align=
"center"
align=
"center"
width=
"150"
label=
"操作"
>
<
template
slot-scope=
"scope"
>
<el-button
v-if=
"isAuth('manage:newtopic:check')"
type=
"text"
size=
"small"
@
click=
"checkHandle(scope.row.classid,scope.row.title,1)"
>
[成功]
</el-button>
<el-button
v-if=
"isAuth('manage:newtopic:check')"
type=
"text"
size=
"small"
@
click=
"checkHandle(scope.row.classid,scope.row.title,-1)"
>
[失败]
</el-button>
<br
v-if=
"isAuth('manage:newtopic:check')"
/>
<el-button
v-if=
"isAuth('manage:newtopic:info')"
type=
"text"
size=
"small"
@
click=
"showMsg(scope.row)"
>
预览
</el-button>
<el-button
v-if=
"isAuth('manage:newtopic:update')"
type=
"text"
size=
"small"
@
click=
"addOrUpdateHandle(scope.row.classid)"
>
修改
</el-button>
<el-button
v-if=
"isAuth('manage:newtopic:delete')"
type=
"text"
size=
"small"
@
click=
"deleteHandle(scope.row.classid,scope.row.title)"
>
删除
</el-button>
</
template
>
</el-table-column>
</el-table>
<el-pagination
@
size-change=
"sizeChangeHandle"
...
...
src/views/modules/info/picture-add-or-update.vue
View file @
2cdf3fe6
...
...
@@ -121,7 +121,7 @@ export default {
status
:
''
,
keyword
:
''
,
jumppath
:
''
,
showtime
:
''
showtime
:
`
${
new
Date
().
getFullYear
()}
-
${
new
Date
().
getMonth
()
+
1
}
-
${
new
Date
().
getDate
()}
`
},
piclevelList
,
pictureTypeList
:
[
...
...
src/views/modules/info/picture.vue
View file @
2cdf3fe6
...
...
@@ -69,7 +69,7 @@
>
<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=
"标题"
>
<el-table-column
prop=
"title"
header-align=
"center"
align=
"left"
label=
"标题"
min-width=
"300px"
>
<template
slot-scope=
"scope"
>
<a
:href=
"urlsJson[scope.row.title]"
target=
"_blank"
>
{{
scope
.
row
.
title
}}
</a>
</
template
>
...
...
@@ -86,7 +86,7 @@
<el-table-column
header-align=
"center"
align=
"center"
width=
"1
1
0"
width=
"1
5
0"
label=
"操作"
>
<
template
slot-scope=
"scope"
>
<el-button
v-if=
"isAuth('manage:picture:check')"
type=
"text"
size=
"small"
@
click=
"checkHandle(scope.row.pictureid,scope.row.title,1)"
>
[成功]
</el-button>
...
...
@@ -97,17 +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=
"
8
0px"
>
</el-table-column>
<el-table-column
prop=
"showtime"
header-align=
"center"
align=
"center"
sortable=
'custom'
label=
"显示时间"
width=
"1
05
px"
>
</el-table-column>
<el-table-column
prop=
"inputdate"
header-align=
"center"
align=
"center"
sortable=
'custom'
label=
"发布时间"
width=
"1
05
px"
>
<el-table-column
prop=
"pictureType"
header-align=
"center"
align=
"center"
label=
"分类"
width=
"
9
0px"
>
</el-table-column>
<el-table-column
prop=
"showtime"
header-align=
"center"
align=
"center"
sortable=
'custom'
label=
"显示时间"
width=
"1
10
px"
>
</el-table-column>
<el-table-column
prop=
"inputdate"
header-align=
"center"
align=
"center"
sortable=
'custom'
label=
"发布时间"
width=
"1
10
px"
>
<
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=
"120px"
>
</el-table-column>
<el-table-column
prop=
"editor"
header-align=
"center"
align=
"center"
label=
"编辑"
width=
"
8
0px"
>
</el-table-column>
<el-table-column
prop=
"lasteditor"
header-align=
"center"
align=
"center"
label=
"最后编辑"
width=
"
8
0px"
>
</el-table-column>
<el-table-column
prop=
"auditor"
header-align=
"center"
align=
"center"
label=
"审核人"
width=
"
8
0px"
>
</el-table-column>
<el-table-column
prop=
"editor"
header-align=
"center"
align=
"center"
label=
"编辑"
width=
"
9
0px"
>
</el-table-column>
<el-table-column
prop=
"lasteditor"
header-align=
"center"
align=
"center"
label=
"最后编辑"
width=
"
9
0px"
>
</el-table-column>
<el-table-column
prop=
"auditor"
header-align=
"center"
align=
"center"
label=
"审核人"
width=
"
9
0px"
>
</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