Merge remote-tracking branch 'yudao/dev' into dev-new

pull/102/head
puhui999 2025-05-13 09:58:55 +08:00
commit 96f5108ded
18 changed files with 24 additions and 1 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -25,6 +25,7 @@ const goToUrl = () => {
<template> <template>
<NAlert v-if="isDocAlertEnable()" type="info" show-icon class="mb-2 rounded"> <NAlert v-if="isDocAlertEnable()" type="info" show-icon class="mb-2 rounded">
<!-- TODO @xingyu这里不太对展示不出来字 -->
<template #message> <template #message>
<NText @click="goToUrl"> {{ title }}{{ url }} </NText> <NText @click="goToUrl"> {{ title }}{{ url }} </NText>
</template> </template>

View File

@ -1,4 +1,5 @@
<script lang="ts" setup> <script lang="ts" setup>
// TODO @xingyu
import type { UploadFile, UploadProps } from 'naive-ui'; import type { UploadFile, UploadProps } from 'naive-ui';
import type { UploadRequestOption } from 'naive-ui/lib/vc-upload/interface'; import type { UploadRequestOption } from 'naive-ui/lib/vc-upload/interface';

View File

@ -1,5 +1,6 @@
<!-- eslint-disable no-useless-escape --> <!-- eslint-disable no-useless-escape -->
<script setup lang="ts"> <script setup lang="ts">
// TODO @xingyu
import { onMounted, ref, unref } from 'vue'; import { onMounted, ref, unref } from 'vue';
import { Page, useVbenModal } from '@vben/common-ui'; import { Page, useVbenModal } from '@vben/common-ui';

View File

@ -1,4 +1,5 @@
<script lang="ts" setup> <script lang="ts" setup>
// TODO @xingyu
import type { import type {
OnActionClickParams, OnActionClickParams,
VxeTableGridOptions, VxeTableGridOptions,

View File

@ -1,4 +1,5 @@
<script lang="ts" setup> <script lang="ts" setup>
// TODO @xingyu
import type { UploadFileInfo } from 'naive-ui'; import type { UploadFileInfo } from 'naive-ui';
import { useVbenModal } from '@vben/common-ui'; import { useVbenModal } from '@vben/common-ui';

View File

@ -1,4 +1,5 @@
<script lang="ts" setup> <script lang="ts" setup>
// TODO @xingyu
import type { SystemUserApi } from '#/api/system/user'; import type { SystemUserApi } from '#/api/system/user';
import { computed, onMounted, ref, watchEffect } from 'vue'; import { computed, onMounted, ref, watchEffect } from 'vue';

View File

@ -37,6 +37,7 @@ export function useFormSchema(): VbenFormSchema[] {
}, },
rules: 'required', rules: 'required',
}, },
// TODO @xingyu测试有问题
{ {
fieldName: 'content', fieldName: 'content',
label: '公告内容', label: '公告内容',
@ -54,6 +55,7 @@ export function useFormSchema(): VbenFormSchema[] {
}, },
rules: z.number().default(CommonStatusEnum.ENABLE), rules: z.number().default(CommonStatusEnum.ENABLE),
}, },
// TODO @xingyu测试有问题
{ {
fieldName: 'remark', fieldName: 'remark',
label: '备注', label: '备注',

View File

@ -1,4 +1,5 @@
<script lang="ts" setup> <script lang="ts" setup>
// TODO @xingyu
import type { SystemNotifyMessageApi } from '#/api/system/notify/message'; import type { SystemNotifyMessageApi } from '#/api/system/notify/message';
import { ref } from 'vue'; import { ref } from 'vue';

View File

@ -37,6 +37,7 @@ export function useFormSchema(): VbenFormSchema[] {
label: '租户套餐', label: '租户套餐',
component: 'ApiSelect', component: 'ApiSelect',
componentProps: { componentProps: {
// TODO @xingyu系统租户的情况
api: () => getTenantPackageList(), api: () => getTenantPackageList(),
labelField: 'name', labelField: 'name',
valueField: 'id', valueField: 'id',
@ -149,6 +150,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
options: getDictOptions(DICT_TYPE.COMMON_STATUS, 'number'), options: getDictOptions(DICT_TYPE.COMMON_STATUS, 'number'),
}, },
}, },
// TODO @xingyu时间检索有问题
{ {
fieldName: 'createTime', fieldName: 'createTime',
label: '创建时间', label: '创建时间',

View File

@ -333,10 +333,12 @@ export function useGridColumns<T = SystemUserApi.User>(
code: 'edit', code: 'edit',
show: hasAccessByCodes(['system:user:update']), show: hasAccessByCodes(['system:user:update']),
}, },
// TODO @xingyu删除一直弹出来
{ {
code: 'delete', code: 'delete',
show: hasAccessByCodes(['system:user:delete']), show: hasAccessByCodes(['system:user:delete']),
}, },
// TODO @xingyu后面的按钮无法展示
{ {
code: 'assign-role', code: 'assign-role',
text: '分配角色', text: '分配角色',

View File

@ -49,6 +49,7 @@ onMounted(async () => {
loading.value = false; loading.value = false;
} }
}); });
// TODO @xingyu
</script> </script>
<template> <template>