提交代码

This commit is contained in:
wangchengming 2025-07-14 13:38:36 +08:00
parent c1d8cfc1e0
commit fb823f1d39
2 changed files with 7 additions and 23 deletions

View File

@ -125,7 +125,7 @@
</el-radio-group>
</el-form-item>
</el-col>
<el-col :span="24">
<!-- <el-col :span="24">
<el-form-item label="角色">
<el-select v-model="ruleForm.roleIds" multiple placeholder="请选择角色">
<el-option v-for="item in roleOptions" :key="item.roleId"
@ -133,7 +133,7 @@
:disabled="item.status == 1"></el-option>
</el-select>
</el-form-item>
</el-col>
</el-col> -->
</el-row>
</el-col>
<el-col :span="18">
@ -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({

View File

@ -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 }) => {