@@ -172,7 +181,9 @@
-
+
+
+
查询
重置
@@ -198,11 +209,12 @@
{{
- getDictLable(dictData.mail_source, row.source)
- }}
+ getDictLable(dictData.mail_source, row.source)
+ }}
-
+
@@ -244,9 +256,12 @@
详情
- 标签
- 转为待办
- 删除
+ 标签
+ 转为待办
+ 删除
@@ -259,7 +274,7 @@
@@ -295,7 +310,7 @@ 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";
+import { deleteMail } from "@/api/mail";
const rowKey = "id";
const loading = ref(false)
@@ -378,9 +393,9 @@ const exportLedger = async () => {
await feedback.confirm('是否导出当前筛选条件的所有信件?');
exportLoading.value = true
const data = query.value
- if(data.flowKey)
+ if (data.flowKey)
data.flowKey = data.flowKey.join(',')
- if(data.mailLabels)
+ if (data.mailLabels)
data.mailLabels = data.mailLabels.join(',')
axios.post('/lan-api/api/work/exportLedger', data, {
headers: {
@@ -429,6 +444,10 @@ const handleCurrentChange = (page: any) => {
refreshCheckAll()
}
+watch(() => useRouterParams.params, () => {
+ getList()
+})
+
function getList() {
if (loadingOnce.value) {
// 处理跳转路由参数
@@ -457,7 +476,7 @@ function getList() {
if (useRouterParams.params.extensionFlag) {
query.value.extensionFlag = useRouterParams.params.extensionFlag
}
-
+
}
if (useRouterParams.params.mailTime) {
query.value.mailTime = useRouterParams.params.mailTime
@@ -476,6 +495,11 @@ function getList() {
query.value.countMails = useRouterParams.params.countMails
useRouterParams.removeParams()
}
+ if (useRouterParams.params.contactField && useRouterParams.params.contactFieldValue) {
+ query.value.contactField = useRouterParams.params.contactField
+ query.value.contactFieldValue = useRouterParams.params.contactFieldValue
+ useRouterParams.removeParams()
+ }
loading.value = true
let source = ""
if (query.value.mailLabels) {
@@ -538,17 +562,17 @@ const checkMail = () => {
}
const handleDelete = async (mailId: any) => {
- if(mailId == ""||mailId == null){
+ if (mailId == "" || mailId == null) {
return;
}
await feedback.confirm("确定要删除?");
- await deleteMail({id:mailId});
+ await deleteMail({ id: mailId });
feedback.msgSuccess("删除成功");
getList()
};
const IsdeleteMail = (row: any) => {
- const allowChangeList = [null,'first_sign', 'first_distribute']
+ const allowChangeList = [null, 'first_sign', 'first_distribute']
return allowChangeList.includes(row.flowKey)
}
@@ -560,7 +584,7 @@ const handleTodoByChange = (mailId: any) => {
}
const handleMailCategory = (row: any) => {
const allowChangeList = ['终止类', '无效类']
- return allowChangeList.includes(row.mailCategory)
+ return allowChangeList.includes(row.mailFirstCategory)
}
const collapse = ref(true)
diff --git a/src/views/work/Sms.vue b/src/views/work/Sms.vue
index b59871d..517866e 100644
--- a/src/views/work/Sms.vue
+++ b/src/views/work/Sms.vue
@@ -75,7 +75,7 @@
@current-change="getList"
:current-page="query.current"
:page-sizes="[10, 20, 50]"
- :page-size="query.size"
+ v-model:page-size="query.size"
v-model:current-page="query.current"
:total="total"
layout="total, sizes, prev, pager, next"
diff --git a/src/views/work/Todo.vue b/src/views/work/Todo.vue
index e729406..c093848 100644
--- a/src/views/work/Todo.vue
+++ b/src/views/work/Todo.vue
@@ -260,7 +260,7 @@
@current-change="getList"
:current-page="query.current"
:page-sizes="[10, 20, 50]"
- :page-size="query.size"
+ v-model:page-size="query.size"
v-model:current-page="query.current"
:total="totalSize.total"
layout="total, sizes, prev, pager, next"
diff --git a/src/views/work/components/AddMail.vue b/src/views/work/components/AddMail.vue
index d747497..7a603cc 100644
--- a/src/views/work/components/AddMail.vue
+++ b/src/views/work/components/AddMail.vue
@@ -174,7 +174,6 @@