From c5fe3ce4545fc3f5b711c4425d62e5d505caecf6 Mon Sep 17 00:00:00 2001 From: wxc <191104855@qq.com> Date: Thu, 8 Feb 2024 11:39:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=A1=E4=BB=B6=E7=AD=BE=E6=94=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/perms/admin.ts | 9 +- src/components/LeaderSelect.vue | 44 +++-- src/components/Upload.vue | 37 +++- src/utils/request.ts | 2 +- src/utils/util.ts | 6 +- src/views/Login.vue | 2 +- src/views/home/components/MailTable.vue | 2 +- src/views/work/Done.vue | 9 +- src/views/work/Todo.vue | 75 ++++--- .../work/components/ApplicationCompleted.vue | 1 + .../work/components/ConfirmedCompletion.vue | 16 +- .../work/components/InitiateCountersign.vue | 3 +- src/views/work/components/MailDialog.vue | 184 +++++++++--------- src/views/work/components/RemainingTime.vue | 129 ++++++++++++ src/views/work/components/ReviewComments.vue | 13 +- ...ctWriterFrom.vue => ContactWriterForm.vue} | 0 .../components/templates/CountersignForm.vue | 9 + ...WriterFrom.vue => InterviewWriterForm.vue} | 2 +- .../templates/MailApprovalDetail.vue | 88 +++++++-- .../work/components/templates/VerifyForm.vue | 5 +- 20 files changed, 446 insertions(+), 190 deletions(-) create mode 100644 src/views/work/components/RemainingTime.vue rename src/views/work/components/templates/{ContactWriterFrom.vue => ContactWriterForm.vue} (100%) create mode 100644 src/views/work/components/templates/CountersignForm.vue rename src/views/work/components/templates/{InterviewWriterFrom.vue => InterviewWriterForm.vue} (98%) diff --git a/src/api/perms/admin.ts b/src/api/perms/admin.ts index 456b9f8..bd5e087 100644 --- a/src/api/perms/admin.ts +++ b/src/api/perms/admin.ts @@ -38,11 +38,6 @@ export function adminStatus(params: any) { } // 领导列表(正职) -export function getLeaderList() { - return request.get({ url: '/system/admin/leader/list'}) -} - -// 领导列表(副职) -export function getDeputyList() { - return request.get({ url: '/system/admin/leader/list'}) +export function getLeaderList(type) { + return request.get({ url: '/system/admin/leader/list?type=' + type}) } \ No newline at end of file diff --git a/src/components/LeaderSelect.vue b/src/components/LeaderSelect.vue index 46bcbcd..72958f2 100644 --- a/src/components/LeaderSelect.vue +++ b/src/components/LeaderSelect.vue @@ -12,28 +12,42 @@ \ No newline at end of file diff --git a/src/components/Upload.vue b/src/components/Upload.vue index be3ffc6..6e9d024 100644 --- a/src/components/Upload.vue +++ b/src/components/Upload.vue @@ -16,9 +16,12 @@ -
+
@@ -35,13 +45,13 @@ import { getToken } from "@/utils/auth"; const { VITE_API_URL } = process.env; const props = defineProps({ - value: { + modelValue: { type: Array, default: () => [], }, }); -const emit = defineEmits(["update:value"]); +const emit = defineEmits(["update:modelValue"]); const files = ref([]); @@ -56,20 +66,33 @@ function handleSuccess(data, file) { orgiinFilename: file.name, type: file.raw.type, }); - emit("update:value", files.value); + emit("update:modelValue", files.value); } function remove(index) { files.value.splice(index, 1); - emit("update:value", files.value); + emit("update:modelValue", files.value); } \ No newline at end of file diff --git a/src/views/work/components/ReviewComments.vue b/src/views/work/components/ReviewComments.vue index e3a1dc3..3cb4643 100644 --- a/src/views/work/components/ReviewComments.vue +++ b/src/views/work/components/ReviewComments.vue @@ -1,5 +1,5 @@ \ No newline at end of file diff --git a/src/views/work/components/templates/VerifyForm.vue b/src/views/work/components/templates/VerifyForm.vue index c555bd3..0e7384f 100644 --- a/src/views/work/components/templates/VerifyForm.vue +++ b/src/views/work/components/templates/VerifyForm.vue @@ -22,7 +22,7 @@ - +
添加被举报对象添加被举报人
@@ -262,6 +262,7 @@ function validate() { return new Promise((resolve, reject) => { formRef.value.validate((valid) => { if (valid) { + const verifyReportedPolices = reportedPolices.value.filter(item => item.empNo) form.value.verifyReportedPolices = JSON.stringify(verifyReportedPolices) form.value.verifyFollowupPolice = JSON.stringify(form.value.verifyFollowupPolice)