SanHQin 6 ヶ月 前
コミット
c7b8f42eb2

+ 1 - 1
dist/index.html

@@ -32,7 +32,7 @@
       width: 100%;
       background: #e6eaf0;
       font-family: '黑体';
-    }</style><link href=./static/css/app.69dae9f1eb5f33fa8a49717afaf55a96.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.161e82026ac2ae03ab6f.js></script><script type=text/javascript src=./static/js/vendor.de15001ce66f032e9274.js></script><script type=text/javascript src=./static/js/app.da2a63f4612844236887.js></script></body></html><script>function stopSafari() {
+    }</style><link href=./static/css/app.2873a0d3b25ff22f93f837c0c86b0ac8.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.161e82026ac2ae03ab6f.js></script><script type=text/javascript src=./static/js/vendor.de15001ce66f032e9274.js></script><script type=text/javascript src=./static/js/app.166e196eeda3650a8916.js></script></body></html><script>function stopSafari() {
     //阻止safari浏览器双击放大功能
     let lastTouchEnd = 0  //更新手指弹起的时间
     document.documentElement.addEventListener("touchstart", function (event) {

ファイルの差分が大きいため隠しています
+ 0 - 0
dist/static/css/app.2873a0d3b25ff22f93f837c0c86b0ac8.css


ファイルの差分が大きいため隠しています
+ 0 - 0
dist/static/css/app.2873a0d3b25ff22f93f837c0c86b0ac8.css.map


ファイルの差分が大きいため隠しています
+ 0 - 0
dist/static/js/app.166e196eeda3650a8916.js


ファイルの差分が大きいため隠しています
+ 0 - 0
dist/static/js/app.166e196eeda3650a8916.js.map


ファイルの差分が大きいため隠しています
+ 0 - 0
dist/static/js/manifest.161e82026ac2ae03ab6f.js.map


+ 11 - 11
src/components/pages/appStore/views/appManagement.vue

@@ -218,7 +218,7 @@
                         src="../../../../assets/icon/appStore/del.svg"
                         alt=""
                       />
-                      <span>删除</span>
+                      <span>取消发布</span>
                     </div>
                   </div>
                   <svg
@@ -432,7 +432,7 @@
                               src="../../../../assets/icon/appStore/del.svg"
                               alt=""
                             />
-                            <span>删除</span>
+                            <span>取消发布</span>
                           </div>
                         </div>
                         <svg
@@ -1194,7 +1194,7 @@ export default {
       });
     },
     delApp(item) {
-      this.$confirm(`确定要删除《${item.name}》这个应用吗!`, `确定删除应用`, {
+      this.$confirm(`确定要取消发布《${item.name}》这个应用吗!`, `确定取消发布应用`, {
         confirmButtonText: "确定",
         cancelButtonText: "取消",
         type: "warning"
@@ -1210,10 +1210,10 @@ export default {
             .post(this.$store.state.api + "delete_appStore", params)
             .then(res => {
               if (res.data) {
-                this.$message.success("删除成功");
+                this.$message.success("取消发布成功");
                 this.getData();
               } else {
-                this.$message.error("删除失败");
+                this.$message.error("取消发布失败");
               }
               if (this.collect.findIndex(i => i.id == item.id) != -1) {
                 this.getCollect();
@@ -1221,11 +1221,11 @@ export default {
             })
             .catch(err => {
               console.log(err);
-              this.$message.error("删除失败");
+              this.$message.error("取消发布失败");
             });
         })
         .catch(() => {
-          console.log("取消删除");
+          console.log("取消发布失败");
         });
     },
     changeShowPage(newPage) {
@@ -1403,7 +1403,7 @@ export default {
   border-radius: 10px;
   border: 1px solid #f3f7fd;
   box-sizing: border-box;
-  padding: 0 20px;
+  padding: 0 20px 0 10px;
   display: flex;
   align-items: center;
   /* box-shadow: 2px 2px 4px 0px #1D39830A; */
@@ -1537,16 +1537,16 @@ export default {
   position: relative;
 }
 
-.ac_h_b_typeList_active::after {
+/*.ac_h_b_typeList_active::after {
   content: "";
   width: 80%;
   height: 5px;
   background-color: #007aff;
   border-radius: 4px;
   position: absolute;
-  top: 110%;
+  top: 110%;·
   left: 10%;
-}
+}*/
 
 .ac_h_b_selectList {
   margin-left: 15px;

+ 23 - 3
src/components/pages/test/add/components/GapFilling/gap.vue

@@ -12,7 +12,7 @@
             `(${option[cJson.type].name})`
           }}</span> -->
           <span v-if="!updateList.title" @click.stop="updateTitle()">{{
-            cJson.title ? cJson.title : "请填写标题"
+            cJson.title ? cJson.title : "输入问题"
           }}</span>
 					<!-- <span v-if="!cJson.title && !updateList.title" class="t_empty" @click.stop="updateTitle()">请填写标题</span> -->
           <input
@@ -22,12 +22,13 @@
             v-model="checkJson.title"
             @blur="save"
             @keyup.enter="save"
-            placeholder="请填写标题"
+            placeholder="输入问题"
           />
           <span style="min-width: fit-content;color: #efa030;">{{
             cJson.score ? "(分值:" + cJson.score + "分)" : ""
           }}</span>
         </div>
+
         <span
           style="color: #efa030;display: flex;margin-top: 5px;line-height: 18px;"
         >
@@ -58,6 +59,17 @@
         </span>
         <!-- </div><div v-html="cJson.title"></div> -->
       </div>
+      <div class="detail" v-if="!updateList.detail" @click.stop="updateDetail()">{{ cJson.detail?cJson.detail:"暂无描述" }}</div>
+			  <input
+          v-if="updateList.detail"
+          ref="detailRef"
+          class="editInput"
+          v-model="checkJson.detail"
+          @blur="save"
+          style="margin-top: 10px;color: rgb(136, 139, 146);"
+          @keyup.enter="save"
+          placeholder="请填写描述说明"
+        />
       <div class="choices">
         <textarea
           readonly
@@ -98,6 +110,7 @@ export default {
       checkJson: {},
       updateList: {
         title: false,
+        detail:false,
         brief: false,
         answer: false
       }
@@ -143,6 +156,13 @@ export default {
         this.$refs["titleRef"].focus();
       });
     },
+    updateDetail(){
+      this.updateList.detail = true;
+      this.$nextTick(() => {
+        // 聚焦到输入框
+        this.$refs["detailRef"].focus();
+      });
+    },
     updateAnswer() {
       this.updateList.answer = true;
       this.$nextTick(() => {
@@ -157,7 +177,7 @@ export default {
     }
   },
   mounted() {
-		
+
   }
 };
 </script>

+ 20 - 2
src/components/pages/test/add/components/choice/choice.vue

@@ -11,7 +11,7 @@
           }}</span
           > -->
 					<span @click.stop="updateTitle()" v-if="!updateList.title">{{
-            cJson.title ? cJson.title : "请填写标题"
+            cJson.title ? cJson.title : "输入问题"
           }}</span>
           <input
             v-if="updateList.title"
@@ -20,13 +20,24 @@
             v-model="checkJson.title"
             @blur="save"
             @keyup.enter="save"
-            placeholder="请填写标题"
+            placeholder="输入问题"
           />
         </div>
         <span style="color: #efa030;" v-if="cJson.score"
           >({{ "分值:" + cJson.score + "分" }})</span
         >
       </div>
+      <div class="detail" v-if="!updateList.detail" @click.stop="updateDetail()">{{ cJson.detail?cJson.detail:"暂无描述" }}</div>
+			  <input
+          v-if="updateList.detail"
+          ref="detailRef"
+          class="editInput"
+          v-model="checkJson.detail"
+          @blur="save"
+          style="margin-top: 10px;color: rgb(136, 139, 146);"
+          @keyup.enter="save"
+          placeholder="请填写描述说明"
+        />
       <div class="choices">
         <div class="choice" v-for="(item, index) in cJson.array" :key="index">
           <div
@@ -133,6 +144,7 @@ export default {
       updateList: {
         title: false,
         answer: false,
+        detail:false,
         answerIndex: 0
       }
     };
@@ -176,6 +188,12 @@ export default {
         this.$refs[`answerRef${index}`][0].focus();
       });
     },
+    updateDetail(){
+      this.updateList.detail = true;
+      this.$nextTick(() => {
+        this.$refs[`detailRef`].focus();
+      });
+    },
     save() {
       for (let key in this.updateList) {
         if (typeof this.updateList[key] === "boolean") {

+ 3 - 3
src/components/pages/test/add/components/course/course.vue

@@ -5,7 +5,7 @@
     <div class="choice_box">
       <div class="title" style="display: flex;">
         <span v-if="!updateList.title" @click.stop="updateTitle()">{{
-          cJson.title ? cJson.title : "暂无标题"
+          cJson.title ? cJson.title : "输入问题"
         }}</span>
         <input
           v-if="updateList.title"
@@ -14,7 +14,7 @@
           v-model="checkJson.title"
           @blur="save"
           @keyup.enter="save"
-          placeholder="请填写标题"
+          placeholder="输入问题"
         />
       </div>
       <div
@@ -31,7 +31,7 @@
         @blur="save"
         style="margin-top: 10px;color: rgb(136, 139, 146);"
         @keyup.enter="save"
-        placeholder="请填写描述"
+        placeholder="请填写描述说明"
       />
 
       <div class="course">

+ 4 - 4
src/components/pages/test/add/components/course2/course.vue

@@ -4,7 +4,7 @@
     <!-- <div v-if="!cJson">暂未设置题目</div> -->
     <div class="choice_box">
       <div class="title" style="display: flex;">
-        <span v-if="!updateList.title" @click.stop="updateTitle()">{{ cJson.title?cJson.title:"暂无标题" }}</span>
+        <span v-if="!updateList.title" @click.stop="updateTitle()">{{ cJson.title?cJson.title:"输入问题" }}</span>
 				<input
             v-if="updateList.title"
             ref="titleRef"
@@ -12,7 +12,7 @@
             v-model="checkJson.title"
             @blur="save"
             @keyup.enter="save"
-            placeholder="请填写标题"
+            placeholder="输入问题"
           />
       </div>
       <div class="detail" v-if="!updateList.detail" @click.stop="updateDetail()">{{ cJson.detail?cJson.detail:"暂无描述" }}</div>
@@ -24,7 +24,7 @@
         @blur="save"
         style="margin-top: 10px;color: rgb(136, 139, 146);"
         @keyup.enter="save"
-        placeholder="请填写描述"
+        placeholder="请填写描述说明"
       />
     </div>
   </div>
@@ -103,7 +103,7 @@ export default {
 				this.$refs["detailRef"].focus();
 			})
 		}
-  },	
+  },
   mounted() {
     // if (!this.cJson || Object.keys(this.cJson).length == 0) {
     //   this.checkJson = {

+ 3 - 3
src/components/pages/test/add/components/evaBox/eva.vue

@@ -4,7 +4,7 @@
     <div class="choice_box">
       <div class="title" style="display: flex;">
         <span @click.stop="updateTitle()" v-if="!updateList.title">{{
-          cJson.title ? cJson.title : "暂无标题"
+          cJson.title ? cJson.title : "输入问题"
         }}</span>
         <input
           v-if="updateList.title"
@@ -13,7 +13,7 @@
           v-model="checkJson.title"
           @blur="save"
           @keyup.enter="save"
-          placeholder="请填写标题"
+          placeholder="输入问题"
         />
       </div>
       <div
@@ -29,7 +29,7 @@
         @blur="save"
         style="margin-top: 10px;color: rgb(136, 139, 146);"
         @keyup.enter="save"
-        placeholder="请填写描述"
+        placeholder="请填写描述说明"
       />
       <div class="scoreList">
         <div

+ 3 - 3
src/components/pages/test/add/components/file/file.vue

@@ -14,7 +14,7 @@
           `(${option[cJson.type].name})`
         }}</span> -->
         <span @click.stop="updateTitle()" v-if="!updateList.title">{{
-          cJson.title ? cJson.title : "请填写标题"
+          cJson.title ? cJson.title : "输入问题"
         }}</span>
         <input
           v-if="updateList.title"
@@ -23,7 +23,7 @@
           v-model="checkJson.title"
           @blur="save"
           @keyup.enter="save"
-          placeholder="请填写标题"
+          placeholder="输入问题"
         />
         <span style="color: #efa030;min-width:fit-content" v-if="cJson.score"
           >({{ cJson.score ? "分值:" + cJson.score + "分" : "" }})</span
@@ -43,7 +43,7 @@
         @blur="save"
         style="margin-top: 10px;color: rgb(136, 139, 146);"
         @keyup.enter="save"
-        placeholder="请填写描述"
+        placeholder="请填写描述说明"
       />
       <div class="uploadFileBox">
         <div v-loading="proVisible">

+ 4 - 4
src/components/pages/test/add/components/sweep/index.vue

@@ -4,7 +4,7 @@
     <!-- <div v-if="!cJson">暂未设置题目</div> -->
     <div class="choice_box">
       <div class="title" style="display: flex;">
-        <span v-if="!updateList.title" @click.stop="updateTitle()">{{ cJson.title?cJson.title:"请填写标题" }}</span>
+        <span v-if="!updateList.title" @click.stop="updateTitle()">{{ cJson.title?cJson.title:"输入问题" }}</span>
 				<input
             v-if="updateList.title"
             ref="titleRef"
@@ -12,7 +12,7 @@
             v-model="checkJson.title"
             @blur="save"
             @keyup.enter="save"
-            placeholder="请填写标题"
+            placeholder="输入问题"
           />
       </div>
       <div class="detail" v-if="!updateList.detail" @click.stop="updateDetail()">{{ cJson.detail?cJson.detail:"暂无描述" }}</div>
@@ -24,7 +24,7 @@
         @blur="save"
         style="margin-top: 10px;color: rgb(136, 139, 146);"
         @keyup.enter="save"
-        placeholder="请填写描述"
+        placeholder="请填写描述说明"
       />
     </div>
   </div>
@@ -103,7 +103,7 @@ export default {
 				this.$refs["detailRef"].focus();
 			})
 		}
-  },	
+  },
   mounted() {
     // if (!this.cJson || Object.keys(this.cJson).length == 0) {
     //   this.checkJson = {

+ 38 - 2
src/components/pages/test/checkAi/aiLeader.vue

@@ -1,5 +1,10 @@
 <template>
   <div class="ai_body">
+    <div class="ai_b_addNewChat" v-if="fileList.length>0">
+      <el-tooltip class="item" effect="light" content="新建会话" placement="right">
+        <span @click="addNewChat">+</span>
+      </el-tooltip>
+    </div>
     <div class="ai_body_dialog" ref="chatDialog">
       <div
         class="dialog_content"
@@ -897,7 +902,8 @@ export default {
       }
     },
     async addChat(names) {
-      let _uid = uuidv4();
+      return new Promise(async(resolve)=>{
+        let _uid = uuidv4();
       let cid = `${_uid}-testSmarter`; // 生成的 cid
       this.cid = cid;
       let params = [
@@ -914,9 +920,11 @@ export default {
           this.$store.state.api + "addChat",
           params
         );
+        resolve()
       } catch (err) {
         console.error(err);
       }
+      })
     },
     async guessAskJson(fileData) {
       console.log("👉👉👈", fileData);
@@ -995,7 +1003,6 @@ ${fileText}
         });
       // this.getWAntSearchContent(_uuid);
     },
-
     beforeUploadInfo2(event, type, tindex) {
       // const loading = this.openLoading();
       let file = "";
@@ -2515,6 +2522,11 @@ ${_echartsType[type].text}
     },
     handleBlur() {
       this.showPopoverUid = null;
+    },
+    async addNewChat(){
+      this.array = [];
+      await this.addChat(this.formList.map(i=>i.name).join(','))
+      this.$message.success("新建会话成功")
     }
   },
   computed: {
@@ -2702,6 +2714,7 @@ ${_echartsType[type].text}
   box-sizing: border-box;
   /* box-shadow: 0 0 5px 2px #00000045;
   border-radius: 5px; */
+  position: relative;
 }
 
 .binfo_input {
@@ -3689,4 +3702,27 @@ ${_echartsType[type].text}
   background: none;
   color: #66b1ff;
 }
+
+.ai_b_addNewChat{
+  width: 40px;
+  height: 40px;
+  z-index: 99;
+  box-sizing: border-box;
+}
+
+.ai_b_addNewChat>span{
+  display: flex;
+  width: 100%;
+  height: 100%;
+  align-items: center;
+  justify-content: center;
+  font-size: 1.5em;
+  border-radius: 50%;
+  cursor: pointer;
+  color: #1296DB;
+  box-sizing: border-box;
+  /* border: solid 1px #1296DB; */
+  background-color: #fff;
+  box-shadow: rgba(0, 0, 0, .2) 2px 2px 8px 0px;
+}
 </style>

この差分においてかなりの量のファイルが変更されているため、一部のファイルを表示していません