flat: 合并

This commit is contained in:
Apcallover
2024-05-06 16:28:21 +08:00
parent f2f94d98c9
commit df75e81d36
11 changed files with 397 additions and 31 deletions

View File

@@ -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))