Commit 2cdf3fe6 by 田爽

资讯管理列表宽度调整,编辑页显示时间默认

parent ad0e3627
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
:title="!dataForm.id ? '新增' : this.showInfo?'详情':'修改'" :title="!dataForm.id ? '新增' : this.showInfo?'详情':'修改'"
:close-on-click-modal="false" :close-on-click-modal="false"
:visible.sync="visible"> :visible.sync="visible">
<el-form :model="dataForm" :rules="dataRule" ref="dataForm" @keyup.enter.native="dataFormSubmit()" label-width="120px"> <el-form :model="dataForm" :rules="dataRule" ref="dataForm" @keyup.enter.native="dataFormSubmit()" label-width="120px">
<el-form-item label='分类:' prop='announcetype'> <el-form-item label='分类:' prop='announcetype'>
<el-select v-model="dataForm.announcetype" placeholder="请选择分类" clearable> <el-select v-model="dataForm.announcetype" placeholder="请选择分类" clearable>
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
<el-input v-model="dataForm.directpath" placeholder="请输入跳转地址" v-show="!showInfo"></el-input> <el-input v-model="dataForm.directpath" placeholder="请输入跳转地址" v-show="!showInfo"></el-input>
<p v-show="showInfo">{{dataForm.directpath}}</p> <p v-show="showInfo">{{dataForm.directpath}}</p>
</el-form-item> --> </el-form-item> -->
<el-form-item label="作者:" prop="author"> <el-form-item label="作者:" prop="author">
<el-input v-model="dataForm.author" placeholder="请输入作者" v-show="!showInfo"></el-input> <el-input v-model="dataForm.author" placeholder="请输入作者" v-show="!showInfo"></el-input>
<p v-show="showInfo">{{dataForm.author}}</p> <p v-show="showInfo">{{dataForm.author}}</p>
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
<el-form-item label="显示时间:" prop="showtime"> <el-form-item label="显示时间:" prop="showtime">
<el-date-picker <el-date-picker
v-show="!showInfo" v-show="!showInfo"
v-model="dataForm.showtime" v-model="dataForm.showtime"
value-format='yyyy-MM-dd' value-format='yyyy-MM-dd'
type="date" type="date"
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
</el-date-picker> </el-date-picker>
<p v-show="showInfo">{{dataForm.showtime}}</p> <p v-show="showInfo">{{dataForm.showtime}}</p>
</el-form-item> </el-form-item>
<el-form-item label="附件路径:" prop="fileUrl" > <el-form-item label="附件路径:" prop="fileUrl" >
<el-upload <el-upload
v-show="!showInfo" v-show="!showInfo"
...@@ -100,7 +100,7 @@ export default { ...@@ -100,7 +100,7 @@ export default {
levels: 1, levels: 1,
fileurl: '', fileurl: '',
content: '', content: '',
showtime: '', showtime: `${new Date().getFullYear()}-${new Date().getMonth() + 1}-${new Date().getDate()}`,
announcetype: '' announcetype: ''
}, },
typeList: [ typeList: [
...@@ -295,5 +295,5 @@ export default { ...@@ -295,5 +295,5 @@ export default {
.avatar-uploader > .el-upload{ .avatar-uploader > .el-upload{
border: none!important; border: none!important;
} }
</style> </style>
\ No newline at end of file
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
<el-form-item label='发布日期' prop='releaseDate'> <el-form-item label='发布日期' prop='releaseDate'>
<el-date-picker <el-date-picker
clearable clearable
v-model="releaseDate" v-model="releaseDate"
type="daterange" type="daterange"
start-placeholder="开始日期" start-placeholder="开始日期"
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
> >
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
<el-button class="seach-btn" @click="getDataList2()" type="primary" >搜索</el-button> <el-button class="seach-btn" @click="getDataList2()" type="primary" >搜索</el-button>
</el-form> </el-form>
<div class="add-btn"> <div class="add-btn">
...@@ -76,16 +76,45 @@ ...@@ -76,16 +76,45 @@
prop="title" prop="title"
header-align="center" header-align="center"
align="left" align="left"
width="360px" min-width="300px"
label="标题"> label="标题">
<template slot-scope="scope"> <template slot-scope="scope">
<a :href="urlsJson[scope.row.title]" target="_blank">{{ scope.row.title}}</a> <a :href="urlsJson[scope.row.title]" target="_blank">{{ scope.row.title}}</a>
</template> </template>
</el-table-column> </el-table-column>
<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" prop="announcetype"
header-align="center" header-align="center"
align="center" align="center"
width="90px"
label="分类"> label="分类">
<template slot-scope="scope"> <template slot-scope="scope">
<div> <div>
...@@ -97,6 +126,7 @@ ...@@ -97,6 +126,7 @@
prop="editor" prop="editor"
header-align="center" header-align="center"
align="center" align="center"
width="90px"
label="编辑"> label="编辑">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
...@@ -111,7 +141,7 @@ ...@@ -111,7 +141,7 @@
header-align="center" header-align="center"
align="center" align="center"
sortable='custom' sortable='custom'
width="120px" width="110px"
label="显示时间"> label="显示时间">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
...@@ -119,11 +149,11 @@ ...@@ -119,11 +149,11 @@
header-align="center" header-align="center"
align="center" align="center"
sortable='custom' sortable='custom'
width="120px" width="110px"
label="发布时间"> label="发布时间">
<template slot-scope="scope"> <template slot-scope="scope">
<div>{{ scope.row.releasedate && scope.row.releasedate.substring(0,10) }}</div> <div>{{ scope.row.releasedate && scope.row.releasedate.substring(0,10) }}</div>
</template> </template>
</el-table-column> </el-table-column>
<!-- <el-table-column <!-- <el-table-column
prop="keyword" prop="keyword"
...@@ -131,43 +161,17 @@ ...@@ -131,43 +161,17 @@
align="center" align="center"
label="关键字"> label="关键字">
</el-table-column> --> </el-table-column> -->
<el-table-column <el-table-column
prop="auditor" prop="auditor"
header-align="center" header-align="center"
align="center" align="center"
width="90px"
label="审核人"> label="审核人">
</el-table-column> </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-table>
<el-pagination <el-pagination
@size-change="sizeChangeHandle" @size-change="sizeChangeHandle"
@current-change="currentChangeHandle" @current-change="currentChangeHandle"
......
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
</el-form-item> </el-form-item>
<el-form-item label='发布日期' prop='releaseDate'> <el-form-item label='发布日期' prop='releaseDate'>
<el-date-picker <el-date-picker
clearable clearable
v-model="releaseDate" v-model="releaseDate"
type="daterange" type="daterange"
...@@ -52,7 +52,7 @@ ...@@ -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: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>
<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>
<div class="table-list"> <div class="table-list">
<el-table <el-table
...@@ -74,16 +74,50 @@ ...@@ -74,16 +74,50 @@
prop="title" prop="title"
header-align="center" header-align="center"
align="left" align="left"
width="360px" min-width="300px"
label="标题"> label="标题">
<template slot-scope="scope"> <template slot-scope="scope">
<a :href="urlsJson[scope.row.title]" target="_blank">{{ scope.row.title}}</a> <a :href="urlsJson[scope.row.title]" target="_blank">{{ scope.row.title}}</a>
</template> </template>
</el-table-column> </el-table-column>
<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" prop="classnum"
header-align="center" header-align="center"
align="center" align="center"
width="90px"
label="类别"> label="类别">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
...@@ -91,71 +125,44 @@ ...@@ -91,71 +125,44 @@
header-align="center" header-align="center"
align="center" align="center"
sortable='custom' sortable='custom'
width="110px"
label="首页添加时间"> label="首页添加时间">
<template slot-scope="scope"> <template slot-scope="scope">
<div>{{ scope.row.starttimeIndex && scope.row.starttimeIndex.substring(0,10) }}</div> <div>{{ scope.row.starttimeIndex && scope.row.starttimeIndex.substring(0,10) }}</div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="updatetimeIndex" prop="updatetimeIndex"
header-align="center" header-align="center"
align="center" align="center"
sortable='custom' sortable='custom'
width="110px"
label="首页修改时间"> label="首页修改时间">
<template slot-scope="scope"> <template slot-scope="scope">
<div>{{ scope.row.updatetimeIndex && scope.row.updatetimeIndex.substring(0,10) }}</div> <div>{{ scope.row.updatetimeIndex && scope.row.updatetimeIndex.substring(0,10) }}</div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="editorIndex" prop="editorIndex"
header-align="center" header-align="center"
align="center" align="center"
width="90px"
label="编辑"> label="编辑">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="lasteditorIndex" prop="lasteditorIndex"
header-align="center" header-align="center"
align="center" align="center"
width="90px"
label="最后编辑"> label="最后编辑">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="checkIndexAuthor" prop="checkIndexAuthor"
header-align="center" header-align="center"
align="center" align="center"
width="90px"
label="审核人"> label="审核人">
</el-table-column> </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-table>
<el-pagination <el-pagination
@size-change="sizeChangeHandle" @size-change="sizeChangeHandle"
...@@ -546,4 +553,4 @@ export default { ...@@ -546,4 +553,4 @@ export default {
<style scoped> <style scoped>
</style> </style>
\ No newline at end of file
...@@ -72,14 +72,14 @@ ...@@ -72,14 +72,14 @@
</el-select> </el-select>
<p v-show="showInfo">{{dataForm.levels}}</p> <p v-show="showInfo">{{dataForm.levels}}</p>
</el-form-item> </el-form-item>
<el-form-item label="示时间:" prop="showtime"> <el-form-item label="示时间:" prop="showtime">
<el-date-picker <el-date-picker
v-show="!showInfo" v-show="!showInfo"
v-model="dataForm.showtime" v-model="dataForm.showtime"
value-format='yyyy-MM-dd' value-format='yyyy-MM-dd'
type="date" type="date"
placeholder="请选择示时间"> placeholder="请选择示时间">
</el-date-picker> </el-date-picker>
<p v-show="showInfo">{{dataForm.showtime}}</p> <p v-show="showInfo">{{dataForm.showtime}}</p>
</el-form-item> </el-form-item>
......
...@@ -104,7 +104,7 @@ ...@@ -104,7 +104,7 @@
<Ueditor @ready="editorReady" :value="ueditor.value" :config="ueditor.config" ref="ue" v-show="!showInfo"></Ueditor> <Ueditor @ready="editorReady" :value="ueditor.value" :config="ueditor.config" ref="ue" v-show="!showInfo"></Ueditor>
<div v-show="showInfo" v-html="dataForm.content"></div> <div v-show="showInfo" v-html="dataForm.content"></div>
</el-form-item> --> </el-form-item> -->
<el-form-item label="时间" prop="showtime"> <el-form-item label="显示时间" prop="showtime">
<el-date-picker <el-date-picker
v-show="!showInfo" v-show="!showInfo"
...@@ -155,7 +155,7 @@ export default { ...@@ -155,7 +155,7 @@ export default {
clanguage: '', clanguage: '',
brief: '', brief: '',
wavname: '', wavname: '',
showtime: '' showtime: `${new Date().getFullYear()}-${new Date().getMonth() + 1}-${new Date().getDate()}`
}, },
cclassidStr: undefined, cclassidStr: undefined,
dataRule: { dataRule: {
......
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
</el-form-item> </el-form-item>
<el-form-item label='更新日期' prop='updateDate' > <el-form-item label='更新日期' prop='updateDate' >
<el-date-picker <el-date-picker
clearable clearable
v-model="updateDate" v-model="updateDate"
type="daterange" type="daterange"
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
</el-form-item> </el-form-item>
<el-form-item label='发布日期' prop='releaseDate'> <el-form-item label='发布日期' prop='releaseDate'>
<el-date-picker <el-date-picker
clearable clearable
v-model="releaseDate" v-model="releaseDate"
type="daterange" type="daterange"
...@@ -67,7 +67,7 @@ ...@@ -67,7 +67,7 @@
> >
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
<el-button class="seach-btn" @click="getDataList2()" type="primary">搜索</el-button> <el-button class="seach-btn" @click="getDataList2()" type="primary">搜索</el-button>
</el-form> </el-form>
<div class="add-btn"> <div class="add-btn">
...@@ -86,19 +86,47 @@ ...@@ -86,19 +86,47 @@
prop="levels" prop="levels"
header-align="center" header-align="center"
align="center" align="center"
style="width: 50px;" width="50px"
label="级别"> label="级别">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="title" prop="title"
header-align="center" header-align="center"
align="left" align="left"
width="360px" min-width="300px"
label="显示标题"> label="显示标题">
<template slot-scope="scope"> <template slot-scope="scope">
<a :href="urlsJson[scope.row.title]" target="_blank">{{ scope.row.title}}</a> <a :href="urlsJson[scope.row.title]" target="_blank">{{ scope.row.title}}</a>
</template> </template>
</el-table-column> </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 <!-- <el-table-column
prop="keyword" prop="keyword"
header-align="center" header-align="center"
...@@ -109,9 +137,10 @@ ...@@ -109,9 +137,10 @@
prop="author" prop="author"
header-align="center" header-align="center"
align="center" align="center"
width="90px"
label="演讲人"> label="演讲人">
</el-table-column> </el-table-column>
<!-- <el-table-column <!-- <el-table-column
prop="longStr" prop="longStr"
header-align="center" header-align="center"
...@@ -128,20 +157,23 @@ ...@@ -128,20 +157,23 @@
prop="clanguage" prop="clanguage"
header-align="center" header-align="center"
align="center" align="center"
width="90px"
label="语种"> label="语种">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="editor" prop="editor"
header-align="center" header-align="center"
align="center" align="center"
width="90px"
label="编辑"> label="编辑">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="lasteditor" prop="lasteditor"
header-align="center" header-align="center"
align="center" align="center"
width="90px"
label="最后编辑"> label="最后编辑">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
...@@ -149,6 +181,7 @@ ...@@ -149,6 +181,7 @@
header-align="center" header-align="center"
align="center" align="center"
sortable='custom' sortable='custom'
width="110px"
label="显示时间"> label="显示时间">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
...@@ -156,56 +189,32 @@ ...@@ -156,56 +189,32 @@
header-align="center" header-align="center"
align="center" align="center"
sortable='custom' sortable='custom'
width="110px"
label="发布时间"> label="发布时间">
<template slot-scope="scope"> <template slot-scope="scope">
<div>{{ scope.row.releasedate && scope.row.releasedate.substring(0,10) }}</div> <div>{{ scope.row.releasedate && scope.row.releasedate.substring(0,10) }}</div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="updatedate" prop="updatedate"
header-align="center" header-align="center"
align="center" align="center"
sortable='custom' sortable='custom'
width="110px"
label="更新时间"> label="更新时间">
<template slot-scope="scope"> <template slot-scope="scope">
<div>{{ scope.row.updatedate && scope.row.updatedate.substring(0,10) }}</div> <div>{{ scope.row.updatedate && scope.row.updatedate.substring(0,10) }}</div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="auditor" prop="auditor"
header-align="center" header-align="center"
align="center" align="center"
width="90px"
label="审核人"> label="审核人">
</el-table-column> </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-table>
<el-pagination <el-pagination
@size-change="sizeChangeHandle" @size-change="sizeChangeHandle"
@current-change="currentChangeHandle" @current-change="currentChangeHandle"
......
...@@ -52,7 +52,7 @@ ...@@ -52,7 +52,7 @@
<el-row v-show="!showInfo"> <el-row v-show="!showInfo">
<el-col :span="22"> <el-col :span="22">
<el-date-picker <el-date-picker
v-show="!showInfo" v-show="!showInfo"
v-model="dataForm.showtime" v-model="dataForm.showtime"
value-format='yyyy-MM-dd' value-format='yyyy-MM-dd'
type="date" type="date"
...@@ -70,7 +70,7 @@ ...@@ -70,7 +70,7 @@
</el-form-item> </el-form-item>
<el-form-item label="专题图片:" prop="pic" > <el-form-item label="专题图片:" prop="pic" >
<el-upload <el-upload
v-show="!showInfo" v-show="!showInfo"
class="avatar-uploader avatar2" class="avatar-uploader avatar2"
action="" action=""
:show-file-list="false" :show-file-list="false"
...@@ -126,7 +126,7 @@ export default { ...@@ -126,7 +126,7 @@ export default {
categoryid: '', categoryid: '',
newtmpid: '', newtmpid: '',
levels: 1, levels: 1,
showtime: '', showtime: `${new Date().getFullYear()}-${new Date().getMonth() + 1}-${new Date().getDate()}`,
ppath: '', ppath: '',
content: '', content: '',
shortcontent: '', shortcontent: '',
...@@ -363,11 +363,11 @@ export default { ...@@ -363,11 +363,11 @@ export default {
} }
</script> </script>
<style scoped> <style scoped>
.iconStyle{ .iconStyle{
font-size: 18px; font-size: 18px;
text-align: center; text-align: center;
color: #e6a23c; color: #e6a23c;
cursor: pointer; cursor: pointer;
} }
</style> </style>
\ No newline at end of file
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
<el-form-item label='发布日期' prop='releaseDate' > <el-form-item label='发布日期' prop='releaseDate' >
<el-date-picker <el-date-picker
clearable clearable
v-model="releaseDate" v-model="releaseDate"
type="daterange" type="daterange"
start-placeholder="开始日期" start-placeholder="开始日期"
...@@ -54,14 +54,14 @@ ...@@ -54,14 +54,14 @@
prop="levels" prop="levels"
header-align="center" header-align="center"
align="center" align="center"
width="70px" width="50px"
label="级别"> label="级别">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="title" prop="title"
header-align="center" header-align="center"
align="left" align="left"
width="360px" min-width="300px"
label="专题标题"> label="专题标题">
<template slot-scope="scope"> <template slot-scope="scope">
<a :href="urlsJson[scope.row.title]" target="_blank">{{ scope.row.title}}</a> <a :href="urlsJson[scope.row.title]" target="_blank">{{ scope.row.title}}</a>
...@@ -74,10 +74,39 @@ ...@@ -74,10 +74,39 @@
label="专题分类"> label="专题分类">
</el-table-column> --> </el-table-column> -->
<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" prop="showtime"
header-align="center" header-align="center"
align="center" align="center"
sortable='custom' sortable='custom'
width="110px"
label="显示时间"> label="显示时间">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
...@@ -85,56 +114,33 @@ ...@@ -85,56 +114,33 @@
header-align="center" header-align="center"
align="center" align="center"
sortable='custom' sortable='custom'
width="110px"
label="发布时间"> label="发布时间">
<template slot-scope="scope"> <template slot-scope="scope">
<div>{{ scope.row.time && scope.row.time.substring(0,10) }}</div> <div>{{ scope.row.time && scope.row.time.substring(0,10) }}</div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="editor" prop="editor"
header-align="center" header-align="center"
align="center" align="center"
width="90px"
label="编辑"> label="编辑">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="lasteditor" prop="lasteditor"
header-align="center" header-align="center"
align="center" align="center"
width="90px"
label="最后编辑"> label="最后编辑">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="checkname" prop="checkname"
header-align="center" header-align="center"
align="center" align="center"
width="90px"
label="审核人"> label="审核人">
</el-table-column> </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-table>
<el-pagination <el-pagination
@size-change="sizeChangeHandle" @size-change="sizeChangeHandle"
......
...@@ -22,14 +22,14 @@ ...@@ -22,14 +22,14 @@
ref='dataForm' ref='dataForm'
@keyup.enter.native='dataFormSubmit()' @keyup.enter.native='dataFormSubmit()'
label-width='100px' label-width='100px'
> >
<el-form-item label='标题:' prop='title'> <el-form-item label='标题:' prop='title'>
<el-input v-model='dataForm.title' placeholder='请输入标题' v-show="!showInfo"></el-input> <el-input v-model='dataForm.title' placeholder='请输入标题' v-show="!showInfo"></el-input>
<p v-show="showInfo">{{dataForm.title}}</p> <p v-show="showInfo">{{dataForm.title}}</p>
</el-form-item> </el-form-item>
<el-form-item label='类别:' prop='pictureType'> <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 <el-option
v-for="item in pictureTypeList" v-for="item in pictureTypeList"
:key="item.value" :key="item.value"
...@@ -121,7 +121,7 @@ export default { ...@@ -121,7 +121,7 @@ export default {
status: '', status: '',
keyword: '', keyword: '',
jumppath: '', jumppath: '',
showtime: '' showtime: `${new Date().getFullYear()}-${new Date().getMonth() + 1}-${new Date().getDate()}`
}, },
piclevelList, piclevelList,
pictureTypeList: [ pictureTypeList: [
......
...@@ -69,7 +69,7 @@ ...@@ -69,7 +69,7 @@
> >
<el-table-column prop="piclevel" header-align="center" align="center" label="级别" width="50px"> </el-table-column> <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"> <template slot-scope="scope">
<a :href="urlsJson[scope.row.title]" target="_blank">{{ scope.row.title}}</a> <a :href="urlsJson[scope.row.title]" target="_blank">{{ scope.row.title}}</a>
</template> </template>
...@@ -86,7 +86,7 @@ ...@@ -86,7 +86,7 @@
<el-table-column <el-table-column
header-align="center" header-align="center"
align="center" align="center"
width="110" width="150"
label="操作"> label="操作">
<template slot-scope="scope"> <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> <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 @@ ...@@ -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> <el-button v-if="isAuth('manage:picture:delete')" type="text" size="small" @click="deleteHandle(scope.row.pictureid,scope.row.title)">删除</el-button>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="pictureType" header-align="center" align="center" label="分类" width="80px"> </el-table-column> <el-table-column prop="pictureType" header-align="center" align="center" label="分类" width="90px"> </el-table-column>
<el-table-column prop="showtime" header-align="center" align="center" sortable='custom' label="显示时间" width="105px"> </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="105px"> <el-table-column prop="inputdate" header-align="center" align="center" sortable='custom' label="发布时间" width="110px">
<template slot-scope="scope"> <template slot-scope="scope">
<div>{{ scope.row.inputdate && scope.row.inputdate.substring(0,10) }}</div> <div>{{ scope.row.inputdate && scope.row.inputdate.substring(0,10) }}</div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="keyword" header-align="center" align="left" label="关键字" width="120px"> </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="80px"> </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="80px"> </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="80px"> </el-table-column> <el-table-column prop="auditor" header-align="center" align="center" label="审核人" width="90px"> </el-table-column>
</el-table> </el-table>
<el-pagination <el-pagination
@size-change="sizeChangeHandle" @size-change="sizeChangeHandle"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment