flat: 合并
This commit is contained in:
@@ -13,6 +13,14 @@
|
||||
@search-reset="searchReset"
|
||||
@on-load="onLoad"
|
||||
>
|
||||
<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>
|
||||
</basic-container>
|
||||
</template>
|
||||
@@ -20,7 +28,7 @@
|
||||
<script>
|
||||
import {dateFormat} from '@/util/date'
|
||||
import Tinymce from "@/components/Tinymce";
|
||||
import {getList, getInfo} from '@/api/manage/superviseComplaintInfo'
|
||||
import {getList, getInfo, updateSuperviseComplaintInfo} from '@/api/manage/superviseComplaintInfo'
|
||||
|
||||
const initPages = {
|
||||
pageSize: 10,
|
||||
@@ -83,6 +91,11 @@ const columnList = [
|
||||
dicData: classEnumStatus,
|
||||
search: true,
|
||||
},
|
||||
{
|
||||
label: "处置情况",
|
||||
prop: "disposalSituation",
|
||||
search: true,
|
||||
},
|
||||
{
|
||||
label: "是否删除",
|
||||
prop: "isDeleted",
|
||||
@@ -166,6 +179,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 updateSuperviseComplaintInfo({id: row.id, disposalSituation, status: 1})
|
||||
if (resData.data.code === 200) {
|
||||
this.$message({type: "success", message: "操作成功"});
|
||||
done()
|
||||
_this.onLoad();
|
||||
}
|
||||
}
|
||||
} else {
|
||||
done()
|
||||
}
|
||||
}
|
||||
}
|
||||
)
|
||||
},
|
||||
resetForm(formName) {
|
||||
this.$refs[formName].resetFields();
|
||||
this.viewDrawer = false
|
||||
|
||||
Reference in New Issue
Block a user