<!doctype html><htmllang=""><head><metacharset="utf-8"><metahttp-equiv="X-UA-Compatible"content="IE=edge"><metaname="viewport"content="width=device-width,initial-scale=1"><linkrel="icon"href="favicon.ico"><title>form_vue</title><script defer="defer"src="js/chunk-vendors.18bbe7ed.js"></script><script defer="defer"src="js/app.91d2a2e6.js"></script><linkhref="css/chunk-vendors.77489a8d.css"rel="stylesheet"><linkhref="css/app.7e46bedb.css"rel="stylesheet"></head><body><noscript><strong>We're sorry but form_vue doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><script src="https://staging-teach.cdn.ireadabc.com/h5template/h5-static-lib/js/air.js"></script><script>if(document.domain.indexOf("iteachabc.com")>0){
<!doctype html><htmllang=""><head><metacharset="utf-8"><metahttp-equiv="X-UA-Compatible"content="IE=edge"><metaname="viewport"content="width=device-width,initial-scale=1"><linkrel="icon"href="favicon.ico"><title>form_vue</title><script defer="defer"src="js/chunk-vendors.18bbe7ed.js"></script><script defer="defer"src="js/app.9b1b0d9e.js"></script><linkhref="css/chunk-vendors.77489a8d.css"rel="stylesheet"><linkhref="css/app.703caa6a.css"rel="stylesheet"></head><body><noscript><strong>We're sorry but form_vue doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><script src="https://staging-teach.cdn.ireadabc.com/h5template/h5-static-lib/js/air.js"></script><script>if(document.domain.indexOf("iteachabc.com")>0){
(function(){"use strict";vare={6002:function(e,t,i){varn=i(5471),a=i(1052),r=i.n(a),s=function(){vare=this,t=e._self._c;returnt("div",{attrs:{id:"app"}},[t("div",{staticClass:"main-header"},[t("div",{staticStyle:{float:"left"}},[t("span",[e._v("当前编辑视频:")]),t("el-button",{attrs:{type:"text"},on:{click:e.handleClickSelectSyllabus}},[e._v("在库中选择视频")])],1),t("div",{staticStyle:{float:"right"}},[t("el-button",{attrs:{type:"primary"},on:{click:e.handleClickSave}},[e._v("保存")])],1)]),t("div",{staticClass:"main-body"},[t("div",{ref:"refDubbingScrollList",staticClass:"dubbing-items"},[e._l(e.dubbintItems,(function(i,n){returnt("el-card",{key:n,staticClass:"box-card"},[t("div",{staticStyle:{position:"relative"}},[t("span",{staticClass:"item-index",staticStyle:{position:"absolute"}},[e._v(e._s(n+1)+""),t("span",{staticStyle:{"font-size":"medium","line-height":"normal"}},[e._v(e._s(e.currentSelectDubbingIndex==n?"正在编辑":""))])]),t("div",{staticStyle:{"text-align":"right"}},[t("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(t){returne.handleClickDelete(n)}}},[e._v("删除")]),t("el-button",{attrs:{size:"mini",type:"primary"},on:{click:function(t){returne.handleClickSetCurrent(n)}}},[e._v("编辑")])],1)]),t("el-divider"),t("el-form",{attrs:{"label-width":"50px"}},[t("el-form-item",{attrs:{label:"原文"}},[t("el-input",{attrs:{type:"text"},model:{value:i.orgText,callback:function(t){e.$set(i,"orgText",t)},expression:"item.orgText"}})],1),t("el-form-item",{attrs:{label:"开始"}},[t("el-input",{attrs:{type:"text"},model:{value:i.timelineIn,callback:function(t){e.$set(i,"timelineIn",t)},expression:"item.timelineIn"}},[t("template",{slot:"append"},[e._v("(秒)")])],2)],1),t("el-form-item",{attrs:{label:"结束"}},[t("el-input",{attrs:{type:"text"},model:{value:i.timelineOut,callback:function(t){e.$set(i,"timelineOut",t)},expression:"item.timelineOut"}},[t("template",{slot:"append"},[e._v("(秒)")])],2)],1)],1)],1)})),t("el-card",{staticClass:"box-card"},[t("el-button",{staticStyle:{width:"100%"},attrs:{type:"primary"},on:{click:e.handelClickAdd}},[e._v("新建")])],1)],2),t("div",{staticClass:"video-panel"},[t("div",{staticClass:"center-container"},[e.updateVideoSource?e._e():t("video",{ref:"refVideo",attrs:{controls:"",width:"768px"}},[t("source",{attrs:{src:e.videoUrl,type:"video/mp4"}}),e._v(" Your browser does not support the video tag. ")]),t("TimeRangeSelector",{on:{change:e.handleRangeChange},model:{value:e.timeRange,callback:function(t){e.timeRange=t},expression:"timeRange"}})],1)]),t("el-collapse-transition",[t("div",{directives:[{name:"show",rawName:"v-show",value:e.currentSelectDubbingIndex>=0,expression:"currentSelectDubbingIndex >= 0"}],staticClass:"button-group"},[t("el-button",{attrs:{type:"",size:"medium",icon:"el-icon-refresh"},on:{click:e.handleClickPlayRange}},[e._v("播放区间")]),t("el-button",{directives:[{name:"show",rawName:"v-show",value:!e.isPlaying,expression:"!isPlaying"}],attrs:{type:"",size:"medium",icon:"el-icon-video-play"},on:{click:e.handleClickPlay}},[e._v("播放")]),t("el-button",{directives:[{name:"show",rawName:"v-show",value:e.isPlaying,expression:"isPlaying"}],attrs:{type:"",size:"medium",icon:"el-icon-video-pause"},on:{click:e.handleClickPause}},[e._v("暂停")]),t("el-button",{attrs:{type:"",size:"medium"},on:{click:e.handelClickRre10s}},[e._v("向前1秒")]),t("el-button",{attrs:{type:"",size:"medium"},on:{click:e.handleClickSetStart}},[e._v("设置为起点")]),t("el-button",{attrs:{type:"",size:"medium"},on:{click:e.handleClickSetEnd}},[e._v("设置为结束点")])],1)])],1),t("el-dialog",{attrs:{title:"选择内容",visible:e.dialogSelectShow,width:"500px"},on:{"update:visible":function(t){e.dialogSelectShow=t}}},[t("div",{staticClass:"el-main",staticStyle:{height:"300px"}},[t("el-tree",{attrs:{data:e.treeListData,props:e.treeProps,lazy:!0,load:e.handleLazyLoadTreeData},on:{"node-click":e.handleClickTreeNode}})],1),t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("span",{staticClass:"current-selected-text"},[e._v("当前选择:"+e._s(e.currentSelectTreeNode?e.currentSelectTreeNode.name:"")+" - "+e._s(e.currentSelectTreeNode?e.currentSelectTreeNode.id:""))]),t("el-button",{on:{click:e.handleClickCancelSelect}},[e._v("取 消")]),t("el-button",{attrs:{type:"primary"},on:{click:e.handleClickConfirmSelect}},[e._v("确 定")])],1)])],1)},l=[],o=function(){vare=this,t=e._self._c;returnt("div",{staticClass:"com-trs"},[t("div",{ref:"refEcharts",staticClass:"chart-slider"})])},c=[],d={name:"TimeRangeSelector",props:{value:{type:Object,default:()=>({start:0,end:100})}},watch:{value:{handler(e){this.parentValueChange=!0,this.setTimeRange(100*e.start,100*e.end)},deep:!0}},data(){return{insECharts:null,parentValueChange:!1}},mounted(){this.initEcharts()},methods:{initEcharts(){this.insECharts||(this.insECharts=this.$echarts.init(this.$refs.refEcharts));conste={grid:{left:10,right:10,top:10,bottom:10},tooltip:{},dataZoom:[{type:"slider"}],xAxis:{show:!1},yAxis:{show:!1}};this.insECharts.on("dataZoom",(e=>{this.parentValueChange?this.parentValueChange=!1:(this.$emit("change",{start:e.start/100,end:e.end/100}),this.$emit("input",{start:e.start/100,end:e.end/100}))})),this.insECharts.setOption(e)},setTimeRange(e,t){this.insECharts.dispatchAction({type:"dataZoom",dataZoomIndex:0,start:e,end:t})}}},u=d,h=i(1656),f=(0,h.A)(u,o,c,!1,null,"291eb56d",null),m=f.exports,p=i(4335);constb=523,g=275931,v="https://ema.iteachabc.com/api/syllabus/v1",y=e=>newPromise((async(t,i)=>{constn=awaitp.A.get(`${v}/list?orgid=${b}&pid=${e||g}`);t(n.data)})),S=e=>newPromise((async(t,i)=>{constn=awaitp.A.get(`${v}/getdata?syllabusid=${e}`);t(n.data)}));varC={name:"App",components:{TimeRangeSelector:m},data(){return{isPlaying:!1,videoUrl:"https://teach.cdn.ireadabc.com/3d13b9a7b2cb777836a3d5b29c38384b.mp4",timeRange:{start:0,end:1},dubbintItems:[],dialogSelectShow:!1,treeListData:[],currentSelectTreeNode:null,treeProps:{children:"children",label:"name",isLeaf:function(e,t){return"1"==e.has_courseware}},updateVideoSource:!1,currentSelectDubbingIndex:-1}},asyncmounted(){this.getData()},methods:{asyncgetData(){conste=awaitthis.$getData();console.log("====getData====",e),this.dubbintItems=e||[]},handleRangeChange(e){this.$refs.refVideo.currentTime=e.start*this.$refs.refVideo.duration;constt=this.timeRange.start*this.$refs.refVideo.duration,i=this.timeRange.end*this.$refs.refVideo.duration;this.dubbintItems[this.currentSelectDubbingIndex].timelineIn=t,this.dubbintItems[this.currentSelectDubbingIndex].timelineOut=i},handleClickPlayRange(){conste=this.timeRange.start*this.$refs.refVideo.duration,t=this.timeRange.end*this.$refs.refVideo.duration;this.$refs.refVideo.currentTime=e,this.$refs.refVideo.play().then((()=>{this.isPlaying=!0;conste=()=>{this.$refs.refVideo.currentTime>=t&&(this.$refs.refVideo.pause(),this.isPlaying=!1,this.$refs.refVideo.removeEventListener("timeupdate",e))};this.$refs.refVideo.addEventListener("timeupdate",e,!1)})).catch((e=>{console.log(e)}))},handleClickPlay(){this.$refs.refVideo.play(),this.isPlaying=!0},handleClickPause(){this.$refs.refVideo.pause(),this.isPlaying=!1},handelClickRre10s(){this.$refs.refVideo.currentTime-=1},handleClickSetStart(){this.timeRange.start=this.$refs.refVideo.currentTime/this.$refs.refVideo.duration,this.dubbintItems[this.currentSelectDubbingIndex].timelineIn=this.$refs.refVideo.currentTime},handleClickSetEnd(){this.timeRange.end=this.$refs.refVideo.currentTime/this.$refs.refVideo.duration,this.dubbintItems[this.currentSelectDubbingIndex].timelineOut=this.$refs.refVideo.currentTime},handleClickSetCurrent(e,t=!1){consti=this.dubbintItems[e].timelineIn/this.$refs.refVideo.duration,n=this.dubbintItems[e].timelineOut/this.$refs.refVideo.duration;this.currentSelectDubbingIndex=e,this.timeRange={start:i,end:n},t&&this.handleClickPlayRange()},handleClickDelete(e){this.$confirm("确定要删除吗?").then((t=>{this.dubbintItems.splice(e,1)})).catch((e=>""))},handelClickAdd(){this.dubbintItems.push({orgText:"",transText:"",timelineIn:0,timelineOut:1}),this.$nextTick((()=>{this.$refs.refDubbingScrollList.scrollTop=this.$refs.refDubbingScrollList.scrollHeight}))},asynchandleClickSelectSyllabus(){this.dialogSelectShow=!0;conste=awaity();this.treeListData=e.rows},handleClickTreeNode(e){"1"==e.has_courseware&&(this.currentSelectTreeNode=e)},handleLazyLoadTreeData(e,t){y(e.data.id).then((e=>{t(e.rows)}))},handleClickCancelSelect(){this.dialogSelectShow=!1,this.currentSelectTreeNode=null,this.treeListData=[]},asynchandleClickConfirmSelect(){conste=awaitS(this.currentSelectTreeNode.id);lett=null;try{t=JSON.parse(e.data)}catch(i){}this.videoUrl=t?t.url:"",this.updateVideoSource=!0,this.$nextTick((()=>{this.updateVideoSource=!1})),this.handleClickCancelSelect()},asynchandleClickSave(){this.$setData(this.dubbintItems)}}},k=C,w=(0,h.A)(k,s,l,!1,null,null,null),x=w.exports,$=i(9393);n["default"].use(r()),n["default"].config.productionTip=!1,n["default"].prototype.$getData=()=>newPromise(((e,t)=>{window.courseware.getData((t=>{e(t)}),"default_key")})),n["default"].prototype.$setData=e=>{window.courseware.setData(e,null,"default_key")},n["default"].prototype.$echarts=$,newn["default"]({render:function(e){returne(x)}}).$mount("#app")}},t={};functioni(n){vara=t[n];if(void0!==a)returna.exports;varr=t[n]={id:n,loaded:!1,exports:{}};returne[n](r,r.exports,i),r.loaded=!0,r.exports}i.m=e,function(){i.amdO={}}(),function(){vare=[];i.O=function(t,n,a,r){if(!n){vars=1/0;for(d=0;d<e.length;d++){n=e[d][0],a=e[d][1],r=e[d][2];for(varl=!0,o=0;o<n.length;o++)(!1&r||s>=r)&&Object.keys(i.O).every((function(e){returni.O[e](n[o])}))?n.splice(o--,1):(l=!1,r<s&&(s=r));if(l){e.splice(d--,1);varc=a();void0!==c&&(t=c)}}returnt}r=r||0;for(vard=e.length;d>0&&e[d-1][2]>r;d--)e[d]=e[d-1];e[d]=[n,a,r]}}(),function(){i.n=function(e){vart=e&&e.__esModule?function(){returne["default"]}:function(){returne};returni.d(t,{a:t}),t}}(),function(){i.d=function(e,t){for(varnint)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}}(),function(){i.g=function(){if("object"===typeofglobalThis)returnglobalThis;try{returnthis||newFunction("return this")()}catch(e){if("object"===typeofwindow)returnwindow}}()}(),function(){i.o=function(e,t){returnObject.prototype.hasOwnProperty.call(e,t)}}(),function(){i.r=function(e){"undefined"!==typeofSymbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}}(),function(){i.nmd=function(e){returne.paths=[],e.children||(e.children=[]),e}}(),function(){vare={524:0};i.O.j=function(t){return0===e[t]};vart=function(t,n){vara,r,s=n[0],l=n[1],o=n[2],c=0;if(s.some((function(t){return0!==e[t]}))){for(ainl)i.o(l,a)&&(i.m[a]=l[a]);if(o)vard=o(i)}for(t&&t(n);c<s.length;c++)r=s[c],i.o(e,r)&&e[r]&&e[r][0](),e[r]=0;returni.O(d)},n=self["webpackChunkform_vue"]=self["webpackChunkform_vue"]||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))}();varn=i.O(void0,[504],(function(){returni(6002)}));n=i.O(n)})();
(function(){"use strict";vare={311:function(e,t,i){varn=i(5471),a=i(1052),r=i.n(a),s=function(){vare=this,t=e._self._c;returnt("div",{attrs:{id:"app"}},[t("div",{staticClass:"main-header"},[t("div",{staticStyle:{float:"left"}},[t("span",[e._v("当前编辑视频:")]),t("el-button",{attrs:{type:"text"},on:{click:e.handleClickSelectSyllabus}},[e._v("在库中选择视频")])],1),t("div",{staticStyle:{float:"right"}},[t("el-button",{attrs:{type:"primary"},on:{click:e.handleClickSave}},[e._v("保存")])],1)]),t("div",{staticClass:"main-body"},[t("div",{ref:"refDubbingScrollList",staticClass:"dubbing-items"},[e._l(e.dubbintItems,(function(i,n){returnt("el-card",{key:n,staticClass:"box-card"},[t("div",{staticStyle:{position:"relative"}},[t("span",{staticClass:"item-index",staticStyle:{position:"absolute"}},[e._v(e._s(n+1)+""),t("span",{staticStyle:{"font-size":"medium","line-height":"normal"}},[e._v(e._s(e.currentSelectDubbingIndex==n?"正在编辑":""))])]),t("div",{staticStyle:{"text-align":"right"}},[t("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(t){returne.handleClickDelete(n)}}},[e._v("删除")]),t("el-button",{attrs:{size:"mini",type:"primary"},on:{click:function(t){returne.handleClickSetCurrent(n)}}},[e._v("编辑")])],1)]),t("el-divider"),t("el-form",{attrs:{"label-width":"50px"}},[t("el-form-item",{attrs:{label:"原文"}},[t("el-input",{attrs:{type:"text"},model:{value:i.orgText,callback:function(t){e.$set(i,"orgText",t)},expression:"item.orgText"}})],1),t("el-form-item",{attrs:{label:"开始"}},[t("el-input",{attrs:{type:"text"},model:{value:i.timelineIn,callback:function(t){e.$set(i,"timelineIn",t)},expression:"item.timelineIn"}},[t("template",{slot:"append"},[e._v("(秒)")])],2)],1),t("el-form-item",{attrs:{label:"结束"}},[t("el-input",{attrs:{type:"text"},model:{value:i.timelineOut,callback:function(t){e.$set(i,"timelineOut",t)},expression:"item.timelineOut"}},[t("template",{slot:"append"},[e._v("(秒)")])],2)],1)],1)],1)})),t("el-card",{staticClass:"box-card"},[t("el-button",{staticStyle:{width:"100%"},attrs:{type:"primary"},on:{click:e.handelClickAdd}},[e._v("新建")])],1)],2),t("div",{staticClass:"video-panel"},[t("div",{staticClass:"center-container"},[e.updateVideoSource?e._e():t("video",{ref:"refVideo",attrs:{controls:"",width:"768px"}},[t("source",{attrs:{src:e.videoUrl,type:"video/mp4"}}),e._v(" Your browser does not support the video tag. ")]),t("TimeRangeSelector",{on:{change:e.handleRangeChange},model:{value:e.timeRange,callback:function(t){e.timeRange=t},expression:"timeRange"}})],1)]),t("el-collapse-transition",[t("div",{directives:[{name:"show",rawName:"v-show",value:e.currentSelectDubbingIndex>=0,expression:"currentSelectDubbingIndex >= 0"}],staticClass:"button-group"},[t("el-button",{attrs:{type:"",size:"medium",icon:"el-icon-refresh"},on:{click:e.handleClickPlayRange}},[e._v("播放区间")]),t("el-button",{directives:[{name:"show",rawName:"v-show",value:!e.isPlaying,expression:"!isPlaying"}],attrs:{type:"",size:"medium",icon:"el-icon-video-play"},on:{click:e.handleClickPlay}},[e._v("播放")]),t("el-button",{directives:[{name:"show",rawName:"v-show",value:e.isPlaying,expression:"isPlaying"}],attrs:{type:"",size:"medium",icon:"el-icon-video-pause"},on:{click:e.handleClickPause}},[e._v("暂停")]),t("el-button",{attrs:{type:"",size:"medium"},on:{click:e.handelClickRre10s}},[e._v("向前1秒")]),t("el-button",{attrs:{type:"",size:"medium"},on:{click:e.handleClickSetStart}},[e._v("设置为起点")]),t("el-button",{attrs:{type:"",size:"medium"},on:{click:e.handleClickSetEnd}},[e._v("设置为结束点")])],1)])],1),t("el-dialog",{attrs:{title:"选择内容",visible:e.dialogSelectShow,width:"500px"},on:{"update:visible":function(t){e.dialogSelectShow=t}}},[t("div",{staticClass:"el-main",staticStyle:{height:"300px"}},[t("el-tree",{attrs:{data:e.treeListData,props:e.treeProps,lazy:!0,load:e.handleLazyLoadTreeData},on:{"node-click":e.handleClickTreeNode}})],1),t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("span",{staticClass:"current-selected-text"},[e._v("当前选择:"+e._s(e.currentSelectTreeNode?e.currentSelectTreeNode.name:"")+" - "+e._s(e.currentSelectTreeNode?e.currentSelectTreeNode.id:""))]),t("el-button",{on:{click:e.handleClickCancelSelect}},[e._v("取 消")]),t("el-button",{attrs:{type:"primary"},on:{click:e.handleClickConfirmSelect}},[e._v("确 定")])],1)])],1)},l=[],o=function(){vare=this,t=e._self._c;returnt("div",{staticClass:"com-trs"},[t("div",{ref:"refEcharts",staticClass:"chart-slider"})])},c=[],d={name:"TimeRangeSelector",props:{value:{type:Object,default:()=>({start:0,end:100})}},watch:{value:{handler(e){this.parentValueChange=!0,this.setTimeRange(100*e.start,100*e.end)},deep:!0}},data(){return{insECharts:null,parentValueChange:!1}},mounted(){this.initEcharts()},methods:{initEcharts(){this.insECharts||(this.insECharts=this.$echarts.init(this.$refs.refEcharts));conste={grid:{left:10,right:10,top:10,bottom:10},tooltip:{},dataZoom:[{type:"slider"}],xAxis:{show:!1},yAxis:{show:!1}};this.insECharts.on("dataZoom",(e=>{this.parentValueChange?this.parentValueChange=!1:(this.$emit("change",{start:e.start/100,end:e.end/100}),this.$emit("input",{start:e.start/100,end:e.end/100}))})),this.insECharts.setOption(e)},setTimeRange(e,t){this.insECharts.dispatchAction({type:"dataZoom",dataZoomIndex:0,start:e,end:t})}}},u=d,h=i(1656),f=(0,h.A)(u,o,c,!1,null,"291eb56d",null),m=f.exports,p=i(4335);constb=523,g=275931,v="https://ema.iteachabc.com/api/syllabus/v1",y=e=>newPromise((async(t,i)=>{constn=awaitp.A.get(`${v}/list?orgid=${b}&pid=${e||g}`);t(n.data)})),S=e=>newPromise((async(t,i)=>{constn=awaitp.A.get(`${v}/getdata?syllabusid=${e}`);t(n.data)}));varC={name:"App",components:{TimeRangeSelector:m},data(){return{isPlaying:!1,videoUrl:"https://teach.cdn.ireadabc.com/3d13b9a7b2cb777836a3d5b29c38384b.mp4",timeRange:{start:0,end:1},dubbintItems:[],dialogSelectShow:!1,treeListData:[],currentSelectTreeNode:null,treeProps:{children:"children",label:"name",isLeaf:function(e,t){return"1"==e.has_courseware}},updateVideoSource:!1,currentSelectDubbingIndex:-1}},asyncmounted(){this.getData()},methods:{asyncgetData(){conste=awaitthis.$getData();console.log("====getData====",e),this.dubbintItems=e||[]},handleRangeChange(e){this.$refs.refVideo.currentTime=e.start*this.$refs.refVideo.duration;constt=this.timeRange.start*this.$refs.refVideo.duration,i=this.timeRange.end*this.$refs.refVideo.duration;this.dubbintItems[this.currentSelectDubbingIndex].timelineIn=t,this.dubbintItems[this.currentSelectDubbingIndex].timelineOut=i},handleClickPlayRange(){conste=this.timeRange.start*this.$refs.refVideo.duration,t=this.timeRange.end*this.$refs.refVideo.duration;this.$refs.refVideo.currentTime=e,this.$refs.refVideo.play().then((()=>{this.isPlaying=!0;conste=()=>{this.$refs.refVideo.currentTime>=t&&(this.$refs.refVideo.pause(),this.isPlaying=!1,this.$refs.refVideo.removeEventListener("timeupdate",e))};this.$refs.refVideo.addEventListener("timeupdate",e,!1)})).catch((e=>{console.log(e)}))},handleClickPlay(){this.$refs.refVideo.play(),this.isPlaying=!0},handleClickPause(){this.$refs.refVideo.pause(),this.isPlaying=!1},handelClickRre10s(){this.$refs.refVideo.currentTime-=1},handleClickSetStart(){this.timeRange.start=this.$refs.refVideo.currentTime/this.$refs.refVideo.duration,this.dubbintItems[this.currentSelectDubbingIndex].timelineIn=this.$refs.refVideo.currentTime},handleClickSetEnd(){this.timeRange.end=this.$refs.refVideo.currentTime/this.$refs.refVideo.duration,this.dubbintItems[this.currentSelectDubbingIndex].timelineOut=this.$refs.refVideo.currentTime},handleClickSetCurrent(e,t=!1){consti=this.dubbintItems[e].timelineIn/this.$refs.refVideo.duration,n=this.dubbintItems[e].timelineOut/this.$refs.refVideo.duration;this.currentSelectDubbingIndex=e,this.timeRange={start:i,end:n},t&&this.handleClickPlayRange()},handleClickDelete(e){this.$confirm("确定要删除吗?").then((t=>{this.dubbintItems.splice(e,1)})).catch((e=>""))},handelClickAdd(){this.dubbintItems.push({orgText:"",transText:"",timelineIn:0,timelineOut:1}),this.$nextTick((()=>{this.$refs.refDubbingScrollList.scrollTop=this.$refs.refDubbingScrollList.scrollHeight}))},asynchandleClickSelectSyllabus(){this.dialogSelectShow=!0;conste=awaity();this.treeListData=e.rows},handleClickTreeNode(e){"1"==e.has_courseware&&(this.currentSelectTreeNode=e)},handleLazyLoadTreeData(e,t){y(e.data.id).then((e=>{t(e.rows)}))},handleClickCancelSelect(){this.dialogSelectShow=!1,this.currentSelectTreeNode=null,this.treeListData=[]},asynchandleClickConfirmSelect(){conste=awaitS(this.currentSelectTreeNode.id);lett=null;try{t=JSON.parse(e.data)}catch(i){}this.videoUrl=t?t.url:"",this.updateVideoSource=!0,this.$nextTick((()=>{this.updateVideoSource=!1})),this.handleClickCancelSelect()},asynchandleClickSave(){this.$setData(this.dubbintItems)}}},k=C,w=(0,h.A)(k,s,l,!1,null,null,null),x=w.exports,$=i(9393);n["default"].use(r()),n["default"].config.productionTip=!1,n["default"].prototype.$getData=()=>newPromise(((e,t)=>{window.courseware.getData((t=>{e(t)}),"default_key")})),n["default"].prototype.$setData=e=>{window.courseware.setData(e,null,"default_key")},n["default"].prototype.$echarts=$,newn["default"]({render:function(e){returne(x)}}).$mount("#app")}},t={};functioni(n){vara=t[n];if(void0!==a)returna.exports;varr=t[n]={id:n,loaded:!1,exports:{}};returne[n](r,r.exports,i),r.loaded=!0,r.exports}i.m=e,function(){i.amdO={}}(),function(){vare=[];i.O=function(t,n,a,r){if(!n){vars=1/0;for(d=0;d<e.length;d++){n=e[d][0],a=e[d][1],r=e[d][2];for(varl=!0,o=0;o<n.length;o++)(!1&r||s>=r)&&Object.keys(i.O).every((function(e){returni.O[e](n[o])}))?n.splice(o--,1):(l=!1,r<s&&(s=r));if(l){e.splice(d--,1);varc=a();void0!==c&&(t=c)}}returnt}r=r||0;for(vard=e.length;d>0&&e[d-1][2]>r;d--)e[d]=e[d-1];e[d]=[n,a,r]}}(),function(){i.n=function(e){vart=e&&e.__esModule?function(){returne["default"]}:function(){returne};returni.d(t,{a:t}),t}}(),function(){i.d=function(e,t){for(varnint)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}}(),function(){i.g=function(){if("object"===typeofglobalThis)returnglobalThis;try{returnthis||newFunction("return this")()}catch(e){if("object"===typeofwindow)returnwindow}}()}(),function(){i.o=function(e,t){returnObject.prototype.hasOwnProperty.call(e,t)}}(),function(){i.r=function(e){"undefined"!==typeofSymbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}}(),function(){i.nmd=function(e){returne.paths=[],e.children||(e.children=[]),e}}(),function(){vare={524:0};i.O.j=function(t){return0===e[t]};vart=function(t,n){vara,r,s=n[0],l=n[1],o=n[2],c=0;if(s.some((function(t){return0!==e[t]}))){for(ainl)i.o(l,a)&&(i.m[a]=l[a]);if(o)vard=o(i)}for(t&&t(n);c<s.length;c++)r=s[c],i.o(e,r)&&e[r]&&e[r][0](),e[r]=0;returni.O(d)},n=self["webpackChunkform_vue"]=self["webpackChunkform_vue"]||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))}();varn=i.O(void0,[504],(function(){returni(311)}));n=i.O(n)})();