review:【EP】【BPM 工作流】infra 相关功能的实现

This commit is contained in:
YunaiV
2025-05-14 23:34:32 +08:00
parent b6c54cbb66
commit 6fd1b18c31
12 changed files with 14 additions and 2 deletions

View File

@@ -1,4 +1,5 @@
<script lang="ts" setup>
// TODO @puhui999下拉选择的宽度不对哈
import type { SystemTenantApi } from '#/api/system/tenant';
import { onMounted, ref } from 'vue';

View File

@@ -20,6 +20,7 @@ const emit = defineEmits<{
(e: 'success'): void;
}>();
// TODO @puhui999展示貌似不太对应该是左右不是上下哈
const [Form, formApi] = useVbenForm({
commonConfig: {
labelWidth: 70,

View File

@@ -25,6 +25,7 @@ const avatar = computed(
() => props.profile?.avatar || preferences.app.defaultAvatar,
);
// TODO @puhui999头像上传没跑通
async function handelUpload({
file,
filename,

View File

@@ -172,6 +172,7 @@ onMounted(() => {
>
<ElCard v-for="item in allBindList" :key="item.type" class="!mb-2">
<div class="flex w-full items-center gap-4">
<!-- TODO @puhui999图片大小不太对 -->
<ElImage
:src="item.img"
:width="40"

View File

@@ -43,6 +43,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
fieldName: 'beginTime',
label: '请求时间',
component: 'RangePicker',
// TODO @puhui999时间范围不太对。结束时间不是 23:59:59 这种哈
componentProps: {
...getRangePickerDefaultProps(),
allowClear: true,

View File

@@ -35,6 +35,7 @@ const [Modal, modalApi] = useVbenModal({
</script>
<template>
<!-- TODO @puhui999这个后续会做类似 antd description 组件么 -->
<Modal
title="API 访问日志详情"
class="w-1/2"

View File

@@ -24,6 +24,7 @@ const [Modal, modalApi] = useVbenModal();
const designer = ref(); // 表单设计器
// 表单设计器配置
// TODO @puhui999表单选择器版本号从 package.json 拿到全局哈
const designerConfig = ref({
switchType: [], // 是否可以切换组件类型,或者可以相互切换的字段
autoActive: true, // 是否自动选中拖入的组件

View File

@@ -135,6 +135,7 @@ getDetail();
</ElSteps>
<div class="flex-1 overflow-auto py-4">
<!-- TODO @puhui999顶部的导航应该可以点击哈 -->
<!-- 根据当前步骤显示对应的组件 -->
<BasicInfo
v-show="currentStep === 0"

View File

@@ -52,6 +52,7 @@ async function onDelete(row: InfraConfigApi.Config) {
});
try {
await deleteConfig(row.id as number);
// TODO @puhui999close 是不是放在 finally 里面更好?
loadingInstance.close();
ElMessage.success($t('ui.actionMessage.deleteSuccess', [row.name]));
onRefresh();

View File

@@ -37,11 +37,11 @@ onMounted(() => {
<DocAlert title="本地缓存" url="https://doc.iocoder.cn/local-cache/" />
</template>
<ElCard class="mt-5" header="Redis 概览">
<ElCard header="Redis 概览">
<Info :redis-data="redisData" />
</ElCard>
<div class="mt-5 grid grid-cols-1 gap-4 md:grid-cols-2">
<div class="mt-4 grid grid-cols-1 gap-4 md:grid-cols-2">
<ElCard header="内存使用">
<Memory :redis-data="redisData" />
</ElCard>

View File

@@ -228,6 +228,7 @@ onMounted(async () => {
placeholder="请选择接收人"
:disabled="!getIsOpen"
>
<!-- TODO @puhui999所有人选择不上 -->
<ElOption key="" value="" label="所有人">
<div class="flex items-center">
<ElAvatar size="small"></ElAvatar>