diff --git a/src/api/mail.ts b/src/api/mail.ts
index 146e683..c7d648d 100644
--- a/src/api/mail.ts
+++ b/src/api/mail.ts
@@ -22,4 +22,8 @@ export function addMail(body) {
export function addCoHandling(body) {
return request.post({ url: '/mail/coHandling/add', body})
+}
+
+export function deleteMail(body) {
+ return request.post({ url: '/mail/delete', body})
}
\ No newline at end of file
diff --git a/src/views/work/Query.vue b/src/views/work/Query.vue
index 0521c44..7d7817c 100644
--- a/src/views/work/Query.vue
+++ b/src/views/work/Query.vue
@@ -188,6 +188,8 @@
标签
转为待办
+ 删除
@@ -234,6 +236,8 @@ import { getToken } from '@/utils/auth'
import axios from 'axios'
import { useRouterParamsStore } from "@/stores/modules/routerParams";
import { useRoute } from "vue-router";
+import feedback from "@/utils/feedback";
+import {deleteMail} from "@/api/mail";
const rowKey = "id";
const loading = ref(false)
@@ -505,12 +509,31 @@ const handleTodoByChange = (mailId: any) => {
showTodoByChange.value = true
activeMailId.value = mailId
}
+
+
+const handleDelete = async (mailId: any) => {
+ if(mailId == ""||mailId == null){
+ return;
+ }
+ await feedback.confirm("确定要删除?");
+ await deleteMail({id:mailId});
+ feedback.msgSuccess("删除成功");
+ getList()
+};
+
+
+
const handleMailCategory = (row: any) => {
const allowChangeList = ['终止类', '无效类']
return allowChangeList.includes(row.mailCategory)
}
+const IsdeleteMail = (row: any) => {
+ const allowChangeList = ['first_sign', 'first_distribute']
+ return allowChangeList.includes(row.flowKey)
+}
+
getList()