Commit cf0c03e4 authored by obt's avatar obt

代码更新

parent d12fda14
<!--
* @Author: Jenkins
* @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
* @Description: 星云动态
* @FilePath: \rs-cloud-platform-ui\src\views\webSiteManagement\newsCategory\index.vue
......@@ -256,7 +256,7 @@
<!-- <span>{{scope.row.operator}}</span> -->
<span>
<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="upshelf" v-else>上架</div>
<div class="delete">删除</div>
......@@ -277,6 +277,11 @@
:total="infoPagination.total">
</el-pagination>
</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]"/>
</div>
......@@ -367,6 +372,7 @@ export default {
},
],
canPull: false,
infoEditorVisible: false,
// 表格数据
tableData: [
// {
......@@ -480,6 +486,10 @@ export default {
// });
},
methods: {
editorInfo(info){
console.log("Info=>",info)
this.infoEditorVisible = true
},
handleSizeChange(val) {
// console.log(`每页 ${val} 条`);
this.infoPagination.pageSize = val
......
<!--
* @Author: Jenkins
* @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
* @Description: 创建新闻
* @FilePath: \rs-cloud-platform-ui\src\views\webSiteManagement\newsCategory\newsCreator\index.vue
......@@ -128,7 +128,7 @@ export default {
}else{
// 新增新闻资讯
addUpdateNewsInfo({
id: uuid(),
id: Math.floor((Math.random())*100000000),
title: this.form.title,
detail: this.form.introduce,
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