flat: 合并
This commit is contained in:
@@ -16,6 +16,14 @@
|
||||
<!-- <template slot="menu" slot-scope="{row}">-->
|
||||
<!-- <el-button size="small" type="text" @click="seeDetail(row)">查看</el-button>-->
|
||||
<!-- </template>-->
|
||||
<template slot-scope="{ row }" slot="menu">
|
||||
<el-button
|
||||
type="text"
|
||||
size="small"
|
||||
@click.stop="updateRow(row)"
|
||||
><i class="el-icon-share"></i>处理
|
||||
</el-button>
|
||||
</template>
|
||||
</avue-crud>
|
||||
<!-- 新增、编辑 -->
|
||||
<!-- <el-drawer :title="drawerTitle" :visible.sync="viewDrawer" size="60%">-->
|
||||
@@ -39,7 +47,7 @@
|
||||
<script>
|
||||
import {dateFormat} from '@/util/date'
|
||||
import Tinymce from "@/components/Tinymce";
|
||||
import {getList} from '@/api/manage/mailbox'
|
||||
import {getList, consultMailboxInfoUpdate} from '@/api/manage/mailbox'
|
||||
|
||||
const classStatus = {
|
||||
0: '未处理',
|
||||
@@ -181,6 +189,37 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
dateFormat,
|
||||
updateRow(row) {
|
||||
const _this = this
|
||||
let h = this.$createElement;
|
||||
this.$prompt("回复信件", // "请核对信息后",
|
||||
{
|
||||
distinguishCancelAndClose: true,
|
||||
confirmButtonText: "完 成",
|
||||
cancelButtonText: "取 消",
|
||||
center: true,
|
||||
inputType: "textarea",
|
||||
inputPlaceholder: "处理内容",
|
||||
beforeClose: async function (action, instance, done) {
|
||||
if (action === 'confirm') {
|
||||
const disposalSituation = instance.inputValue
|
||||
if (!disposalSituation) {
|
||||
this.$message({type: "info", message: "请输入处理内容"});
|
||||
} else {
|
||||
let resData = await consultMailboxInfoUpdate({id: row.id, disposalSituation, status: 1})
|
||||
if (resData.data.code === 200) {
|
||||
this.$message({type: "success", message: "操作成功"});
|
||||
done()
|
||||
_this.onLoad();
|
||||
}
|
||||
}
|
||||
} else {
|
||||
done()
|
||||
}
|
||||
}
|
||||
}
|
||||
)
|
||||
},
|
||||
look(row) {
|
||||
this.drawerTitle = '查看'
|
||||
this.lookData = JSON.parse(JSON.stringify(row))
|
||||
|
||||
Reference in New Issue
Block a user