Pārlūkot izejas kodu

feat: 在文档出卷板块添加出卷按钮

zhupei 1 gadu atpakaļ
vecāks
revīzija
f57a996934

BIN
src/assets/question/test.png


+ 4 - 3
src/components/btn-iframe-chujuan/BtnIframeChujuan.vue

@@ -1,11 +1,11 @@
 <template>
   <a-button @click="handleClick" class="comfyui-btn">
-    <img class="comfyui-logo-img" :src="logo" /> ComfyUI
+    <img class="comfyui-logo-img" :src="logo" /> 出卷
   </a-button>
 
   <a-modal v-model:visible="visible" @ok="handleOk" @cancel="handleCancel" modal-class="comfyui-container-modal" body-class="comfyui-container-body" width="90%">
     <template #title>
-      <img class="comfyui-logo-img" :src="logo" /> ComfyUI
+      <img class="comfyui-logo-img" :src="logo" /> 出卷
     </template>
     
     <iframe :src="iframe_src" class="comfyui-iframe"></iframe>
@@ -14,7 +14,8 @@
 
 <script setup>
 import { ref } from 'vue';
-import logo from '../../assets/images/comfyui-logo.png'
+
+import logo from '../../assets/question/1.png'
 
 const iframe_src = 'http://192.168.20.119:8501';
 

+ 5 - 1
src/views/Home.vue

@@ -67,6 +67,7 @@
             </section>
 
             <footer v-if="navId !== -2 && navId !== 0 && navId !== 3 && navId !== 6 && !historyMode">
+              <BtnIframeChujuan v-if="navId==7"/>
               <message-input :readonly="readonly" eventName="open-dialog" />
             </footer>
 
@@ -186,6 +187,8 @@ import Analysis from "./Analysis.vue";
 
 import ToggleBtn from '../components/ToggleBtn.vue';
 
+import BtnIframeChujuan from '../components/btn-iframe-chujuan/BtnIframeChujuan.vue'
+
 import { defineComponent, ref, onMounted, inject, onBeforeUnmount } from "vue";
 
 export default defineComponent({
@@ -209,7 +212,8 @@ export default defineComponent({
     DocumentDetail,
     DocumentCombine,
 
-    ToggleBtn
+    ToggleBtn,
+    BtnIframeChujuan // 文档出卷按钮
   },
   setup() {
     // NOTE: 先把4文库问答的类型改成report类型,后续再改回来