feat(web): 对齐和信后台页壳并落地工业 UI 评审与 Skills 盘点

统一控制台列表/表单页壳与 Hexin 样式,补充 industrial-ui-review、管理员评审证据,以及 Skills 资产盘点与 test-strategy 消歧。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
unknownandCursor committed 2026-11-19 17:44:26 +08:00
1 parent 48d1735c17
commit c7a23837f4
74 files changed
+3839 -601

No files matched your search

+9 -13
View File
@@ -24,6 +24,7 @@ import {
type FormInstance,
type FormRules,
} from "element-plus";
import FormPageShell from "../shared/components/FormPageShell.vue";
import { useAuthStore } from "../stores/auth";
import {
ALARM_PERMISSION,
@@ -350,8 +351,7 @@ onMounted(() => {
</script>
<template>
<div class="flex h-full min-h-0 flex-col" data-testid="alarm-detail">
<div class="min-h-0 flex-1 overflow-y-auto p-5" data-testid="alarm-scroll">
<FormPageShell test-id="alarm-detail" body-test-id="alarm-scroll" footer-test-id="alarm-footer">
<p v-if="phase === 'loading'" data-testid="alarm-detail-loading">{{ t("alarm.detail.loading") }}</p>
<ElAlert
v-else-if="phase === 'missing'"
@@ -390,7 +390,7 @@ onMounted(() => {
:closable="false"
/>
<section class="mb-4 rounded-lg border border-[var(--border-subtle)] bg-white px-[18px] py-4" data-testid="alarm-summary">
<section class="wm-form-section" data-testid="alarm-summary">
<h3 class="mb-3 text-[14.5px] font-semibold">{{ t("alarm.detail.summary") }}</h3>
<dl class="grid grid-cols-1 gap-x-6 gap-y-3 sm:grid-cols-2">
<div>
@@ -478,7 +478,7 @@ onMounted(() => {
</dl>
</section>
<section class="mb-4 rounded-lg border border-[var(--border-subtle)] bg-white px-[18px] py-4" data-testid="alarm-occurrences">
<section class="wm-form-section" data-testid="alarm-occurrences">
<h3 class="mb-1 text-[14.5px] font-semibold">{{ t("alarm.detail.occurrences") }}</h3>
<p class="mb-2.5 text-[var(--text-muted)]">{{ t("alarm.detail.occurrencesHint") }}</p>
<ElTable :data="occurrences" row-key="id" :empty-text="t('alarm.detail.occurrencesEmpty')">
@@ -493,7 +493,7 @@ onMounted(() => {
</ElTable>
</section>
<section class="mb-4 rounded-lg border border-[var(--border-subtle)] bg-white px-[18px] py-4" data-testid="alarm-evidence">
<section class="wm-form-section" data-testid="alarm-evidence">
<h3 class="mb-3 text-[14.5px] font-semibold">{{ t("alarm.detail.evidence") }}</h3>
<h4 class="mb-2 font-semibold">{{ t("alarm.detail.revisionEvidence") }}</h4>
<ElTable
@@ -525,7 +525,7 @@ onMounted(() => {
</ElTable>
</section>
<section class="mb-4 rounded-lg border border-[var(--border-subtle)] bg-white px-[18px] py-4" data-testid="alarm-history">
<section class="wm-form-section" data-testid="alarm-history">
<h3 class="mb-3 text-[14.5px] font-semibold">{{ t("alarm.detail.history") }}</h3>
<ElTable :data="history" row-key="id" :empty-text="t('alarm.detail.historyEmpty')">
<ElTableColumn prop="seq" :label="t('alarm.historyCols.seq')" width="72" />
@@ -554,12 +554,8 @@ onMounted(() => {
</ElTable>
</section>
</template>
</div>
<footer
data-testid="alarm-footer"
class="flex shrink-0 flex-wrap items-center justify-center gap-2 border-t border-[var(--border-subtle)] bg-white px-5 py-3"
>
<template #footer>
<ElButton data-testid="footer-back" :disabled="commandBusy" @click="backToList">
{{ t("alarm.actions.back") }}
</ElButton>
@@ -591,7 +587,8 @@ onMounted(() => {
{{ t("alarm.actions.close") }}
</ElButton>
</template>
</footer>
</template>
</FormPageShell>
<ElDialog
v-model="progressOpen"
@@ -702,5 +699,4 @@ onMounted(() => {
</ElButton>
</template>
</ElDialog>
</div>
</template>