【修改】管理员管理

This commit is contained in:
任维炳
2025-04-23 17:07:40 +08:00
parent ecae0c51d5
commit 0616c47763
3 changed files with 5 additions and 1 deletions

View File

@@ -114,6 +114,7 @@ const dialogTitle = ref('') // 弹窗的标题
const formLoading = ref(false) // 表单的加载中1修改时的数据加载2提交的按钮禁用
const formType = ref('') // 表单的类型create - 新增update - 修改
const formData = ref({
userType: '0',
nickname: '',
deptId: '',
mobile: '',
@@ -178,6 +179,7 @@ const submitForm = async () => {
// 校验表单
if (!formRef) return
const valid = await formRef.value.validate()
formData.value.userType = "0"
if (!valid) return
// 提交请求
formLoading.value = true
@@ -201,6 +203,7 @@ const submitForm = async () => {
/** 重置表单 */
const resetForm = () => {
formData.value = {
userType: '0',
nickname: '',
deptId: '',
mobile: '',

View File

@@ -53,7 +53,7 @@ const dialogVisible = ref(false) // 弹窗的是否展示
const formLoading = ref(false) // 表单的加载中
const uploadRef = ref()
const importUrl =
import.meta.env.VITE_BASE_URL + import.meta.env.VITE_API_URL + '/system/user/import'
import.meta.env.VITE_BASE_URL + import.meta.env.VITE_API_URL + '/system/student/import'
const uploadHeaders = ref() // 上传 Header 头
const fileList = ref([]) // 文件列表
const updateSupport = ref(0) // 是否更新已经存在的用户数据

View File

@@ -226,6 +226,7 @@ const queryParams = reactive({
mobile: undefined,
status: undefined,
deptId: undefined,
userType: "0",
createTime: []
})
const queryFormRef = ref() // 搜索的表单