chore: 去除

This commit is contained in:
dap 2024-10-18 15:55:53 +08:00
parent 9cdc2780b3
commit 280af21ffe

View File

@ -1,41 +1,9 @@
import type { VxeGridProps } from '#/adapter/vxe-table'; import type { VxeGridProps } from '#/adapter/vxe-table';
import { reactive } from 'vue';
import { getPopupContainer } from '@vben/utils';
import { type FormSchemaGetter } from '#/adapter/form'; import { type FormSchemaGetter } from '#/adapter/form';
import { dictOptionSelectList } from '#/api/system/dict/dict-type';
import { renderDictTag } from '#/utils/render'; import { renderDictTag } from '#/utils/render';
/**
* updateSchema无法赋值
* TODO: 使用updateSchema重构
*/
const dictTypeOptions = reactive<{ label: string; value: string }[]>([]);
(async () => {
const resp = await dictOptionSelectList();
const options = resp.map((item) => ({
label: item.dictName,
value: item.dictType,
}));
dictTypeOptions.push(...options);
})();
export const querySchema: FormSchemaGetter = () => [ export const querySchema: FormSchemaGetter = () => [
{
component: 'Select',
dependencies: {
show: () => false,
triggerFields: [''],
},
componentProps: {
getPopupContainer,
options: dictTypeOptions,
},
fieldName: 'dictType',
label: '字典类型',
},
{ {
component: 'Input', component: 'Input',
fieldName: 'dictLabel', fieldName: 'dictLabel',