refactor(admin): 六页对齐 bsch/ysch 应用页规范(09-18 升级补入库,与 flow-center 同批次)
build / build (push) Successful in 1m58s

- types/index.ts 补 OperatorEnum(此前 import 悬空,接入 TablePage* 即构建失败)
- TablePageAlovaNew 对齐 flow-center 版:页长记忆 localStorage.customPageCount
  + 重载清空勾选 + watch(tableHeight) 跟随页面侧 ResizeObserver 重算
- ServiceItemList/ApplyManage:三段式骨架 + search-wrap(下拉+关键字 200px
  即输即搜)+ TablePageAlovaNew + Utils.operatingHandle 图标操作列(编辑/发布
  icon-fasong/下架 icon-stop/删除/详情 icon-browse)+ MyConfirm + 增删后智能翻页
- ServiceDictManage:tabs-wrapper + card Tabs 双容器 v-show + 定高 + 弹窗校验
  统一文案「请填写红色星号内容!」
- ServiceFormManage:无分页定高 + 前端过滤 + 按状态条件图标
- ServiceItemEdit:page-wrapper 根容器 + 必填红星
- 状态 Tag 色常量迁 api 层(APPLY_STATUS_COLOR/ITEM_STATUS_COLOR)
- dataApi 返回 alova Method 不调 .send();分页 formatResponse 适配 {total,list}
- vite build 通过(27s)
This commit is contained in:
chenxing
2026-09-20 02:50:36 +08:00
parent c2023755ac
commit 18ddb17374
8 changed files with 580 additions and 479 deletions
+20
View File
@@ -29,6 +29,26 @@ const APPLY = "/api/apply";
const FILE = "/api/file";
/** 办件流程状态(文案与 Tag 色和用户面 hall 同口径) */
export const APPLY_STATUS: Record<number, string> = {
0: "待提交",
10: "审批中",
20: "已完成",
30: "已拒绝",
40: "已撤回",
};
export const APPLY_STATUS_COLOR: Record<number, string> = {
0: "default",
10: "primary",
20: "success",
30: "error",
40: "warning",
};
/** 事项发布状态(0 草稿 / 1 已发布 / 2 已下架) */
export const ITEM_STATUS: Record<number, string> = { 0: "草稿", 1: "已发布", 2: "已下架" };
export const ITEM_STATUS_COLOR: Record<number, string> = { 0: "default", 1: "success", 2: "warning" };
/** GET 请求 */
function get<T = any>(url: string, params?: Record<string, any>): Method<T> {
return new Method<T>("GET", alovaInstance, url, { params });