Преглед изворни кода

[Feat 0000] AI对话助手新增二维通风系统定位查看功能

hongrunxia пре 1 дан
родитељ
комит
dfa23d2710

+ 4 - 4
src/App.vue

@@ -71,28 +71,28 @@
     overflow: hidden;
   }
   @font-face {
-    font-family: 'douyuFont';
+    font-family: douyuFont;
     src: url('/@/assets/font/douyuFont.otf');
     font-weight: normal;
     font-style: normal;
     font-display: swap; // [perf-base-v1] 字体加载期间先用系统字体渲染,避免不可见文本阻塞
   }
   @font-face {
-    font-family: 'numberFont';
+    font-family: numberFont;
     src: url('/@/assets/font/yjsz.TTF');
     font-weight: normal;
     font-style: normal;
     font-display: swap; // [perf-base-v1] 字体加载期间先用系统字体渲染,避免不可见文本阻塞
   }
   @font-face {
-    font-family: 'electronicFont';
+    font-family: electronicFont;
     src: url('/@/assets/font/DS-DIGIT.TTF');
     font-weight: normal;
     font-style: normal;
     font-display: swap; // [perf-base-v1] 字体加载期间先用系统字体渲染,避免不可见文本阻塞
   }
   @font-face {
-    font-family: 'ysbtFont';
+    font-family: ysbtFont;
     src: url('/@/assets/font/ysbtFont.ttf');
     font-weight: normal;
     font-style: normal;

+ 24 - 12
src/views/ventAI/manageAssistent/components/AiAssistantModal.vue

@@ -127,7 +127,7 @@
 
         <!-- 右侧辅助面板(标签页容器,与 chat-panel 并列,带滑入滑出动画) -->
         <Transition name="right-panel-slide" @after-leave="onPanelLeaveEnd">
-          <RightPanelTabs
+          <!-- <RightPanelTabs
             v-if="currentRightPanels.tabs.length > 0"
             :tabs="currentRightPanels.tabs"
             :activeTabId="currentRightPanels.activeTabId"
@@ -139,6 +139,18 @@
             @schedule-updated="handleScheduleUpdated"
             @open-schedule-session="handleOpenScheduleSession"
             @open-markdown-tab="openMarkdownPreviewTab"
+          /> -->
+          <RightPanelTabs
+            :tabs="currentRightPanels.tabs"
+            :activeTabId="currentRightPanels.activeTabId"
+            :messages="messages"
+            @switch-tab="activateTab"
+            @close-tab="closeTab"
+            @save-success="handleSaveSuccess"
+            @schedule-deleted="handleScheduleDeleted"
+            @schedule-updated="handleScheduleUpdated"
+            @open-schedule-session="handleOpenScheduleSession"
+            @open-markdown-tab="openMarkdownPreviewTab"
           />
         </Transition>
       </template>
@@ -885,15 +897,15 @@
     top: 16px;
     left: 24px;
     z-index: 10;
-    width: 32px;
-    height: 32px;
-    background: #1a6696;
-    border-radius: 4px;
     display: flex;
     align-items: center;
     justify-content: center;
+    width: 32px;
+    height: 32px;
+    background: #1a6696;
     cursor: pointer;
     transition: background 0.3s;
+    border-radius: 4px;
 
     &:hover {
       background: #1f7ab8;
@@ -929,34 +941,34 @@
   }
 
   .chat-panel {
-    flex: 1;
-    display: flex;
     position: relative;
+    display: flex;
+    flex: 1;
     flex-direction: column;
+    overflow: hidden;
     background-image: var(--img-chat-panel-bg);
     background-repeat: no-repeat;
     background-size: 100% 100%;
     border-radius: 4px;
-    overflow: hidden;
     min-width: 0;
   }
 
   .right-panel {
-    width: calc(50% - 140px);
-    height: 100%;
     display: flex;
     flex-direction: column;
+    width: calc(50% - 140px);
+    height: 100%;
     background-image: var(--img-chat-panel-bg);
     background-repeat: no-repeat;
     background-size: 100% 100%;
     border-radius: 4px;
+    flex-shrink: 0;
 
     &.full {
       flex: 1;
       width: auto;
       min-width: 0;
     }
-    flex-shrink: 0;
   }
 
   /* 右侧面板滑入滑出过渡动画 */
@@ -1001,5 +1013,5 @@
 </style>
 
 <style lang="less">
-  @import '../styles/modal.less';
+  @import url('../styles/modal.less');
 </style>

+ 2 - 0
src/views/ventAI/manageAssistent/components/panels/RightPanelTabs.vue

@@ -73,6 +73,7 @@
         @updated="emit('schedule-updated')"
         @open-session="handleOpenSession"
       />
+      <ModalPreview />
     </div>
   </div>
 </template>
@@ -81,6 +82,7 @@
   import { computed, nextTick, ref } from 'vue';
   import { onClickOutside, useResizeObserver } from '@vueuse/core';
   import FilePreviewPanel from '/@/views/ventAI/manageAssistent/components/resource/FilePreviewPanel.vue';
+  import ModalPreview from '/@/views/ventAI/manageAssistent/components/resource/ModalPreview.vue';
   import AgentDetailPanel from './AgentDetailPanel.vue';
   import ScheduleDetailPanel from './ScheduleDetailPanel.vue';
   import { getFileIconVar } from '/@/views/ventAI/manageAssistent/lib/index';