| | |
| | | const dateRange = ref<[DateModelType, DateModelType]>(['', '']); |
| | | const deptName = ref(''); |
| | | const deptOptions = ref<DeptVO[]>([]); |
| | | const initPassword = ref('123456'); |
| | | const initPassword = ref<String>(''); |
| | | const postOptions = ref<PostVO[]>([]); |
| | | const roleOptions = ref<RoleVO[]>([]); |
| | | /*** 用户导入参数 */ |
| | |
| | | }) |
| | | // 列显隐信息 |
| | | const columns = ref<FieldOption[]>([ |
| | | { key: 0, label: `用户编号`, visible: false }, |
| | | { key: 1, label: `用户名称`, visible: true }, |
| | | { key: 2, label: `用户昵称`, visible: true }, |
| | | { key: 3, label: `部门`, visible: true }, |
| | | { key: 4, label: `手机号码`, visible: true }, |
| | | { key: 5, label: `状态`, visible: true }, |
| | | { key: 6, label: `创建时间`, visible: true } |
| | | { key: 0, label: `用户编号`, visible: false,children: [] }, |
| | | { key: 1, label: `用户名称`, visible: true,children: [] }, |
| | | { key: 2, label: `用户昵称`, visible: true,children: [] }, |
| | | { key: 3, label: `部门`, visible: true,children: [] }, |
| | | { key: 4, label: `手机号码`, visible: true,children: [] }, |
| | | { key: 5, label: `状态`, visible: true,children: [] }, |
| | | { key: 6, label: `创建时间`, visible: true,children: [] } |
| | | ]) |
| | | |
| | | |
| | |
| | | await initTreeData(); |
| | | postOptions.value = data.posts; |
| | | roleOptions.value = data.roles; |
| | | form.value.password = initPassword.value; |
| | | form.value.password = initPassword.value.toString(); |
| | | } |
| | | /** 修改按钮操作 */ |
| | | const handleUpdate = async (row?: UserForm) => { |
| | |
| | | onMounted(() => { |
| | | getTreeSelect() // 初始化部门数据 |
| | | getList() // 初始化列表数据 |
| | | proxy?.getConfigKey("sys.user.initPassword").then(response => { |
| | | initPassword.value = response.data; |
| | | }); |
| | | }); |
| | | </script> |
| | | |