工单详情修改

This commit is contained in:
2025-12-25 16:55:46 +08:00
parent 062c5a8488
commit e39dc03f92
6 changed files with 170 additions and 141 deletions

View File

@@ -4,11 +4,6 @@
import {loadShare} from "@module-federation/runtime";
const importMap = {
"axios": async () => {
let pkg = await import("__mf__virtual/workcase__prebuild__axios__prebuild__.js");
return pkg;
}
,
"element-plus": async () => {
let pkg = await import("__mf__virtual/workcase__prebuild__element_mf_2_plus__prebuild__.js");
return pkg;
@@ -27,36 +22,6 @@
}
const usedShared = {
"axios": {
name: "axios",
version: "1.13.2",
scope: ["default"],
loaded: false,
from: "workcase",
async get () {
if (false) {
throw new Error(`Shared module '${"axios"}' must be provided by host`);
}
usedShared["axios"].loaded = true
const {"axios": pkgDynamicImport} = importMap
const res = await pkgDynamicImport()
const exportModule = {...res}
// All npm packages pre-built by vite will be converted to esm
Object.defineProperty(exportModule, "__esModule", {
value: true,
enumerable: false
})
return function () {
return exportModule
}
},
shareConfig: {
singleton: false,
requiredVersion: "^1.13.2",
}
}
,
"element-plus": {
name: "element-plus",
version: "2.12.0",

View File

@@ -81,26 +81,50 @@ declare module 'shared/api/ai' {
// ============ types模块 ==================
declare module 'shared/types' {
export type { BaseDTO, BaseVO } from '../../../shared/src/types/base'
// 基础类型
export interface OrderField {
field: string
order: 'ASC' | 'DESC'
}
export interface BaseDTO {
optsn?: string
creator?: string
updater?: string
deptPath?: string
remark?: string
createTime?: string
updateTime?: string
deleteTime?: string
deleted?: boolean
limit?: number
startTime?: string
endTime?: string
orderFields?: OrderField[]
}
export interface BaseVO extends BaseDTO {
id?: string
}
// 重新导出 response
export type { ResultDomain } from '../../../shared/src/types/response'
// 重新导出 page
export type { PageDomain, PageParam, PageRequest } from '../../../shared/src/types/page'
// 重新导出 auth
export type { LoginParam, LoginDomain } from '../../../shared/src/types/auth'
// 重新导出 sys
export type { SysUserVO, SysConfigVO, TbSysViewDTO } from '../../../shared/src/types/sys'
// 重新导出 file
export type { TbSysFileDTO } from '../../../shared/src/types/file'
// 重新导出 ai
export type {
TbKnowledge,
export type {
TbKnowledge,
TbKnowledgeFile,
TbAgent,
PromptCard,
@@ -118,7 +142,7 @@ declare module 'shared/types' {
SSECallbacks,
SSETask
} from '../../../shared/src/types/ai'
// 重新导出 menu
export type { MenuItem, toMenuItem, toMenuItems } from '../../../shared/src/types/menu'
}