review:【ep 全局】实现

pull/101/head
YunaiV 2025-05-12 19:31:49 +08:00
parent 0eb8a683c9
commit 47716d6264
7 changed files with 10 additions and 1 deletions

View File

@ -1,4 +1,5 @@
<script lang="ts" setup>
// TODO @
import type { Key } from 'ant-design-vue/es/table/interface';
import type { SystemDeptApi } from '#/api/system/dept';

View File

@ -1,4 +1,5 @@
<script lang="ts" setup>
// TODO @xingyu 3 layouts components
import { useVbenModal, VbenButton, VbenButtonGroup } from '@vben/common-ui';
import { openWindow } from '@vben/utils';

View File

@ -24,6 +24,7 @@ const tenantEnable = isTenantEnable();
const value = ref<number>(accessStore.visitTenantId ?? undefined); // 访 ID
const tenants = ref<SystemTenantApi.Tenant[]>([]); //
// TODO @xingyu 3
async function handleChange(id: SelectValue) {
// 访 ID
accessStore.setVisitTenantId(id as number);

View File

@ -2,6 +2,7 @@ import type { Recordable } from '@vben/types';
import { h } from 'vue';
// TODO @puhui999搜索的重置按钮颜色不对antd 是白色的
import { IconifyIcon } from '@vben/icons';
import { $te } from '@vben/locales';
import {
@ -18,6 +19,7 @@ import { $t } from '#/locales';
import { useVbenForm } from './form';
// TODO @puhui999貌似新增、和导出按钮和 antd 有点点差别,这个是要写样式哇?
setupVbenVxeTable({
configVxeTable: (vxeUI) => {
vxeUI.setConfig({
@ -160,6 +162,8 @@ setupVbenVxeTable({
text: $t('common.edit'),
},
};
// TODO @puhui999貌似按钮相比 antd 版本,小一点?
// TODO @puhui999貌似按钮之间的间距大了一点
const operations: Array<Recordable<any>> = (
options || ['edit', 'delete']
)

View File

@ -23,6 +23,7 @@ const goToUrl = () => {
};
</script>
<!-- TODO @puhui999样式有点问题间隔没了可以看下 antd 版本的例子哈 -->
<template>
<ElAlert
v-if="isDocAlertEnable()"

View File

@ -13,7 +13,7 @@ interface DictState {
dictCache: Dict;
}
// TODO @芋艿:可以共享么?
// TODO @xingyu@芋艿:可以共享么?
export const useDictStore = defineStore('dict', {
actions: {
getDictData(dictType: string, value: any) {

View File

@ -149,6 +149,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
options: getDictOptions(DICT_TYPE.COMMON_STATUS, 'number'),
},
},
// TODO @puhui999貌似创建时间出不来
{
fieldName: 'createTime',
label: '创建时间',