lsc 8 月之前
父節點
當前提交
e782a810ee

+ 1 - 1
dist/index.html

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

文件差異過大導致無法顯示
+ 0 - 0
dist/static/css/app.4ec1ba86122d156ad5ab15da50aa85b4.css


文件差異過大導致無法顯示
+ 0 - 0
dist/static/css/app.75c5febe0f29499201fe9c1e7dce9d01.css


文件差異過大導致無法顯示
+ 0 - 0
dist/static/css/app.75c5febe0f29499201fe9c1e7dce9d01.css.map


文件差異過大導致無法顯示
+ 0 - 0
dist/static/js/app.bf0a5173417e6daab068.js


文件差異過大導致無法顯示
+ 0 - 0
dist/static/js/app.bf0a5173417e6daab068.js.map


文件差異過大導致無法顯示
+ 0 - 0
dist/static/js/manifest.571c38d63f24b1ae9e16.js.map


+ 57 - 4
src/components/pages/aiAddCourse/addCourse.vue

@@ -2595,10 +2595,20 @@
                     v-if="steps > 1 && steps != 5 && istemplate != 1" @click="lastSteps" style="margin-left: auto;border: none;">
                     {{ steps == 4 ? "返回课程" : "上一步" }}
                   </button>
-                  <button class="c_pub_button_confirm3" style="margin: 0 0 0 10px;" @click="openAiDialog2(2, 'aiTask3','all', ''), addCourseBehavior('courseBehavior', `点击学历案-重新生成所有任务按钮`)">重新生成所有任务</button>
-                  <button class="c_pub_button_confirm3" style="margin: 0 0 0 10px;" @click="openAiDialog(2, 'aiTaskG2', 'all'), addCourseBehavior('courseBehavior', `点击学历案-一键生成所有工具按钮`)" v-if="panTool() == 0">一键生成所有工具</button>
-                  <button class="c_pub_button_confirm3" style="margin: 0 0 0 10px;" @click="allEvaCan(), addCourseBehavior('courseBehavior', `点击学历案-一键生成所有评价按钮`)" v-if="panTool() > 0 && panTaskElist() == 0 && panEvaCont() == 0">一键生成所有评价</button>
-                  <button class="c_pub_button_confirm3" style="margin: 0 0 0 10px;" @click="exportTaskEA(), addCourseBehavior('courseBehavior', `点击学历案-导出评价和学历案按钮`)">导出评价和学历案</button>
+                  <button class="c_pub_button_confirm3 buttonBoxB">
+                    <span>一键生成</span>
+                    <div class="buttonBox">
+                      <div @click="openAiDialog2(2, 'aiTask3','all', ''), addCourseBehavior('courseBehavior', `点击学历案-重新生成所有任务按钮`)">重新生成所有任务</div>
+                      <div @click="openAiDialog(2, 'aiTaskG2', 'all'), addCourseBehavior('courseBehavior', `点击学历案-一键生成所有工具按钮`)" v-if="panTool() == 0">一键生成所有工具</div>
+                      <div @click="openAiDialog2(2, 'aiTaskG2', 'all'), addCourseBehavior('courseBehavior', `点击学历案-一键生成所有工具按钮`)" v-if="panTool() > 0">重新生成所有工具</div>
+                      <div @click="allEvaCan(), addCourseBehavior('courseBehavior', `点击学历案-一键生成所有评价按钮`)" v-if="panTool() > 0">{{panTaskElist() == 0 && panEvaCont() == 0 ? '一键生成所有评价' : '重新生成所有评价'}}</div>
+                      <div @click="exportTaskEA(), addCourseBehavior('courseBehavior', `点击学历案-导出评价和学历案按钮`)">导出评价和学历案</div>
+                    </div>
+                  </button>
+                  <!-- <button class="c_pub_button_confirm3" style="margin: 0 0 0 10px;" @click="openAiDialog2(2, 'aiTask3','all', ''), addCourseBehavior('courseBehavior', `点击学历案-重新生成所有任务按钮`)">重新生成所有任务</button> -->
+                  <!-- <button class="c_pub_button_confirm3" style="margin: 0 0 0 10px;" @click="openAiDialog(2, 'aiTaskG2', 'all'), addCourseBehavior('courseBehavior', `点击学历案-一键生成所有工具按钮`)" v-if="panTool() == 0">一键生成所有工具</button> -->
+                  <!-- <button class="c_pub_button_confirm3" style="margin: 0 0 0 10px;" @click="allEvaCan(), addCourseBehavior('courseBehavior', `点击学历案-一键生成所有评价按钮`)" v-if="panTool() > 0 && panTaskElist() == 0 && panEvaCont() == 0">一键生成所有评价</button> -->
+                  <!-- <button class="c_pub_button_confirm3" style="margin: 0 0 0 10px;" @click="exportTaskEA(), addCourseBehavior('courseBehavior', `点击学历案-导出评价和学历案按钮`)">导出评价和学历案</button> -->
                   <button class="c_pub_button_confirm" style="margin: 0 0 0 10px;" v-if="steps < 4 && istemplate != 1" @click="nextSteps">
                     {{ steps == 3 ? "确认上传" : "下一步" }}
                   </button> 
@@ -17705,6 +17715,7 @@ ${_this.unitJson[0].chapterInfo[0].taskJson[index].taskDetail3.replaceAll('#',''
         confirmButtonText: "确定",
         cancelButtonText: "取消",
         type: "warning",
+        customClass: 'custom-confirm-box'
       })
         .then(() => {
           // if ((this.templateid == "4480d65a-1e48-11ef-bee5-005056b86db5" || this.templateid == "cf5722a4-401b-11ef-b873-005056b86dc3") && type == "aiTeacher2") {
@@ -17716,6 +17727,9 @@ ${_this.unitJson[0].chapterInfo[0].taskJson[index].taskDetail3.replaceAll('#',''
         .catch(() => {
         
         });
+      setTimeout(() => {
+        this.setTipsIndex()
+      }, 500)
     },
     async openAiDialog(clickType, type, callback, index, tindex) {
       let fileid = this.isFileSearch ? [...this.fileIds] : []
@@ -29944,4 +29958,43 @@ ol {
   height: 12px;
   margin-left: 5px;
 }
+
+.buttonBoxB{
+  position: relative;
+  margin: 0 0 0 10px;
+}
+
+.buttonBoxB:hover .buttonBox{
+  display: block;
+}
+
+.buttonBox {
+  position: absolute;
+  bottom: -0;
+  left: 0;
+  transform: translateY(100%);
+  background: #fff;
+  border-radius: 5px;
+  box-shadow: 0 0 3px 1px #e3e3e3;
+  width: 155px;
+  display: none;
+  z-index: 99999;
+}
+
+.buttonBox>div {
+  height: 40px;
+  line-height: 40px;
+  width: 100%;
+  text-align: center;
+  color: #000;
+  box-sizing: border-box;
+}
+
+.buttonBox>div+div {
+  border-top: 1px solid #e0e0e0;
+}
+
+.buttonBox>div:hover {
+  background: #f6f8ff;
+}
 </style>

+ 4 - 4
src/components/pages/aiAddCourse/record.vue

@@ -309,7 +309,7 @@ export default {
       iiframe.contentWindow.testdoContinuousPronunciationAssessment();
       // 录音开始
       let flag = true;
-      iiframe.contentWindow.onRecognizing = e => {
+      iiframe.contentWindow.onRecognizedResult = e => {
         // let e = {
         // 	privText:"测试测试"
         // }
@@ -348,7 +348,7 @@ export default {
         console.log("停止录音", e);
         this.recordedForm.audioBlob.push(e.preaudio);
         iiframe.contentWindow.onSessionStopped = null;
-        iiframe.contentWindow.onRecognizing = null;
+        iiframe.contentWindow.onRecognizedResult = null;
         _resolve();
       };
       return p;
@@ -439,7 +439,7 @@ export default {
           });
           this.uploadFile(file, { changeText: false, flag: true });
           iiframe.contentWindow.onSessionStopped = null;
-          iiframe.contentWindow.onRecognizing = null;
+          iiframe.contentWindow.onRecognizedResult = null;
         };
       } else if (this.recordedForm.status == 2) {
         //暂停录音时
@@ -535,7 +535,7 @@ export default {
 			// 录音开始
       let flag = true;
       // 录音开始
-      iiframe.contentWindow.onRecognizing = e => {
+      iiframe.contentWindow.onRecognizedResult = e => {
         this.recordedForm.endTime = this.recordedForm.timeDuration;
         if (flag) {
           this.controlsStatus = 1;

部分文件因文件數量過多而無法顯示