| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6df05996"],{"22d1":function(e,t,a){},"7dba":function(e,t,a){"use strict";a("22d1")},b216:function(e,t,a){"use strict";a.r(t);var l=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"context"},[a("div",{staticClass:"panel"},[a("h5",[e._v("视频管理")]),a("div",{staticClass:"panel-body"},[a("div",{staticClass:"panel_control"},[a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:3,align:"center"}},[a("em",[e._v("视频名称:")]),a("el-input",{attrs:{placeholder:"请输入姓名"},model:{value:e.panel.name,callback:function(t){e.$set(e.panel,"name",t)},expression:"panel.name"}})],1),a("el-col",{attrs:{span:4}},[a("em",[e._v("视频分类:")]),a("el-select",{attrs:{placeholder:"请选择"},model:{value:e.panel.typeId,callback:function(t){e.$set(e.panel,"typeId",t)},expression:"panel.typeId"}},[a("el-option",{key:0,attrs:{label:"全部",value:""}}),e._l(e.panel.typeOptions,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}))],2)],1),a("el-col",{attrs:{span:3}},[a("em",[e._v("标签:")]),a("el-select",{attrs:{placeholder:"请选择"},model:{value:e.panel.labelId,callback:function(t){e.$set(e.panel,"labelId",t)},expression:"panel.labelId"}},[a("el-option",{key:0,attrs:{label:"全部",value:""}}),e._l(e.panel.labelOptions,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}))],2)],1),a("el-col",{attrs:{span:4}},[a("el-button",{attrs:{size:"",type:"primary",disabled:e.searchBtnStatus,plain:""},on:{click:e.query}},[e._v("查询 ")])],1)],1)],1)])]),a("div",{staticClass:"change"},[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.addNewVideo}},[e._v("视频新增")])],1),a("div",{staticClass:"table"},[a("el-table",{attrs:{data:e.tableData,border:"","is-horizontal-resize":"","default-sort":{prop:"date",order:"descending"},"element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{"selection-change":e.handleSelectionChange}},[e._v(" > "),a("el-table-column",{attrs:{label:"序号",type:"index",width:"50",align:"center",fixed:""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(e.start+t.$index+1))])]}}])}),a("el-table-column",{attrs:{prop:"VTitle",label:"视频名称",align:"center","min-width":"55",fixed:""}}),a("el-table-column",{attrs:{prop:"CategoriesList",label:"视频分类",align:"center","min-width":"45",fixed:""},scopedSlots:e._u([{key:"default",fn:function(t){return e._l(t.row.CategoriesList,(function(t){return a("span",{staticStyle:{width:"60px",height:"25px",background:"#00a2c2","border-radius":"5px","margin-left":"10px",color:"white"}},[e._v(e._s(t.Name))])}))}}])}),a("el-table-column",{attrs:{prop:"TagList",label:"视频标签",align:"center","min-width":"45",fixed:""},scopedSlots:e._u([{key:"default",fn:function(t){return e._l(t.row.TagList,(function(t){return a("span",{staticStyle:{width:"60px",height:"25px",background:"#e9bb2b","border-radius":"5px","margin-left":"10px",color:"white"}},[e._v(e._s(t.TagName))])}))}}])}),a("el-table-column",{attrs:{prop:"BeginTime",label:"封面",formatter:e.filterFmtDate,align:"center","min-width":"45",fixed:""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.CoverUrl?a("el-image",{attrs:{src:t.row.CoverUrl}}):e._e()]}}])}),a("el-table-column",{attrs:{prop:"aliVid",label:"视频操作",align:"center","min-width":"20",fixed:""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.AliVid?a("span",{staticStyle:{width:"60px",height:"25px",background:"#84cc73","border-radius":"5px",display:"block","line-height":"25px",color:"white"},on:{click:function(a){return e.showPlayerDialog(t.row)}}},[e._v("播放")]):e._e(),a("span",{staticStyle:{width:"60px",height:"25px",background:"#e9bb2b","border-radius":"5px",display:"block","margin-top":"10px","line-height":"25px",color:"white"},on:{click:function(a){return e.uploadDialog(t.row)}}},[e._v(" "+e._s(""==t.row.AliVid?"上传":"重新上传")+" ")])]}}])}),a("el-table-column",{attrs:{prop:"ExerciseLevel",label:"训练等级",align:"center","min-width":"25",fixed:""}}),a("el-table-column",{attrs:{prop:"PredictCal",label:"卡路里",align:"center","min-width":"25",fixed:""}}),a("el-table-column",{attrs:{prop:"Memo",label:"备注",align:"center","min-width":"25",fixed:""}}),a("el-table-column",{attrs:{prop:"Status",label:"操作",width:"320"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"normal",size:"mini"},on:{click:function(a){return e.editVideo(t.row)}}},[e._v(" 编辑 ")]),1==t.row.Status?a("el-button",{staticClass:"btn",attrs:{type:"normal",size:"mini"},on:{click:function(a){return e.editRow(t.row,8)}}},[e._v(" 下线 ")]):e._e(),8==t.row.Status?a("el-button",{staticClass:"btn",attrs:{type:"success",size:"mini"},on:{click:function(a){return e.editRow(t.row,1)}}},[e._v(" 上线 ")]):e._e(),8==t.row.Status?a("el-button",{staticClass:"btn",attrs:{type:"danger",size:"mini"},on:{click:function(a){return e.editRow(t.row,9)}}},[e._v(" 删除 ")]):e._e(),e._e()]}}])})],1),a("br"),a("el-pagination",{attrs:{background:"",total:e.pagination.total,"page-size":e.pagination.pageItem,"current-page":e.cur_page},on:{"current-change":e.pageChange,"update:currentPage":function(t){e.cur_page=t},"update:current-page":function(t){e.cur_page=t}}})],1),a("el-dialog",{attrs:{title:e.dialogTitle,visible:e.dialogVideoAdd,width:"650px"},on:{"update:visible":function(t){e.dialogVideoAdd=t}}},[a("div",{staticClass:"dialogContent"},[a("div",{},[a("el-form",{ref:"form",attrs:{model:e.form,"label-width":"160px"}},[a("el-form-item",{attrs:{label:"视频封面",required:!0}},[""!=e.form.coverData?a("img",{staticClass:"avatar",attrs:{src:e.form.coverData}}):""!=e.form.coverUrl?a("img",{staticClass:"avatar",attrs:{src:e.form.coverUrl}}):e._e(),a("el-form-item",{attrs:{required:!0}},[a("input",{ref:"fileRef",attrs:{type:"file",id:"filed"},on:{change:e.imgSelected}})])],1),a("el-form-item",{attrs:{label:"视频名称",required:!0}},[a("el-input",{model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1),a("el-form-item",{attrs:{label:"视频类型",required:!0}},[a("el-radio",{attrs:{label:"1"},model:{value:e.form.videoType,callback:function(t){e.$set(e.form,"videoType",t)},expression:"form.videoType"}},[e._v("非锻炼视频")]),a("el-radio",{attrs:{label:"2"},model:{value:e.form.videoType,callback:function(t){e.$set(e.form,"videoType",t)},expression:"form.videoType"}},[e._v("锻炼视频")])],1),2==e.form.videoType?a("el-form-item",{attrs:{label:"卡路里"}},[a("el-input",{attrs:{type:"number"},model:{value:e.form.calorie,callback:function(t){e.$set(e.form,"calorie",t)},expression:"form.calorie"}})],1):e._e(),2==e.form.videoType?a("el-form-item",{attrs:{label:"难度级别",required:!0}},[a("el-select",{model:{value:e.form.level,callback:function(t){e.$set(e.form,"level",t)},expression:"form.level"}},e._l(e.panel.levelOptions,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1):e._e(),a("el-form-item",{attrs:{label:"视频说明",required:!0}},[a("el-input",{model:{value:e.form.memo,callback:function(t){e.$set(e.form,"memo",t)},expression:"form.memo"}})],1),a("el-form-item",{attrs:{label:"视频分类",required:!0}},[a("el-select",{attrs:{multiple:"",placeholder:"请选择"},model:{value:e.form.typeId,callback:function(t){e.$set(e.form,"typeId",t)},expression:"form.typeId"}},e._l(e.panel.typeOptions,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),a("el-form-item",{attrs:{label:"视频标签",required:!0}},[a("el-select",{attrs:{multiple:"",placeholder:"请选择"},model:{value:e.form.labelId,callback:function(t){e.$set(e.form,"labelId",t)},expression:"form.labelId"}},e._l(e.panel.labelOptions,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1)],1)],1)]),a("div",{staticClass:"dialogFooter"},[a("el-button",{attrs:{size:"small"},on:{click:function(t){e.dialogVideoAdd=!1}}},[e._v("取消")]),0==e.form.btnType?a("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(t){return e.confirmAddNewVideoInfo()}}},[e._v("确定")]):e._e(),1==e.form.btnType?a("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(t){return e.confirmEditVideoInfo()}}},[e._v("确定")]):e._e()],1)]),a("el-dialog",{attrs:{title:e.dialogTitle,visible:e.dialogVideoUpload,width:"750px"},on:{"update:visible":function(t){e.dialogVideoUpload=t}}},[a("el-form",[a("el-form-item",{attrs:{label:"视频上传",required:!0}},[a("input",{ref:"pathClear",attrs:{type:"file",id:"fileUpload"},on:{change:function(t){return e.fileChange(t)}}})]),a("el-form-item",{attrs:{label:"上传状态",required:!0}},[a("label",{staticClass:"status"},[a("span",[e._v(e._s(e.statusText))])]),a("span",{staticClass:"progress"},[e._v("上传进度: "),a("i",{attrs:{id:"auth-progress"}},[e._v(e._s(e.authProgress))]),e._v(" %")])])],1),a("div",{staticClass:"dialogFooter"},[a("el-button",{attrs:{size:"small"},on:{click:function(t){e.dialogVideoUpload=!1}}},[e._v("取消")]),a("el-button",{attrs:{type:"primary",size:"small",disabled:1!=e.form.vState},on:{click:function(t){return e.confirmUpload()}}},[e._v("确定")])],1)],1),a("el-dialog",{attrs:{title:e.dialogTitle,visible:e.dialogVideoVisible,width:"750px"},on:{"update:visible":function(t){e.dialogVideoVisible=t},close:e.closePlayerDialog}},[a("el-form",[a("el-form-item",{attrs:{required:!0}},[a("div",{staticClass:"prism-player",attrs:{id:"J_prismPlayer"}})])],1),a("div",{staticClass:"dialogFooter"},[a("el-button",{attrs:{size:"small"},on:{click:function(t){return e.closePlayerDialog()}}},[e._v("关闭")])],1)],1),a("el-dialog",{attrs:{title:e.dialogTitle,visible:e.dialogVideoCoverAdd,width:"750px"},on:{"update:visible":function(t){e.dialogVideoCoverAdd=t}}},[a("el-form",[a("el-form-item",{attrs:{required:!0}},[a("input",{attrs:{type:"file"},on:{change:e.fileChange}})])],1),a("div",{staticClass:"dialogFooter"},[a("el-button",{attrs:{size:"small"},on:{click:function(t){e.dialogVideoCoverAdd=!1}}},[e._v("关闭")])],1)],1)],1)},o=[],i=(a("10dd"),a("4c1e"),a("fee8"),a("89a8"),a("d5ee"),a("5a05"),a("cad8")),r=a("0131"),n=(a("f329"),a("8d6e")),s=a("32b2"),d=a.n(s),u=a("b74f"),c=a("daf0"),p={data:function(){return{dialogTitle:"视频新增",dialogVideoAdd:!1,dialogVideoUpload:!1,dialogVideoVisible:!1,dialogVideoCoverAdd:!1,searchBtnStatus:!1,current:i["a"].getNowDate(),domain:"https://up-z1.qiniup.com",qNCloudAdd:"cover.beswell.com",timeout:"",partSize:"",parallel:"",retryCount:"",retryDuration:"",region:"cn-shanghai",userId:"1303984639806000",selectedFile:!1,file:null,authProgress:0,uploadDisabled:!0,resumeDisabled:!0,pauseDisabled:!0,uploader:null,statusText:"",panel:{name:"",typeId:"",labelId:"",typeOptions:[],labelOptions:[],levelOptions:[{value:1,label:"等级一"},{value:2,label:"等级二"},{value:3,label:"等级三"}]},form:{videoId:"",btnType:0,aliVid:"",coverUrl:"",coverData:"",name:"",videoType:"",calorie:"",level:"",memo:"",typeId:"",labelId:"",vState:""},multipleSelection:[],start:0,draw:1,cur_page:1,recordsTotal:0,pagination:{pageItem:10,pageOptions:i["a"].pageOptions(),total:100,pageIndex:1},tableData:[],userLevel:localStorage.userLevel}},mounted:function(){var e=i["a"].dateTimeFilter(new Date,11);console.log(e),this.getVideoClassification(),this.getVideoLabelInfo(),this.getTableQuery()},watch:{$route:function(e){"videoManage"==e.name&&this.getTableQuery()}},methods:{handleSelectionChange:function(e){this.multipleSelection=e},imgSelected:function(e){var t=this,a=e.target.files[0];if(e&&window.FileReader){var l=new FileReader;l.readAsDataURL(a),l.onloadend=function(){t.form.coverData=this.result},this.uploadQNCloud(a)}},uploadQNCloud:function(e){var t=this;console.log(e);var a=this,l="videocover_"+(new Date).valueOf()+Math.floor(100*Math.random())+"."+e.name.split(".").pop(),o=new d.a;o.md5(e,(function(o,i){o?console.log("err:",o):(l=i+"."+e.name.split(".").pop(),console.log(i));var r=new u["ManagerCreateQiNiuImageTokenRequest"];r.setFilename(l),console.log(r),a.client.managerCreateQiNiuImageToken(r,{Token:localStorage.token},(function(o,i){if(null!=i){var r=i.getQiniutoken(),n={headers:{"Content-Type":"multipart/form-data"}},s=new FormData;s.append("file",e),s.append("token",r),s.append("key",l),t.axios.post(t.domain,s,n).then((function(e){a.form.coverUrl="http://"+t.qNCloudAdd+"/"+e.data.key}))}else{var d=o;a.$message.error(d.message+",错误代码:"+d.code)}}))}),(function(e){console.log("progress number:",e)})),console.log("fileName:",l)},addNewVideo:function(e){var t=this;t.form.coverUrl="",t.form.coverData="",t.form.name="",t.form.videoType="1",t.form.calorie="",t.form.level="",t.form.memo="",t.form.typeId="",t.form.labelId="",t.dialogVideoAdd=!0,t.form.btnType=0},confirmAddNewVideoInfo:function(){var e=this,t=this,a=new u["ManagerVideoInfoAddRequest"];a.setTitle(t.form.name),a.setVtype(t.form.videoType),a.setCal(t.form.calorie),a.setVcidlist(t.form.typeId.toString()),a.setMemo(t.form.memo),a.setLevel(t.form.level),a.setTagidlist(t.form.labelId.toString()),a.setCoverurl(t.form.coverUrl),t.client.managerVideoInfoAdd(a,{Token:localStorage.token},(function(a,l){null!=l?(t.dialogVideoAdd=!1,t.$message.success("添加成功"),e.getTableQuery()):t.$message.error(a.message+",错误代码:"+a.code)}))},editVideo:function(e){var t=this;t.dialogTitle="编辑信息",t.form.videoId=e.VideoId,t.form.coverData="",t.form.coverUrl=e.CoverUrl,t.form.name=e.VTitle,t.form.videoType=e.VType.toString(),t.form.calorie=e.PredictCal,t.form.level=0==e.ExerciseLevel?1:e.ExerciseLevel,t.form.memo=e.Memo,t.form.labelId="";var a=[];for(var l in e.CategoriesList)a.push(e.CategoriesList[l].VcId);t.form.typeId=a;var o=[];for(var i in e.TagList)o.push(e.TagList[i].TagId);t.form.labelId=o,t.dialogVideoAdd=!0,t.form.btnType=1},confirmEditVideoInfo:function(){var e=this,t=this,a=new u["ManagerVideoInfoEditRequest"];a.setVideoid(t.form.videoId),a.setTitle(t.form.name),a.setVtype(t.form.videoType),a.setVcidlist(t.form.typeId.toString()),a.setMemo(t.form.memo),a.setCal(t.form.calorie),a.setLevel(t.form.level),a.setTagidlist(t.form.labelId.toString()),a.setCoverurl(t.form.coverUrl),t.client.managerVideoInfoEdit(a,{Token:localStorage.token},(function(a,l){null!=l?(t.dialogVideoAdd=!1,t.$message.success("修改成功"),e.getTableQuery()):t.$message.error(a.message+",错误代码:"+a.code)}))},editRow:function(e,t){var a=this,l=this,o=new u["ManagerVideoStatusEditRequest"];o.setVideoid(e.VideoId),o.setStatus(t),l.client.managerVideoStatusEdit(o,{Token:localStorage.token},(function(e,t){if(null!=t)l.$message.success("操作成功"),a.getTableQuery();else{var o=e;l.$message.error(o.message+",错误代码:"+o.code)}}))},toExerciseInfo:function(e){var t=this;t.$message.success("功能即将上线")},uploadDialog:function(e){var t=this;t.dialogVideoUpload=!0,t.form.vState="",t.form.name=e.VTitle,t.dialogTitle="视频上传",e.AliVid&&(t.dialogTitle="视频重传",t.form.aliVid=e.AliVid),t.form.videoId=e.VideoId},fileChange:function(e){if(this.file=e.target.files[0],this.file){this.file.name;var t='{"Vod":{}}';this.uploader&&(this.uploader.stopUpload(),this.authProgress=0,this.statusText=""),this.uploader=this.createUploader(),this.uploader.addFile(this.file,null,null,null,t),this.uploadDisabled=!1,this.pauseDisabled=!0,this.resumeDisabled=!0,this.selectedFile=!0,null!==this.uploader&&(this.uploader.startUpload(),this.uploadDisabled=!0,this.pauseDisabled=!1)}else alert("请先选择需要上传的文件!")},authUpload:function(){null!==this.uploader&&(this.uploader.startUpload(),this.uploadDisabled=!0,this.pauseDisabled=!1)},pauseUpload:function(){null!==this.uploader&&(this.uploader.stopUpload(),this.resumeDisabled=!1,this.pauseDisabled=!0)},resumeUpload:function(){null!==this.uploader&&(this.uploader.startUpload(),this.resumeDisabled=!0,this.pauseDisabled=!1)},createUploader:function(e){var t=this,a=new window.AliyunUpload.Vod({timeout:t.timeout||6e4,partSize:t.partSize||1048576,parallel:t.parallel||5,retryCount:t.retryCount||3,retryDuration:t.retryDuration||2,region:t.region,userId:t.userId,addFileSuccess:function(e){t.uploadDisabled=!1,t.resumeDisabled=!1,t.statusText="添加文件成功, 等待上传..."},onUploadstarted:function(e){if(""==t.form.aliVid){var l=new u["ManagerCreateUploadVideoRequest"];l.setCoverurl(t.form.coverUrl),l.setTitle(t.form.name),l.setFilepath(e.file.name),t.client.managerCreateUploadVideo(l,{Token:localStorage.token},(function(l,o){if(null!=o){var i=o.getUploadauth(),r=o.getUploadaddress(),n=o.getAlivid();t.form.aliVid=n,a.setUploadAuthAndAddress(e,i,r,n),t.statusText="文件开始上传..."}else{var s=l;t.$message.error(s.message+",错误代码:"+s.code)}}))}else{var o=new u["ManagerRefreshUploadVideoRequest"];o.setAlivid(t.form.aliVid),t.client.managerRefreshUploadVideo(o,{Token:localStorage.token},(function(l,o){if(null!=o){var i=o.getUploadauth(),r=o.getUploadaddress(),n=o.getAlivid();t.form.aliVid=n,a.setUploadAuthAndAddress(e,i,r,t.form.aliVid)}else{var s=l;t.$message.error(s.message+",错误代码:"+s.code)}}))}},onUploadSucceed:function(e){t.form.vState=1,t.statusText="文件上传成功!"},onUploadFailed:function(e,a,l){t.form.vState=2,t.statusText="文件上传失败!"},onUploadCanceled:function(e,a,l){t.form.vState="",t.statusText="文件已暂停上传"},onUploadProgress:function(e,a,l){var o=Math.ceil(100*l);t.authProgress=o,t.statusText="文件上传中..."},onUploadTokenExpired:function(e){var l=this,o={token:localStorage.token,videoId:this.from.VideoId},i=c.stringify(o);RefreshUploadVideo(i).then((function(e){var t=e;if(0==t.Code){var o=t.UploadAuth,i=(t.UploadAddress,t.VideoId);l.form.videoId=i,a.resumeUploadWithAuth(o)}else l.$message.error(t.Memo+" 错误码:"+t.Code)})),t.statusText="文件超时..."},onUploadEnd:function(e){t.statusText="文件上传完毕"}});return a},confirmUpload:function(){var e=this,t=this,a=new u["ManagerVideoInfoUploadFinishRequest"];a.setVideoid(t.form.videoId),a.setAlivid(t.form.aliVid),a.setVstate(1),t.client.managerVideoInfoUploadFinish(a,{Token:localStorage.token},(function(a,l){if(null!=l)t.dialogVideoUpload=!1,t.$message.success("添加成功"),e.getTableQuery();else{var o=a;t.$message.error(o.message+",错误代码:"+o.code)}}))},showPlayerDialog:function(e){var t=this,a=this;a.dialogTitle="视频播放",a.dialogVideoVisible=!0;var l="",o="",i=new u["ManagerCreatePlayVideoRequest"];i.setAlivid(e.AliVid),a.client.managerCreatePlayVideo(i,{Token:localStorage.token},(function(i,r){if(r){l=r.getPlayauth();r.getRequestid();a.player=new Aliplayer({id:"J_prismPlayer",width:"100%",height:"400px",autoplay:!0,cover:o,vid:e.AliVid,playauth:l,encryptType:1},(function(e){console.log("The player is created.")}))}else t.$message.error(i.message+" 错误码:"+i.code)}))},closePlayerDialog:function(){this.player.dispose(),this.dialogVideoVisible=!1},query:function(){var e=this;e.start=0,e.cur_page=1,e.searchBtnStatus=!0;var t=2;window.setInterval((function(){t--,t<0&&(t=2,e.searchBtnStatus=!1)}),1e3);this.getTableQuery(),this.$message.success("查询完毕")},getVideoClassification:function(){var e=this,t=new u["DefaultRequest"];t.setUsertype(4),e.client.managerVideoCategoriesSelectQuery(t,{Token:localStorage.token},(function(t,a){if(null!=a){var l=JSON.parse(a.getJsonstr());l.Rs&&(e.panel.typeOptions=r["a"].turnVideoClassifyToOption(l.Rs))}else e.$message.error(t.message+",错误代码:"+t.code)}))},getVideoLabelInfo:function(){var e=this,t=new u["DefaultRequest"];t.setUsertype(4),e.client.managerVideoTagSelectQuery(t,{Token:localStorage.token},(function(t,a){if(null!=a){var l=JSON.parse(a.getJsonstr());l.Rs&&(e.panel.labelOptions=r["a"].turnVideoClassifyToOption(l.Rs))}else e.$message.error(t.message+",错误代码:"+t.code)}))},getTableQuery:function(){var e=this;e.loading=!0;var t=new u["ManagerVideoListRequest"];t.setVcid(e.panel.typeId),t.setTagid(e.panel.labelId),t.setName(e.panel.name),t.setStart(e.start),t.setTablemax(e.pagination.pageItem),e.client.managerVideoListQuery(t,{Token:localStorage.token},(function(t,a){if(a){var l=JSON.parse(a.getJsonstr());e.loading=!1,u["ManagerVideoListReply"]?(e.allTableData=l.Rs,e.recordsTotal=l.PageCount*e.pagination.pageItem):(e.allTableData=[],e.recordsTotal=0),e.setPagination()}else t&&(e.$message.error(t.message+" 错误码:"+t.code),16==t.code&&e.$router.push({path:"/login",query:{status:1}}))}))},setPagination:function(){var e=this;e.pagination.total=e.recordsTotal,e.tableData=e.allTableData.filter((function(t,a){return a<e.pagination.pageItem}))},handleSizeChange:function(){var e=this;e.tableData=e.allTableData.filter((function(t,a){return a<e.pagination.pageItem})),e.draw=e.pagination.pageItem},pageChange:function(e){for(var t=this,a=t.pagination.pageItem*(e-1),l=t.pagination.pageItem*e,o=[],i=a;i<l;i++)t.allTableData[i]&&o.push(t.allTableData[i]),this.tableData=o;t.start=a*t.draw,t.getTableQuery()},filterFmtDate:function(e,t,a){return i["a"].fmtDateNoTimeZone(a,11)}},components:{cropper:n["a"]}},m=p,f=(a("7dba"),a("cba8")),g=Object(f["a"])(m,l,o,!1,null,"20d7ef46",null);t["default"]=g.exports}}]);
|