租户列表编辑回显下拉位置调整
This commit is contained in:
parent
090791a38b
commit
b603464771
@ -7,6 +7,12 @@ const { t } = useI18n() // 国际化
|
|||||||
export const tenantPackageOption: ComponentOptions[] = []
|
export const tenantPackageOption: ComponentOptions[] = []
|
||||||
const getTenantPackageOptions = async () => {
|
const getTenantPackageOptions = async () => {
|
||||||
const res = await getTenantPackageList()
|
const res = await getTenantPackageList()
|
||||||
|
tenantPackageOption.push({
|
||||||
|
key: 0,
|
||||||
|
value: 0,
|
||||||
|
label: '系统租户',
|
||||||
|
disabled: true
|
||||||
|
})
|
||||||
res.forEach((tenantPackage: TenantPackageVO) => {
|
res.forEach((tenantPackage: TenantPackageVO) => {
|
||||||
tenantPackageOption.push({
|
tenantPackageOption.push({
|
||||||
key: tenantPackage.id,
|
key: tenantPackage.id,
|
||||||
@ -14,13 +20,6 @@ const getTenantPackageOptions = async () => {
|
|||||||
label: tenantPackage.name
|
label: tenantPackage.name
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
tenantPackageOption.push({
|
|
||||||
key: 0,
|
|
||||||
value: 0,
|
|
||||||
label: '系统租户',
|
|
||||||
disabled: true
|
|
||||||
})
|
|
||||||
|
|
||||||
return tenantPackageOption
|
return tenantPackageOption
|
||||||
}
|
}
|
||||||
getTenantPackageOptions()
|
getTenantPackageOptions()
|
||||||
@ -38,7 +37,7 @@ const validateName = (rule: any, value: any, callback: any) => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const validateMobile = (rule: any, value: any, callback: any) => {
|
const validateMobile = (_: any, value: any, callback: any) => {
|
||||||
const reg = /^1(3[0-9]|4[01456879]|5[0-35-9]|6[2567]|7[0-8]|8[0-9]|9[0-35-9])\d{8}$/
|
const reg = /^1(3[0-9]|4[01456879]|5[0-35-9]|6[2567]|7[0-8]|8[0-9]|9[0-35-9])\d{8}$/
|
||||||
if (value === '') {
|
if (value === '') {
|
||||||
callback(new Error('请输入联系手机'))
|
callback(new Error('请输入联系手机'))
|
||||||
|
Loading…
Reference in New Issue
Block a user