From 27ce3d83c2f78942431400d863720c17b5afbc94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=88=B1=7E=E6=B5=B7=7E=E7=88=B1=E6=B5=B7=E7=88=B1?= =?UTF-8?q?=E6=B5=B7=7E=E5=8F=B3?= <1828712314@qq.com> Date: Fri, 21 Mar 2025 17:29:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=94=A8=E6=88=B7=E5=AE=A1?= =?UTF-8?q?=E6=A0=B8=E5=8A=9F=E8=83=BD=EF=BC=8C=E6=B7=BB=E5=8A=A0=E4=BC=81?= =?UTF-8?q?=E4=B8=9A=E9=83=A8=E9=97=A8=E5=88=97=E8=A1=A8=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=EF=BC=8C=E8=B0=83=E6=95=B4=E6=A0=B7=E5=BC=8F=E5=92=8C=E9=80=BB?= =?UTF-8?q?=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system/user/index.ts | 11 +- .../ContentWrap/src/ContentWrap.vue | 7 + src/components/DictTag/src/DictTag.vue | 2 - src/views/Login/SocialLogin.vue | 3 + src/views/Login/components/QrCodeForm.vue | 3 +- .../EnterpriseInspectionsForm.vue | 143 +++++++----------- src/views/enterpriseinspections/detail.vue | 54 ++++--- src/views/enterpriseinspections/index.vue | 42 +++-- src/views/system/taglibrary/index.vue | 2 +- src/views/task/index.vue | 2 +- 10 files changed, 139 insertions(+), 130 deletions(-) diff --git a/src/api/system/user/index.ts b/src/api/system/user/index.ts index b349281..1849d3e 100644 --- a/src/api/system/user/index.ts +++ b/src/api/system/user/index.ts @@ -113,10 +113,7 @@ export const getExamieList = (audit: number) => { * 审核用户 */ export function examineUser(data) { - console.log('data=>', data) - return request.put({ url: '/system/user/user_audit', data }) - return request.put({url: '/system/user/user_audit', data}) } // 专管员列表 @@ -128,3 +125,11 @@ export const getEnterpriseManager = () => { export const deptByMenu = () => { return request.get({ url: '/system/user/deptByMenu' }) } + + +/** + * 获取企业部门列表 + */ +export const getDeptByEnterprise = () => { + return request.get({ url: '/system/user/enterprise_manager_dept_list' }) +} \ No newline at end of file diff --git a/src/components/ContentWrap/src/ContentWrap.vue b/src/components/ContentWrap/src/ContentWrap.vue index 8847219..b9aec2d 100644 --- a/src/components/ContentWrap/src/ContentWrap.vue +++ b/src/components/ContentWrap/src/ContentWrap.vue @@ -34,3 +34,10 @@ defineProps({ + + diff --git a/src/components/DictTag/src/DictTag.vue b/src/components/DictTag/src/DictTag.vue index a0e7a41..a1e927d 100644 --- a/src/components/DictTag/src/DictTag.vue +++ b/src/components/DictTag/src/DictTag.vue @@ -91,6 +91,4 @@ export default defineComponent({ }) - diff --git a/src/views/Login/SocialLogin.vue b/src/views/Login/SocialLogin.vue index 18ac397..daabe45 100644 --- a/src/views/Login/SocialLogin.vue +++ b/src/views/Login/SocialLogin.vue @@ -320,6 +320,9 @@ const handleLogin = async (params) => { onMounted(() => { getCookie() tryLogin() +}) +onUnmounted(()=>{ + }) diff --git a/src/views/Login/components/QrCodeForm.vue b/src/views/Login/components/QrCodeForm.vue index 2d0e7a0..4d04794 100644 --- a/src/views/Login/components/QrCodeForm.vue +++ b/src/views/Login/components/QrCodeForm.vue @@ -121,10 +121,11 @@ onMounted(() => { // getCookie() getimg() }) -onUnmounted(() => { +onBeforeUnmount(() => { // 组件销毁时清除定时器 clearInterval(intervalId.value) }) + diff --git a/src/views/enterpriseinspections/detail.vue b/src/views/enterpriseinspections/detail.vue index ff376bf..705df25 100644 --- a/src/views/enterpriseinspections/detail.vue +++ b/src/views/enterpriseinspections/detail.vue @@ -1,12 +1,23 @@