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)