Kaynağa Gözat

fix:提交

张涛 1 yıl önce
ebeveyn
işleme
5b62fd607c

+ 1 - 1
dist/assets/Agent-4f0a337a.js → dist/assets/Agent-7bcca5c0.js

@@ -1 +1 @@
-import{a4 as t}from"./index-b19ec911.js";function s(a){return t.get("/api/v1/canvas/list",{params:a})}function e(){return t.get("/api/v1/llm/distinct",{})}function n(a){return t.get("/api/v1/conversation/app_usage")}function o(a){return t.post("/api/v1/conversation/app_usage/rm",a)}export{n as a,e as b,o as d,s as q};
+import{a4 as t}from"./index-7a27eee0.js";function s(a){return t.get("/api/v1/canvas/list",{params:a})}function e(){return t.get("/api/v1/llm/distinct",{})}function n(a){return t.get("/api/v1/conversation/app_usage")}function o(a){return t.post("/api/v1/conversation/app_usage/rm",a)}export{n as a,e as b,o as d,s as q};

Dosya farkı çok büyük olduğundan ihmal edildi
+ 0 - 0
dist/assets/Knowledge-318c4123.js


+ 1 - 1
dist/assets/Login-906bf1ac.js → dist/assets/Login-86d3e230.js

@@ -1 +1 @@
-import{_ as g}from"./login-bd96354f.js";import{_ as f,m as v,x as i,C as w,D as k,E as n,v as p,B as V,r as a}from"./index-b19ec911.js";const _=v({components:{},props:[],setup(){const{ajax:o,helper:e}=V("$global"),t=a(""),r=a("");return{login:async()=>{const l=await o.user.login(t.value,r.value);l&&(e.write("userName",l.nickname||l.username),e.write("token",l.access_token),e.goLink("/"))},username:t,password:r,goRegister:()=>{e.goLink("register")}}}});function y(o,e,t,r,u,d){const l=i("a-input"),m=i("a-input-password");return w(),k("main",null,[n("section",null,[e[6]||(e[6]=n("header",null,[n("img",{src:g}),n("p",null,"欢迎使用")],-1)),e[7]||(e[7]=n("p",null,"账号登录",-1)),n("section",null,[e[4]||(e[4]=n("p",null,"账号",-1)),n("div",null,[p(l,{placeholder:"请输入手机号",style:{width:"250px",height:"40px"},modelValue:o.username,"onUpdate:modelValue":e[0]||(e[0]=s=>o.username=s)},null,8,["modelValue"])])]),n("section",null,[e[5]||(e[5]=n("p",null,"密码",-1)),n("div",null,[p(m,{placeholder:"请输入手机号",style:{width:"250px",height:"40px"},modelValue:o.password,"onUpdate:modelValue":e[1]||(e[1]=s=>o.password=s)},null,8,["modelValue"])])]),n("section",null,[n("p",{style:{cursor:"pointer"},onClick:e[2]||(e[2]=(...s)=>o.goRegister&&o.goRegister(...s))},"去注册")]),n("div",{onClick:e[3]||(e[3]=(...s)=>o.login&&o.login(...s))},"登录")])])}const $=f(_,[["render",y],["__scopeId","data-v-c8b3e868"]]);export{$ as default};
+import{_ as g}from"./login-bd96354f.js";import{_ as f,m as v,x as i,C as w,D as k,E as n,v as p,B as V,r as a}from"./index-7a27eee0.js";const _=v({components:{},props:[],setup(){const{ajax:o,helper:e}=V("$global"),t=a(""),r=a("");return{login:async()=>{const l=await o.user.login(t.value,r.value);l&&(e.write("userName",l.nickname||l.username),e.write("token",l.access_token),e.goLink("/"))},username:t,password:r,goRegister:()=>{e.goLink("register")}}}});function y(o,e,t,r,u,d){const l=i("a-input"),m=i("a-input-password");return w(),k("main",null,[n("section",null,[e[6]||(e[6]=n("header",null,[n("img",{src:g}),n("p",null,"欢迎使用")],-1)),e[7]||(e[7]=n("p",null,"账号登录",-1)),n("section",null,[e[4]||(e[4]=n("p",null,"账号",-1)),n("div",null,[p(l,{placeholder:"请输入手机号",style:{width:"250px",height:"40px"},modelValue:o.username,"onUpdate:modelValue":e[0]||(e[0]=s=>o.username=s)},null,8,["modelValue"])])]),n("section",null,[e[5]||(e[5]=n("p",null,"密码",-1)),n("div",null,[p(m,{placeholder:"请输入手机号",style:{width:"250px",height:"40px"},modelValue:o.password,"onUpdate:modelValue":e[1]||(e[1]=s=>o.password=s)},null,8,["modelValue"])])]),n("section",null,[n("p",{style:{cursor:"pointer"},onClick:e[2]||(e[2]=(...s)=>o.goRegister&&o.goRegister(...s))},"去注册")]),n("div",{onClick:e[3]||(e[3]=(...s)=>o.login&&o.login(...s))},"登录")])])}const $=f(_,[["render",y],["__scopeId","data-v-c8b3e868"]]);export{$ as default};

+ 1 - 1
dist/assets/Register-8d00692e.js → dist/assets/Register-7cac737e.js

@@ -1 +1 @@
-import{_ as g}from"./login-bd96354f.js";import{_ as f,m as v,x as p,C as w,D as _,E as s,v as a,B as V,r as u}from"./index-b19ec911.js";const y=v({components:{},props:[],setup(){const{ajax:n,helper:e}=V("$global"),l=u(""),t=u("");return{register:async()=>{const r=await n.user.register(l.value,t.value);r&&(e.write("userName",String(r.username)),e.goLink("/login"))},username:l,password:t}}});function b(n,e,l,t,i,r){const d=p("a-input"),m=p("a-input-password");return w(),_("main",null,[s("section",null,[e[5]||(e[5]=s("header",null,[s("img",{src:g}),s("p",null,"欢迎使用")],-1)),e[6]||(e[6]=s("p",null,"账号注册",-1)),s("section",null,[e[3]||(e[3]=s("p",null,"账号",-1)),s("div",null,[a(d,{placeholder:"请输入账号",style:{width:"250px",height:"40px"},modelValue:n.username,"onUpdate:modelValue":e[0]||(e[0]=o=>n.username=o)},null,8,["modelValue"])])]),s("section",null,[e[4]||(e[4]=s("p",null,"密码",-1)),s("div",null,[a(m,{type:"password",placeholder:"请输入密码",style:{width:"250px",height:"40px"},modelValue:n.password,"onUpdate:modelValue":e[1]||(e[1]=o=>n.password=o)},null,8,["modelValue"])])]),s("div",{onClick:e[2]||(e[2]=(...o)=>n.register&&n.register(...o))},"注册")])])}const k=f(y,[["render",b],["__scopeId","data-v-b8d3c93b"]]);export{k as default};
+import{_ as g}from"./login-bd96354f.js";import{_ as f,m as v,x as p,C as w,D as _,E as s,v as a,B as V,r as u}from"./index-7a27eee0.js";const y=v({components:{},props:[],setup(){const{ajax:n,helper:e}=V("$global"),l=u(""),t=u("");return{register:async()=>{const r=await n.user.register(l.value,t.value);r&&(e.write("userName",String(r.username)),e.goLink("/login"))},username:l,password:t}}});function b(n,e,l,t,i,r){const d=p("a-input"),m=p("a-input-password");return w(),_("main",null,[s("section",null,[e[5]||(e[5]=s("header",null,[s("img",{src:g}),s("p",null,"欢迎使用")],-1)),e[6]||(e[6]=s("p",null,"账号注册",-1)),s("section",null,[e[3]||(e[3]=s("p",null,"账号",-1)),s("div",null,[a(d,{placeholder:"请输入账号",style:{width:"250px",height:"40px"},modelValue:n.username,"onUpdate:modelValue":e[0]||(e[0]=o=>n.username=o)},null,8,["modelValue"])])]),s("section",null,[e[4]||(e[4]=s("p",null,"密码",-1)),s("div",null,[a(m,{type:"password",placeholder:"请输入密码",style:{width:"250px",height:"40px"},modelValue:n.password,"onUpdate:modelValue":e[1]||(e[1]=o=>n.password=o)},null,8,["modelValue"])])]),s("div",{onClick:e[2]||(e[2]=(...o)=>n.register&&n.register(...o))},"注册")])])}const k=f(y,[["render",b],["__scopeId","data-v-b8d3c93b"]]);export{k as default};

Dosya farkı çok büyük olduğundan ihmal edildi
+ 0 - 0
dist/assets/authheader.vue_vue_type_script_setup_true_lang-71de666c.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 0 - 0
dist/assets/default-layout-a5b87675.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 0 - 0
dist/assets/index-042d7383.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 0 - 0
dist/assets/index-08520b86.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 0 - 0
dist/assets/index-09a6c77c.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 0 - 0
dist/assets/index-0d28ea3c.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 0 - 0
dist/assets/index-5daef7b2.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 0 - 0
dist/assets/index-6394b798.js


+ 1 - 1
dist/assets/index-d99d5806.js → dist/assets/index-7685ada3.js

@@ -1 +1 @@
-import{m as s,r as n,U as r,ae as o,x as _,C as c,D as i,v as l,E as t,_ as d}from"./index-b19ec911.js";const u={class:"container"},m={class:"iframe-box"},f=["src"],p={name:"Agent"},v=s({...p,setup(h){const e=n("");return r(()=>{e.value=`${o.RAGFlowUrl?o.RAGFlowUrl:window.location.origin}/flow?${localStorage.Authorization}`}),(x,g)=>{const a=_("Breadcrumb");return c(),i("div",u,[l(a,{items:["Agent","配置"]}),t("div",m,[t("iframe",{src:e.value,height:"100%",width:"100%",frameborder:"0"},null,8,f)])])}}});const B=d(v,[["__scopeId","data-v-82ea0634"]]);export{B as default};
+import{m as s,r as n,U as r,ae as o,x as _,C as c,D as i,v as l,E as t,_ as d}from"./index-7a27eee0.js";const u={class:"container"},m={class:"iframe-box"},f=["src"],p={name:"Agent"},v=s({...p,setup(h){const e=n("");return r(()=>{e.value=`${o.RAGFlowUrl?o.RAGFlowUrl:window.location.origin}/flow?${localStorage.Authorization}`}),(x,g)=>{const a=_("Breadcrumb");return c(),i("div",u,[l(a,{items:["Agent","配置"]}),t("div",m,[t("iframe",{src:e.value,height:"100%",width:"100%",frameborder:"0"},null,8,f)])])}}});const B=d(v,[["__scopeId","data-v-82ea0634"]]);export{B as default};

Dosya farkı çok büyük olduğundan ihmal edildi
+ 0 - 0
dist/assets/index-7a27eee0.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 0 - 0
dist/assets/index-7f4edcf4.css


Dosya farkı çok büyük olduğundan ihmal edildi
+ 0 - 0
dist/assets/index-c376b244.js


+ 1 - 1
dist/assets/index-3b08a234.js → dist/assets/index-d3e39cbf.js

@@ -1,4 +1,4 @@
-import{a3 as qk,a4 as Ks,m as Of,r as Zt,a5 as Ta,U as t1,b as _h,V as bg,C as zr,D as Fn,E as or,u as Ti,J as _s,K as lc,L as xa,R as r1,_ as zu,l as Iu,a6 as n1,f as wA,w as i1,x as vn,v as Qr,F as Fr,G as Ya,a7 as Ig,Q as qs,Z as mu,M as ys,n as XI,H as Ma,I as Ca,a8 as X5,N as wh,O as Bh,a9 as Wk,aa as Kk,ab as $5,ac as zk,ad as Vk}from"./index-b19ec911.js";import{a as U5,d as Zk,q as Xk}from"./Agent-4f0a337a.js";import{p as $k}from"./icon-chart-38e5438e.js";import{a as JI}from"./auth-54229761.js";import{a as xB,u as e9}from"./index-a7ff9d84.js";const SB="/assets/icon-user-007bea0f.jpg",Vp="/assets/icon-picture-144a065f.png";var t9=Object.defineProperty,r9=(D,U,K)=>U in D?t9(D,U,{enumerable:!0,configurable:!0,writable:!0,value:K}):D[U]=K,PI=(D,U,K)=>r9(D,typeof U!="symbol"?U+"":U,K);class j5 extends Error{constructor(U,K){super(U),PI(this,"type"),PI(this,"field"),PI(this,"value"),PI(this,"line"),this.name="ParseError",this.type=K.type,this.field=K.field,this.value=K.value,this.line=K.line}}function dB(D){}function n9(D){const{onEvent:U=dB,onError:K=dB,onRetry:ee=dB,onComment:ge}=D;let Ue="",ht=!0,ut,_t="",Jt="";function ar(sr){const Ir=ht?sr.replace(/^\xEF\xBB\xBF/,""):sr,[hn,Oe]=i9(`${Ue}${Ir}`);for(const Et of hn)Tt(Et);Ue=Oe,ht=!1}function Tt(sr){if(sr===""){yr();return}if(sr.startsWith(":")){ge&&ge(sr.slice(sr.startsWith(": ")?2:1));return}const Ir=sr.indexOf(":");if(Ir!==-1){const hn=sr.slice(0,Ir),Oe=sr[Ir+1]===" "?2:1,Et=sr.slice(Ir+Oe);Fe(hn,Et,sr);return}Fe(sr,"",sr)}function Fe(sr,Ir,hn){switch(sr){case"event":Jt=Ir;break;case"data":_t=`${_t}${Ir}
+import{a3 as qk,a4 as Ks,m as Of,r as Zt,a5 as Ta,U as t1,b as _h,V as bg,C as zr,D as Fn,E as or,u as Ti,J as _s,K as lc,L as xa,R as r1,_ as zu,l as Iu,a6 as n1,f as wA,w as i1,x as vn,v as Qr,F as Fr,G as Ya,a7 as Ig,Q as qs,Z as mu,M as ys,n as XI,H as Ma,I as Ca,a8 as X5,N as wh,O as Bh,a9 as Wk,aa as Kk,ab as $5,ac as zk,ad as Vk}from"./index-7a27eee0.js";import{a as U5,d as Zk,q as Xk}from"./Agent-7bcca5c0.js";import{p as $k}from"./icon-chart-38e5438e.js";import{a as JI}from"./auth-54229761.js";import{a as xB,u as e9}from"./index-5daef7b2.js";const SB="/assets/icon-user-007bea0f.jpg",Vp="/assets/icon-picture-144a065f.png";var t9=Object.defineProperty,r9=(D,U,K)=>U in D?t9(D,U,{enumerable:!0,configurable:!0,writable:!0,value:K}):D[U]=K,PI=(D,U,K)=>r9(D,typeof U!="symbol"?U+"":U,K);class j5 extends Error{constructor(U,K){super(U),PI(this,"type"),PI(this,"field"),PI(this,"value"),PI(this,"line"),this.name="ParseError",this.type=K.type,this.field=K.field,this.value=K.value,this.line=K.line}}function dB(D){}function n9(D){const{onEvent:U=dB,onError:K=dB,onRetry:ee=dB,onComment:ge}=D;let Ue="",ht=!0,ut,_t="",Jt="";function ar(sr){const Ir=ht?sr.replace(/^\xEF\xBB\xBF/,""):sr,[hn,Oe]=i9(`${Ue}${Ir}`);for(const Et of hn)Tt(Et);Ue=Oe,ht=!1}function Tt(sr){if(sr===""){yr();return}if(sr.startsWith(":")){ge&&ge(sr.slice(sr.startsWith(": ")?2:1));return}const Ir=sr.indexOf(":");if(Ir!==-1){const hn=sr.slice(0,Ir),Oe=sr[Ir+1]===" "?2:1,Et=sr.slice(Ir+Oe);Fe(hn,Et,sr);return}Fe(sr,"",sr)}function Fe(sr,Ir,hn){switch(sr){case"event":Jt=Ir;break;case"data":_t=`${_t}${Ir}
 `;break;case"id":ut=Ir.includes("\0")?void 0:Ir;break;case"retry":/^\d+$/.test(Ir)?ee(parseInt(Ir,10)):K(new j5(`Invalid \`retry\` value: "${Ir}"`,{type:"invalid-retry",value:Ir,line:hn}));break;default:K(new j5(`Unknown field "${sr.length>20?`${sr.slice(0,20)}…`:sr}"`,{type:"unknown-field",field:sr,value:Ir,line:hn}));break}}function yr(){_t.length>0&&U({id:ut,event:Jt||void 0,data:_t.endsWith(`
 `)?_t.slice(0,-1):_t}),ut=void 0,_t="",Jt=""}function Le(sr={}){Ue&&sr.consume&&Tt(Ue),ut=void 0,_t="",Jt="",Ue=""}return{feed:ar,reset:Le}}function i9(D){const U=[];let K="";const ee=D.length;for(let ge=0;ge<ee;ge++){const Ue=D[ge];Ue==="\r"&&D[ge+1]===`
 `?(U.push(K),K="",ge++):Ue==="\r"||Ue===`

Dosya farkı çok büyük olduğundan ihmal edildi
+ 0 - 0
dist/assets/index-e4bd591c.js


+ 1 - 1
dist/assets/loading-ed1c9cd1.js → dist/assets/loading-34f1c95b.js

@@ -1 +1 @@
-import{r as a}from"./index-b19ec911.js";function l(e=!1){const o=a(e);return{loading:o,setLoading:t=>{o.value=t},toggle:()=>{o.value=!o.value}}}export{l as u};
+import{r as a}from"./index-7a27eee0.js";function l(e=!1){const o=a(e);return{loading:o,setLoading:t=>{o.value=t},toggle:()=>{o.value=!o.value}}}export{l as u};

+ 2 - 2
dist/index.html

@@ -5,8 +5,8 @@
         <link rel="icon" href="/logo.svg" />
         <meta name="viewport" content="width=device-width, initial-scale=1.0" />
         <title>大模型系统</title>
-      <script type="module" crossorigin src="/assets/index-b19ec911.js"></script>
-      <link rel="stylesheet" href="/assets/index-282a279b.css">
+      <script type="module" crossorigin src="/assets/index-7a27eee0.js"></script>
+      <link rel="stylesheet" href="/assets/index-7f4edcf4.css">
     </head>
     <body>
         <div id="app"></div>

+ 4 - 17
src/components/DialogWrap.vue

@@ -65,7 +65,7 @@
                     <span>
                       <em v-for="(item, documentIndex) in document.list" :key="documentIndex">{{
                         item.title
-                        }}</em>
+                      }}</em>
                     </span>
                     <icon-caret-down size="12" v-if="documentKey === menuList[key].documentOpenIndex" />
                     <icon-caret-right size="12" v-else />
@@ -76,7 +76,7 @@
                       <a-typography-paragraph :ellipsis="{ rows: 3, css: true }" :style="{ flex: 1, margin: '0' }">
                         <span style="color: rgba(153, 153, 153, 1); font-size: 12px">{{
                           item.content
-                          }}</span>
+                        }}</span>
                       </a-typography-paragraph>
                     </p>
                   </div>
@@ -485,22 +485,9 @@ export default defineComponent({
               message: value
             };
         if (props.type === 'doc') {
-
-          // sendData.doc_ids = [helper.read('docId')];
-          // TODO 判断是毕生还是regflow
-          // 以下为毕生
-
-          sendData = helper.read('sendData')
-          sendData.message = value
-          console.log('sendData', sendData)
+          sendData.doc_ids = [helper.read('docId')];
         }
-        // helper.webSocket.send(JSON.stringify(sendData));
-        // TODO 判断是毕生还是regflow
-        // 以下为毕生
-        setTimeout(() => {
-          helper.$bus.emit("send-message", sendData);
-        }, 500);
-        // 
+        helper.webSocket.send(JSON.stringify(sendData));
       });
       helper.$bus.on("clear-message", () => {
         dialogList.splice(0);

+ 0 - 6
src/components/Slider.vue

@@ -243,12 +243,6 @@ export default defineComponent({
     const openHelp = ref(false);
     const { ajax, helper, config } = inject("$global");
 
-    // // NOTE: 暂时删除
-    // if (config.slider && Array.isArray(config.slider)) {
-    //   config.slider = config.slider.filter(item => item.title !== "报告生成");
-    //   config.slider = config.slider.filter(item => item.title !== "报表合并");
-    // }
-
     const userName = ref(helper.read("userName") || "");
     if (!userName.value) {
       helper.goLink("/login");

+ 16 - 16
src/utils/config.js

@@ -2,22 +2,22 @@ export default {
     defaultTitle: "河南电力",
     defaultDesc: "大模型AI能力平台,为你的下一个创意助力",
     slider: [
-        // {
-        //     id: 0,
-        //     title: "报告生成",
-        //     icon: "2",
-        //     img: "/src/assets/index/2.png",
-        //     desc: "基于您创建的报告格式和内容,快速生成定制报告,并支持一键下载",
-        //     dialog: "基于您创建的报告格式和内容,快速生成定制报告,并支持一键下载。"
-        // },
-        // {
-        //     id: 1,
-        //     title: "报表合并",
-        //     icon: "6",
-        //     img: "/src/assets/index/6.png",
-        //     desc: "基于您上传的报表进行合并,助您快速完成报表整合与分析",
-        //     dialog: "基于您上传的报表进行合并,助您快速完成报表整合与分析"
-        // },
+        {
+            id: 0,
+            title: "报告生成",
+            icon: "2",
+            img: "/src/assets/index/2.png",
+            desc: "基于您创建的报告格式和内容,快速生成定制报告,并支持一键下载",
+            dialog: "基于您创建的报告格式和内容,快速生成定制报告,并支持一键下载。"
+        },
+        {
+            id: 1,
+            title: "报表合并",
+            icon: "6",
+            img: "/src/assets/index/6.png",
+            desc: "基于您上传的报表进行合并,助您快速完成报表整合与分析",
+            dialog: "基于您上传的报表进行合并,助您快速完成报表整合与分析"
+        },
         {
             id: 2,
             title: "知识问答",

+ 43 - 16
src/views/Home.vue

@@ -99,6 +99,22 @@
                                         accept=".pdf,.doc,.docx,.txt,.md,.ppt.pptx" />
                                 </div>
                             </section>
+                            <!-- <a-textarea @keydown.enter="beginCombine" :max-length="maxLength" v-model="textValue"
+                                :show-word-limit="textValue.length > maxLength / 2" :auto-size="{ maxRows: 6 }"
+                                placeholder="输入您想了解的内容,Shift+Enter换行" :style="{
+                                    flex: 1,
+                                    borderRadius: '12px',
+                                    marginTop: '20px',
+                                    padding: '0px 30px 0 16px',
+                                    background: 'transparent',
+                                    border: '1px solid #e3e3e3',
+                                    minHeight: '120px',
+                                    paddingBottom: `${textValue.length > maxLength / 2 ? '20px' : ''}`
+                                }">
+                            </a-textarea> -->
+                            <a-button :style="{ width: '500px' }" type="primary" @click="beginCombine">开始</a-button>
+                        </footer>
+                        <footer v-if="navId === 3 && showDialog" class="upload-footer">
                             <a-textarea @keydown.enter="beginCombine" :max-length="maxLength" v-model="textValue"
                                 :show-word-limit="textValue.length > maxLength / 2" :auto-size="{ maxRows: 6 }"
                                 placeholder="输入您想了解的内容,Shift+Enter换行" :style="{
@@ -112,7 +128,7 @@
                                     paddingBottom: `${textValue.length > maxLength / 2 ? '20px' : ''}`
                                 }">
                             </a-textarea>
-                            <a-button :style="{ width: '500px' }" type="primary" @click="beginCombine">开始</a-button>
+                            <a-button :style="{ width: '500px' }" type="primary" @click="continueCombine">开始</a-button>
                         </footer>
                         <a-tooltip :content="closeOthers ? '收起' : '展开'">
                             <div @click="openAll" v-if="navId !== -2">
@@ -162,7 +178,8 @@ export default defineComponent({
     },
     setup() {
         // nav对应的问答类型,4文库问答,对应的是knowledge类型
-        const dialogType = ["report", "excel", "knowledgeQuiz", "doc", "normal", "normal", "normal", "normal"];
+        // NOTE: 先把4文库问答的类型改成report类型,后续再改回来
+        const dialogType = ["report", "excel", "knowledgeQuiz", "report", "normal", "normal", "normal", "normal"];
         const { config, helper, ajax } = inject("$global");
 
         const SYSTEM_NAME = config.defaultTitle
@@ -185,19 +202,12 @@ export default defineComponent({
         let reportData = {};
         let agents = {}
 
-        // // NOTE: 暂时删除
-        // if (config.slider && Array.isArray(config.slider)) {
-        //     config.slider = config.slider.filter(item => item.title !== "报告生成");
-        //     config.slider = config.slider.filter(item => item.title !== "报表合并");
-        // }
-
         const openAll = () => {
             closeOthers.value = !closeOthers.value;
         };
         const selectNav = async (node) => {
             navId.value = node.id;
-            navId.value = node.index;
-            console.log('navId', navId.value)
+            textValue.value = [];
             if (node.index === -1) {
                 swiperNumber.value = 5;
             } else {
@@ -240,13 +250,12 @@ export default defineComponent({
             initDialog.value = false;
             // TODO 历史记录
             // const data = await ajax.message.getHistoryLogs(selectId.value, id);
-            // const data = await ajax.message.getHistoryLogs('42e4fcdc9bea11efac300242ac160006', id);
-            // console.log('data', data)
+            const data = await ajax.message.getHistoryLogs('42e4fcdc9bea11efac300242ac160006', id);
+            if (data.length > 0) {
+                console.log('data', data)
 
-            dialogList.value = new Array(10).fill({
-                question: "测试问题",
-                answer: "测试答案"
-            });
+                dialogList.value = data
+            }
             initDialog.value = true;
             helper.$bus.emit("set-loading", false);
 
@@ -293,6 +302,23 @@ export default defineComponent({
                 helper.$bus.emit("send-message", sendData);
             }, 500);
         };
+        const continueCombine = async () => {
+            const sendData = {
+                chatHistory: [],
+                name: "报告生成",
+                description: "报告生成",
+                inputs: {
+                    id: "Report-PRcYL",
+                    query: textValue.value,
+                }
+            };
+
+            setTimeout(() => {
+                helper.$bus.emit("send-message", sendData);
+                textValue.value = "";
+            }, 500);
+        };
+
         const customChange = (event, key, value) => {
             reportData[key] = {
                 key: value,
@@ -345,6 +371,7 @@ export default defineComponent({
             customRequest,
             historyList,
             beginCombine,
+            continueCombine,
             selectId,
             dialogId,
             navId,

Bu fark içinde çok fazla dosya değişikliği olduğu için bazı dosyalar gösterilmiyor