diff --git a/src/views/system/userApproval/userApprovalForm.vue b/src/views/system/userApproval/userApprovalForm.vue index 4c90b17..8380e7c 100644 --- a/src/views/system/userApproval/userApprovalForm.vue +++ b/src/views/system/userApproval/userApprovalForm.vue @@ -125,7 +125,7 @@ - + @@ -172,7 +172,7 @@ const levelList = ref([ const { proxy } = getCurrentInstance() const data = reactive({ detailForm: {}, - ruleForm: { + ruleForm: { status: '', remark: '' }, @@ -190,30 +190,13 @@ onMounted(() => { if (id) { console.log('接收id', id) ruleForm.value.userId = id - getDetailInfo(id) - getRoleList(); + getDetailInfo(id) getUserCheckRecordList(id) } else { ruleForm.value.userId = null } }); - -// 角色数据 -const roleOptions = ref([]) -const getRoleList = () => { - listRole({ - status: 0 - }).then(res => { - if (res.code == 200) { - roleOptions.value = res.rows - var employee = res.rows.filter(item => - item.roleName.includes('员工') - ); - if (employee.length > 0) ruleForm.value.roleIds = [employee[0].roleId] - console.log('rwerwqe', ruleForm.value.roleIds) - } - }) -} + // 获取用户详情 const getDetailInfo = (_id) => { @@ -253,6 +236,7 @@ const handleCancel = () => { const handleSubmit = () => { proxy.$refs["ruleFormRef"].validate(valid => { if (valid) { + ruleForm.value.roleIds = [2] checkRegisterUser(ruleForm.value).then(res => { if (res.code == 200) { router.push({ diff --git a/vite.config.js b/vite.config.js index 9c9f5b5..73d09f1 100644 --- a/vite.config.js +++ b/vite.config.js @@ -2,7 +2,7 @@ import { defineConfig, loadEnv } from 'vite' import path from 'path' import createVitePlugins from './vite/plugins' -const baseUrl = 'http://43.143.229.145:8088' // 后端接口 +const baseUrl = 'http://43.143.229.145:8090' // 后端接口 // https://vitejs.dev/config/ export default defineConfig(({ mode, command }) => {