diff --git a/src/api/enterprises/index.ts b/src/api/enterprises/index.ts index a6279ba..bf32a56 100644 --- a/src/api/enterprises/index.ts +++ b/src/api/enterprises/index.ts @@ -55,4 +55,10 @@ export const EnterprisesApi = { exportEnterprises: async (params) => { return await request.download({ url: `/system/enterprise/export-excel`, params }) }, + + // 标签查询 + tagList: async (params) => { + return await request.get({ url: `"/system/system/tag-library/list`, params }) + }, + } diff --git a/src/api/system/user/index.ts b/src/api/system/user/index.ts index 365db18..425afe2 100644 --- a/src/api/system/user/index.ts +++ b/src/api/system/user/index.ts @@ -94,6 +94,11 @@ export const getSimpleUserZGList = (): Promise => { return request.get({ url: '/system/user/simple-zg-list' }) } +// 通过用户类型获取用户列表 +export const getSimpleUserListByUserType = (params:number) => { + return request.get({ url: '/system/user/simple-user-by-userType?type='+ params }) +} + /** * 查询审核列表 */ diff --git a/src/views/enterpriseinspections/index.vue b/src/views/enterpriseinspections/index.vue index b07fc3a..0204ffb 100644 --- a/src/views/enterpriseinspections/index.vue +++ b/src/views/enterpriseinspections/index.vue @@ -69,9 +69,7 @@ :data="list" :stripe="true" :show-overflow-tooltip="true" - @selection-change="handleSelectionChange" > - diff --git a/src/views/enterprises/update.vue b/src/views/enterprises/update.vue index 3be1d30..ed979bf 100644 --- a/src/views/enterprises/update.vue +++ b/src/views/enterprises/update.vue @@ -12,7 +12,7 @@ - + - + + + + + @@ -188,7 +202,10 @@ import { getStrDictOptions, DICT_TYPE } from '@/utils/dict' import { EnterprisesApi, EnterprisesVO } from '@/api/enterprises' import { EnterpriseQualificationApi, EnterpriseQualificationVO } from '@/api/qualification' +import { UserVO, getSimpleUserListByUserType } from '@/api/system/user' + import { EnterpriseInspectionsApi, EnterpriseInspectionsVO } from '@/api/enterpriseinspections' + import { UploadImgs } from '@/components/UploadFile' import * as FileApi from '@/api/infra/file' import { ElMessage } from 'element-plus' @@ -213,6 +230,7 @@ const fileIds = ref([]); const qualificationlist = ref([]); const inspectionslist = ref([]); const inspectionsLogList = ref([]); +const enterpriseUserList = ref([]) const formData = ref({ id: undefined, @@ -233,8 +251,18 @@ const formData = ref({ managerDeptId: undefined, ides: undefined, startUserSelectAssignees:undefined, + enterpriseUserId: undefined, fileIds:[] }) + +const getEnterpriseUserList = async () => { + const type:number = 2 + const data = await getSimpleUserListByUserType(type) + console.log("datadata===>", data) + +} + + const formRules = reactive({ type: [{ required: true, message: '企业类型不能为空', trigger: 'change' }], enterprisesName: [{ required: true, message: '企业名称不能为空', trigger: 'blur' }], @@ -341,6 +369,7 @@ onMounted(() => { init() getQualificationList() getInspectionslList() + getEnterpriseUserList() //getInspectionsLogList() const openMapAndInit = async () => { if (showMap.value) { diff --git a/src/views/system/user/examine.vue b/src/views/system/user/examine.vue index 920266f..be6e089 100644 --- a/src/views/system/user/examine.vue +++ b/src/views/system/user/examine.vue @@ -153,7 +153,7 @@ const queryParams = reactive({ status: undefined, deptId: undefined, audit: [1,3], - userType: "1,2", + userType: "2, 3", createTime: [] }) diff --git a/src/views/system/user/examineform.vue b/src/views/system/user/examineform.vue index 8167aa5..0941505 100644 --- a/src/views/system/user/examineform.vue +++ b/src/views/system/user/examineform.vue @@ -46,11 +46,14 @@ function open(param) { function submit(type) { form.value.audit = type; - UserApi.examineUser(form.value).then((res) => { - proxy.$modal.msgSuccess("审批成功"); + try { + UserApi.examineUser(form.value).then((res) => { emits("success"); - show.value = false; }); + + } finally { + show.value = false + } } defineExpose({ open }); diff --git a/src/views/system/user/index.vue b/src/views/system/user/index.vue index 8c38e96..f681db8 100644 --- a/src/views/system/user/index.vue +++ b/src/views/system/user/index.vue @@ -99,13 +99,7 @@ - - - -
@@ -125,8 +122,6 @@ /> - - @@ -144,8 +139,6 @@ - - 搜索 @@ -158,7 +151,6 @@ -
-
- 提 交 + 审核通过 + 删除 - - + \ No newline at end of file diff --git a/src/views/task/index.vue b/src/views/task/index.vue index 924e95c..09b109a 100644 --- a/src/views/task/index.vue +++ b/src/views/task/index.vue @@ -187,6 +187,17 @@ > 删除 + + + 审核 + +