|
@@ -87,7 +87,10 @@
|
|
|
<el-button type="warning" @click="clearData">清空</el-button>
|
|
|
</el-form>
|
|
|
<div class="flex justify-between items-center border-bottom">
|
|
|
- <el-button @click="exportData" type="success">导出</el-button>
|
|
|
+ <div>
|
|
|
+ <el-button @click="exportData" type="success">导出</el-button>
|
|
|
+ <el-button @click="delData" type="danger" :disabled="multipleSelection==0">删除</el-button>
|
|
|
+ </div>
|
|
|
<div class="print flex items-center">
|
|
|
<img
|
|
|
class="w-20px h-20px cursor-pointer"
|
|
@@ -666,6 +669,7 @@ import {
|
|
|
wlzb_list,
|
|
|
wlzb_detail,
|
|
|
wlzb_edit,
|
|
|
+ wlzb_del
|
|
|
} from "./api";
|
|
|
import { ElMessage } from "element-plus";
|
|
|
// import { user } from "@/store/user";
|
|
@@ -842,6 +846,33 @@ function exportData() {
|
|
|
};
|
|
|
download("kzkt/zbkc/index", data);
|
|
|
}
|
|
|
+function delData(){
|
|
|
+ let data = {
|
|
|
+ kz_id: multipleSelection,
|
|
|
+ };
|
|
|
+ ElMessageBox.confirm("确认删除?", {
|
|
|
+ confirmButtonText: "确认",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning",
|
|
|
+ })
|
|
|
+ .then(() => {
|
|
|
+ wlzb_del(data).then((res) => {
|
|
|
+ if (res.code == 1) {
|
|
|
+ ElMessage({
|
|
|
+ type: "success",
|
|
|
+ message: "操作成功",
|
|
|
+ });
|
|
|
+ getZbData()
|
|
|
+ }
|
|
|
+ });
|
|
|
+ })
|
|
|
+ .catch(() => {
|
|
|
+ ElMessage({
|
|
|
+ type: "info",
|
|
|
+ message: "操作失败",
|
|
|
+ });
|
|
|
+ });
|
|
|
+}
|
|
|
// 审核
|
|
|
let popLoading = $ref(false);
|
|
|
let dialogFormVisible = $ref(false);
|