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
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
196 additions
and
173 deletions
+196
-173
announce-add-or-update.vue
src/views/modules/info/announce-add-or-update.vue
+7
-8
announce.vue
src/views/modules/info/announce.vue
+40
-36
indexcarouselmanage.vue
src/views/modules/info/indexcarouselmanage.vue
+45
-39
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
+47
-38
newtopic-add-or-update.vue
src/views/modules/info/newtopic-add-or-update.vue
+5
-6
newtopic.vue
src/views/modules/info/newtopic.vue
+37
-31
picture-add-or-update.vue
src/views/modules/info/picture-add-or-update.vue
+3
-3
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
...
...
@@ -3,7 +3,7 @@
:title=
"!dataForm.id ? '新增' : this.showInfo?'详情':'修改'"
:close-on-click-modal=
"false"
:visible
.
sync=
"visible"
>
<el-form
:model=
"dataForm"
:rules=
"dataRule"
ref=
"dataForm"
@
keyup
.
enter
.
native=
"dataFormSubmit()"
label-width=
"120px"
>
<el-form-item
label=
'分类:'
prop=
'announcetype'
>
<el-select
v-model=
"dataForm.announcetype"
placeholder=
"请选择分类"
clearable
>
...
...
@@ -34,7 +34,7 @@
<el-input
v-model=
"dataForm.directpath"
placeholder=
"请输入跳转地址"
v-show=
"!showInfo"
></el-input>
<p
v-show=
"showInfo"
>
{{
dataForm
.
directpath
}}
</p>
</el-form-item>
-->
<el-form-item
label=
"作者:"
prop=
"author"
>
<el-input
v-model=
"dataForm.author"
placeholder=
"请输入作者"
v-show=
"!showInfo"
></el-input>
<p
v-show=
"showInfo"
>
{{
dataForm
.
author
}}
</p>
...
...
@@ -42,7 +42,7 @@
<el-form-item
label=
"显示时间:"
prop=
"showtime"
>
<el-date-picker
v-show=
"!showInfo"
v-model=
"dataForm.showtime"
value-format=
'yyyy-MM-dd'
type=
"date"
...
...
@@ -50,7 +50,7 @@
</el-date-picker>
<p
v-show=
"showInfo"
>
{{
dataForm
.
showtime
}}
</p>
</el-form-item>
<el-form-item
label=
"附件路径:"
prop=
"fileUrl"
>
<el-upload
v-show=
"!showInfo"
...
...
@@ -100,7 +100,7 @@ export default {
levels
:
1
,
fileurl
:
''
,
content
:
''
,
showtime
:
''
,
showtime
:
`
${
new
Date
().
getFullYear
()}
-
${
new
Date
().
getMonth
()
+
1
}
-
${
new
Date
().
getDate
()}
`
,
announcetype
:
''
},
typeList
:
[
...
...
@@ -295,5 +295,5 @@ export default {
.avatar-uploader
>
.el-upload
{
border
:
none
!important
;
}
</
style
>
\ No newline at end of file
</
style
>
src/views/modules/info/announce.vue
View file @
2cdf3fe6
...
...
@@ -41,7 +41,7 @@
<el-form-item
label=
'发布日期'
prop=
'releaseDate'
>
<el-date-picker
clearable
v-model=
"releaseDate"
type=
"daterange"
start-placeholder=
"开始日期"
...
...
@@ -50,7 +50,7 @@
>
</el-date-picker>
</el-form-item>
<el-button
class=
"seach-btn"
@
click=
"getDataList2()"
type=
"primary"
>
搜索
</el-button>
</el-form>
<div
class=
"add-btn"
>
...
...
@@ -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,11 +149,11 @@
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>
</
template
>
</
template
>
</el-table-column>
<!-- <el-table-column
prop="keyword"
...
...
@@ -131,43 +161,17 @@
align="center"
label="关键字">
</el-table-column> -->
<el-table-column
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
@
size-change=
"sizeChangeHandle"
@
current-change=
"currentChangeHandle"
...
...
src/views/modules/info/indexcarouselmanage.vue
View file @
2cdf3fe6
...
...
@@ -36,7 +36,7 @@
</el-form-item>
<el-form-item
label=
'发布日期'
prop=
'releaseDate'
>
<el-date-picker
clearable
v-model=
"releaseDate"
type=
"daterange"
...
...
@@ -52,7 +52,7 @@
<el-button
v-if=
"isAuth('manage:indexcarouselmanage:save')"
type=
"primary"
@
click=
"addOrUpdateHandle()"
>
+ 添加
</el-button>
<el-button
v-if=
"isAuth('manage:indexcarouselmanage:update')"
type=
"success"
@
click=
"getLevelBig('大轮播')"
>
修改大轮播顺序
</el-button>
<el-button
v-if=
"isAuth('manage:indexcarouselmanage:update')"
type=
"success"
@
click=
"getLevelBig('小轮播')"
>
修改小轮播顺序
</el-button>
</div>
<div
class=
"table-list"
>
<el-table
...
...
@@ -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,71 +125,44 @@
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>
</
template
>
</
template
>
</el-table-column>
<el-table-column
prop=
"updatetimeIndex"
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>
</
template
>
</
template
>
</el-table-column>
<el-table-column
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"
...
...
@@ -546,4 +553,4 @@ export default {
<
style
scoped
>
</
style
>
\ No newline at end of file
</
style
>
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
...
...
@@ -45,7 +45,7 @@
</el-form-item>
<el-form-item
label=
'更新日期'
prop=
'updateDate'
>
<el-date-picker
clearable
v-model=
"updateDate"
type=
"daterange"
...
...
@@ -57,7 +57,7 @@
</el-form-item>
<el-form-item
label=
'发布日期'
prop=
'releaseDate'
>
<el-date-picker
clearable
v-model=
"releaseDate"
type=
"daterange"
...
...
@@ -67,7 +67,7 @@
>
</el-date-picker>
</el-form-item>
<el-button
class=
"seach-btn"
@
click=
"getDataList2()"
type=
"primary"
>
搜索
</el-button>
</el-form>
<div
class=
"add-btn"
>
...
...
@@ -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,9 +137,10 @@
prop=
"author"
header-align=
"center"
align=
"center"
width=
"90px"
label=
"演讲人"
>
</el-table-column>
<!-- <el-table-column
prop="longStr"
header-align="center"
...
...
@@ -128,20 +157,23 @@
prop=
"clanguage"
header-align=
"center"
align=
"center"
width=
"90px"
label=
"语种"
>
</el-table-column>
<el-table-column
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,56 +189,32 @@
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>
</
template
>
</
template
>
</el-table-column>
<el-table-column
prop=
"updatedate"
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>
</
template
>
</
template
>
</el-table-column>
<el-table-column
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
@
size-change=
"sizeChangeHandle"
@
current-change=
"currentChangeHandle"
...
...
src/views/modules/info/newtopic-add-or-update.vue
View file @
2cdf3fe6
...
...
@@ -52,7 +52,7 @@
<el-row
v-show=
"!showInfo"
>
<el-col
:span=
"22"
>
<el-date-picker
v-show=
"!showInfo"
v-show=
"!showInfo"
v-model=
"dataForm.showtime"
value-format=
'yyyy-MM-dd'
type=
"date"
...
...
@@ -70,7 +70,7 @@
</el-form-item>
<el-form-item
label=
"专题图片:"
prop=
"pic"
>
<el-upload
v-show=
"!showInfo"
v-show=
"!showInfo"
class=
"avatar-uploader avatar2"
action=
""
:show-file-list=
"false"
...
...
@@ -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
:
''
,
...
...
@@ -363,11 +363,11 @@ export default {
}
</
script
>
<
style
scoped
>
.iconStyle
{
font-size
:
18px
;
text-align
:
center
;
color
:
#e6a23c
;
cursor
:
pointer
;
}
</
style
>
\ No newline at end of file
</
style
>
src/views/modules/info/newtopic.vue
View file @
2cdf3fe6
...
...
@@ -27,7 +27,7 @@
<el-form-item
label=
'发布日期'
prop=
'releaseDate'
>
<el-date-picker
clearable
v-model=
"releaseDate"
type=
"daterange"
start-placeholder=
"开始日期"
...
...
@@ -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,56 +114,33 @@
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>
</
template
>
</
template
>
</el-table-column>
<el-table-column
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
...
...
@@ -22,14 +22,14 @@
ref=
'dataForm'
@
keyup
.
enter
.
native=
'dataFormSubmit()'
label-width=
'100px'
>
<el-form-item
label=
'标题:'
prop=
'title'
>
<el-input
v-model=
'dataForm.title'
placeholder=
'请输入标题'
v-show=
"!showInfo"
></el-input>
<p
v-show=
"showInfo"
>
{{dataForm.title}}
</p>
</el-form-item>
<el-form-item
label=
'类别:'
prop=
'pictureType'
>
<el-select
v-model=
"dataForm.pictureType"
placeholder=
"请选择类别"
v-show=
"!showInfo"
>
<el-select
v-model=
"dataForm.pictureType"
placeholder=
"请选择类别"
v-show=
"!showInfo"
>
<el-option
v-for=
"item in pictureTypeList"
:key=
"item.value"
...
...
@@ -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