1、邮件日志功能页面优化

pull/254/head
xjs 3 years ago
parent dfc3db10e9
commit 0f5cf51187

@ -102,6 +102,13 @@
<el-table-column label="创建时间" align="center" prop="createTime" :show-overflow-tooltip="true"/>
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope">
<el-button
size="mini"
type="text"
@click="openDialog(scope.row)"
>查看
</el-button>
<el-button
size="mini"
type="text"
@ -123,6 +130,20 @@
/>
<el-dialog
title="查看"
:visible.sync="centerDialogVisible"
width="50%"
>
<h1>{{ obj.title }}</h1>
<br>
<span v-html="obj.content"></span>
<span slot="footer" class="dialog-footer">
<el-button @click="centerDialogVisible = false"> </el-button>
</span>
</el-dialog>
</div>
</template>
@ -135,6 +156,13 @@ export default {
name: "Maillog",
data() {
return {
obj: {
title: "",
content: "",
},
//
centerDialogVisible: false,
//
loading: true,
//
@ -162,6 +190,8 @@ export default {
title: null,
content: null,
recipient: null,
isAsc: "desc",
orderByColumn: "createTime"
},
//
form: {},
@ -173,6 +203,13 @@ export default {
this.getList();
},
methods: {
//
openDialog(data) {
this.centerDialogVisible = true;
this.obj.title = data.title
this.obj.content = data.content
},
/** 查询邮件日志列表 */
getList() {
this.loading = true;
@ -194,8 +231,8 @@ export default {
dateQuery(formName) {
//
this.queryParams.createTime=null
this.queryParams.endCreateTime=null
this.queryParams.createTime = null
this.queryParams.endCreateTime = null
this.handleQuery(formName);
},

Loading…
Cancel
Save