Commit b14cf710 by 田爽

文章新增默认显示时间,图片列表顺序

parent 4fce9f22
......@@ -157,7 +157,7 @@ export default {
pic: '',
content: '',
ishead: 0,
showtime: '',
showtime: `${new Date().getFullYear()}-${new Date().getMonth() + 1}-${new Date().getDate()}`,
classid: '',
cclassid: ''
},
......
......@@ -68,24 +68,13 @@
@sort-change="changeTableSort"
>
<el-table-column prop="piclevel" header-align="center" align="center" label="级别"> </el-table-column>
<el-table-column prop="title" header-align="center" align="left" label="标题" width="360px">
<el-table-column prop="piclevel" header-align="center" align="center" label="级别" width="50px"> </el-table-column>
<el-table-column prop="title" header-align="center" align="left" label="标题">
<template slot-scope="scope">
<a :href="urlsJson[scope.row.title]" target="_blank">{{ scope.row.title}}</a>
</template>
</el-table-column>
<el-table-column prop="pictureType" header-align="center" align="center" label="分类"> </el-table-column>
<el-table-column prop="showtime" header-align="center" align="center" sortable='custom' label="显示时间" width="120px"> </el-table-column>
<el-table-column prop="inputdate" header-align="center" align="center" sortable='custom' label="发布时间" width="120px">
<template slot-scope="scope">
<div>{{ scope.row.inputdate && scope.row.inputdate.substring(0,10) }}</div>
</template>
</el-table-column>
<el-table-column prop="keyword" header-align="center" align="left" label="关键字" width="260px"> </el-table-column>
<el-table-column prop="editor" header-align="center" align="center" label="编辑"> </el-table-column>
<el-table-column prop="lasteditor" header-align="center" align="center" label="最后编辑"> </el-table-column>
<el-table-column prop="auditor" header-align="center" align="center" label="审核人"> </el-table-column>
<el-table-column prop="status" header-align="center" align="center" label="状态">
<el-table-column prop="status" header-align="center" align="center" label="状态" width="90px">
<template slot-scope="scope">
<div>
<span v-if="scope.row.status === 0">待审核</span>
......@@ -108,6 +97,17 @@
<el-button v-if="isAuth('manage:picture:delete')" type="text" size="small" @click="deleteHandle(scope.row.pictureid,scope.row.title)">删除</el-button>
</template>
</el-table-column>
<el-table-column prop="pictureType" header-align="center" align="center" label="分类" width="100px"> </el-table-column>
<el-table-column prop="showtime" header-align="center" align="center" sortable='custom' label="显示时间" width="110px"> </el-table-column>
<el-table-column prop="inputdate" header-align="center" align="center" sortable='custom' label="发布时间" width="110px">
<template slot-scope="scope">
<div>{{ scope.row.inputdate && scope.row.inputdate.substring(0,10) }}</div>
</template>
</el-table-column>
<el-table-column prop="keyword" header-align="center" align="left" label="关键字" width="130px"> </el-table-column>
<el-table-column prop="editor" header-align="center" align="center" label="编辑" width="90px"> </el-table-column>
<el-table-column prop="lasteditor" header-align="center" align="center" label="最后编辑" width="90px"> </el-table-column>
<el-table-column prop="auditor" header-align="center" align="center" label="审核人" width="90px"> </el-table-column>
</el-table>
<el-pagination
@size-change="sizeChangeHandle"
......
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