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 @@
-
+
{{ detailData.taskName }}
- 详情
+ 详情
+
@@ -19,7 +30,18 @@
{{ detailData.enterpriseName }}
- 详情
+ 详情
+
-
+
@@ -91,15 +113,21 @@ const queryFormRef = ref()
const detailRef = ref()
const route = useRoute()
const formRef = ref()
+const { push } = useRouter()
const queryParams = reactive({
pageNo: 1,
pageSize: 10,
inspectionsId: route.query.id
})
-const openForm = (data) => {
- formRef.value.open(data)
-}
-
+const detailData = ref({
+ enterpriseName: undefined,
+ taskName: undefined,
+ tagList: undefined,
+ department: undefined,
+ inspectName: undefined,
+ cooperateWithName: undefined,
+ id: undefined
+})
const changeUserRef = ref()
// 变更人员
@@ -128,16 +156,6 @@ const getList = async () => {
}
}
-const detailData = ref({
- enterpriseName: undefined,
- taskName: undefined,
- tagList: undefined,
- department: undefined,
- inspectName: undefined,
- cooperateWithName: undefined,
- id: undefined
-})
-
onMounted(() => {
getDetail(route.query.id)
getList(route.query.id)
diff --git a/src/views/enterpriseinspections/index.vue b/src/views/enterpriseinspections/index.vue
index a928c24..ade9c3c 100644
--- a/src/views/enterpriseinspections/index.vue
+++ b/src/views/enterpriseinspections/index.vue
@@ -3,22 +3,27 @@
-
+
-
-
-
+
+
+
-
-
+
+
-
-
+
+
{
handleQuery()
}
-/** 查询用户列表 */
-const getUserlist = async () => {
- userList.value = await getSimpleUserZGList()
+/** 查询搜索项列表 */
+const getSearchOption = async () => {
+ userList.value = await getSimpleUserZGList({})
+ deptList.value = await getDeptByEnterprise()
}
+
/** 导出按钮操作 */
const handleExport = async () => {
try {
@@ -188,7 +198,7 @@ const handleExport = async () => {
}
}
-getUserlist()
+getSearchOption()
/** 初始化 **/
onMounted(() => {
diff --git a/src/views/system/taglibrary/index.vue b/src/views/system/taglibrary/index.vue
index c9b5760..b4d5dc7 100644
--- a/src/views/system/taglibrary/index.vue
+++ b/src/views/system/taglibrary/index.vue
@@ -14,7 +14,7 @@
placeholder="请输入标签的名称"
clearable
@keyup.enter.prevent="handleQuery"
- class="!w-240px"
+ class="!w-370px"
/>
diff --git a/src/views/task/index.vue b/src/views/task/index.vue
index 259520e..8af0bf9 100644
--- a/src/views/task/index.vue
+++ b/src/views/task/index.vue
@@ -85,7 +85,7 @@
- {{ scope.row.taskTypeName }}
+ {{ scope.row.taskTypeName }}