diff --git a/src/views/system/tenant/index.vue b/src/views/system/tenant/index.vue index 192ae1fc..513aad9a 100644 --- a/src/views/system/tenant/index.vue +++ b/src/views/system/tenant/index.vue @@ -447,6 +447,9 @@ function fnModalVisibleByType( .then(res => { if (res.code === RESULT_CODE_SUCCESS && res.data) { modalState.typeFrom = Object.assign(modalState.typeFrom, res.data); + if (modalState.typeFrom.tenancyType === 'UPF') { + fnTypeChange('UPF'); + } modalState.typeTitle = t('common.editText') + t('views.system.tenant.type'); modalState.visibleByType = true; @@ -539,7 +542,7 @@ function fnTypeRecordDelete( } //选择租赁类型 -function fnTypeChange(value: any, options: any) { +function fnTypeChange(value: any) { if (value === 'UPF') { listNeInfo({ neType: 'UPF', pageNum: 1, pageSize: 10000 }).then(res => { /** 查询最新的UPF的所有RMUID*/ @@ -841,6 +844,7 @@ onMounted(() => { :label="t('views.system.tenant.type')" name="type" :labelWrap="true" + v-bind="modalStateTypeFrom.validateInfos.tenancyType" > { name="key" :extra="keyTip" :label-col="{ span: 4 }" + v-bind="modalStateTypeFrom.validateInfos.tenancyKey" >