奇橙 1 year ago
parent
commit
77f0ab1108

BIN
dist.zip


File diff suppressed because it is too large
+ 0 - 0
dist/assets/Knowledge-BBjyskUc.js


+ 1 - 1
dist/assets/Login-Qq6jm70S.js → dist/assets/Login-DMj47oJx.js

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

+ 1 - 1
dist/assets/Register-C1ysCMcq.js → dist/assets/Register-XTVa7hCE.js

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

File diff suppressed because it is too large
+ 0 - 0
dist/assets/index-Bu_VKj4J.css


File diff suppressed because it is too large
+ 1 - 1
dist/assets/index-vfOh6Od6.js


+ 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-BgP2Zkvd.js"></script>
-      <link rel="stylesheet" crossorigin href="/assets/index-_tY_RxH2.css">
+      <script type="module" crossorigin src="/assets/index-vfOh6Od6.js"></script>
+      <link rel="stylesheet" crossorigin href="/assets/index-Bu_VKj4J.css">
     </head>
     <body>
         <div id="app"></div>

+ 48 - 0
dist/src/assets/question/excel.svg

@@ -0,0 +1,48 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Generator: Adobe Illustrator 23.0.1, SVG Export Plug-In . SVG Version: 6.00 Build 0)  -->
+<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" [
+	<!ENTITY ns_extend "http://ns.adobe.com/Extensibility/1.0/">
+	<!ENTITY ns_ai "http://ns.adobe.com/AdobeIllustrator/10.0/">
+	<!ENTITY ns_graphs "http://ns.adobe.com/Graphs/1.0/">
+	<!ENTITY ns_vars "http://ns.adobe.com/Variables/1.0/">
+	<!ENTITY ns_imrep "http://ns.adobe.com/ImageReplacement/1.0/">
+	<!ENTITY ns_sfw "http://ns.adobe.com/SaveForWeb/1.0/">
+	<!ENTITY ns_custom "http://ns.adobe.com/GenericCustomNamespace/1.0/">
+	<!ENTITY ns_adobe_xpath "http://ns.adobe.com/XPath/1.0/">
+]>
+<svg version="1.1" id="Livello_1" xmlns:x="&ns_extend;" xmlns:i="&ns_ai;" xmlns:graph="&ns_graphs;"
+	 xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 2289.75 2130"
+	 enable-background="new 0 0 2289.75 2130" xml:space="preserve">
+<metadata>
+	<sfw  xmlns="&ns_sfw;">
+		<slices></slices>
+		<sliceSourceBounds  bottomLeftOrigin="true" height="2130" width="2289.75" x="-1147.5" y="-1041"></sliceSourceBounds>
+	</sfw>
+</metadata>
+<path fill="#185C37" d="M1437.75,1011.75L532.5,852v1180.393c0,53.907,43.7,97.607,97.607,97.607l0,0h1562.036
+	c53.907,0,97.607-43.7,97.607-97.607l0,0V1597.5L1437.75,1011.75z"/>
+<path fill="#21A366" d="M1437.75,0H630.107C576.2,0,532.5,43.7,532.5,97.607c0,0,0,0,0,0V532.5l905.25,532.5L1917,1224.75
+	L2289.75,1065V532.5L1437.75,0z"/>
+<path fill="#107C41" d="M532.5,532.5h905.25V1065H532.5V532.5z"/>
+<path opacity="0.1" enable-background="new    " d="M1180.393,426H532.5v1331.25h647.893c53.834-0.175,97.432-43.773,97.607-97.607
+	V523.607C1277.825,469.773,1234.227,426.175,1180.393,426z"/>
+<path opacity="0.2" enable-background="new    " d="M1127.143,479.25H532.5V1810.5h594.643
+	c53.834-0.175,97.432-43.773,97.607-97.607V576.857C1224.575,523.023,1180.977,479.425,1127.143,479.25z"/>
+<path opacity="0.2" enable-background="new    " d="M1127.143,479.25H532.5V1704h594.643c53.834-0.175,97.432-43.773,97.607-97.607
+	V576.857C1224.575,523.023,1180.977,479.425,1127.143,479.25z"/>
+<path opacity="0.2" enable-background="new    " d="M1073.893,479.25H532.5V1704h541.393c53.834-0.175,97.432-43.773,97.607-97.607
+	V576.857C1171.325,523.023,1127.727,479.425,1073.893,479.25z"/>
+<linearGradient id="SVGID_1_" gradientUnits="userSpaceOnUse" x1="203.5132" y1="1729.0183" x2="967.9868" y2="404.9817" gradientTransform="matrix(1 0 0 -1 0 2132)">
+	<stop  offset="0" style="stop-color:#18884F"/>
+	<stop  offset="0.5" style="stop-color:#117E43"/>
+	<stop  offset="1" style="stop-color:#0B6631"/>
+</linearGradient>
+<path fill="url(#SVGID_1_)" d="M97.607,479.25h976.285c53.907,0,97.607,43.7,97.607,97.607v976.285
+	c0,53.907-43.7,97.607-97.607,97.607H97.607C43.7,1650.75,0,1607.05,0,1553.143V576.857C0,522.95,43.7,479.25,97.607,479.25z"/>
+<path fill="#FFFFFF" d="M302.3,1382.264l205.332-318.169L319.5,747.683h151.336l102.666,202.35
+	c9.479,19.223,15.975,33.494,19.49,42.919h1.331c6.745-15.336,13.845-30.228,21.3-44.677L725.371,747.79h138.929l-192.925,314.548
+	L869.2,1382.263H721.378L602.79,1160.158c-5.586-9.45-10.326-19.376-14.164-29.66h-1.757c-3.474,10.075-8.083,19.722-13.739,28.755
+	l-122.102,223.011H302.3z"/>
+<path fill="#33C481" d="M2192.143,0H1437.75v532.5h852V97.607C2289.75,43.7,2246.05,0,2192.143,0L2192.143,0z"/>
+<path fill="#107C41" d="M1437.75,1065h852v532.5h-852V1065z"/>
+</svg>

+ 48 - 0
src/assets/question/excel.svg

@@ -0,0 +1,48 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Generator: Adobe Illustrator 23.0.1, SVG Export Plug-In . SVG Version: 6.00 Build 0)  -->
+<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" [
+	<!ENTITY ns_extend "http://ns.adobe.com/Extensibility/1.0/">
+	<!ENTITY ns_ai "http://ns.adobe.com/AdobeIllustrator/10.0/">
+	<!ENTITY ns_graphs "http://ns.adobe.com/Graphs/1.0/">
+	<!ENTITY ns_vars "http://ns.adobe.com/Variables/1.0/">
+	<!ENTITY ns_imrep "http://ns.adobe.com/ImageReplacement/1.0/">
+	<!ENTITY ns_sfw "http://ns.adobe.com/SaveForWeb/1.0/">
+	<!ENTITY ns_custom "http://ns.adobe.com/GenericCustomNamespace/1.0/">
+	<!ENTITY ns_adobe_xpath "http://ns.adobe.com/XPath/1.0/">
+]>
+<svg version="1.1" id="Livello_1" xmlns:x="&ns_extend;" xmlns:i="&ns_ai;" xmlns:graph="&ns_graphs;"
+	 xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 2289.75 2130"
+	 enable-background="new 0 0 2289.75 2130" xml:space="preserve">
+<metadata>
+	<sfw  xmlns="&ns_sfw;">
+		<slices></slices>
+		<sliceSourceBounds  bottomLeftOrigin="true" height="2130" width="2289.75" x="-1147.5" y="-1041"></sliceSourceBounds>
+	</sfw>
+</metadata>
+<path fill="#185C37" d="M1437.75,1011.75L532.5,852v1180.393c0,53.907,43.7,97.607,97.607,97.607l0,0h1562.036
+	c53.907,0,97.607-43.7,97.607-97.607l0,0V1597.5L1437.75,1011.75z"/>
+<path fill="#21A366" d="M1437.75,0H630.107C576.2,0,532.5,43.7,532.5,97.607c0,0,0,0,0,0V532.5l905.25,532.5L1917,1224.75
+	L2289.75,1065V532.5L1437.75,0z"/>
+<path fill="#107C41" d="M532.5,532.5h905.25V1065H532.5V532.5z"/>
+<path opacity="0.1" enable-background="new    " d="M1180.393,426H532.5v1331.25h647.893c53.834-0.175,97.432-43.773,97.607-97.607
+	V523.607C1277.825,469.773,1234.227,426.175,1180.393,426z"/>
+<path opacity="0.2" enable-background="new    " d="M1127.143,479.25H532.5V1810.5h594.643
+	c53.834-0.175,97.432-43.773,97.607-97.607V576.857C1224.575,523.023,1180.977,479.425,1127.143,479.25z"/>
+<path opacity="0.2" enable-background="new    " d="M1127.143,479.25H532.5V1704h594.643c53.834-0.175,97.432-43.773,97.607-97.607
+	V576.857C1224.575,523.023,1180.977,479.425,1127.143,479.25z"/>
+<path opacity="0.2" enable-background="new    " d="M1073.893,479.25H532.5V1704h541.393c53.834-0.175,97.432-43.773,97.607-97.607
+	V576.857C1171.325,523.023,1127.727,479.425,1073.893,479.25z"/>
+<linearGradient id="SVGID_1_" gradientUnits="userSpaceOnUse" x1="203.5132" y1="1729.0183" x2="967.9868" y2="404.9817" gradientTransform="matrix(1 0 0 -1 0 2132)">
+	<stop  offset="0" style="stop-color:#18884F"/>
+	<stop  offset="0.5" style="stop-color:#117E43"/>
+	<stop  offset="1" style="stop-color:#0B6631"/>
+</linearGradient>
+<path fill="url(#SVGID_1_)" d="M97.607,479.25h976.285c53.907,0,97.607,43.7,97.607,97.607v976.285
+	c0,53.907-43.7,97.607-97.607,97.607H97.607C43.7,1650.75,0,1607.05,0,1553.143V576.857C0,522.95,43.7,479.25,97.607,479.25z"/>
+<path fill="#FFFFFF" d="M302.3,1382.264l205.332-318.169L319.5,747.683h151.336l102.666,202.35
+	c9.479,19.223,15.975,33.494,19.49,42.919h1.331c6.745-15.336,13.845-30.228,21.3-44.677L725.371,747.79h138.929l-192.925,314.548
+	L869.2,1382.263H721.378L602.79,1160.158c-5.586-9.45-10.326-19.376-14.164-29.66h-1.757c-3.474,10.075-8.083,19.722-13.739,28.755
+	l-122.102,223.011H302.3z"/>
+<path fill="#33C481" d="M2192.143,0H1437.75v532.5h852V97.607C2289.75,43.7,2246.05,0,2192.143,0L2192.143,0z"/>
+<path fill="#107C41" d="M1437.75,1065h852v532.5h-852V1065z"/>
+</svg>

+ 2 - 1
src/components/DialogWrap.vue

@@ -146,7 +146,8 @@
                         </section>
                     </div>
                     <div v-if="item.file" class="paper-wrap" @click="downloadFile(item.file.file_url)">
-                        <img src="@/assets/question/word.svg" />
+                        <img src="@/assets/question/excel.svg" v-if="type === 'excel'" />
+                        <img src="@/assets/question/word.svg" v-else />
                         <span>
                             <b>{{ item.file.file_name }}</b>
                         </span>

+ 1 - 1
src/components/DocumentCards.vue

@@ -42,7 +42,7 @@
                                 <a-upload draggable :multiple="!uploadFile" :limit="50" @before-upload="onBeforeUpload"
                                     @exceed-limit="onExceedLimit" @before-remove="onBeforeRemove"
                                     :custom-request="customRequest" :show-upload-button="{ showOnExceedLimit: true }"
-                                    :accept="uploadFile ? '.txt,.pdf' : '.xlsx‌'">
+                                    :accept="uploadFile ? '.txt,.pdf' : '*‌'">
                                     <template #upload-button>
                                         <div class="upload-main">
                                             <p>拖拽文档到这里,或<span>点此上传</span></p>

Some files were not shown because too many files changed in this diff