From 5fa9367be59c365dbdec5808483b681e53f02691 Mon Sep 17 00:00:00 2001 From: xzg <4727863@qq.com> Date: Wed, 5 Mar 2025 15:06:28 +0800 Subject: [PATCH 1/2] =?UTF-8?q?AI=E5=A2=9E=E5=8A=A0=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/page/login/aiqa.vue | 91 ++++++++++++++++++++++++----------------- 1 file changed, 54 insertions(+), 37 deletions(-) diff --git a/src/page/login/aiqa.vue b/src/page/login/aiqa.vue index 775d8ca9..dec078be 100644 --- a/src/page/login/aiqa.vue +++ b/src/page/login/aiqa.vue @@ -6,7 +6,9 @@ 货无忧AI智能问答
- + + +
@@ -14,23 +16,21 @@
{{ time }}
@@ -149,6 +132,9 @@ const Data = ref({ { content: '向日葵下载地址', }, + { + content: '前端仓批量家配模板', + }, ], ChathistoryList: [ // { @@ -335,6 +321,10 @@ const AiData = (value = '') => { aiResponse = '向日葵下载地址:https://sunlogin.oray.com/,使用教程点击下方立即下载'; data.link = 'http://files.huo5u.com/plugins/%E5%90%91%E6%97%A5%E8%91%B5%E8%BF%9C%E7%A8%8B%E8%BD%AF%E4%BB%B6%E4%BD%BF%E7%94%A8%E6%95%99%E7%A8%8B.docx'; + } else if (lowercaseValue.includes('前端仓批量家配模板') || lowercaseValue.includes('家配模板')) { + aiResponse = '前端仓批量家配模板如下,点击下方立即下载'; + data.link = + 'https://gzhtoss.oss-cn-chengdu.aliyuncs.com/muban/%E6%89%B9%E9%87%8F%E5%AE%B6%E9%85%8D%E5%BA%93%E5%AD%98%E5%93%81%E5%BC%80%E5%AF%BC%E5%85%A5%E6%A8%A1%E6%9D%BF.xlsx'; } else { aiResponse = '我不太理解您的问题,我正在努力学习中,请重新描述或输入其他问题,或联系管理员'; } @@ -356,15 +346,18 @@ AiData(); //初始化AI机器人 .el_problem { display: flex; flex-direction: column; + span { margin: 4px; } + .box { font-size: 14px; display: flex; height: 50px; align-items: center; + .span { width: 20px; height: 20px; @@ -376,23 +369,28 @@ AiData(); //初始化AI机器人 border-radius: 50%; color: #fff; } + .spancontent { cursor: pointer; } + .id1 { border: 1px solid #f45c45; background-color: #f45c45; } + .id2 { border: 1px solid #ed9c43; background-color: #ed9c43; } + .id3 { border: 1px solid #ffd35d; background-color: #ffd35d; } } } + .page-content { width: 80%; height: 80%; @@ -415,23 +413,28 @@ AiData(); //初始化AI机器人 line-height: 40px; font-size: 16px; padding: 0 24px; + .logo { display: flex; align-items: center; + span { margin-left: 10px; } + img { width: 30px; height: 30px; } } + .icon-box { display: flex; .el-icon { color: #fff; font-size: 24px; + &:hover { cursor: pointer; color: #ff0000; @@ -446,6 +449,7 @@ AiData(); //初始化AI机器人 display: flex; justify-content: space-between; overflow-y: hidden; + .left { width: 66%; border-right: 1px solid #d3832a; @@ -457,6 +461,7 @@ AiData(); //初始化AI机器人 background-color: #f5f5f6; padding: 10px; overflow-y: scroll; + .chat-history, .chat-history-user { margin-bottom: 2%; @@ -477,10 +482,12 @@ AiData(); //初始化AI机器人 justify-content: center; color: #d3832a; font-size: 3em; + img { width: 100%; height: 100%; } + .el-icon { font-size: 22px; } @@ -488,6 +495,7 @@ AiData(); //初始化AI机器人 .content-header { font-size: 12px; + span { margin-right: 20px; } @@ -499,6 +507,7 @@ AiData(); //初始化AI机器人 border: 1px solid #9e9e9e; padding: 0px 10px; border-radius: 4px; + p { font-size: 13px; margin: 10px 0; @@ -514,11 +523,13 @@ AiData(); //初始化AI机器人 margin-right: 0; margin-left: 20px; } + .content-header-user { font-size: 12px; text-align: right; display: flex; flex-direction: row-reverse; + span { margin-left: 20px; } @@ -530,6 +541,7 @@ AiData(); //初始化AI机器人 border-top: 1px solid #c2c2c2; flex: 1; position: relative; + .el-input { width: 100%; height: 100%; @@ -545,12 +557,15 @@ AiData(); //初始化AI机器人 .is-focus { box-shadow: none; } + .el-input__wrapper { box-shadow: none; } + .el-input__inner { font-size: 12px; } + .el-button { position: absolute; right: 10px; @@ -566,6 +581,7 @@ AiData(); //初始化AI机器人 .right { height: 100%; width: 34%; + .el-tabs { height: 100%; @@ -578,6 +594,7 @@ AiData(); //初始化AI机器人 } } } + .content-time { text-align: center; color: #9a9a9a; From 68fe13886dc87c35a8a9e346c04351b36803903f Mon Sep 17 00:00:00 2001 From: xzg <4727863@qq.com> Date: Wed, 5 Mar 2025 17:58:57 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E4=B8=89=E6=96=B9=E7=89=A9=E6=96=99?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/basicdata/TripartiteMaterial/list.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/views/basicdata/TripartiteMaterial/list.vue b/src/views/basicdata/TripartiteMaterial/list.vue index 77e9ed86..62b3a569 100644 --- a/src/views/basicdata/TripartiteMaterial/list.vue +++ b/src/views/basicdata/TripartiteMaterial/list.vue @@ -70,7 +70,7 @@ - @@ -479,6 +479,11 @@ const handleSubmit = () => { details.popUpShow.addVisited = false; details.loadingObj.pageLoading = true; const submitData = { ...details.form }; + submitData.brand =details.brandArr.find(item=>item.id == details.form.brandName).brandName + submitData.category =details.materialArr.find(item=>item.id == details.form.categoryName).name + console.log(details.form.categoryName,'details.form.categoryName'); + console.log(details.materialArr,'details.materialArr'); + let res if (addVisited.value) { res = await postSave(submitData); @@ -486,6 +491,7 @@ const handleSubmit = () => { } else { res = await postUpdate(submitData); } + const { code, msg } = res.data; if (code !== 200) return;