Explorar o código

用户令: 页签去掉「架构与资料(系统架构)」「门户」; 「数据重算」并入「系统维护」区块; 页头删掉模式按钮(工作台/契约自检/关于本前端, 它与页签栏同名 nav.tabs 造成布局乱) => 页签 14→11

zhouyang.xie hai 6 días
pai
achega
9e8f6695e0

+ 0 - 5
app_frontEnd/web/src/App.vue

@@ -109,11 +109,6 @@ onMounted(() => {
         <button type="button" @click="applyRange">{{ t('win.apply') }}</button>
       </span>
     </div>
-    <nav class="tabs">
-      <button :class="{ on: mode === 'workbench' }" @click="go('workbench')">工作台</button>
-      <button :class="{ on: mode === 'smoke' }" @click="go('smoke')">契约自检</button>
-      <button :class="{ on: mode === 'about' }" @click="go('about')">关于本前端</button>
-    </nav>
   </header>
   <nav class="tabs" id="tabs">
     <button v-for="id in TABS" :key="id" :class="{ on: id === tab }" @click="tab = id">

+ 3 - 2
app_frontEnd/web/src/lib/tabs.ts

@@ -1,10 +1,11 @@
 /** 工作台页签清单 —— 与重构前 `app.js:73` 的 `TABS` **逐字一致**(10 个:含 `system`;
  *  对拍脚本会把页签文案两边比一遍,少一个就报错)。 */
 export const TABS = ['overview', 'energy', 'component', 'vibration', 'generation', 'fault',
-  'decision', 'assistant', 'report', 'system', 'documents', 'recalc', 'portal_sec', 'portal_src'] as const
+  'decision', 'assistant', 'report', 'system', 'documents'] as const
 
 /** 已经迁移到 Vue 的页签(未列入的页签在界面上如实标"迁移中")。 */
-export const DONE: readonly string[] = ['overview', 'energy', 'component', 'fault', 'vibration', 'generation', 'decision', 'assistant', 'system', 'report', 'documents', 'recalc', 'portal_sec', 'portal_src']
+export const DONE: readonly string[] = ['overview', 'energy', 'component', 'fault', 'vibration',
+  'generation', 'decision', 'assistant', 'system', 'report', 'documents']
 
 /** 迁移中(已实现但**未通过对拍**,界面标"迁移中"):fault —— 对拍当前报 133≠103 文本、图数字子集不满足;修完再列入 DONE。 */
 export const IN_PROGRESS: readonly string[] = ['fault']

+ 4 - 1
app_frontEnd/web/src/views/System.vue

@@ -6,6 +6,7 @@
  * 三种分支:未取到("正在巡检…")· 出错 · 两层表(数据 / 机理)。
  */
 import { computed } from 'vue'
+import Recalc from './Recalc.vue'
 import { t } from '../i18n/zh'
 import { fmt } from '../lib/render'
 import { dv, esc } from '../lib/vib'
@@ -64,5 +65,7 @@ const groups = computed(() => LAYERS
         </div>
       </div>
     </template>
-  </section>
+    <div class="eyebrow" style="margin-top:18px">{{ t('tab.recalc') }}</div>
+  <Recalc />
+</section>
 </template>

+ 0 - 6
app_frontEnd/web/src/views/Workbench.vue

@@ -9,9 +9,6 @@ import { computed, ref, watch } from 'vue'
 import { t } from '../i18n/zh'
 import { DONE, TABS } from '../lib/tabs'
 import Documents from './Documents.vue'
-import Recalc from './Recalc.vue'
-import Portal from './Portal.vue'
-import PortalSections from './PortalSections.vue'
 import PortalView from './PortalView.vue'
 import { winName } from '../lib/render'
 import Component from './Component.vue'
@@ -61,9 +58,6 @@ const pending = computed(() => !DONE.includes(props.tab))
   <System v-else-if="tab === 'system'" :apis="apis" />
   <Report v-else-if="tab === 'report'" :d="d" :apis="apis" />
   <Documents v-else-if="tab === 'documents'" />
-  <Recalc v-else-if="tab === 'recalc'" />
-  <Portal v-else-if="tab === 'portal'" />
-  <PortalSections v-else-if="tab === 'portal_sec'" />
   <PortalView v-else-if="tab === 'portal_src'" />
   <section v-else-if="pending" class="card">
     <h2>{{ t('tab.' + tab) }} <small>(本页签尚未迁移到 Vue)</small></h2>

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 4 - 0
release/web/assets/index-D7OjdfQ9.js


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 0
release/web/assets/index-DFl-J_Hd.css


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 4
release/web/assets/index-TecZ2KYe.js


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 0
release/web/assets/index-r8YOhGfl.css


+ 2 - 2
release/web/index.html

@@ -4,8 +4,8 @@
   <meta charset="utf-8" />
   <meta name="viewport" content="width=device-width, initial-scale=1" />
   <title>观澜 · 风电数据分析与决策支持</title>
-  <script type="module" crossorigin src="/web/assets/index-TecZ2KYe.js"></script>
-  <link rel="stylesheet" crossorigin href="/web/assets/index-r8YOhGfl.css">
+  <script type="module" crossorigin src="/web/assets/index-D7OjdfQ9.js"></script>
+  <link rel="stylesheet" crossorigin href="/web/assets/index-DFl-J_Hd.css">
 </head>
 <body>
   <div id="app"></div>

Algúns arquivos non se mostraron porque demasiados arquivos cambiaron neste cambio