Commit cf0c03e4 authored by obt's avatar obt

代码更新

parent d12fda14
<!-- <!--
* @Author: Jenkins * @Author: Jenkins
* @Date: 2020-12-01 09:54:12 * @Date: 2020-12-01 09:54:12
* @LastEditTime: 2020-12-07 18:53:34 * @LastEditTime: 2020-12-07 20:59:50
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
* @Description: 星云动态 * @Description: 星云动态
* @FilePath: \rs-cloud-platform-ui\src\views\webSiteManagement\newsCategory\index.vue * @FilePath: \rs-cloud-platform-ui\src\views\webSiteManagement\newsCategory\index.vue
...@@ -256,7 +256,7 @@ ...@@ -256,7 +256,7 @@
<!-- <span>{{scope.row.operator}}</span> --> <!-- <span>{{scope.row.operator}}</span> -->
<span> <span>
<div class="operators"> <div class="operators">
<div class="edit">编辑</div> <div class="edit" @click.stop="editorInfo(scope.row)">编辑</div>
<div class="offshelf" v-if="scope.row.status == 1">下架</div> <div class="offshelf" v-if="scope.row.status == 1">下架</div>
<div class="upshelf" v-else>上架</div> <div class="upshelf" v-else>上架</div>
<div class="delete">删除</div> <div class="delete">删除</div>
...@@ -277,6 +277,11 @@ ...@@ -277,6 +277,11 @@
:total="infoPagination.total"> :total="infoPagination.total">
</el-pagination> </el-pagination>
</div> </div>
<el-dialog title="资讯编辑" :visible.sync="infoEditorVisible" append-to-body>
<div id="infoEditor">
</div>
</el-dialog>
<!-- 使用图片查看器预览当前缩略图 --> <!-- 使用图片查看器预览当前缩略图 -->
<el-image-viewer v-if="currentIcon.showPreview" :on-close="closePreview" :url-list="[currentIcon.url]"/> <el-image-viewer v-if="currentIcon.showPreview" :on-close="closePreview" :url-list="[currentIcon.url]"/>
</div> </div>
...@@ -367,6 +372,7 @@ export default { ...@@ -367,6 +372,7 @@ export default {
}, },
], ],
canPull: false, canPull: false,
infoEditorVisible: false,
// 表格数据 // 表格数据
tableData: [ tableData: [
// { // {
...@@ -480,6 +486,10 @@ export default { ...@@ -480,6 +486,10 @@ export default {
// }); // });
}, },
methods: { methods: {
editorInfo(info){
console.log("Info=>",info)
this.infoEditorVisible = true
},
handleSizeChange(val) { handleSizeChange(val) {
// console.log(`每页 ${val} 条`); // console.log(`每页 ${val} 条`);
this.infoPagination.pageSize = val this.infoPagination.pageSize = val
......
<!-- <!--
* @Author: Jenkins * @Author: Jenkins
* @Date: 2020-12-02 14:49:10 * @Date: 2020-12-02 14:49:10
* @LastEditTime: 2020-12-07 18:52:23 * @LastEditTime: 2020-12-07 21:04:06
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
* @Description: 创建新闻 * @Description: 创建新闻
* @FilePath: \rs-cloud-platform-ui\src\views\webSiteManagement\newsCategory\newsCreator\index.vue * @FilePath: \rs-cloud-platform-ui\src\views\webSiteManagement\newsCategory\newsCreator\index.vue
...@@ -128,7 +128,7 @@ export default { ...@@ -128,7 +128,7 @@ export default {
}else{ }else{
// 新增新闻资讯 // 新增新闻资讯
addUpdateNewsInfo({ addUpdateNewsInfo({
id: uuid(), id: Math.floor((Math.random())*100000000),
title: this.form.title, title: this.form.title,
detail: this.form.introduce, detail: this.form.introduce,
coverImg: this.form.coverImg, coverImg: this.form.coverImg,
......
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