SanHQin 3 mesiacov pred
rodič
commit
5cb0280742

+ 1 - 1
dist/index.html

@@ -32,7 +32,7 @@
       width: 100%;
       background: #e6eaf0;
       font-family: '黑体';
-    }</style><link href=./static/css/app.bd6a92342dd4eeb51eb35f9420c2b0ee.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.bb486323f0fa002ba2e7.js></script><script type=text/javascript src=./static/js/app.9ceebc3cd1fb758cfa16.js></script></body></html><script>function stopSafari() {
+    }</style><link href=./static/css/app.5756ec5b2036bffbf0a9c5cea3514086.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.bb486323f0fa002ba2e7.js></script><script type=text/javascript src=./static/js/app.3f5cf211f8576dfe7fcd.js></script></body></html><script>function stopSafari() {
     //阻止safari浏览器双击放大功能
     let lastTouchEnd = 0  //更新手指弹起的时间
     document.documentElement.addEventListener("touchstart", function (event) {

Rozdielové dáta súboru neboli zobrazené, pretože súbor je príliš veľký
+ 0 - 0
dist/static/css/app.5756ec5b2036bffbf0a9c5cea3514086.css


Rozdielové dáta súboru neboli zobrazené, pretože súbor je príliš veľký
+ 0 - 0
dist/static/css/app.5756ec5b2036bffbf0a9c5cea3514086.css.map


Rozdielové dáta súboru neboli zobrazené, pretože súbor je príliš veľký
+ 0 - 0
dist/static/js/app.3f5cf211f8576dfe7fcd.js


Rozdielové dáta súboru neboli zobrazené, pretože súbor je príliš veľký
+ 0 - 0
dist/static/js/app.3f5cf211f8576dfe7fcd.js.map


Rozdielové dáta súboru neboli zobrazené, pretože súbor je príliš veľký
+ 0 - 0
dist/static/js/manifest.161e82026ac2ae03ab6f.js.map


+ 19 - 9
src/components/pages/classroomObservation/components/chatArea.vue

@@ -1583,7 +1583,8 @@ ${JSON.stringify(_list)}
 				console.log("音频时长",_duration)
 			})
 
-
+      let _startTime = 0;
+      let _endTime = 0;
       try {
 				let iiframe = this.$refs["iiframe"];
 				let _this = this;
@@ -1625,17 +1626,26 @@ ${JSON.stringify(_list)}
           _this.wavGetTextLoading = true;
           _this.showGetTextLoading = true;
           let privText = e.privText;
+          let privSpeakerId = e.privSpeakerId;
+          let privDuration = e.privDuration;
+          let privOffset = e.privOffset;
           console.log("👇转译对象👇");
           console.log(e);
           console.log("👇转译结果👇");
           console.log(privText);
-					if(!privText)return;
+					if(!privText && !privSpeakerId)return;
+
+          _endTime = this.updateRecordedTime({duration:(privOffset + privDuration) / 1000000000})
           textList.push({
             value: privText,
-            startTime: "",
-            endTime: "",
-            time: ""
+            startTime: this.updateRecordedTime({duration:_startTime}),
+            endTime: _endTime,
+            time: this.updateRecordedTime({duration:(_endTime - _startTime)}),
+            role:privSpeakerId
           });
+
+          _startTime = _endTime;
+
           _this.transcriptionData.content += privText;
 
           let _result = `
@@ -1660,11 +1670,11 @@ ${JSON.stringify(_list)}
           textList.forEach((item, index) => {
             _result += `<tr>
 							<td>${index + 1}</td>
-							<td></td>
-							<td></td>
+							<td>${item.startTime}</td>
+							<td>${item.endTime}</td>
 							<td>${item.value}</td>
-							<td></td>
-							<td></td>
+							<td>${item.time}</td>
+							<td>${item.privSpeakerId}</td>
 							<td></td>
 						</tr>`;
           });

+ 127 - 0
src/components/pages/classroomObservation/dialog/batchCreationClassDialog.vue

@@ -0,0 +1,127 @@
+<template>
+  <div class="batchCreationClassDialog">
+    <el-dialog
+      :visible.sync="show"
+      width="100%"
+      height="100%"
+      fullscreen
+      :modal="true"
+      :close-on-click-modal="false"
+      :show-close="false"
+    >
+      <div class="box">
+        <div class="b_head">
+          <span>已上传的课堂实录</span>
+        </div>
+        <div class="b_nav">
+          <div class="b_n_left">
+            <span v-for="item in statusList" :key="item.value">{{item.label}}</span>
+          </div>
+          <div class="b_n_right">
+            <span>总计3个</span>
+          </div>
+        </div>
+      </div>
+    </el-dialog>
+  </div>
+</template>
+
+<script>
+export default {
+  props: {
+
+  },
+  data() {
+    return {
+      statusList:[
+        {label:"全部",value:"0"},
+        {label:"已完成",value:"1"},
+        {label:"处理中",value:"2"},
+        {label:"等待处理",value:"3"},
+      ],
+      selectStatus:"0",
+      show: false,
+    };
+  },
+
+  computed: {
+
+  },
+  methods: {
+
+    open(){
+      this.show = false;
+    },
+
+    close() {
+      this.show = false;
+    },
+    init() {
+
+    },
+  },
+  mounted(){
+    this.open()
+  },
+};
+</script>
+
+<style scoped>
+.batchCreationClassDialog {
+  width: 100vw;
+  height: 100vh;
+}
+
+.batchCreationClassDialog >>> .el-dialog__header,
+.batchCreationClassDialog >>> .el-dialog__footer {
+  display: none; /* 隐藏头部和底部 */
+}
+
+.batchCreationClassDialog >>> .el-dialog__body {
+  padding: 0;
+  margin: 0;
+  height: 100vh;
+  width: 100vw;
+  overflow: auto;
+  display:flex;
+  justify-content:center;
+}
+
+.box{
+  width:70%;
+  min-width:500px;
+  height:100%;
+  box-sizing:border-box;
+  border-left:solid 1px #E1E1E1;
+  border-right:solid 1px #E1E1E1;
+  padding:0 40px;
+}
+
+.b_head{
+  width:100%;
+  height:50px;
+  margin: 20px 0;
+  box-sizing:border-box;
+}
+
+.b_head>span{
+  font-size:26px;
+  font-weight:bold;
+  color:#000;
+}
+
+.b_nav{
+  width:100%;
+  height:50px;
+  display: flex;
+  align-items: center;
+  justify-content: space-between;
+  background:red;
+}
+
+.b_n_right{
+  width: 100px;
+  height: 100%;
+  background-color: black;
+}
+</style>

+ 4 - 1
src/components/pages/classroomObservation/index.vue

@@ -201,6 +201,7 @@
       ref="changeCourseNameDialogRef"
       @success="changeCourseSuccess"
     />
+    <batchCreationClassDialog ref="batchCreationClassDialogRef"/>
 
     <!-- <addNewCourseDialog
 			:courseList="optionData"
@@ -231,12 +232,14 @@ import "echarts-wordcloud";
 import htmlDocx from "html-docx-js/dist/html-docx";
 import saveAs from "file-saver";
 import MarkdownIt from "markdown-it";
+import batchCreationClassDialog from './dialog/batchCreationClassDialog.vue'
 export default {
   components: {
     chatArea,
     messageArea,
     sharePdf,
-    changeCourseNameDialog
+    changeCourseNameDialog,
+    batchCreationClassDialog
     // addNewCourseDialog,
   },
   data() {

Niektoré súbory nie sú zobrazené, pretože je v týchto rozdielových dátach zmenené mnoho súborov