|
|
@@ -10,6 +10,7 @@ import {
|
|
|
fetchGetUserList
|
|
|
} from '@/service/api';
|
|
|
import { fetchGetChannelList } from '@/service/api/goods-center/store-goods';
|
|
|
+import { fetchGetDictDataList } from '@/service/api/system-manage';
|
|
|
import { fetchGetDepartmentList } from '@/service/api/system-department';
|
|
|
import imgs from '@/assets/imgs/logo.png';
|
|
|
import { useTable } from '@/components/zt/Table/hooks/useTable';
|
|
|
@@ -43,21 +44,21 @@ const columns: NaiveUI.TableColumn<Api.SystemManage.userList>[] = [
|
|
|
align: 'center',
|
|
|
minWidth: 100
|
|
|
},
|
|
|
- {
|
|
|
- key: 'nickname',
|
|
|
- title: $t('page.manage.user.nickName'),
|
|
|
- align: 'center',
|
|
|
- minWidth: 100
|
|
|
- },
|
|
|
- {
|
|
|
- key: 'deptName',
|
|
|
- title: '所属部门',
|
|
|
- align: 'center',
|
|
|
- width: 220,
|
|
|
- ellipsis: {
|
|
|
- tooltip: true
|
|
|
- }
|
|
|
- },
|
|
|
+ // {
|
|
|
+ // key: 'nickname',
|
|
|
+ // title: $t('page.manage.user.nickName'),
|
|
|
+ // align: 'center',
|
|
|
+ // minWidth: 100
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // key: 'deptName',
|
|
|
+ // title: '所属部门',
|
|
|
+ // align: 'center',
|
|
|
+ // width: 220,
|
|
|
+ // ellipsis: {
|
|
|
+ // tooltip: true
|
|
|
+ // }
|
|
|
+ // },
|
|
|
|
|
|
{
|
|
|
key: 'mobile',
|
|
|
@@ -153,7 +154,7 @@ const [registerModalForm, { openModal, closeModal, getFieldsValue, setFieldsValu
|
|
|
},
|
|
|
{
|
|
|
field: 'channelIdList',
|
|
|
- label: '所属企业',
|
|
|
+ label: '企业权限',
|
|
|
component: 'ApiSelect',
|
|
|
required: true,
|
|
|
componentProps: {
|
|
|
@@ -163,6 +164,23 @@ const [registerModalForm, { openModal, closeModal, getFieldsValue, setFieldsValu
|
|
|
multiple: true
|
|
|
}
|
|
|
},
|
|
|
+ {
|
|
|
+ field: 'businessTypeList',
|
|
|
+ label: '业务类型权限',
|
|
|
+ component: 'ApiSelect',
|
|
|
+ required: true,
|
|
|
+ componentProps: {
|
|
|
+ api: fetchGetDictDataList,
|
|
|
+ labelFeild: 'name',
|
|
|
+ valueFeild: 'value',
|
|
|
+ multiple: true,
|
|
|
+ resultFeild: 'data.list',
|
|
|
+ params: {
|
|
|
+ typeCode: 'sys_business_type'
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+
|
|
|
{
|
|
|
field: 'deptId',
|
|
|
label: '归属部门',
|
|
|
@@ -180,7 +198,6 @@ const [registerModalForm, { openModal, closeModal, getFieldsValue, setFieldsValu
|
|
|
field: 'email',
|
|
|
label: '邮箱',
|
|
|
component: 'NInput',
|
|
|
- required: true,
|
|
|
rules: [
|
|
|
{
|
|
|
type: 'email',
|
|
|
@@ -188,7 +205,8 @@ const [registerModalForm, { openModal, closeModal, getFieldsValue, setFieldsValu
|
|
|
trigger: ['blur', 'input', 'change'],
|
|
|
validator: (_fomItem, value, callback) => {
|
|
|
if (!value) {
|
|
|
- callback(new Error('请输入邮箱'));
|
|
|
+ // callback(new Error('请输入邮箱'));
|
|
|
+ return true;
|
|
|
} else if (!/^[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/.test(value)) {
|
|
|
callback(new Error('请输入正确的邮箱'));
|
|
|
}
|