Commit b14cf710 by 田爽

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

parent 4fce9f22
...@@ -75,7 +75,7 @@ ...@@ -75,7 +75,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"
...@@ -108,7 +108,7 @@ ...@@ -108,7 +108,7 @@
</el-upload> </el-upload>
<p v-show="showInfo"><img :src="imgUrlStr" class="avatar2"></p> <p v-show="showInfo"><img :src="imgUrlStr" class="avatar2"></p>
</el-form-item> </el-form-item>
<el-form-item label="简介:" prop="brief"> <el-form-item label="简介:" prop="brief">
<el-input type="textarea" rows="5" v-model="dataForm.brief" placeholder="请输入简介" v-show="!showInfo"></el-input> <el-input type="textarea" rows="5" v-model="dataForm.brief" placeholder="请输入简介" v-show="!showInfo"></el-input>
<p v-show="showInfo">{{dataForm.brief}}</p> <p v-show="showInfo">{{dataForm.brief}}</p>
...@@ -157,7 +157,7 @@ export default { ...@@ -157,7 +157,7 @@ export default {
pic: '', pic: '',
content: '', content: '',
ishead: 0, ishead: 0,
showtime: '', showtime: `${new Date().getFullYear()}-${new Date().getMonth() + 1}-${new Date().getDate()}`,
classid: '', classid: '',
cclassid: '' cclassid: ''
}, },
...@@ -510,7 +510,7 @@ export default { ...@@ -510,7 +510,7 @@ export default {
.edui-editor{ .edui-editor{
width: 100%; width: 100%;
} */ } */
</style> </style>
<style scoped lang="scss"> <style scoped lang="scss">
.icon-list__tips { .icon-list__tips {
...@@ -519,7 +519,7 @@ export default { ...@@ -519,7 +519,7 @@ export default {
color: #e6a23c; color: #e6a23c;
cursor: pointer; cursor: pointer;
} }
.el-form /deep/.el-form-item__label,.el-table{ .el-form /deep/.el-form-item__label,.el-table{
// font-size: 12px; // font-size: 12px;
} }
......
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,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="开始日期"
...@@ -67,25 +67,14 @@ ...@@ -67,25 +67,14 @@
style="width: 100%; " style="width: 100%; "
@sort-change="changeTableSort" @sort-change="changeTableSort"
> >
<el-table-column prop="piclevel" header-align="center" align="center" label="级别"> </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="标题" width="360px"> <el-table-column prop="title" header-align="center" align="left" 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="pictureType" header-align="center" align="center" label="分类"> </el-table-column> <el-table-column prop="status" header-align="center" align="center" label="状态" width="90px">
<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="状态">
<template slot-scope="scope"> <template slot-scope="scope">
<div> <div>
<span v-if="scope.row.status === 0">待审核</span> <span v-if="scope.row.status === 0">待审核</span>
...@@ -94,7 +83,7 @@ ...@@ -94,7 +83,7 @@
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
header-align="center" header-align="center"
align="center" align="center"
width="150" width="150"
...@@ -108,6 +97,17 @@ ...@@ -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> <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="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-table>
<el-pagination <el-pagination
@size-change="sizeChangeHandle" @size-change="sizeChangeHandle"
...@@ -362,12 +362,12 @@ export default { ...@@ -362,12 +362,12 @@ export default {
} }
</script> </script>
<style scoped> <style scoped>
/* /*
.el-select-dropdown__item,.el-form-item__label{ .el-select-dropdown__item,.el-form-item__label{
font-size: 12px!important; font-size: 12px!important;
} */ } */
/* .el-table .cell, .el-table th div { /* .el-table .cell, .el-table th div {
padding-right: 0; padding-right: 0;
} */ } */
</style> </style>
\ No newline at end of file
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