From fb823f1d39c0a00b1d28a88bf227b6714ef7ecbc Mon Sep 17 00:00:00 2001
From: wangchengming <15110151257@163.com>
Date: Mon, 14 Jul 2025 13:38:36 +0800
Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../system/userApproval/userApprovalForm.vue | 28 ++++---------------
vite.config.js | 2 +-
2 files changed, 7 insertions(+), 23 deletions(-)
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 }) => {