张涛 hace 1 año
padre
commit
f1a2db9a75

+ 0 - 21
dist/assets/3-e6c36cf9.svg

@@ -1,21 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<svg width="110px" height="32px" viewBox="0 0 110 32" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
-    <title>文档解析站-默认</title>
-    <g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
-        <g id="补图" transform="translate(-48, -95)">
-            <g id="编组-2" transform="translate(48, 95)">
-                <rect id="矩形" fill="#E8EDF5" x="0" y="0" width="110" height="32" rx="16"></rect>
-                <text id="文档解析站" font-family="MiSans-Regular, MiSans" font-size="13" font-weight="normal" fill="#000000">
-                    <tspan x="32" y="21">文档解析站</tspan>
-                </text>
-                <g id="编组-8" transform="translate(13, 8)">
-                    <g id="编组" transform="translate(6.5, 8) scale(-1, 1) translate(-6.5, -8)translate(-0, 0)">
-                        <path d="M12.4507042,1.73493976 C12.7540719,1.73493976 13,1.99385942 13,2.31325301 L13,15.4216867 C13,15.7410803 12.7540719,16 12.4507042,16 L2.1971831,16 C1.89381542,16 1.64788732,15.7410803 1.64788732,15.4216867 L1.64788732,2.31325301 C1.64788732,1.99385942 1.89381542,1.73493976 2.1971831,1.73493976 L12.4507042,1.73493976 Z M10.8028169,8.86746988 L9.70422535,8.86746988 C9.70422535,10.2515044 8.63853279,11.373494 7.32394366,11.373494 C6.69831001,11.373494 6.11213662,11.1190436 5.67101153,10.6707236 L4.90801821,11.5028861 C5.55194204,12.1573126 6.41077388,12.5301205 7.32394366,12.5301205 C8.24490112,12.5301205 9.08227683,12.1533506 9.70459727,11.5382295 L9.70422535,11.9518072 L10.8028169,11.9518072 L10.8028169,8.86746988 Z M7.32394366,5.20481928 C6.40298621,5.20481928 5.5656105,5.58158921 4.94329006,6.19671023 L4.94366197,5.78313253 L3.84507042,5.78313253 L3.84507042,8.86746988 L4.94366197,8.86746988 C4.94366197,7.48343536 6.00935453,6.36144578 7.32394366,6.36144578 C7.97906858,6.36144578 8.59059946,6.64066941 9.03672156,7.12722357 L9.82712069,6.32391431 C9.17604946,5.61383648 8.28025617,5.20481928 7.32394366,5.20481928 Z" id="形状结合" fill="#333333" fill-rule="nonzero"></path>
-                        <path d="M10.2535211,2.31325301 L10.2535211,0 L0.366197183,0 C0.163953803,0 0,0.17261494 0,0.385542169 L0,13.1084337 L2.1971831,13.1084337" id="路径" stroke="#333333" stroke-width="1.1386212" stroke-linejoin="round"></path>
-                    </g>
-                    <g id="编组" transform="translate(3.25, 4.75)"></g>
-                </g>
-            </g>
-        </g>
-    </g>
-</svg>

+ 0 - 21
dist/assets/4-38633bc2.svg

@@ -1,21 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<svg width="110px" height="32px" viewBox="0 0 110 32" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
-    <title>文档解析站-hover</title>
-    <g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
-        <g id="补图" transform="translate(-170, -95)">
-            <g id="编组-2" transform="translate(170, 95)">
-                <rect id="矩形" fill="#E8EDF5" x="0" y="0" width="110" height="32" rx="16"></rect>
-                <text id="文档解析站" font-family="MiSans-Regular, MiSans" font-size="13" font-weight="normal" fill="#00AEA3">
-                    <tspan x="32" y="21">文档解析站</tspan>
-                </text>
-                <g id="编组-8" transform="translate(13, 8)">
-                    <g id="编组" transform="translate(6.5, 8) scale(-1, 1) translate(-6.5, -8)translate(-0, 0)">
-                        <path d="M12.4507042,1.73493976 C12.7540719,1.73493976 13,1.99385942 13,2.31325301 L13,15.4216867 C13,15.7410803 12.7540719,16 12.4507042,16 L2.1971831,16 C1.89381542,16 1.64788732,15.7410803 1.64788732,15.4216867 L1.64788732,2.31325301 C1.64788732,1.99385942 1.89381542,1.73493976 2.1971831,1.73493976 L12.4507042,1.73493976 Z M10.8028169,8.86746988 L9.70422535,8.86746988 C9.70422535,10.2515044 8.63853279,11.373494 7.32394366,11.373494 C6.69831001,11.373494 6.11213662,11.1190436 5.67101153,10.6707236 L4.90801821,11.5028861 C5.55194204,12.1573126 6.41077388,12.5301205 7.32394366,12.5301205 C8.24490112,12.5301205 9.08227683,12.1533506 9.70459727,11.5382295 L9.70422535,11.9518072 L10.8028169,11.9518072 L10.8028169,8.86746988 Z M7.32394366,5.20481928 C6.40298621,5.20481928 5.5656105,5.58158921 4.94329006,6.19671023 L4.94366197,5.78313253 L3.84507042,5.78313253 L3.84507042,8.86746988 L4.94366197,8.86746988 C4.94366197,7.48343536 6.00935453,6.36144578 7.32394366,6.36144578 C7.97906858,6.36144578 8.59059946,6.64066941 9.03672156,7.12722357 L9.82712069,6.32391431 C9.17604946,5.61383648 8.28025617,5.20481928 7.32394366,5.20481928 Z" id="形状结合" fill="#00AEA3" fill-rule="nonzero"></path>
-                        <path d="M10.2535211,2.31325301 L10.2535211,0 L0.366197183,0 C0.163953803,0 0,0.17261494 0,0.385542169 L0,13.1084337 L2.1971831,13.1084337" id="路径" stroke="#00AEA3" stroke-width="1.1386212" stroke-linejoin="round"></path>
-                    </g>
-                    <g id="编组" transform="translate(3.25, 4.75)"></g>
-                </g>
-            </g>
-        </g>
-    </g>
-</svg>

+ 0 - 21
dist/assets/5-757e7b3d.svg

@@ -1,21 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<svg width="110px" height="32px" viewBox="0 0 110 32" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
-    <title>文档解析站-选中</title>
-    <g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
-        <g id="补图" transform="translate(-302, -95)">
-            <g id="编组-2" transform="translate(302, 95)">
-                <rect id="矩形" fill="#00AEA3" x="0" y="0" width="110" height="32" rx="16"></rect>
-                <text id="文档解析站" font-family="MiSans-Regular, MiSans" font-size="13" font-weight="normal" fill="#FFFFFF">
-                    <tspan x="32" y="21">文档解析站</tspan>
-                </text>
-                <g id="编组-8" transform="translate(13, 8)">
-                    <g id="编组" transform="translate(6.5, 8) scale(-1, 1) translate(-6.5, -8)translate(-0, 0)">
-                        <path d="M12.4507042,1.73493976 C12.7540719,1.73493976 13,1.99385942 13,2.31325301 L13,15.4216867 C13,15.7410803 12.7540719,16 12.4507042,16 L2.1971831,16 C1.89381542,16 1.64788732,15.7410803 1.64788732,15.4216867 L1.64788732,2.31325301 C1.64788732,1.99385942 1.89381542,1.73493976 2.1971831,1.73493976 L12.4507042,1.73493976 Z M10.8028169,8.86746988 L9.70422535,8.86746988 C9.70422535,10.2515044 8.63853279,11.373494 7.32394366,11.373494 C6.69831001,11.373494 6.11213662,11.1190436 5.67101153,10.6707236 L4.90801821,11.5028861 C5.55194204,12.1573126 6.41077388,12.5301205 7.32394366,12.5301205 C8.24490112,12.5301205 9.08227683,12.1533506 9.70459727,11.5382295 L9.70422535,11.9518072 L10.8028169,11.9518072 L10.8028169,8.86746988 Z M7.32394366,5.20481928 C6.40298621,5.20481928 5.5656105,5.58158921 4.94329006,6.19671023 L4.94366197,5.78313253 L3.84507042,5.78313253 L3.84507042,8.86746988 L4.94366197,8.86746988 C4.94366197,7.48343536 6.00935453,6.36144578 7.32394366,6.36144578 C7.97906858,6.36144578 8.59059946,6.64066941 9.03672156,7.12722357 L9.82712069,6.32391431 C9.17604946,5.61383648 8.28025617,5.20481928 7.32394366,5.20481928 Z" id="形状结合" fill="#FFFFFF" fill-rule="nonzero"></path>
-                        <path d="M10.2535211,2.31325301 L10.2535211,0 L0.366197183,0 C0.163953803,0 0,0.17261494 0,0.385542169 L0,13.1084337 L2.1971831,13.1084337" id="路径" stroke="#FFFFFF" stroke-width="1.1386212" stroke-linejoin="round"></path>
-                    </g>
-                    <g id="编组" transform="translate(3.25, 4.75)"></g>
-                </g>
-            </g>
-        </g>
-    </g>
-</svg>

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

@@ -1 +1 @@
-import{a4 as t}from"./index-230940af.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-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};

La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 0 - 0
dist/assets/Knowledge-8e76bfae.js


+ 1 - 1
dist/assets/Login-5120ee62.js → dist/assets/Login-906bf1ac.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-230940af.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-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};

+ 1 - 1
dist/assets/Register-0ae88295.js → dist/assets/Register-8d00692e.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-230940af.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-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};

La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 0 - 0
dist/assets/authheader.vue_vue_type_script_setup_true_lang-a99f08d6.js


La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 0 - 0
dist/assets/default-layout-f656eb1f.js


La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 0 - 0
dist/assets/index-144b393d.js


La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 0 - 0
dist/assets/index-282a279b.css


La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 0 - 0
dist/assets/index-2d42dd3f.js


La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 0 - 0
dist/assets/index-332afe1f.js


+ 1 - 1
dist/assets/index-4f429e6f.js → dist/assets/index-3b08a234.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-230940af.js";import{a as U5,d as Zk,q as Xk}from"./Agent-f50aab39.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-b99f1c85.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-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}
 `;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===`

La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 0 - 0
dist/assets/index-44a46753.js


La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 0 - 0
dist/assets/index-55fb379e.js


La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 0 - 0
dist/assets/index-79a8a559.js


La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 0 - 0
dist/assets/index-a7ff9d84.js


La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 0 - 0
dist/assets/index-ab8bc411.js


La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 0 - 0
dist/assets/index-b19ec911.js


+ 1 - 1
dist/assets/index-acd3cf38.js → dist/assets/index-d99d5806.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-230940af.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-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};

+ 1 - 1
dist/assets/loading-8cde918d.js → dist/assets/loading-ed1c9cd1.js

@@ -1 +1 @@
-import{r as a}from"./index-230940af.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-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};

+ 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-230940af.js"></script>
-      <link rel="stylesheet" href="/assets/index-8cfa6a88.css">
+      <script type="module" crossorigin src="/assets/index-b19ec911.js"></script>
+      <link rel="stylesheet" href="/assets/index-282a279b.css">
     </head>
     <body>
         <div id="app"></div>

+ 7 - 3
src/components/DialogWrap.vue

@@ -484,11 +484,9 @@ export default defineComponent({
             : {
               message: value
             };
-        console.log('sendData', sendData)
         if (props.type === 'doc') {
 
           // sendData.doc_ids = [helper.read('docId')];
-          // 以下为判断是毕生还是regflow
           // TODO 判断是毕生还是regflow
           // 以下为毕生
 
@@ -496,7 +494,13 @@ export default defineComponent({
           sendData.message = value
           console.log('sendData', sendData)
         }
-        helper.webSocket.send(JSON.stringify(sendData));
+        // helper.webSocket.send(JSON.stringify(sendData));
+        // TODO 判断是毕生还是regflow
+        // 以下为毕生
+        setTimeout(() => {
+          helper.$bus.emit("send-message", sendData);
+        }, 500);
+        // 
       });
       helper.$bus.on("clear-message", () => {
         dialogList.splice(0);

+ 2 - 2
src/components/DocumentCards.vue

@@ -14,7 +14,7 @@
         showDeleteTooltip = false;
       }
         ">
-        <div :class="{ 'text-hide': showUpload }">
+        <!-- <div :class="{ 'text-hide': showUpload }">
           <div @click="() => {
             showUpload = true;
           }
@@ -24,7 +24,7 @@
             <img src="@/assets/document/5.svg" class="img-active" v-if="showUpload" />
           </div>
           <p>已选择 {{ fileList.length }} 个文档</p>
-        </div>
+        </div> -->
         <template #content>
           <div :class="{ 'upload-wrap': true, 'upload-wrap-narrow': uploadFile }">
             <header>

+ 8 - 8
src/components/Slider.vue

@@ -4,7 +4,7 @@
       <img src="@/assets/slider/logo.jpg" />
     </header>
     <section>
-      <div v-for="(item, key) in slider" :key="key" @click="handleClick(key, item.title)"
+      <div v-for="(item, key) in slider" :key="key" @click="handleClick(key, item.title, item.id)"
         :class="{ active: key === index }">
         <div>
           <img :src="getAssetURL(`/src/assets/slider/${item.icon}.svg`)" width="24" class="img-normal" />
@@ -243,18 +243,18 @@ 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 !== "报表合并");
-    }
+    // // 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");
     }
-    const handleClick = (index, title) => {
-      emit("select-nav", { index: index, title: title });
+    const handleClick = (index, title, id) => {
+      emit("select-nav", { index: index, title: title, id: id });
     };
     const logout = () => {
       helper.reset();

+ 19 - 14
src/utils/config.js

@@ -2,21 +2,24 @@ 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: "基于您上传的报表进行合并,助您快速完成报表整合与分析"
+        // },
         {
-            title: "报告生成",
-            icon: "2",
-            img: "/src/assets/index/2.png",
-            desc: "基于您创建的报告格式和内容,快速生成定制报告,并支持一键下载",
-            dialog: "基于您创建的报告格式和内容,快速生成定制报告,并支持一键下载。"
-        },
-        {
-            title: "报表合并",
-            icon: "6",
-            img: "/src/assets/index/6.png",
-            desc: "基于您上传的报表进行合并,助您快速完成报表整合与分析",
-            dialog: "基于您上传的报表进行合并,助您快速完成报表整合与分析"
-        },
-        {
+            id: 2,
             title: "知识问答",
             icon: "5",
             img: "/src/assets/index/5.png",
@@ -24,6 +27,7 @@ export default {
             dialog: "垂域知识的问答助手,针对你的提问,我们将遍历已创建的文档知识库,生成完整和准确的答案,同时显示来源文档供您参考。"
         },
         {
+            id: 3,
             title: "文档智能",
             icon: "7",
             img: "/src/assets/index/7.png",
@@ -31,6 +35,7 @@ export default {
             dialog: "个人知识库的问答助手,基于您上传的文档进行问答,支持多文档,大小在30M以内。"
         },
         {
+            id: 4,
             title: "智能问答",
             icon: "1",
             img: "/src/assets/index/1.png",

+ 68 - 31
src/views/Home.vue

@@ -1,8 +1,8 @@
 <template>
     <div id="app">
-        <Slider @select-nav="selectNav" :index="navIndex" v-show="!closeOthers"></Slider>
+        <Slider @select-nav="selectNav" :index="navId" v-show="!closeOthers"></Slider>
         <div class="main">
-            <div :class="{ 'history-wrap': true, 'history-wrap-open': !closeOthers && navIndex > -1 }">
+            <div :class="{ 'history-wrap': true, 'history-wrap-open': !closeOthers && navId > -1 }">
                 <History :list="historyList" @set-new="() => {
                     showDialog = false;
                     selectId = selectId;
@@ -10,40 +10,75 @@
                     " :selectId="selectId" @handle-click="selectHistory" />
             </div>
             <div class="wrap">
-                <Index :number="swiperNumber" v-if="navIndex === -1" @select-nav="selectNav" />
-                <div :class="{ 'border-wrap': true, 'border-no-wrap': navIndex === -2 }" v-else>
+                <Index :number="swiperNumber" v-if="navId === -1" @select-nav="selectNav" />
+                <div :class="{ 'border-wrap': true, 'border-no-wrap': navId === -2 }" v-else>
                     <div>
                         <header v-if="!showDialog">
                             <div>
                                 <img src="@/assets/other/robot.gif" width="52" />
                                 <p>
-                                    {{ SYSTEM_NAME }}<span>{{ slider[navIndex].title }}</span>
+                                    {{ SYSTEM_NAME }}<span>{{ slider[navId].title }}</span>
                                 </p>
-                                <span>{{ slider[navIndex].dialog }}</span>
+                                <span>{{ slider[navId].dialog }}</span>
                             </div>
                         </header>
                         <section :class="{ 'section-padding': showDialog }">
                             <!-- 报告生成 -->
-                            <DocumentCombine v-if="navIndex === 0 && !showDialog" />
+                            <DocumentCombine v-if="navId == 0 && !showDialog" />
                             <!-- 报表合并 -->
-                            <Document v-if="navIndex === 1 && !showDialog" />
+                            <Document v-if="navId === 1 && !showDialog" />
                             <!-- 知识问答 -->
-                            <DocumentQuestion v-if="navIndex === 2 && !showDialog" />
+                            <DocumentQuestion v-if="navId === 2 && !showDialog" />
                             <!-- 文档智能 -->
-                            <DocumentAnswer v-if="navIndex === 3 && !showDialog" :agentId="selectId" />
+                            <DocumentAnswer v-if="navId === 3 && !showDialog" :agentId="selectId" />
                             <!-- 智能问答 -->
-                            <Answer v-if="navIndex === 4 && !showDialog" />
+                            <Answer v-if="navId === 4 && !showDialog" />
                             <!-- 文库详情 -->
-                            <DocumentDetail v-if="navIndex === -2" @go-back="goBack" />
-                            <dialog-wrap v-if="showDialog && initDialog" v-show="!hideDialog"
-                                :type="dialogType[navIndex]" :isSetting="false" :readonly="readonly"
-                                @setReadonly="setReadonly" @goDocument="goDocument" :agentId="selectId"
-                                :dialogId="dialogId" :list="dialogList" />
+                            <DocumentDetail v-if="navId === -2" @go-back="goBack" />
+                            <dialog-wrap v-if="showDialog && initDialog" v-show="!hideDialog" :type="dialogType[navId]"
+                                :isSetting="false" :readonly="readonly" @setReadonly="setReadonly"
+                                @goDocument="goDocument" :agentId="selectId" :dialogId="dialogId" :list="dialogList" />
                         </section>
-                        <footer v-if="navIndex !== -2 && navIndex !== 0">
+                        <footer v-if="navId !== -2 && navId !== 0 && navId !== 3">
                             <message-input :readonly="readonly" eventName="open-dialog" />
                         </footer>
-                        <footer v-if="navIndex === 0 && !showDialog" class="upload-footer">
+                        <footer v-if="navId === 0 && !showDialog" class="upload-footer">
+                            <section v-for="(item, key) in variables" :key="key">
+                                <div>
+                                    <p>
+                                        <span>{{ item.variable_name }}</span>
+                                    </p>
+                                </div>
+                                <div>
+                                    <a-input :style="{ flex: '1' }" :placeholder="`请输入${item.variable_name}`"
+                                        allow-clear @change="(event) => {
+                                            customChange(event, item.node_id, item.variable_name);
+                                        }
+                                            " v-if="item.value_type === 1" />
+                                    <a-upload v-else :style="{ width: '300px' }" :multiple="false" :limit="1"
+                                        :custom-request="(option) => {
+                                            customRequest(option, item.node_id, item.variable_name);
+                                        }
+                                            " :show-upload-button="{ showOnExceedLimit: true }"
+                                        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">
                             <section v-for="(item, key) in variables" :key="key">
                                 <div>
                                     <p>
@@ -80,7 +115,7 @@
                             <a-button :style="{ width: '500px' }" type="primary" @click="beginCombine">开始</a-button>
                         </footer>
                         <a-tooltip :content="closeOthers ? '收起' : '展开'">
-                            <div @click="openAll" v-if="navIndex !== -2">
+                            <div @click="openAll" v-if="navId !== -2">
                                 <img src="@/assets/other/open.svg" width="20" v-if="closeOthers" />
                                 <img src="@/assets/other/close.svg" width="20" v-else />
                             </div>
@@ -88,7 +123,7 @@
                     </div>
                 </div>
             </div>
-            <!-- <right v-if="navIndex === 0 || navIndex === 2" /> -->
+            <!-- <right v-if="navId === 0 || navId === 2" /> -->
         </div>
     </div>
 </template>
@@ -134,7 +169,7 @@ export default defineComponent({
 
         const closeOthers = ref(false);
         const swiperNumber = ref(5);
-        const navIndex = ref(-1);
+        const navId = ref(-1);
         const readonly = ref(false);
         const showDialog = ref(false);
         const dialogList = ref([]);
@@ -150,17 +185,19 @@ 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 !== "报表合并");
-        }
+        // // 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) => {
-            navIndex.value = node.index;
+            navId.value = node.id;
+            navId.value = node.index;
+            console.log('navId', navId.value)
             if (node.index === -1) {
                 swiperNumber.value = 5;
             } else {
@@ -171,7 +208,7 @@ export default defineComponent({
 
             selectId.value = (agents.find(agent => agent.name === node.title) || {}).id || null;
             const data = await ajax.message.getDialogs(selectId.value);
-            if (navIndex.value === 0) {
+            if (navId.value === 0 || navId.value === 3) {
                 const result = await ajax.agent.getVariables(selectId.value);
                 variables.value = result;
                 reportData = {};
@@ -188,11 +225,11 @@ export default defineComponent({
             readonly.value = status;
         };
         const goDocument = () => {
-            navIndex.value = -2;
+            navId.value = -2;
             hideDialog.value = true;
         };
         const goBack = () => {
-            navIndex.value = 0;
+            navId.value = 0;
             hideDialog.value = false;
         };
         const selectHistory = async (id) => {
@@ -310,7 +347,7 @@ export default defineComponent({
             beginCombine,
             selectId,
             dialogId,
-            navIndex,
+            navId,
             variables,
             selectNav,
             swiperNumber,

Algunos archivos no se mostraron porque demasiados archivos cambiaron en este cambio