From 1229f3ec76bffe282d85b48daf0b32bc17022810 Mon Sep 17 00:00:00 2001
From: Admin <978517621@qq.com>
Date: 星期五, 26 八月 2022 12:29:18 +0800
Subject: [PATCH] Default Changelist
---
src/views/system/user/component/userDialog.vue | 17 ++++++-----------
1 files changed, 6 insertions(+), 11 deletions(-)
diff --git a/src/views/system/user/component/userDialog.vue b/src/views/system/user/component/userDialog.vue
index d3b5494..2f63678 100644
--- a/src/views/system/user/component/userDialog.vue
+++ b/src/views/system/user/component/userDialog.vue
@@ -22,15 +22,7 @@
</el-col>
<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20">
<el-form-item label="部门">
- <el-cascader
- :options="departmentData"
- :props="{ emitPath: false, checkStrictly: true, value: 'depId', label: 'depName' }"
- placeholder="请选择部门"
- clearable
- class="w100"
- v-model="userForm.depId"
- >
- </el-cascader>
+ <el-cascader :options="departmentData" :props="{ emitPath: false, checkStrictly: true, value: 'depId', label: 'depName' }" placeholder="请选择部门" clearable class="w100" v-model="userForm.depId"> </el-cascader>
</el-form-item>
</el-col>
<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20">
@@ -75,7 +67,7 @@
<template #footer>
<span class="dialog-footer">
<el-button @click="isShowUserDialog = !isShowUserDialog" size="default">取 消</el-button>
- <el-button type="primary" v-throttle @click="onSubmit" size="default">新 增</el-button>
+ <el-button type="primary" v-throttle @click="onSubmit" size="default">确 定</el-button>
</span>
</template>
</el-dialog>
@@ -85,7 +77,7 @@
<script lang="ts">
import { reactive, toRefs, onMounted, defineComponent } from 'vue';
import { ElMessageBox, ElMessage } from 'element-plus';
-import { userApi } from '/@/api/user';
+import { userApi } from '/@/api/systemManage/user';
// 定义接口来定义对象的类型
interface DeptData {}
@@ -102,6 +94,7 @@
phone: string;
email: string;
gender: number | null;
+ positionId: number | null;
password: string;
expireTime: string;
status: number;
@@ -128,6 +121,7 @@
identify: '',
gender: null, // 性别
password: '', // 账户密码
+ positionId: 1, // 岗位
expireTime: '', // 账户过期
status: 1 // 用户状态
},
@@ -153,6 +147,7 @@
phone: '',
email: '',
identify: '',
+ positionId: 1,
gender: null,
password: '',
expireTime: '',
--
Gitblit v1.9.2