|
@@ -16,7 +16,7 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column label="消息标题" align="left" prop="title" width="200" show-overflow-tooltip/>
|
|
|
<el-table-column label="消息内容" align="left" prop="content" show-overflow-tooltip/>
|
|
|
- <el-table-column label="发送时间" align="left" prop="createTime" width="160" show-overflow-tooltip>
|
|
|
+ <el-table-column label="发送时间" align="left" prop="sendTime" width="160" show-overflow-tooltip>
|
|
|
<template slot-scope="scope">
|
|
|
<span>{{parseTime(scope.row.sendTime,'{y}-{m}-{d} {h}:{i}')}}</span>
|
|
|
</template>
|
|
@@ -48,6 +48,17 @@
|
|
|
/>
|
|
|
</div>
|
|
|
</div>
|
|
|
+
|
|
|
+ <el-dialog class="warningConfig-dialog" :title='dialogTitle' width="740px" append-to-body
|
|
|
+ :visible.sync="dialogType" v-if="dialogType" @close="dialogOff()"
|
|
|
+ :close-on-click-modal="false" :close-on-press-escape="false">
|
|
|
+ <div v-html="dialogForm"></div>
|
|
|
+ <div slot="footer" class="dialog-footer dialog-footer-box">
|
|
|
+ <p class="dialog-footer-button-null"></p>
|
|
|
+ <p class="dialog-footer-button-info" @click="dialogOff()">关闭</p>
|
|
|
+ <p class="dialog-footer-button-null"></p>
|
|
|
+ </div>
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -73,7 +84,10 @@
|
|
|
dataList: [],
|
|
|
//消息类型
|
|
|
typeList: [],
|
|
|
- demoTex: '点击查看'
|
|
|
+ //弹窗相关
|
|
|
+ dialogTitle:null,
|
|
|
+ dialogType:false,
|
|
|
+ dialogForm:{},
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
@@ -84,8 +98,15 @@
|
|
|
this.systemNoticeGetNoticeType()
|
|
|
},
|
|
|
methods: {
|
|
|
+ dialogOff(){
|
|
|
+ this.$set(this,'dialogType',false);
|
|
|
+ },
|
|
|
lockInfo(row){
|
|
|
+ console.log('row',row);
|
|
|
systemNoticeGetNoticeDetail({noticeId:row.noticeId}).then(response => {
|
|
|
+ this.$set(this,'dialogTitle',row.title);
|
|
|
+ this.$set(this,'dialogForm',row.content);
|
|
|
+ this.$set(this,'dialogType',true);
|
|
|
this.$store.dispatch("getMessageNum", {}).then((res) => {}).catch(() => {});
|
|
|
});
|
|
|
},
|