Commit 2cdf3fe6 by 田爽

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

parent ad0e3627
......@@ -100,7 +100,7 @@ export default {
levels: 1,
fileurl: '',
content: '',
showtime: '',
showtime: `${new Date().getFullYear()}-${new Date().getMonth() + 1}-${new Date().getDate()}`,
announcetype: ''
},
typeList: [
......
......@@ -76,16 +76,45 @@
prop="title"
header-align="center"
align="left"
width="360px"
min-width="300px"
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="120px"
width="110px"
label="显示时间">
</el-table-column>
<el-table-column
......@@ -119,7 +149,7 @@
header-align="center"
align="center"
sortable='custom'
width="120px"
width="110px"
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
......
......@@ -74,16 +74,50 @@
prop="title"
header-align="center"
align="left"
width="360px"
min-width="300px"
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"
......
......@@ -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>
......
......@@ -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: {
......
......@@ -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="360px"
min-width="300px"
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
......
......@@ -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: '',
......
......@@ -54,14 +54,14 @@
prop="levels"
header-align="center"
align="center"
width="70px"
width="50px"
label="级别">
</el-table-column>
<el-table-column
prop="title"
header-align="center"
align="left"
width="360px"
min-width="300px"
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"
......
......@@ -121,7 +121,7 @@ export default {
status: '',
keyword: '',
jumppath: '',
showtime: ''
showtime: `${new Date().getFullYear()}-${new Date().getMonth() + 1}-${new Date().getDate()}`
},
piclevelList,
pictureTypeList: [
......
......@@ -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="110"
width="150"
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="80px"> </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="inputdate" header-align="center" align="center" sortable='custom' label="发布时间" width="105px">
<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="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="120px"> </el-table-column>
<el-table-column prop="editor" header-align="center" align="center" label="编辑" width="80px"> </el-table-column>
<el-table-column prop="lasteditor" header-align="center" align="center" label="最后编辑" width="80px"> </el-table-column>
<el-table-column prop="auditor" 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="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"
......
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