/*! * build: Hopaheal * copyright: Mead * time: 2022-11-24 14:44:56 */ (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-9f6bee3a"],{"0553":function(t,e,a){"use strict";a("078d")},"078d":function(t,e,a){},"1c90":function(t,e,a){},"216c":function(t,e,a){},"38b6":function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"loading",rawName:"v-loading.fullscreen.lock",value:t.fullscreenLoading,expression:"fullscreenLoading",modifiers:{fullscreen:!0,lock:!0}}],staticClass:"wenda"},[a("div",{staticClass:"tab"},t._l(t.tabList,(function(e,s){return a("div",{key:s,class:t.currentTab==e.value?"active-tab":"tab-item",on:{click:function(a){return t.changeTab(e.value)}}},[t._v(" "+t._s(t.translateTitle(e.label))+" ")])})),0),t.wendaList&&t.wendaList.length>0?a("div",{staticClass:"list"},t._l(t.wendaList,(function(e,s){return a("div",{key:s,staticClass:"list-item"},[a("div",{staticClass:"item-left"},[a("div",{staticClass:"num"},[t._v(t._s(e.comment_count))]),a("div",{staticClass:"title"},[t._v(t._s(t.translateTitle("回答")))])]),a("div",{staticClass:"item-right",on:{click:function(a){return t.wendaDetail(e)}}},[a("div",{staticClass:"question"},[t._v(t._s(e.title))]),a("div",{staticClass:"desc"},[t._v(t._s(e.body))]),a("div",{staticClass:"item-mess"},[a("div",{staticClass:"time"},[a("i",{staticClass:"el-icon-view"}),t._v(" "+t._s(e.view_count)+" ")]),a("div",{staticClass:"time"},[a("i",{staticClass:"el-icon-time"}),t._v(" "+t._s(e.created_at)+" ")]),a("div",{staticClass:"name"},[t._v(" "+t._s(e.user?e.user.name:"--")+" ")])])])])})),0):a("vab-empty",{attrs:{description:t.translateTitle("暂无内容")}}),a("el-pagination",{attrs:{background:"","current-page":t.queryForm.page,layout:t.layout,"page-size":t.queryForm.per_page,"page-sizes":[15,20,30,40,50,100],total:t.queryForm.total},on:{"current-change":t.handleCurrentChange,"size-change":t.handleSizeChange}})],1)},r=[],i=(a("388d"),a("563a")),l=a("79fa"),o={props:["message"],data(){return{tabList:[{value:0,label:"笔记"},{value:1,label:"问答"}],wendaList:[],currentTab:0,fullscreenLoading:!0,queryForm:{page:1,per_page:15,total:0,type:0},layout:"total, sizes, prev, pager, next, jumper"}},created(){this.queryForm.course_id=this.$route.query.id,this.noteList()},methods:{translateTitle:l["translateTitle"],changeTab(t){this.fullscreenLoading=!0,this.queryForm.type=this.currentTab=t,this.queryForm.page=1,this.noteList()},wendaDetail(t){this.$router.push({path:"/Tcourse/wddetail",query:{slug:t.slug,course_slug:this.$route.query.slug,id:t.id,course_id:this.$route.query.id}})},async noteList(){this.queryForm.me=this.message,console.log(this.queryForm,"讲道理这里边有啥?");const{data:t}=await Object(i["noteList"])(this.queryForm);this.wendaList=t.list;const{meta:e}=t;this.queryForm.total=e.pagination.total,this.fullscreenLoading=!1,console.log(t,"datadatadtta")},handleSizeChange(t){console.log(t,"page"),this.queryForm.per_page=t,this.noteList()},handleCurrentChange(t){this.queryForm.page=t,this.noteList()}}},n=o,u=(a("8f9b"),a("0b56")),c=Object(u["a"])(n,s,r,!1,null,"5b84e81f",null);e["default"]=c.exports},4183:function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{"before-close":t.handleClose,"close-on-click-modal":!1,title:t.translateTitle(t.title),visible:t.dialogVisible,width:"60%"},on:{"update:visible":function(e){t.dialogVisible=e}}},[a("el-form",{ref:"form",attrs:{"label-width":"110px",model:t.form,rules:t.rules}},[a("el-form-item",{attrs:{label:t.translateTitle("试卷名称")+":",prop:"title"}},[a("el-input",{attrs:{placeholder:t.translateTitle("请输入试卷名称")},model:{value:t.form.title,callback:function(e){t.$set(t.form,"title",e)},expression:"form.title"}})],1),a("el-form-item",{attrs:{label:t.translateTitle("试卷简介")+":",prop:"body"}},[a("el-input",{attrs:{placeholder:t.translateTitle("请输入试卷简介"),rows:2,type:"textarea"},model:{value:t.form.body,callback:function(e){t.$set(t.form,"body",e)},expression:"form.body"}})],1),a("el-form-item",{attrs:{label:t.translateTitle("考试时长")+":",prop:"time"}},[a("el-input",{attrs:{placeholder:t.translateTitle("请输入考试时长"),type:"number"},model:{value:t.form.time,callback:function(e){t.$set(t.form,"time",e)},expression:"form.time"}})],1),a("el-form-item",{attrs:{label:t.translateTitle("发布时间")+":",prop:"published_at"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{placeholder:t.translateTitle("选择日期"),type:"date"},model:{value:t.form.published_at,callback:function(e){t.$set(t.form,"published_at",e)},expression:"form.published_at"}})],1),a("el-form-item",{attrs:{label:t.translateTitle("试题分类")+":",prop:"category_id"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.translateTitle("请选择试题分类")},model:{value:t.form.category_id,callback:function(e){t.$set(t.form,"category_id",e)},expression:"form.category_id"}},t._l(t.category_list,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1)],1),t.course_id?t._e():a("el-form-item",{attrs:{label:t.translateTitle("课程")+":",prop:"course_id"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.translateTitle("请选择课程")},on:{change:t.changeCourse},model:{value:t.form.course_id,callback:function(e){t.$set(t.form,"course_id",e)},expression:"form.course_id"}},[t._l(t.courseList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.title,value:t.id}})})),a("el-pagination",{attrs:{background:"","current-page":t.queryForm.page,layout:t.layout,"page-size":t.queryForm.per_page,"page-sizes":[15,20,30,40,50,100],total:t.queryForm.total},on:{"current-change":t.handleCurrentChange,"size-change":t.handleSizeChange}})],2)],1),a("el-form-item",{attrs:{label:t.translateTitle("视频")+":",prop:"video_id"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.translateTitle("请选择课程视频")},model:{value:t.form.video_id,callback:function(e){t.$set(t.form,"video_id",e)},expression:"form.video_id"}},[t._l(t.videoList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.title,value:t.id}})})),a("el-pagination",{attrs:{background:"","current-page":t.queryForm1.page,layout:t.layout,"page-size":t.queryForm1.per_page,"page-sizes":[15,20,30,40,50,100],total:t.queryForm1.total},on:{"current-change":t.handleCurrentChange1,"size-change":t.handleSizeChange1}})],2)],1),a("el-form-item",{attrs:{label:t.translateTitle("状态")+":",prop:"status"}},[a("el-radio-group",{model:{value:t.form.status,callback:function(e){t.$set(t.form,"status",e)},expression:"form.status"}},[a("el-radio",{attrs:{label:1}},[t._v(t._s(t.translateTitle("正常")))]),a("el-radio",{attrs:{label:0}},[t._v(t._s(t.translateTitle("禁用")))])],1)],1),a("el-form-item",["编辑试卷"==t.title?a("el-button",{attrs:{type:"success"},on:{click:function(e){return t.doEdit("form")}}},[t._v(" "+t._s(t.translateTitle("保存"))+" ")]):t._e(),"添加试卷"==t.title?a("el-button",{attrs:{type:"success"},on:{click:function(e){return t.doAdd("form")}}},[t._v(" "+t._s(t.translateTitle("添加"))+" ")]):t._e(),a("el-button",{on:{click:t.handleClose}},[t._v(t._s(t.translateTitle("取消")))])],1)],1)],1)},r=[],i=(a("388d"),a("e97f")),l=a("79fa"),o=a("9416"),n={data(){return{dialogVisible:!1,tableData:[],attaches:[],otherShow:!1,fullscreenLoading:!1,queryForm:{page:1,per_page:15,total:0,iis_teacher_me:1},queryForm1:{page:1,per_page:15,total:0},form:{status:1,topics:[],time:0},course_id:"",layout:"total, sizes, prev, pager, next, jumper",category_list:[],courseList:[],videoList:[{id:0,title:"请先选择课程"}],title:"",rules:{title:[{required:!0,message:this.translateTitle("请输入试卷标题"),trigger:"blur"}],level:[{required:!0,message:this.translateTitle("请选择题目难度"),trigger:"change"}]}}},methods:{translateTitle:l["translateTitle"],async getTimu(t){const{data:e}=await Object(i["getTestDetail"])(t);this.form=e,this.form.course_id=e.course?e.course.id:"";let a=e.topics_lists,s=[];a.map(t=>{s.push(t.id)}),this.form.topics=s},showEdit(t){this.courseOption(),this.categorieList(),t.id?(console.log(t),this.title="编辑试卷",this.queryForm1.course_id=t.course?t.course.id:"",this.videoOption(),this.getTimu(t.slug)):(this.title="添加试卷",this.course_id=this.$route.query.id,this.form.course_id=this.$route.query.id,this.queryForm1.course_id=this.$route.query.id,this.videoOption()),this.dialogVisible=!0},handleClose(){this.dialogVisible=!1,this.form={status:1,topics:[],time:0}},async categorieList(){const{data:t}=await Object(o["categorieList"])();this.fullscreenLoading=!1,this.category_list=t},async courseOption(){const{data:t}=await Object(i["courseOption"])(this.queryForm);this.courseList=t.list;const{meta:e}=t;this.queryForm.total=e.pagination.total},handleSizeChange(t){this.queryForm.per_page=t,this.courseOption()},handleCurrentChange(t){this.queryForm.page=t,this.courseOption()},changeCourse(){this.queryForm1.course_id=this.form.course_id,this.videoOption()},async videoOption(){const{data:t}=await Object(i["videoOption"])(this.queryForm1);this.videoList=t.list;const{meta:e}=t;this.queryForm1.total=e.pagination.total},handleSizeChange1(t){this.queryForm1.per_page=t,this.videoOption()},handleCurrentChange1(t){this.queryForm1.page=t,this.videoOption()},doAdd(t){this.$refs[t].validate(async t=>{if(!t)return!1;{const{message:t}=await Object(i["addTest"])(this.form);this.$baseMessage(t,"success",!1,"vab-hey-message-success"),this.$emit("fetch-data"),this.handleClose()}})},doEdit(t){delete this.form.topics_lists,delete this.form.topic_nums,this.$refs[t].validate(async t=>{if(!t)return!1;{const{message:t}=await Object(i["editTest"])(this.form);this.$baseMessage(t,"success",!1,"vab-hey-message-success"),this.$emit("fetch-data"),this.handleClose()}})}}},u=n,c=(a("89f2"),a("0b56")),d=Object(c["a"])(u,s,r,!1,null,null,null);e["default"]=d.exports},"545e":function(t,e,a){},"563a":function(t,e,a){"use strict";a.r(e),a.d(e,"noteList",(function(){return r})),a.d(e,"noteDetail",(function(){return i})),a.d(e,"commentList",(function(){return l})),a.d(e,"addComment",(function(){return o})),a.d(e,"addGood",(function(){return n})),a.d(e,"deleteCommit",(function(){return u})),a.d(e,"getPerson",(function(){return c}));var s=a("b775");function r(t){return Object(s["default"])({url:"/note",method:"get",params:t})}function i(t){return Object(s["default"])({url:"/note/info/"+t,method:"get"})}function l(t){return Object(s["default"])({url:"/note/comment",method:"get",params:t})}function o(t){return Object(s["default"])({url:"/note/comment",method:"post",data:t})}function n(t){return Object(s["default"])({url:"/note/comment/good",method:"post",data:t})}function u(t){return Object(s["default"])({url:"/note/comment/"+t,method:"delete"})}function c(t){return Object(s["default"])({url:"/base/auth/me",method:"get",params:t})}},"5b8c":function(t,e,a){},"74cd":function(t,e,a){"use strict";a("a29c")},"77c5":function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"index-container"},[a("div",{staticClass:"course-list"},[a("div",{staticClass:"course-item"},[1==t.course_detail.is_rec?a("div",{staticClass:"tag1"},[t._v(" "+t._s(t.course_detail.is_rec_text)+" ")]):a("div",{staticClass:"tag"},[t._v(t._s(t.course_detail.is_rec_text))]),a("img",{staticClass:"course-cover",attrs:{src:t.course_detail.thumb_resource?t.course_detail.thumb_resource.url:"../../assets/login_images/background.jpg"}}),a("div",{staticClass:"course-desc"},[a("el-popover",{attrs:{content:t.course_detail.title,placement:"top-start",trigger:"hover",width:"310"}},[a("div",{staticClass:"titile",attrs:{slot:"reference"},slot:"reference"},[t._v(t._s(t.course_detail.title))])]),t.course_detail.category?a("div",{staticClass:"num"},[a("el-tag",{attrs:{size:"mini",type:"success"}},[t._v(" "+t._s(t.course_detail.category?t.course_detail.category.name:"")+" ")])],1):t._e(),a("div",{staticClass:"label"},[a("i",{staticClass:"el-icon-price-tag"}),a("span",t._l(t.course_detail.labels,(function(e){return a("el-tag",{key:e,attrs:{size:"mini",type:"info"}},[t._v(" "+t._s(e)+" ")])})),1),a("div",{staticClass:"label1"},[a("span",t._l(t.course_detail.labels,(function(e){return a("el-tag",{key:e,attrs:{size:"mini",type:"info"}},[t._v(" "+t._s(e)+" ")])})),1)])])],1),a("div",{staticClass:"course-part-1"},[a("div",{staticClass:"titile"},[t._v(t._s(t.translateTitle("视频数量")))]),a("div",{staticClass:"num"},[t._v(t._s(t.course_detail.video_nums))])]),a("div",{staticClass:"course-part"},[a("div",{staticClass:"titile"},[t._v(t._s(t.translateTitle("课程学员")))]),a("div",{staticClass:"num"},[t._v(t._s(t.course_detail.user_count))])]),a("div",{staticClass:"course-part"},[a("div",{staticClass:"look-course",on:{click:t.learnCourse}},[t._v(" "+t._s(t.translateTitle("查看课程"))+" ")])])]),a("div",{staticClass:"tab"},[t._l(t.tabList,(function(e,s){return a("div",{key:s,class:t.currentTab==e.value?"active-tab":"tab-item",on:{click:function(a){return t.changeTab(e.value)}}},[t._v(" "+t._s(t.translateTitle(e.label))+" ")])})),a("div",{staticClass:"content"},[0==t.currentTab?a("course-edit"):t._e(),4==t.currentTab?a("course-video"):t._e(),5==t.currentTab?a("chapter"):t._e(),1==t.currentTab?a("down-load"):t._e(),3==t.currentTab?a("exam"):t._e(),2==t.currentTab?a("wenda"):t._e()],1)],2)])])},r=[],i=(a("388d"),a("94f3")),l=a("f01e"),o=a("7f18"),n=a("38b6"),u=a("df3e"),c=a("79fa"),d=a("be45"),m=a("e114"),f={components:{courseEdit:i["default"],downLoad:l["default"],exam:o["default"],wenda:n["default"],courseVideo:d["default"],chapter:u["default"]},data(){return{course_form:{},tabList:[{value:0,label:"课程信息"},{value:4,label:"视频管理"},{value:5,label:"章节管理"},{value:1,label:"资源下载"},{value:2,label:"笔记/问答"},{value:3,label:"课程试卷"}],course_detail:{},currentTab:0,course_slug:"",attaches:[],comments:[],category_id:""}},created(){this.course_slug=this.$route.query.slug;let t=this.$route.query.current_tab;t&&(this.currentTab=t),console.log(this.course_slug,"this.course_id"),this.getCourseDetail()},methods:{translateTitle:c["translateTitle"],async getCourseDetail(){const{data:t}=await Object(m["getCourseDetail"])(this.course_slug);this.course_detail=t.course,this.category_id=t.course.category?t.course.category.id:"",console.log(t,"kecheng")},changeTab(t){this.currentTab=t},async learnCourse(){0==this.course_detail.watch_progress&&await Object(m["dingyue"])({course_id:this.$route.query.id}),this.$router.push({path:"/courseDetail/secCourse_detail",query:{course_id:this.$route.query.id,course_slug:this.$route.query.slug}})}}},h=f,p=(a("c60a"),a("0b56")),g=Object(p["a"])(h,s,r,!1,null,"d28a5098",null);e["default"]=g.exports},"7f18":function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"loading",rawName:"v-loading.fullscreen.lock",value:t.fullscreenLoading,expression:"fullscreenLoading",modifiers:{fullscreen:!0,lock:!0}}]},[a("div",{staticClass:"content-title"},[a("vab-query-form",[a("vab-query-form-left-panel",{attrs:{span:12}},[a("el-button",{attrs:{icon:"el-icon-plus",type:"success"},on:{click:function(e){return t.addTopic(1)}}},[t._v(" "+t._s(t.translateTitle("试题库组卷"))+" ")]),a("el-button",{attrs:{icon:"el-icon-plus",type:"success"},on:{click:function(e){return t.customTopic()}}},[t._v(" "+t._s(t.translateTitle("手动组卷"))+" ")])],1),a("vab-query-form-right-panel",{attrs:{span:12}},[a("el-form",{attrs:{inline:!0,model:t.queryForm},nativeOn:{submit:function(t){t.preventDefault()}}},[a("el-form-item",[a("el-input",{attrs:{clearable:"",placeholder:t.translateTitle("请输入试卷题目")},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.queryData(e)}},model:{value:t.queryForm.title,callback:function(e){t.$set(t.queryForm,"title","string"===typeof e?e.trim():e)},expression:"queryForm.title"}})],1),a("el-form-item",[a("el-button",{attrs:{icon:"el-icon-search",type:"primary"},on:{click:t.queryData}},[t._v(" "+t._s(t.translateTitle("查询"))+" ")])],1)],1)],1)],1)],1),a("div",{staticClass:"table"},[a("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:t.tikuList,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:t.translateTitle("题目名称"),"min-width":"180",prop:"title","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){var s=e.row;return[a("el-button",{attrs:{type:"text"},on:{click:function(e){return t.lookDetail(s)}}},[t._v(" "+t._s(s.title)+" ")])]}}])}),a("el-table-column",{attrs:{align:"center",label:t.translateTitle("题目数量"),"min-width":"80",prop:"topic_nums"}}),a("el-table-column",{attrs:{align:"center",label:t.translateTitle("考试数"),"min-width":"80",prop:"submit_count"}}),a("el-table-column",{attrs:{align:"center",label:t.translateTitle("发布时间"),"min-width":"80",prop:"humans"}}),a("el-table-column",{attrs:{align:"center",label:t.translateTitle("总分"),"min-width":"80",prop:"mark"}}),a("el-table-column",{attrs:{align:"center",label:t.translateTitle("操作"),"min-width":"270",prop:"address","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){var s=e.row;return[a("el-button",{attrs:{type:"info"},on:{click:function(e){return t.review(s)}}},[t._v(" "+t._s(t.translateTitle("试卷批阅"))+" ")]),0==s.topic_nums?a("el-button",{attrs:{disabled:0!==s.submit_count,type:"warning"},on:{click:function(e){return t.addShiti(s)}}},[t._v(" "+t._s(t.translateTitle("添加试题"))+" ")]):t._e(),0!==s.topic_nums?a("el-button",{attrs:{disabled:0!==s.submit_count,type:"primary"},on:{click:function(e){return t.addShiti(s)}}},[t._v(" "+t._s(t.translateTitle("编辑试题"))+" ")]):t._e(),a("el-button",{attrs:{disabled:0!==s.submit_count,type:"success"},on:{click:function(e){return t.doEdit(s)}}},[t._v(" "+t._s(t.translateTitle("试卷编辑"))+" ")]),a("el-button",{attrs:{disabled:0!==s.submit_count,type:"danger"},on:{click:function(e){return t.doDelete(s.id)}}},[t._v(" "+t._s(t.translateTitle("删除"))+" ")])]}}])})],1),a("el-pagination",{attrs:{background:"","current-page":t.queryForm.page,layout:t.layout,"page-size":t.queryForm.per_page,"page-sizes":[15,20,30,40,50,100],total:t.queryForm.total},on:{"current-change":t.handleCurrentChange,"size-change":t.handleSizeChange}})],1),a("custom-add",{ref:"custom-add",on:{"fetch-data":t.getList}})],1)},r=[],i=(a("388d"),a("e97f")),l=a("79fa"),o=a("4183"),n={components:{customAdd:o["default"]},props:{level:{type:Number,default:0},tab:{type:Number,default:0}},data(){return{tikuList:[],queryForm:{page:1,per_page:15,total:0,category_id:"",level:"",is_me:1},currentLevel:"",fullscreenLoading:!0,layout:"total, sizes, prev, pager, next, jumper",course:""}},watch:{tab(t){this.queryForm.page=1,console.log(t,"Nvalue-----1"),0!==t?(console.log(t,"Nvalue-----2"),this.queryForm.category_id=t):this.queryForm.category_id="",this.queryForm.page=1,this.getList()},level(){this.queryForm.page=1}},created(){console.log(this.course,"this.course");let t=this.$route.query.id;t&&(this.queryForm.course_id=t),this.getList()},methods:{translateTitle:l["translateTitle"],review(t){this.$router.push({path:"/review/reviewIndex",query:{paper_id:t.id}})},queryData(){this.queryForm.page=1,this.getList()},async getList(){this.fullscreenLoading=!0;const{data:t}=await Object(i["getTestList"])(this.queryForm);this.tikuList=t.list,this.fullscreenLoading=!1;const{meta:e}=t;this.queryForm.total=e.pagination.total},handleSizeChange(t){console.log(t,"page"),this.queryForm.per_page=t,this.getList()},handleCurrentChange(t){this.queryForm.page=t,this.getList()},addTopic(){this.$router.push({path:"/Tiku/addExam",query:{course_slug:this.$route.query.slug,course_id:this.$route.query.id}})},customTopic(){this.$refs["custom-add"].showEdit(this.course)},addShiti(t){this.$router.push({path:"/Tiku/customExam",query:{slug:t.slug,course_slug:this.$route.query.slug,course_id:this.$route.query.id}})},doEdit(t){this.$refs["custom-add"].showEdit(t)},doDelete(t){this.$baseConfirm("你确定要删除当前试卷吗",null,async()=>{const{message:e}=await Object(i["deleteTest"])(t);this.$baseMessage(e,"success",!1,"vab-hey-message-success"),await this.getList()})},lookDetail(t){if(0==t.topic_nums)return void this.$message.warning("请先为试卷添加试题");let e=this.$router.resolve({path:"/Tiku/examReview",query:{slug:t.slug}});window.open(e.href,"_blank")}}},u=n,c=(a("f9f5"),a("0b56")),d=Object(c["a"])(u,s,r,!1,null,"71eb5f64",null);e["default"]=d.exports},"89f0":function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{"before-close":t.close,title:t.translateTitle(t.title),visible:t.dialogFormVisible,width:"800px"},on:{"update:visible":function(e){t.dialogFormVisible=e}},scopedSlots:t._u([{key:"footer",fn:function(){return[a("el-button",{on:{click:t.close}},[t._v(t._s(t.translateTitle("取消")))]),"编辑章节"==t.title?a("el-button",{attrs:{type:"success"},on:{click:t.doEdit}},[t._v(" "+t._s(t.translateTitle("确定"))+" ")]):t._e(),"添加章节"==t.title?a("el-button",{attrs:{type:"success"},on:{click:t.doAdd}},[t._v(" "+t._s(t.translateTitle("添加"))+" ")]):t._e()]},proxy:!0}])},[a("el-form",{ref:"form",attrs:{"label-width":"120px",model:t.form,rules:t.rules}},[a("el-form-item",{attrs:{label:t.translateTitle("章节名称"),prop:"title"}},[a("el-input",{attrs:{placeholder:t.translateTitle("请输入章节名称")},model:{value:t.form.title,callback:function(e){t.$set(t.form,"title",e)},expression:"form.title"}})],1),a("el-form-item",{attrs:{label:t.translateTitle("章节排序"),prop:"sort"}},[a("el-input",{attrs:{type:"number"},model:{value:t.form.sort,callback:function(e){t.$set(t.form,"sort",e)},expression:"form.sort"}})],1),a("el-form-item",{attrs:{label:t.translateTitle("章节状态"),prop:"status"}},[a("el-radio-group",{model:{value:t.form.status,callback:function(e){t.$set(t.form,"status",e)},expression:"form.status"}},[a("el-radio",{attrs:{label:1}},[t._v(t._s(t.translateTitle("正常")))]),a("el-radio",{attrs:{label:0}},[t._v(t._s(t.translateTitle("禁用")))])],1)],1)],1)],1)},r=[],i=a("eaf3"),l=a("79fa"),o={data(){return{title:"添加章节",dialogFormVisible:!1,form:{course_id:"",title:"",sort:0,status:1},rules:{title:[{required:!0,message:"请输入章节名称",trigger:"blur"}]}}},created(){this.form.course_id=this.$route.query.id},methods:{translateTitle:l["translateTitle"],showEdit(t){t?(this.title="编辑章节",this.form=Object.assign({},t),this.form.course_id=this.form.course.id,console.log(this.form,"this.form")):this.title="添加章节",this.dialogFormVisible=!0},close(){this.form={course_id:this.$route.query.id,title:"",sort:0,status:1},this.dialogFormVisible=!1},doEdit(){this.$refs["form"].validate(async t=>{if(t){const{message:t}=await Object(i["doEdit"])(this.form);this.$baseMessage(t,"success",!1,"vab-hey-message-success"),this.$emit("fetch-data"),this.close()}})},doAdd(){console.log(this.form),this.$refs["form"].validate(async t=>{if(t){const{message:t}=await Object(i["doAdd"])(this.form);this.$baseMessage(t,"success",!1,"vab-hey-message-success"),this.$emit("fetch-data"),this.close()}})}}},n=o,u=a("0b56"),c=Object(u["a"])(n,s,r,!1,null,null,null);e["default"]=c.exports},"89f2":function(t,e,a){"use strict";a("545e")},"8f71":function(t,e,a){"use strict";a("5b8c")},"8f9b":function(t,e,a){"use strict";a("216c")},9416:function(t,e,a){"use strict";a.r(e),a.d(e,"categorieList",(function(){return r})),a.d(e,"CourseList",(function(){return i})),a.d(e,"doAdd",(function(){return l})),a.d(e,"doDelete",(function(){return o}));var s=a("b775");function r(){return Object(s["default"])({url:"/course/categories",method:"get"})}function i(t){return Object(s["default"])({url:"/course",method:"get",params:t})}function l(t){return Object(s["default"])({url:"/course",method:"post",data:t})}function o(t){return Object(s["default"])({url:"/course/"+t,method:"delete"})}},"94f3":function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"loading",rawName:"v-loading.fullscreen.lock",value:t.fullscreenLoading,expression:"fullscreenLoading",modifiers:{fullscreen:!0,lock:!0}}]},[a("div",{staticClass:"content-title"},[t._v(t._s(t.translateTitle("课程管理")))]),a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{"label-width":"120px",model:t.course_form,rules:t.rules}},[a("el-form-item",{attrs:{label:t.translateTitle("课程标题"),prop:"title"}},[a("el-input",{attrs:{placeholder:t.translateTitle("请输入课程标题")},model:{value:t.course_form.title,callback:function(e){t.$set(t.course_form,"title",e)},expression:"course_form.title"}})],1),a("el-form-item",{attrs:{label:t.translateTitle("课程分类"),prop:"category_id"}},[a("el-select",{attrs:{placeholder:t.translateTitle("请选择课程分类")},on:{change:t.changeCategory},model:{value:t.course_form.category_id,callback:function(e){t.$set(t.course_form,"category_id",e)},expression:"course_form.category_id"}},t._l(t.category_list,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1)],1),a("el-form-item",{attrs:{label:t.translateTitle("标签"),prop:"labels"}},[a("el-select",{attrs:{"allow-create":"","default-first-option":"",filterable:"",multiple:"",placeholder:t.translateTitle("请输入标签")},model:{value:t.course_form.labels,callback:function(e){t.$set(t.course_form,"labels",e)},expression:"course_form.labels"}},t._l(t.course_form.labels,(function(t){return a("el-option",{key:t,attrs:{label:t,value:t}})})),1)],1),a("el-form-item",{attrs:{label:t.translateTitle("课程封面"),prop:"thumb"}},[a("span",{staticClass:"star"},[t._v("*")]),a("el-upload",{staticClass:"upload-demo",attrs:{accept:".png,.jpg",action:t.action,data:t.uploadData,"file-list":t.fileList,headers:t.headers,limit:t.limit,"list-type":"picture",multiple:"","on-remove":t.uploadRemove,"on-success":t.uploadSuccess}},[a("el-button",{attrs:{size:"small",type:"primary"},on:{click:t.clearFile}},[t._v(" "+t._s(t.translateTitle("上传图片"))+" ")]),a("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[t._v(" 只能上传jpg/png文件,且不超过10M,(最佳尺寸:160*90) ")])],1)],1),t.imageUrl?a("el-form-item",{attrs:{label:"",prop:"thumb"}},[a("div",{staticClass:"ref-image"},[a("img",{attrs:{src:t.imageUrl}})])]):t._e(),a("el-form-item",{attrs:{label:t.translateTitle("课程简介"),prop:"description"}},[a("tiny-mce",{attrs:{content:t.course_form.description,"tiny-height":300},on:{childByValue:t.getTnyMac}})],1),a("el-form-item",{attrs:{label:t.translateTitle("发布时间"),prop:"published_at"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{placeholder:t.translateTitle("选择日期"),type:"date"},model:{value:t.course_form.published_at,callback:function(e){t.$set(t.course_form,"published_at",e)},expression:"course_form.published_at"}})],1),a("el-form-item",{attrs:{label:t.translateTitle("是否推荐"),required:""}},[a("el-radio-group",{model:{value:t.course_form.is_rec,callback:function(e){t.$set(t.course_form,"is_rec",e)},expression:"course_form.is_rec"}},[a("el-radio",{attrs:{label:1}},[t._v(t._s(t.translateTitle("推荐")))]),a("el-radio",{attrs:{label:0}},[t._v(t._s(t.translateTitle("不推荐")))])],1)],1),a("el-form-item",{attrs:{label:t.translateTitle("是否开启评论"),required:""}},[a("el-radio-group",{model:{value:t.course_form.comment_status,callback:function(e){t.$set(t.course_form,"comment_status",e)},expression:"course_form.comment_status"}},[a("el-radio",{attrs:{label:1}},[t._v(t._s(t.translateTitle("开启评论")))]),a("el-radio",{attrs:{label:0}},[t._v(t._s(t.translateTitle("关闭评论")))])],1)],1),a("el-form-item",[a("el-button",{attrs:{type:"success"},on:{click:function(e){return t.submitForm("ruleForm")}}},[t._v(" "+t._s(t.translateTitle("保存"))+" ")])],1)],1)],1)},r=[],i=a("e114"),l=a("b890"),o=a("79fa"),n=a("f121"),u={data(){return{fullscreenLoading:!0,data1:"ceshi",course_slug:"",course_form:{description:""},uploadData:{file_type:"img",type:"course_thumb"},fileList:[],limit:1,imageUrl:"",headers:{},category_list:[],rules:{title:[{required:!0,message:this.translateTitle("请输入视频标题"),trigger:"blur"}]}}},created(){this.course_slug=this.$route.query.slug,this.action=n["baseURL"]+"/base/common/upload",this.fileList=[],this.$nextTick(()=>{this.courseDetail(),this.categorieList()})},methods:{translateTitle:o["translateTitle"],async categorieList(){const{data:t}=await Object(l["categorieList"])();this.category_list=t},async courseDetail(){const{data:t}=await Object(i["CourseDetail"])(this.course_slug);this.course_form=t,this.course_form.category_id=t.category?t.category.id:"",this.fullscreenLoading=!1,this.course_form.thumb=t.thumb_resource?t.thumb_resource.id:"",this.imageUrl=t.thumb_resource?t.thumb_resource.url:"",console.log(t)},getTnyMac(t){this.course_form.description=t},uploadSuccess(t){console.log(t,"图片上传成功"),this.course_form.thumb=t.data.id},uploadRemove(){this.course_form.thumb=""},clearFile(){console.log("上传之前"),this.imageUrl=""},changeCategory(t){console.log(t,"ppppp"),this.$set(this.course_form,"category_id ",t)},submitForm(t){this.$refs[t].validate(async t=>{if(!t)return console.log("error submit!!"),!1;{if(!this.course_form.thumb)return void this.$message.warning(this.translateTitle("请上传课程封面"));this.course_form.labels=this.course_form.labels.join();const{message:t}=await Object(i["doEdit"])(this.course_form);this.$baseMessage(t,"success",!1,"vab-hey-message-success"),this.$emit("fetch-data"),this.fileList=[],this.courseDetail()}})},resetForm(t){this.$refs[t].resetFields()}}},c=u,d=(a("8f71"),a("0b56")),m=Object(d["a"])(c,s,r,!1,null,"2e334fd6",null);e["default"]=m.exports},a29c:function(t,e,a){},b630:function(t,e,a){"use strict";a("1c90")},b890:function(t,e,a){"use strict";a.r(e),a.d(e,"categorieList",(function(){return r})),a.d(e,"CourseList",(function(){return i})),a.d(e,"doAdd",(function(){return l})),a.d(e,"doDelete",(function(){return o}));var s=a("b775");function r(){return Object(s["default"])({url:"/course/categories",method:"get"})}function i(t){return Object(s["default"])({url:"/course",method:"get",params:t})}function l(t){return Object(s["default"])({url:"/course",method:"post",data:t})}function o(t){return Object(s["default"])({url:"/course/"+t,method:"delete"})}},be45:function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"loading",rawName:"v-loading.fullscreen.lock",value:t.fullscreenLoading,expression:"fullscreenLoading",modifiers:{fullscreen:!0,lock:!0}}]},[a("div",{staticClass:"content-title"},[t._v(t._s(t.translateTitle("视频管理")))]),a("div",{staticClass:"tab"},[a("div",{staticClass:"tab-top"},[a("el-button",{attrs:{type:"success"},on:{click:t.doAdd}},[t._v(" "+t._s(t.translateTitle("添加视频"))+" ")])],1),a("div",{staticClass:"table"},[a("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:t.attaches,"header-cell-style":{background:"#fff"},"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:t.translateTitle("视频名称"),"min-width":"180",prop:"title"}}),a("el-table-column",{attrs:{label:t.translateTitle("所属章节"),"min-width":"180",prop:"course_chapter.title"}}),a("el-table-column",{attrs:{align:"center",label:t.translateTitle("上传时间"),"min-width":"80",prop:"humans"}}),a("el-table-column",{attrs:{align:"center",label:t.translateTitle("观看人数"),"min-width":"70",prop:"view_num"}}),a("el-table-column",{attrs:{align:"center",label:t.translateTitle("操作"),"min-width":"120",prop:"address","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){var s=e.row;return[a("el-button",{attrs:{type:"success"},on:{click:function(e){return t.doEdit(s.slug)}}},[t._v(" "+t._s(t.translateTitle("编辑"))+" ")]),a("el-button",{attrs:{type:"danger"},on:{click:function(e){return t.doDelete(s.id)}}},[t._v(" "+t._s(t.translateTitle("删除"))+" ")])]}}])})],1),a("el-pagination",{attrs:{background:"","current-page":t.queryForm.page,layout:t.layout,"page-size":t.queryForm.per_page,"page-sizes":[15,20,30,40,50,100],total:t.queryForm.total},on:{"current-change":t.handleCurrentChange,"size-change":t.handleSizeChange}})],1)])])},r=[],i=(a("388d"),a("e2f7")),l=a("79fa"),o={data(){return{tableData:[],attaches:[],fullscreenLoading:!0,queryForm:{page:1,per_page:15,total:0},layout:"total, sizes, prev, pager, next, jumper"}},created(){this.videoList()},methods:{translateTitle:l["translateTitle"],commandValue(t,e,a){return{command:t,slug:e,id:a}},async videoList(){this.queryForm.course_id=this.$route.query.id;const{data:t}=await Object(i["videoList"])(this.queryForm);console.log(t,"pppp"),this.attaches=t.list;const{meta:e}=t;this.queryForm.total=e.pagination.total,this.fullscreenLoading=!1},handleSizeChange(t){console.log(t,"page"),this.queryForm.per_page=t,this.videoList()},handleCurrentChange(t){this.queryForm.page=t,this.videoList()},doAdd(){this.$router.push({path:"/Tcourse/videoEdit",query:{id:this.$route.query.id,course_slug:this.$route.query.slug}})},doEdit(t){this.$router.push({path:"/Tcourse/videoEdit",query:{id:this.$route.query.id,slug:t,course_slug:this.$route.query.slug}})},async doDelete(t){this.$baseConfirm("你确定要删除当前课程视频吗",null,async()=>{const{message:e}=await Object(i["deleteVideo"])(t);this.$baseMessage(e,"success",!1,"vab-hey-message-success"),await this.videoList()})}}},n=o,u=(a("0553"),a("0b56")),c=Object(u["a"])(n,s,r,!1,null,"4e37231a",null);e["default"]=c.exports},c60a:function(t,e,a){"use strict";a("dd26")},dd26:function(t,e,a){},df3e:function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"loading",rawName:"v-loading.fullscreen.lock",value:t.fullscreenLoading,expression:"fullscreenLoading",modifiers:{fullscreen:!0,lock:!0}}]},[a("div",{staticClass:"content-title"},[t._v(t._s(t.translateTitle("章节管理")))]),a("div",{staticClass:"tab"},[a("div",{staticClass:"tab-top"},[a("el-button",{attrs:{type:"success"},on:{click:function(e){return t.doEdit()}}},[t._v(" "+t._s(t.translateTitle("添加章节"))+" ")])],1),a("div",{staticClass:"table"},[a("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:t.chapter_list,"header-cell-style":{background:"#fff"},"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:t.translateTitle("章节名称"),"min-width":"120",prop:"title"}}),a("el-table-column",{attrs:{align:"center",label:t.translateTitle("创建时间"),"min-width":"80",prop:"humans"}}),a("el-table-column",{attrs:{align:"center",label:t.translateTitle("操作"),"min-width":"80",prop:"address","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){var s=e.row;return[a("el-button",{attrs:{type:"success"},on:{click:function(e){return t.doEdit(s)}}},[t._v(" "+t._s(t.translateTitle("编辑"))+" ")]),a("el-button",{attrs:{type:"danger"},on:{click:function(e){return t.doDelete(s.id)}}},[t._v(" "+t._s(t.translateTitle("删除"))+" ")])]}}])})],1)],1),a("Edit",{ref:"edit",on:{"fetch-data":t.chapterList}})],1)])},r=[],i=a("eaf3"),l=a("79fa"),o=a("89f0"),n={components:{Edit:o["default"]},data(){return{tableData:[],chapter_list:[],fullscreenLoading:!0,queryForm:{page:1,per_page:15,total:0},layout:"total, sizes, prev, pager, next, jumper"}},created(){this.chapterList()},methods:{translateTitle:l["translateTitle"],commandValue(t,e,a){return{command:t,slug:e,id:a}},doEdit(t){t?this.$refs["edit"].showEdit(t):this.$refs["edit"].showEdit()},async chapterList(){this.queryForm.course_id=this.$route.query.id;const{data:t}=await Object(i["chapterList"])(this.queryForm);console.log(t,"pppp"),this.chapter_list=t.list,this.fullscreenLoading=!1},async doDelete(t){this.$baseConfirm("你确定要删除当前章节吗",null,async()=>{const{message:e}=await Object(i["deleteChapter"])(t);this.$baseMessage(e,"success",!1,"vab-hey-message-success"),await this.chapterList()})}}},u=n,c=(a("74cd"),a("0b56")),d=Object(c["a"])(u,s,r,!1,null,"1b20176f",null);e["default"]=d.exports},e114:function(t,e,a){"use strict";a.r(e),a.d(e,"CourseDetail",(function(){return r})),a.d(e,"getCourseDetail",(function(){return i})),a.d(e,"doEdit",(function(){return l})),a.d(e,"attachesList",(function(){return o})),a.d(e,"doAttachesDelete",(function(){return n})),a.d(e,"doAddAttach",(function(){return u})),a.d(e,"doEditAttach",(function(){return c})),a.d(e,"dingyue",(function(){return d}));var s=a("b775");function r(t){return Object(s["default"])({url:"/course/info/"+t,method:"get"})}function i(t){return Object(s["default"])({url:"/course/detail/"+t,method:"get"})}function l(t){return Object(s["default"])({url:"/course/"+t.id,method:"put",data:t})}function o(t){return Object(s["default"])({url:"/course/attach",method:"get",params:t})}function n(t){return Object(s["default"])({url:"/course/attach/"+t,method:"DELETE"})}function u(t){return Object(s["default"])({url:"/course/attach",method:"post",data:t})}function c(t){return Object(s["default"])({url:"/course/attach/"+t.id,method:"put",data:t})}function d(t){return Object(s["default"])({url:"/course/subscribe",method:"post",data:t})}},e2f7:function(t,e,a){"use strict";a.r(e),a.d(e,"videoList",(function(){return r})),a.d(e,"doAdd",(function(){return i})),a.d(e,"doEdit",(function(){return l})),a.d(e,"deleteVideo",(function(){return o})),a.d(e,"videoDetail",(function(){return n}));var s=a("b775");function r(t){return Object(s["default"])({url:"/course/video",method:"get",params:t})}function i(t){return Object(s["default"])({url:"/course/video",method:"post",data:t})}function l(t){return Object(s["default"])({url:"/course/video/"+t.id,method:"put",data:t})}function o(t){return Object(s["default"])({url:"/course/video/"+t,method:"delete"})}function n(t){return Object(s["default"])({url:"/course/video/info/"+t,method:"get"})}},e424:function(t,e,a){},e97f:function(t,e,a){"use strict";a.r(e),a.d(e,"getTikuList",(function(){return r})),a.d(e,"doAdd",(function(){return i})),a.d(e,"getDetail",(function(){return l})),a.d(e,"editTiku",(function(){return o})),a.d(e,"deleteTiku",(function(){return n})),a.d(e,"getTestList",(function(){return u})),a.d(e,"addTest",(function(){return c})),a.d(e,"editTest",(function(){return d})),a.d(e,"getTestDetail",(function(){return m})),a.d(e,"deleteTest",(function(){return f})),a.d(e,"submitTest",(function(){return h})),a.d(e,"reviewTest",(function(){return p})),a.d(e,"courseOption",(function(){return g})),a.d(e,"videoOption",(function(){return b})),a.d(e,"tikuOption",(function(){return _}));var s=a("b775");function r(t){return Object(s["default"])({url:"/exam/topic",method:"get",params:t})}function i(t){return Object(s["default"])({url:"/exam/topic",method:"post",data:t})}function l(t){return Object(s["default"])({url:"/exam/topic/"+t,method:"get"})}function o(t){return Object(s["default"])({url:"/exam/topic/"+t.id,method:"put",data:t})}function n(t){return Object(s["default"])({url:"/exam/topic/"+t,method:"delete"})}function u(t){return Object(s["default"])({url:"/exam",method:"get",params:t})}function c(t){return Object(s["default"])({url:"/exam",method:"post",data:t})}function d(t){return Object(s["default"])({url:"/exam/"+t.id,method:"put",data:t})}function m(t){return Object(s["default"])({url:"/exam/info/"+t,method:"get"})}function f(t){return Object(s["default"])({url:"/exam/"+t,method:"delete"})}function h(t){return Object(s["default"])({url:"/exam/examination",method:"post",data:t})}function p(t){return Object(s["default"])({url:"/exam/examines",method:"post",data:t})}function g(t){return Object(s["default"])({url:"/course/select-options",method:"get",params:t})}function b(t){return Object(s["default"])({url:"/course/video/select-options",method:"get",params:t})}function _(t){return Object(s["default"])({url:"/exam/topic-select-options",method:"get",params:t})}},eaf3:function(t,e,a){"use strict";a.r(e),a.d(e,"chapterList",(function(){return r})),a.d(e,"doAdd",(function(){return i})),a.d(e,"doEdit",(function(){return l})),a.d(e,"deleteChapter",(function(){return o}));var s=a("b775");function r(t){return Object(s["default"])({url:"/course/chapter",method:"get",params:t})}function i(t){return Object(s["default"])({url:"/course/chapter",method:"post",data:t})}function l(t){return Object(s["default"])({url:"/course/chapter/"+t.id,method:"put",data:t})}function o(t){return Object(s["default"])({url:"/course/chapter/"+t,method:"delete"})}},f01e:function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"loading",rawName:"v-loading.fullscreen.lock",value:t.fullscreenLoading,expression:"fullscreenLoading",modifiers:{fullscreen:!0,lock:!0}}]},[a("div",{staticClass:"content-title"},[t._v(t._s(t.translateTitle("资源下载")))]),a("div",{staticClass:"tab"},[a("div",{staticClass:"tab-top"},[a("el-button",{attrs:{type:"success"},on:{click:t.doAttache}},[t._v(" "+t._s(t.translateTitle("上传资料"))+" ")])],1),a("div",{staticClass:"table"},[a("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:t.attaches,"header-cell-style":{background:"#fff"},"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:t.translateTitle("文件名称"),"min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){var s=e.row;return[a("div",{staticClass:"title"},[s.path_resource?t._e():a("img",{attrs:{alt:"",src:s.path_resource?s.path_resource.url:"../../../assets/login_images/background.jpg",srcset:""}}),a("div",[a("div",{staticClass:"file-name"},[t._v(t._s(s.name))]),a("div",{staticClass:"file-uploader"},[t._v(t._s(s.humans))])])])]}}])}),a("el-table-column",{attrs:{align:"center",label:t.translateTitle("上传时间"),"min-width":"80",prop:"created_at"}}),a("el-table-column",{attrs:{align:"center",label:t.translateTitle("操作"),"min-width":"80",prop:"address","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){var s=e.row;return[a("el-button",{attrs:{type:"primary "},on:{click:function(e){return t.handleClick(s)}}},[t._v(" "+t._s(t.translateTitle("编辑"))+" ")]),a("el-button",{attrs:{type:"success"},on:{click:function(e){return t.doDownLoad(s)}}},[t._v(" "+t._s(t.translateTitle("下载"))+" ")]),a("el-button",{attrs:{type:"danger"},on:{click:function(e){return t.doAttachesDelete(s)}}},[t._v(" "+t._s(t.translateTitle("删除"))+" ")])]}}])})],1),a("el-pagination",{attrs:{background:"","current-page":t.queryForm.page,layout:t.layout,"page-size":t.queryForm.per_page,"page-sizes":[15,20,30,40,50,100],total:t.queryForm.total},on:{"current-change":t.handleCurrentChange,"size-change":t.handleSizeChange}})],1)])])},r=[],i=(a("388d"),a("e114")),l=a("79fa"),o={data(){return{tableData:[],attaches:[],fullscreenLoading:!0,queryForm:{page:1,per_page:15,total:0},layout:"total, sizes, prev, pager, next, jumper"}},created(){this.attachesList()},methods:{translateTitle:l["translateTitle"],async attachesList(){this.queryForm.course_id=this.$route.query.id;const{data:t}=await Object(i["attachesList"])(this.queryForm);console.log(t,"pppp"),this.attaches=t.list;const{meta:e}=t;this.queryForm.total=e.pagination.total,this.fullscreenLoading=!1},handleSizeChange(t){console.log(t,"page"),this.queryForm.per_page=t,this.attachesList()},handleCurrentChange(t){this.queryForm.page=t,this.attachesList()},handleClick(t){this.$router.push({path:"/Tcourse/acctacheDetail",query:{row:t,id:this.$route.query.id,slug:this.$route.query.slug}})},doAttache(){this.$router.push({path:"/Tcourse/acctacheDetail",query:{id:this.$route.query.id,slug:this.$route.query.slug}})},async doAttachesDelete(t){this.$baseConfirm("你确定要删除当前课程资源吗",null,async()=>{const{message:e}=await Object(i["doAttachesDelete"])(t);this.$baseMessage(e,"success",!1,"vab-hey-message-success"),await this.attachesList()})},async doDownLoad(t){let e=t.path_resource?t.path_resource.url:"";const a=document.createElement("a");a.style.display="none",a.href=e,a.click(),window.URL,console.log(a,"tem")},handleSelectionChange(){}}},n=o,u=(a("b630"),a("0b56")),c=Object(u["a"])(n,s,r,!1,null,"2824d540",null);e["default"]=c.exports},f9f5:function(t,e,a){"use strict";a("e424")}}]);