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 @@