review:【naive 全局】实现
parent
47716d6264
commit
d5321bc34a
|
@ -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>
|
||||||
|
|
|
@ -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';
|
||||||
|
|
||||||
|
|
|
@ -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';
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
|
// TODO @xingyu:跑不通
|
||||||
import type {
|
import type {
|
||||||
OnActionClickParams,
|
OnActionClickParams,
|
||||||
VxeTableGridOptions,
|
VxeTableGridOptions,
|
||||||
|
|
|
@ -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';
|
||||||
|
|
|
@ -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';
|
||||||
|
|
|
@ -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: '备注',
|
||||||
|
|
|
@ -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';
|
||||||
|
|
|
@ -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: '创建时间',
|
||||||
|
|
|
@ -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: '分配角色',
|
||||||
|
|
|
@ -49,6 +49,7 @@ onMounted(async () => {
|
||||||
loading.value = false;
|
loading.value = false;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
// TODO @xingyu:数据没展示
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
|
Loading…
Reference in New Issue