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