Browse Source

工具箱-AI问答

jwyu 1 year ago
parent
commit
81f24482b1

+ 34 - 0
src/lang/modules/ToolBox/AIQuestion.js

@@ -0,0 +1,34 @@
+/**
+ * 工具箱-AI问答
+ */
+
+/* 英文 */
+export const AIQuestionEn = {
+    title:'Researching AI Q&A Assistant',
+    add_new_window:'New Dialogue Window',
+    new_window:'New Dialogue Window',
+    AI_use_intro:'AI Assistant Instructions',
+    input_placeholder:'Please enter a question, Shift+Enter to change the line.',
+    send_btn:'Send',
+    use_intro_title:'Instructions',
+    use_intro01:'Maximum 500 Q&A per account per day.',
+    use_intro02:'History Q&A default named with the first question in the dialogue window, can be modified.'
+
+};
+  
+/* 中文 */
+export const AIQuestionZh = {
+    title:'研究AI问答小助手',
+    add_new_window:'新建对话窗口',
+    new_window:'新对话窗口',
+    AI_use_intro:'AI助手使用说明',
+    input_placeholder:'请输入提问,Shift+Enter换行',
+    send_btn:'发送',
+    use_intro_title:'使用说明',
+    use_intro01:'每账号每天最高500次问答。',
+    use_intro02:'历史问答默认用该对话窗口内第一个提问命名,可修改。'
+};
+  
+/**
+* $t('ToolBox.AIQuestion.XXX')
+*/

+ 8 - 0
src/lang/modules/ToolBox/IndexEn.js

@@ -0,0 +1,8 @@
+import { AIQuestionEn } from "./AIQuestion";
+
+export default {
+    // 工具箱
+    ToolBox: {
+        AIQuestion:AIQuestionEn
+    },
+};

+ 9 - 0
src/lang/modules/ToolBox/IndexZh.js

@@ -0,0 +1,9 @@
+import { AIQuestionZh } from "./AIQuestion";
+
+
+export default {
+    // 工具箱
+    ToolBox: {
+        AIQuestion:AIQuestionZh
+    },
+};

+ 6 - 6
src/views/operation_manage/AIQA/AIQA.vue

@@ -4,11 +4,11 @@
             <div class="window-title">
                 <div class="title-wrap">
                     <p class="text-ellipsis" style="color: #333333;font-size: 20px;font-weight: 600;">{{companyName}}</p>
-                    <span style="color: #666666;font-size: 16px;">研究AI问答小助手</span>
+                    <span style="color: #666666;font-size: 16px;">{{$t('ToolBox.AIQuestion.title')}}</span>
                 </div>
                 <div class="icon"><img src="~@/assets/img/icons/ai_company.png"/></div>
             </div>
-            <div class="add-btn" @click="handleAddNewWindow"><i class="el-icon-circle-plus-outline"></i>新建对话窗口</div>
+            <div class="add-btn" @click="handleAddNewWindow"><i class="el-icon-circle-plus-outline"></i>{{$t('ToolBox.AIQuestion.add_new_window')}}</div>
             <div class="list-wrap hidden-scrollbar">
                 <Window-List-Item 
                     ref="windowListItem"
@@ -27,8 +27,8 @@
         <div class="content-wrap">
             <div class="content-header">
                 <div class="title-wrap">
-                    <p>{{activeWindowId<=0?'新对话窗口':activeWindow.TopicName||''}}</p>
-                    <span>{{activeWindowId<=0?'AI助手使用说明':`${historyList.length||0} messages`}}</span>
+                    <p>{{activeWindowId<=0?$t('ToolBox.AIQuestion.new_window'):activeWindow.TopicName||''}}</p>
+                    <span>{{activeWindowId<=0?$t('ToolBox.AIQuestion.AI_use_intro'):`${historyList.length||0} messages`}}</span>
                 </div>
                 <div class="select-box">
                     <!-- <el-select v-model="model" :class="{'hint':showHint}" :disabled="isTyping||(windowContentLoading&&windowContentLoading.visible)" ref="modelSelect" 
@@ -60,8 +60,8 @@
                 <New-Window-Hint v-if="activeWindowId===0"/>
             </div>
             <div class="input-box">
-                <textarea rows="6" v-model="inputText" placeholder="请输入提问,Shift+Enter换行" @keydown.enter="handleSendMsg"></textarea>
-                <div class="send-btn" @click="handleSendMsg"><img src="~@/assets/img/ai_m/send.png" />发送</div>
+                <textarea rows="6" v-model="inputText" :placeholder="$t('ToolBox.AIQuestion.input_placeholder')" @keydown.enter="handleSendMsg"></textarea>
+                <div class="send-btn" @click="handleSendMsg"><img src="~@/assets/img/ai_m/send.png" />{{$t('ToolBox.AIQuestion.send_btn')}}</div>
             </div>
         </div>
     </div>

+ 3 - 3
src/views/operation_manage/AIQA/components/newWindowHint.vue

@@ -1,8 +1,8 @@
 <template>
     <div class="new-window-hint-wrap">
-        <p class="title">使用说明:</p>
-        <p>1、每账号每天最高500次问答。</p>
-        <p>2、历史问答默认用该对话窗口内第一个提问命名,可修改。</p>
+        <p class="title">{{$t('ToolBox.AIQuestion.use_intro_title')}}:</p>
+        <p>1、{{$t('ToolBox.AIQuestion.use_intro01')}}</p>
+        <p>2、{{$t('ToolBox.AIQuestion.use_intro02')}}</p>
     </div>
 </template>