添加所属租户选项
This commit is contained in:
@@ -51,7 +51,6 @@ let dict: {
|
|||||||
/**开始结束时间 */
|
/**开始结束时间 */
|
||||||
let queryRangePicker = ref<[string, string]>(['', '']);
|
let queryRangePicker = ref<[string, string]>(['', '']);
|
||||||
|
|
||||||
//test
|
|
||||||
/**查询参数 */
|
/**查询参数 */
|
||||||
let queryParams = reactive({
|
let queryParams = reactive({
|
||||||
/**登录账号 */
|
/**登录账号 */
|
||||||
@@ -252,6 +251,7 @@ let modalState: ModalStateType = reactive({
|
|||||||
userName: '',
|
userName: '',
|
||||||
password: '',
|
password: '',
|
||||||
deptId: '100',
|
deptId: '100',
|
||||||
|
tenantId: '100',
|
||||||
email: '',
|
email: '',
|
||||||
loginDate: 0,
|
loginDate: 0,
|
||||||
loginIp: '',
|
loginIp: '',
|
||||||
@@ -435,7 +435,7 @@ function fnModalOk() {
|
|||||||
let validateName = ['nickName', 'email', 'phonenumber'];
|
let validateName = ['nickName', 'email', 'phonenumber'];
|
||||||
if (!modalState.from.userId) {
|
if (!modalState.from.userId) {
|
||||||
validateName.push('userName', 'password');
|
validateName.push('userName', 'password');
|
||||||
}
|
}
|
||||||
modalStateFrom
|
modalStateFrom
|
||||||
.validate(validateName)
|
.validate(validateName)
|
||||||
.then(() => {
|
.then(() => {
|
||||||
@@ -744,6 +744,14 @@ function fnGetList(pageNum?: number) {
|
|||||||
}
|
}
|
||||||
tablePagination.total = res.total;
|
tablePagination.total = res.total;
|
||||||
tableState.data = res.rows;
|
tableState.data = res.rows;
|
||||||
|
if (
|
||||||
|
tablePagination.total <=
|
||||||
|
(queryParams.pageNum - 1) * tablePagination.pageSize &&
|
||||||
|
queryParams.pageNum !== 1
|
||||||
|
) {
|
||||||
|
tableState.loading = false;
|
||||||
|
fnGetList(queryParams.pageNum - 1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
tableState.loading = false;
|
tableState.loading = false;
|
||||||
});
|
});
|
||||||
@@ -1442,6 +1450,30 @@ onMounted(() => {
|
|||||||
</a-tree-select>
|
</a-tree-select>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
|
|
||||||
|
<a-form-item
|
||||||
|
:label="t('views.system.user.fromTenant')"
|
||||||
|
name="deptId"
|
||||||
|
:label-col="{ span: 3 }"
|
||||||
|
>
|
||||||
|
<a-tree-select
|
||||||
|
v-model:value="modalState.from.tenantId"
|
||||||
|
show-search
|
||||||
|
tree-default-expand-all
|
||||||
|
:tree-data="deptTreeData"
|
||||||
|
:field-names="{
|
||||||
|
children: 'children',
|
||||||
|
label: 'label',
|
||||||
|
value: 'id',
|
||||||
|
}"
|
||||||
|
tree-node-label-prop="label"
|
||||||
|
tree-node-filter-prop="label"
|
||||||
|
style="width: 100%"
|
||||||
|
:dropdown-style="{ maxHeight: '400px', overflow: 'auto' }"
|
||||||
|
:placeholder="t('common.selectPlease')"
|
||||||
|
>
|
||||||
|
</a-tree-select>
|
||||||
|
</a-form-item>
|
||||||
|
|
||||||
<a-form-item
|
<a-form-item
|
||||||
:label="t('views.system.user.userTip')"
|
:label="t('views.system.user.userTip')"
|
||||||
name="remark"
|
name="remark"
|
||||||
|
|||||||
Reference in New Issue
Block a user