租户列表编辑回显下拉位置调整

This commit is contained in:
gexinzhineng/gxzn27 2023-05-29 14:03:04 +08:00
parent 090791a38b
commit b603464771

View File

@ -7,6 +7,12 @@ const { t } = useI18n() // 国际化
export const tenantPackageOption: ComponentOptions[] = []
const getTenantPackageOptions = async () => {
const res = await getTenantPackageList()
tenantPackageOption.push({
key: 0,
value: 0,
label: '系统租户',
disabled: true
})
res.forEach((tenantPackage: TenantPackageVO) => {
tenantPackageOption.push({
key: tenantPackage.id,
@ -14,13 +20,6 @@ const getTenantPackageOptions = async () => {
label: tenantPackage.name
})
})
tenantPackageOption.push({
key: 0,
value: 0,
label: '系统租户',
disabled: true
})
return tenantPackageOption
}
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}$/
if (value === '') {
callback(new Error('请输入联系手机'))