新增租赁类型
This commit is contained in:
@@ -19,6 +19,7 @@ import useDictStore from '@/store/modules/dict';
|
||||
import { parseDataToTree } from '@/utils/parse-tree-utils';
|
||||
import { RESULT_CODE_SUCCESS } from '@/constants/result-constants';
|
||||
import useI18n from '@/hooks/useI18n';
|
||||
|
||||
const { t } = useI18n();
|
||||
const { getDict } = useDictStore();
|
||||
|
||||
@@ -26,8 +27,11 @@ const { getDict } = useDictStore();
|
||||
let dict: {
|
||||
/**状态 */
|
||||
sysNormalDisable: DictType[];
|
||||
/**租户类型 */
|
||||
sysTenancyType: DictType[];
|
||||
} = reactive({
|
||||
sysNormalDisable: [],
|
||||
sysTenancyType: [],
|
||||
});
|
||||
|
||||
/**查询参数 */
|
||||
@@ -134,13 +138,7 @@ let tableColumns: ColumnsType = [
|
||||
},
|
||||
];
|
||||
|
||||
const modalStateFromOption = reactive({
|
||||
tenantType: [
|
||||
{ label: t('views.system.dept.SDSST'), value: 'SD-SST' },
|
||||
{ label: t('views.system.dept.APN'), value: 'APN' },
|
||||
{ label: t('views.system.dept.IMSI'), value: 'IMSI' },
|
||||
],
|
||||
});
|
||||
|
||||
|
||||
/**表格紧凑型变更操作 */
|
||||
function fnTableSize({ key }: MenuInfo) {
|
||||
@@ -421,10 +419,16 @@ function fnGetList() {
|
||||
|
||||
onMounted(() => {
|
||||
// 初始字典数据
|
||||
Promise.allSettled([getDict('sys_normal_disable')]).then(resArr => {
|
||||
Promise.allSettled([
|
||||
getDict('sys_normal_disable'),
|
||||
getDict('tenancy_type'),
|
||||
]).then((resArr: any) => {
|
||||
if (resArr[0].status === 'fulfilled') {
|
||||
dict.sysNormalDisable = resArr[0].value;
|
||||
}
|
||||
if (resArr[1].status === 'fulfilled') {
|
||||
dict.sysTenancyType = resArr[1].value;
|
||||
}
|
||||
});
|
||||
// 获取列表数据
|
||||
fnGetList();
|
||||
@@ -796,7 +800,7 @@ onMounted(() => {
|
||||
<a-select
|
||||
v-model:value="modalState.from.tenancyType"
|
||||
allow-clear
|
||||
:options="modalStateFromOption.tenantType"
|
||||
:options="dict.sysTenancyType"
|
||||
>
|
||||
</a-select>
|
||||
</a-form-item>
|
||||
|
||||
Reference in New Issue
Block a user