diff --git a/package.json b/package.json index 1c822d7..b44e9f9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { - "name": "aix-win", - "version": "2.5.1", + "name": "aix-win-ws", + "version": "2.5.3", "description": "", "main": "./out/main/index.js", "author": "上海交大重庆人工智能研究院", diff --git a/src/renderer/src/api/file/index.js b/src/renderer/src/api/file/index.js index e655614..64cfdfb 100644 --- a/src/renderer/src/api/file/index.js +++ b/src/renderer/src/api/file/index.js @@ -53,3 +53,14 @@ export const moveSmarttalk = (params) => { params }) } + +export const addFileToPrepareThird = (data) => { + return request({ + url: '/smarttalk/file/addFileToPrepareThird', + method: 'post', + headers: { + 'Content-Type': 'multipart/form-data' + }, + data + }) +} diff --git a/src/renderer/src/api/mode/index.js b/src/renderer/src/api/mode/index.js index 6d3d02f..4c0fb8f 100644 --- a/src/renderer/src/api/mode/index.js +++ b/src/renderer/src/api/mode/index.js @@ -15,7 +15,6 @@ export function conversation(data) { url: '/v1/api/new_conversation', method: 'get', headers: { - isToken: true, 'Authorization':'Bearer ragflow-IwNzMxMTIyOGY0ZTExZWZiOGE2MDI0Mm', 'Content-Type': 'application/json', 'Accept': '*/*' diff --git a/src/renderer/src/assets/iconfont/iconfont.css b/src/renderer/src/assets/iconfont/iconfont.css index d33400a..3bf7ac3 100644 --- a/src/renderer/src/assets/iconfont/iconfont.css +++ b/src/renderer/src/assets/iconfont/iconfont.css @@ -1,8 +1,8 @@ @font-face { font-family: "iconfont"; /* Project id 4723712 */ - src: url('iconfont.woff2?t=1731315402630') format('woff2'), - url('iconfont.woff?t=1731315402630') format('woff'), - url('iconfont.ttf?t=1731315402630') format('truetype'); + src: url('iconfont.woff2?t=1731393731097') format('woff2'), + url('iconfont.woff?t=1731393731097') format('woff'), + url('iconfont.ttf?t=1731393731097') format('truetype'); } .iconfont { @@ -13,6 +13,14 @@ -moz-osx-font-smoothing: grayscale; } +.icon-tihuan:before { + content: "\e7ab"; +} + +.icon-fasong:before { + content: "\e692"; +} + .icon-ai1:before { content: "\e70a"; } diff --git a/src/renderer/src/assets/iconfont/iconfont.js b/src/renderer/src/assets/iconfont/iconfont.js index 9e2529d..8cf9c4d 100644 --- a/src/renderer/src/assets/iconfont/iconfont.js +++ b/src/renderer/src/assets/iconfont/iconfont.js @@ -1 +1 @@ -window._iconfont_svg_string_4723712='',(l=>{var h=(c=(c=document.getElementsByTagName("script"))[c.length-1]).getAttribute("data-injectcss"),c=c.getAttribute("data-disable-injectsvg");if(!c){var a,v,t,i,z,p=function(h,c){c.parentNode.insertBefore(h,c)};if(h&&!l.__iconfont__svg__cssinject__){l.__iconfont__svg__cssinject__=!0;try{document.write("")}catch(h){console&&console.log(h)}}a=function(){var h,c=document.createElement("div");c.innerHTML=l._iconfont_svg_string_4723712,(c=c.getElementsByTagName("svg")[0])&&(c.setAttribute("aria-hidden","true"),c.style.position="absolute",c.style.width=0,c.style.height=0,c.style.overflow="hidden",c=c,(h=document.body).firstChild?p(c,h.firstChild):h.appendChild(c))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(a,0):(v=function(){document.removeEventListener("DOMContentLoaded",v,!1),a()},document.addEventListener("DOMContentLoaded",v,!1)):document.attachEvent&&(t=a,i=l.document,z=!1,o(),i.onreadystatechange=function(){"complete"==i.readyState&&(i.onreadystatechange=null,M())})}function M(){z||(z=!0,t())}function o(){try{i.documentElement.doScroll("left")}catch(h){return void setTimeout(o,50)}M()}})(window); \ No newline at end of file +window._iconfont_svg_string_4723712='',(l=>{var h=(c=(c=document.getElementsByTagName("script"))[c.length-1]).getAttribute("data-injectcss"),c=c.getAttribute("data-disable-injectsvg");if(!c){var a,v,t,i,z,p=function(h,c){c.parentNode.insertBefore(h,c)};if(h&&!l.__iconfont__svg__cssinject__){l.__iconfont__svg__cssinject__=!0;try{document.write("")}catch(h){console&&console.log(h)}}a=function(){var h,c=document.createElement("div");c.innerHTML=l._iconfont_svg_string_4723712,(c=c.getElementsByTagName("svg")[0])&&(c.setAttribute("aria-hidden","true"),c.style.position="absolute",c.style.width=0,c.style.height=0,c.style.overflow="hidden",c=c,(h=document.body).firstChild?p(c,h.firstChild):h.appendChild(c))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(a,0):(v=function(){document.removeEventListener("DOMContentLoaded",v,!1),a()},document.addEventListener("DOMContentLoaded",v,!1)):document.attachEvent&&(t=a,i=l.document,z=!1,o(),i.onreadystatechange=function(){"complete"==i.readyState&&(i.onreadystatechange=null,M())})}function M(){z||(z=!0,t())}function o(){try{i.documentElement.doScroll("left")}catch(h){return void setTimeout(o,50)}M()}})(window); \ No newline at end of file diff --git a/src/renderer/src/assets/iconfont/iconfont.json b/src/renderer/src/assets/iconfont/iconfont.json index 3c05b3c..dc37f21 100644 --- a/src/renderer/src/assets/iconfont/iconfont.json +++ b/src/renderer/src/assets/iconfont/iconfont.json @@ -5,6 +5,20 @@ "css_prefix_text": "icon-", "description": "", "glyphs": [ + { + "icon_id": "12730938", + "name": "替换", + "font_class": "tihuan", + "unicode": "e7ab", + "unicode_decimal": 59307 + }, + { + "icon_id": "34833984", + "name": "发送", + "font_class": "fasong", + "unicode": "e692", + "unicode_decimal": 59026 + }, { "icon_id": "41844021", "name": "ai", diff --git a/src/renderer/src/assets/iconfont/iconfont.ttf b/src/renderer/src/assets/iconfont/iconfont.ttf index 8aa23b4..9d086c8 100644 Binary files a/src/renderer/src/assets/iconfont/iconfont.ttf and b/src/renderer/src/assets/iconfont/iconfont.ttf differ diff --git a/src/renderer/src/assets/iconfont/iconfont.woff b/src/renderer/src/assets/iconfont/iconfont.woff index 077f1cf..91fa738 100644 Binary files a/src/renderer/src/assets/iconfont/iconfont.woff and b/src/renderer/src/assets/iconfont/iconfont.woff differ diff --git a/src/renderer/src/assets/iconfont/iconfont.woff2 b/src/renderer/src/assets/iconfont/iconfont.woff2 index 8dea413..3e6e9e3 100644 Binary files a/src/renderer/src/assets/iconfont/iconfont.woff2 and b/src/renderer/src/assets/iconfont/iconfont.woff2 differ diff --git a/src/renderer/src/components/template-study/container/adjust-dialog.vue b/src/renderer/src/components/template-study/container/adjust-dialog.vue new file mode 100644 index 0000000..0ed1521 --- /dev/null +++ b/src/renderer/src/components/template-study/container/adjust-dialog.vue @@ -0,0 +1,260 @@ + + + + + \ No newline at end of file diff --git a/src/renderer/src/components/template-study/container/edit-dialog.vue b/src/renderer/src/components/template-study/container/edit-dialog.vue new file mode 100644 index 0000000..852c78b --- /dev/null +++ b/src/renderer/src/components/template-study/container/edit-dialog.vue @@ -0,0 +1,75 @@ + + + + + \ No newline at end of file diff --git a/src/renderer/src/components/template-study/container/header.vue b/src/renderer/src/components/template-study/container/header.vue index 100545c..4729912 100644 --- a/src/renderer/src/components/template-study/container/header.vue +++ b/src/renderer/src/components/template-study/container/header.vue @@ -20,7 +20,7 @@
- + @@ -31,6 +31,35 @@
+ + +
+ + + + + + + + + + + +
+ +
@@ -41,6 +70,7 @@ import { ElMessageBox } from 'element-plus' import { modelList } from '@/api/mode/index' import Dialog from './dialog.vue' +const keywordDialog = ref(false) const props = defineProps({ model: { type: [String, Number], @@ -52,7 +82,7 @@ const emit = defineEmits(['changeTemp', 'onRead']) const showDialog = ref(false) const aiRead = () => { - emit('onRead') + emit('onRead') } @@ -88,6 +118,11 @@ const changeTemplate = (val) => { } +const form = reactive({ + name: '', + desc: '', +}) + onMounted(() => { getTemplateList() @@ -121,4 +156,14 @@ onMounted(() => { font-weight: bold; } } + +.custom-header { + justify-content: space-between; + align-items: center; + + .icon-guanbi { + cursor: pointer; + font-weight: bold; + } +} \ No newline at end of file diff --git a/src/renderer/src/components/template-study/container/result.vue b/src/renderer/src/components/template-study/container/result.vue index 2efeb1e..160ae6a 100644 --- a/src/renderer/src/components/template-study/container/result.vue +++ b/src/renderer/src/components/template-study/container/result.vue @@ -3,7 +3,7 @@
- +
#{{ item.name }}
@@ -17,15 +17,15 @@
- + 重新研读 - + AI对话调整 - + 手动编辑结果 @@ -36,16 +36,21 @@
- + + + +
\ No newline at end of file + diff --git a/src/renderer/src/views/resource/container/third-list.vue b/src/renderer/src/views/resource/container/third-list.vue index 0039e24..204dc12 100644 --- a/src/renderer/src/views/resource/container/third-list.vue +++ b/src/renderer/src/views/resource/container/third-list.vue @@ -50,6 +50,10 @@ + + + 备课
@@ -66,17 +70,20 @@ /> +