mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-18 07:16:44 +08:00
ai视频一期功能提交
This commit is contained in:
@@ -648,8 +648,8 @@
|
||||
></my-note>
|
||||
</div>
|
||||
<!-- ai文稿 -->
|
||||
<div class="ai-script" v-show="tab == 3">
|
||||
<ai-script ref="aiscript"></ai-script>
|
||||
<div class="ai-script" v-if="tab == 3">
|
||||
<ai-script ref="aiscript" @changeCurrentTime="changeCurrentTime"></ai-script>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -833,7 +833,7 @@
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import { mapGetters } from "vuex";
|
||||
import { mapGetters, mapMutations } from "vuex";
|
||||
import followButton from "@/components/Follow/button.vue";
|
||||
import portalHeader from "@/components/PortalHeader.vue";
|
||||
import portalFooter from "@/components/PortalFooter.vue";
|
||||
@@ -1004,7 +1004,7 @@ export default {
|
||||
this.loadData();
|
||||
},
|
||||
computed: {
|
||||
...mapGetters(["userInfo"]),
|
||||
...mapGetters(["userInfo", 'selectableLang']),
|
||||
catalogTree() {
|
||||
let treeList = [];
|
||||
this.completed = [];
|
||||
@@ -1040,6 +1040,14 @@ export default {
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
// 处理从AI文稿组件传递过来的时间跳转事件
|
||||
changeCurrentTime(time) {
|
||||
console.log(time,'time')
|
||||
this.$refs.myVideoPlayer && this.$refs.myVideoPlayer.seekToTime(time);
|
||||
},
|
||||
...mapMutations({
|
||||
SET_selectableLang: 'video/SET_selectableLang',
|
||||
}),
|
||||
handleOpen(key, path) {
|
||||
if (this.isFalse) {
|
||||
this.defaultOpeneds = [key];
|
||||
@@ -1203,6 +1211,10 @@ export default {
|
||||
this.curriculumData.url = r.content;
|
||||
}
|
||||
this.$refs.mynote.showVideoTimeBtn(true);
|
||||
// 视频类型加载ai相关功能
|
||||
if (r.contentType == 10) {
|
||||
this.handleAIVideo(r.boeaiSubtitleRspList, r);
|
||||
}
|
||||
this.createPlayUrl(r.contentRefId, this.curriculumData.url);
|
||||
} else if (r.contentType == 40) {
|
||||
// if (r.content != '' && r.content.indexOf('.pdf') == -1) {
|
||||
@@ -1365,6 +1377,11 @@ export default {
|
||||
localStorage.setItem("videoProgressData", JSON.stringify(arr));
|
||||
}
|
||||
},
|
||||
// 视频处理 - 处理ai相关功能
|
||||
handleAIVideo(list = [], r) {
|
||||
this.SET_selectableLang(list);
|
||||
console.log("ai处理", this.selectableLang);
|
||||
},
|
||||
isShowTime() {
|
||||
if (this.isContentTypeTwo != this.contentData.contentType) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user