fix(ui): 用户验收反馈 R2——单卡片骨架+实测高度对齐 Notice、应用管理启用/停用、Tag 真组件、科室行 deptKey、成员多选、顶栏去房子图标钮
build / build (push) Successful in 4m4s

This commit is contained in:
chenxing
2026-10-10 22:42:58 +08:00
parent affb1bdeb7
commit a998e455d2
11 changed files with 257 additions and 273 deletions
+19 -7
View File
@@ -3,15 +3,17 @@
// CONDITION 节点的 routerKey 必须命中启用中的注册(发布校验口径);basePath 是对端 context-path,
// 漏填必 401(规范 §4.2 同款坑)——生产 notice 为 /notice,本地为空。
import { ref, onMounted } from "vue";
import { Message } from "view-ui-plus";
import { Message, Tag } from "view-ui-plus";
import MyConfirm from "@/components/MyConfirm";
import { flowApi } from "@/api/module/flow";
import { actionColumn } from "@/utils/tableActions";
import Utils from "@/utils";
import { useElementHeight } from "@/utils/hook/useElementHeight";
const loading = ref(false);
const rows = ref<any[]>([]);
const tableHeight = ref(Utils.useTableHeight({ isSearch: true, isOperat: true }));
// 无搜索分页脚:表格高度实测 .table-region(flex:1)
const routerRegionRef = ref<HTMLElement | null>(null);
const routersH = useElementHeight(routerRegionRef);
const columns = [
{ title: "序号", type: "index", width: 70, align: "center" },
@@ -29,7 +31,7 @@ const columns = [
width: 90,
align: "center",
render: (h: any, p: any) =>
h("Tag", { color: p.row.status === 1 ? "green" : "gray" }, () => (p.row.status === 1 ? "启用" : "停用")),
h(Tag, { color: p.row.status === 1 ? "green" : "gray" }, () => (p.row.status === 1 ? "启用" : "停用")),
},
actionColumn(
[
@@ -160,7 +162,7 @@ onMounted(load);
</script>
<template>
<div class="page-wrapper">
<div class="page-wrapper yh-fill">
<div class="main-container">
<div class="fix mb-12">
<Button class="fl" type="primary" size="large" @click="onAdd">新增注册</Button>
@@ -174,8 +176,10 @@ onMounted(load);
</span>
</div>
<Table :columns="columns" :data="rows" :loading="loading" class="link-table table-bottom-box"
:height="tableHeight" no-data-text="暂无数据" />
<div class="table-region" ref="routerRegionRef">
<Table :columns="columns" :data="rows" :loading="loading" class="link-table table-bottom-box"
:height="routersH || undefined" no-data-text="暂无数据" />
</div>
<Modal v-model="saveVisible" title="新增/编辑判断服务" :mask-closable="false">
<Form ref="formRef" :model="form" :rules="saveRules" :label-width="100">
@@ -235,3 +239,11 @@ onMounted(load);
</div>
</div>
</template>
<style scoped>
/* 无分页脚:通道只对含 .page-panel 的卡片自动转纵向分栏,本页自声明保证 table-region 撑满 */
.main-container {
display: flex;
flex-direction: column;
}
</style>