(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["contentManage"],{"0751":function(t,e,n){"use strict";n("61b7")},"19e1":function(t,e,n){"use strict";n("9523")},"300c":function(t,e,n){"use strict";n.d(e,"l",(function(){return o})),n.d(e,"h",(function(){return s})),n.d(e,"i",(function(){return r})),n.d(e,"g",(function(){return i})),n.d(e,"n",(function(){return u})),n.d(e,"p",(function(){return c})),n.d(e,"m",(function(){return l})),n.d(e,"s",(function(){return d})),n.d(e,"L",(function(){return h})),n.d(e,"S",(function(){return f})),n.d(e,"c",(function(){return g})),n.d(e,"R",(function(){return p})),n.d(e,"A",(function(){return m})),n.d(e,"e",(function(){return v})),n.d(e,"K",(function(){return w})),n.d(e,"J",(function(){return b})),n.d(e,"y",(function(){return y})),n.d(e,"Q",(function(){return S})),n.d(e,"I",(function(){return C})),n.d(e,"d",(function(){return k})),n.d(e,"F",(function(){return N})),n.d(e,"w",(function(){return x})),n.d(e,"V",(function(){return T})),n.d(e,"t",(function(){return F})),n.d(e,"M",(function(){return L})),n.d(e,"T",(function(){return _})),n.d(e,"u",(function(){return I})),n.d(e,"N",(function(){return O})),n.d(e,"x",(function(){return j})),n.d(e,"v",(function(){return A})),n.d(e,"P",(function(){return D})),n.d(e,"f",(function(){return M})),n.d(e,"z",(function(){return R})),n.d(e,"O",(function(){return V})),n.d(e,"U",(function(){return P})),n.d(e,"j",(function(){return U})),n.d(e,"k",(function(){return K})),n.d(e,"b",(function(){return G})),n.d(e,"r",(function(){return $})),n.d(e,"G",(function(){return E})),n.d(e,"C",(function(){return H})),n.d(e,"H",(function(){return z})),n.d(e,"D",(function(){return J})),n.d(e,"E",(function(){return B})),n.d(e,"o",(function(){return q})),n.d(e,"q",(function(){return Q})),n.d(e,"a",(function(){return Y})),n.d(e,"B",(function(){return W})),n.d(e,"wb",(function(){return X})),n.d(e,"xb",(function(){return Z})),n.d(e,"eb",(function(){return tt})),n.d(e,"db",(function(){return et})),n.d(e,"fb",(function(){return nt})),n.d(e,"Ib",(function(){return at})),n.d(e,"Jb",(function(){return ot})),n.d(e,"ab",(function(){return st})),n.d(e,"sb",(function(){return rt})),n.d(e,"yb",(function(){return it})),n.d(e,"Rb",(function(){return ut})),n.d(e,"bb",(function(){return ct})),n.d(e,"tb",(function(){return lt})),n.d(e,"zb",(function(){return dt})),n.d(e,"Mb",(function(){return ht})),n.d(e,"Lb",(function(){return ft})),n.d(e,"Gb",(function(){return gt})),n.d(e,"Hb",(function(){return pt})),n.d(e,"Fb",(function(){return mt})),n.d(e,"Kb",(function(){return vt})),n.d(e,"Pb",(function(){return wt})),n.d(e,"Qb",(function(){return bt})),n.d(e,"Ob",(function(){return yt})),n.d(e,"Nb",(function(){return St})),n.d(e,"jb",(function(){return Ct})),n.d(e,"hb",(function(){return kt})),n.d(e,"W",(function(){return Nt})),n.d(e,"ob",(function(){return xt})),n.d(e,"Tb",(function(){return Tt})),n.d(e,"Cb",(function(){return Ft})),n.d(e,"nb",(function(){return Lt})),n.d(e,"cb",(function(){return _t})),n.d(e,"ub",(function(){return It})),n.d(e,"Ab",(function(){return Ot})),n.d(e,"gb",(function(){return jt})),n.d(e,"X",(function(){return At})),n.d(e,"pb",(function(){return Dt})),n.d(e,"lb",(function(){return Mt})),n.d(e,"Db",(function(){return Rt})),n.d(e,"ib",(function(){return Vt})),n.d(e,"Y",(function(){return Pt})),n.d(e,"qb",(function(){return Ut})),n.d(e,"mb",(function(){return Kt})),n.d(e,"Eb",(function(){return Gt})),n.d(e,"kb",(function(){return $t})),n.d(e,"vb",(function(){return Et})),n.d(e,"Bb",(function(){return Ht})),n.d(e,"Z",(function(){return zt})),n.d(e,"Sb",(function(){return Jt})),n.d(e,"rb",(function(){return Bt}));var a=n("284b"),o=function(t){return a["a"].post("/admin/course/info/pageCourseInfo",t)},s=function(t){return a["a"].get("/admin/course/info/onLine",{params:t})},r=function(t){return a["a"].get("/admin/course/info/out",{params:t})},i=function(t){return a["a"].get("/admin/course/info/delete",{params:t})},u=function(){return a["a"].post("/admin/course/teacher/select/showTeacher")},c=function(t){return a["a"].get("/admin/course/label/select/getAllLabelsByType",{params:t})},l=function(t){return a["a"].get("/admin/course/info/shareCourseLink",{params:t})},d=function(t){return a["a"].post("/adminv2/catalogue/list",t)},h=function(t){return a["a"].post("/adminv2/catalogue/add",t)},f=function(t){return a["a"].post("/adminv2/catalogue/update",t)},g=function(t){return a["a"].post("/adminv2/catalogue/delete",t)},p=function(){return a["a"].post("/admin/course/teacher/select/showTeacher")},m=function(t){return a["a"].post("/admin/course/lessons/getCourseLessonsResult",t)},v=function(t){return a["a"].get("/admin/course/lessons/copyCourseLessonsLink",{params:t})},w=function(t){return a["a"].get("/admin/course/lessons/show",{params:t})},b=function(t){return a["a"].get("/admin/course/lessons/hide",{params:t})},y=function(t){return a["a"].get("/admin/course/lessons/getCourseLessonsDesResult",{params:t})},S=function(t){return a["a"].get("/admin/course/catalogue/select/showCatalogueByCourseNo",{params:t})},C=function(t){return a["a"].get("/admin/course/lessons/delete",{params:t})},k=function(t){return a["a"].post("/admin/course/catalogue/sortOperation",t)},N=function(t){return a["a"].get("/admin/course/info/getMasterTeacherNo",{params:t})},x=function(){return a["a"].post("/adminv2/getCategoryList")},T=function(t){return a["a"].post("/adminv2/updateCateStatus",t)},F=function(){return a["a"].post("/adminv2/getCateList")},L=function(t){return a["a"].post("/adminv2/saveCategory",t)},_=function(t){return a["a"].post("/adminv2/saveCategory",t)},I=function(t){return a["a"].post("/adminv2/getCateInfoDetail",t)},O=function(t){return a["a"].post("/adminv2/saveCourseInfoNew",t)},j=function(t){return a["a"].post("/adminv2/getCourseInfoNew",t)},A=function(t){return a["a"].post("/adminv2/getCourseAppShow ",t)},D=function(t){return a["a"].post("/adminv2/setCourseAppShow ",t)},M=function(t){return a["a"].post("/adminv2/getCourseAddInfo",t)},R=function(t){return a["a"].post("/adminv2/getLessonsInfo",t)},V=function(t){return a["a"].post("/adminv2/AddLessonsInfo",t)},P=function(t){return a["a"].post("/adminv2/AddLessonsInfo",t)},U=function(t){return a["a"].post("/adminv2/addCourseInfo",t)},K=function(t){return a["a"].post("/adminv2/addCourseInfo",t)},G=function(t){return a["a"].post("/adminv2/addOneAtlasInfo",t)},$=function(){return a["a"].post("/adminv2/getAtlasList")},E=function(t){return a["a"].post("/adminv2/getOneAtlasInfo",t)},H=function(){return a["a"].post("/adminv2/getFamilyList")},z=function(){return a["a"].post("/adminv2/getYearList")},J=function(t){return a["a"].post("/adminv2/getFamilyPeople",t)},B=function(){return a["a"].post("/adminv2/getIdentityList")},q=function(t){return a["a"].post("/adminv2/delPeople",t)},Q=function(t){return a["a"].post("/adminv2/getAtlasLessonsList",t)},Y=function(t){return a["a"].post("adminv2/addCoursePlaybill",t)},W=function(t){return a["a"].post("adminv2/getCoursePlaybill",t)},X=function(t){return a["a"].post("/adminv2/course/lessons/online",t)},Z=function(t){return a["a"].post("/adminv2/course/lessons/out",t)},tt=function(t){return a["a"].post("/adminv2/lessons/category/list",t)},et=function(t){return a["a"].post("/adminv2/lessons/category/add",t)},nt=function(t){return a["a"].post("/adminv2/lessons/category/update",t)},at=function(t){return a["a"].post("/adminv2/studyplant/stage/list",t)},ot=function(t){return a["a"].post("/adminv2/studyplant/stage/switch",t)},st=function(t){return a["a"].post("/adminv2/studyplant/stage/add",t)},rt=function(t){return a["a"].post("/adminv2/studyplant/stage/edit",t)},it=function(t){return a["a"].post("/adminv2/studyplant/stage/putaway",t)},ut=function(t){return a["a"].post("/adminv2/studyplant/tags/list",t)},ct=function(t){return a["a"].post("/adminv2/studyplant/tags/add",t)},lt=function(t){return a["a"].post("/adminv2/studyplant/tags/edit",t)},dt=function(t){return a["a"].post("/adminv2/studyplant/tags/putaway",t)},ht=function(t){return a["a"].post("/adminv2/studyplant/tags/content/detail",t)},ft=function(t){return a["a"].post("/adminv2/studyplant/tags/content/set",t)},gt=function(t){return a["a"].post("/adminv2/studyplant/tags/catalogue/list",t)},pt=function(t){return a["a"].post("/adminv2/studyplant/tags/catalogue/add",t)},mt=function(t){return a["a"].post("/adminv2/studyplant/tags/catalogue/edit",t)},vt=function(t){return a["a"].post("/adminv2/studyplant/tags/catalogue/del",t)},wt=function(t){return a["a"].post("/adminv2/studyplant/tags/lessons/list",t)},bt=function(t){return a["a"].post("/adminv2/studyplant/tags/lessons/add",t)},yt=function(t){return a["a"].post("/adminv2/studyplant/tags/lessons/edit",t)},St=function(t){return a["a"].post("/adminv2/studyplant/tags/lessons/del",t)},Ct=function(t){return a["a"].post("/adminv2/course/module/list",t)},kt=function(t){return a["a"].post("/adminv2/course/module/detail",t)},Nt=function(t){return a["a"].post("/adminv2/course/module/add",t)},xt=function(t){return a["a"].post("/adminv2/course/module/edit",t)},Tt=function(t){return a["a"].post("/adminv2/course/module/status",t)},Ft=function(t){return a["a"].post("/adminv2/course/module/phone/list",t)},Lt=function(t){return a["a"].post("/adminv2/course/module/phone/delete",t)},_t=function(t){return a["a"].post("/adminv2/course/module/phone/add",t)},It=function(t){return a["a"].post("/adminv2/course/module/content/get",t)},Ot=function(t){return a["a"].post("/adminv2/course/module/content/set",t)},jt=function(t){return a["a"].post("/adminv2/course/module/catalogue/list",t)},At=function(t){return a["a"].post("/adminv2/course/module/catalogue/add",t)},Dt=function(t){return a["a"].post("/adminv2/course/module/catalogue/edit",t)},Mt=function(t){return a["a"].post("/adminv2/course/module/catalogue/delete",t)},Rt=function(t){return a["a"].post("/adminv2/course/module/catalogue/sort",t)},Vt=function(t){return a["a"].post("/adminv2/course/module/lessons/list",t)},Pt=function(t){return a["a"].post("/adminv2/course/module/lessons/add",t)},Ut=function(t){return a["a"].post("/adminv2/course/module/lessons/edit",t)},Kt=function(t){return a["a"].post("/adminv2/course/module/lessons/delete",t)},Gt=function(t){return a["a"].post("/adminv2/course/module/lessons/sort",t)},$t=function(t){return a["a"].post("/adminv2/course/module/stage/list",t)},Et=function(t){return a["a"].post("/adminv2/course/module/stage/descb/get",t)},Ht=function(t){return a["a"].post("/adminv2/course/module/stage/descb/set",t)},zt=function(t){return a["a"].post("/adminv2/course/module/stage/add",t)},Jt=function(t){return a["a"].post("/adminv2/course/module/stage/status",t)},Bt=function(t){return a["a"].post("/adminv2/course/module/stage/edit",t)}},"5d2b":function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"positionT0L0",attrs:{id:"content_manage"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.$route.meta.isShow,expression:"$route.meta.isShow"}]},[n("div",{staticClass:"top"},[n("p",[t._v(t._s(t.name))]),n("p",[t._v("创建时间: "+t._s(t.createTime))])]),n("a-tabs",{attrs:{activeKey:t.activeKey},on:{change:t.callback}},[1==t.catalogueFlag&&t.isShowCatalogueList?n("a-tab-pane",{key:"1",attrs:{tab:"章节管理"}},[1==t.activeKey?n("ChapterManage",{attrs:{courseNo:t.courseNo}}):t._e()],1):t._e(),t.isShowCourseList?n("a-tab-pane",{key:"0",attrs:{tab:"课节管理"}},[0==t.activeKey?n("LessonsManage",{attrs:{courseNo:t.courseNo,catalogueFlag:t.catalogueFlag}}):t._e()],1):t._e()],1)],1),n("router-view")],1)},o=[],s=(n("b0c0"),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t._l(t.catalogueArr,(function(e,a){return n("div",{key:e.id,staticClass:"list"},[n("div",{staticClass:"big_list"},[n("div",{staticClass:"list_left"},[t._v(" "+t._s(a+1)+"、"),n("span",[t._v(t._s(e.title))])]),n("div",{staticClass:"list_right"},[[n("a-icon",{staticClass:"my_icon",attrs:{type:"edit"},on:{click:function(n){return t.editClick(a,e)}}})],n("a-icon",{directives:[{name:"show",rawName:"v-show",value:t.isShowDel,expression:"isShowDel"}],staticClass:"my_icon",attrs:{type:"delete"},on:{click:function(n){return t.catalogueDeleteClick(e)}}})],2)]),n("a-form",{staticClass:"col drag-form"},[n("draggable",{attrs:{group:"site",animation:"300",scrollSensitivity:"0px",dragClass:"dragClass",ghostClass:"ghostClass",chosenClass:"chosenClass"},on:{change:function(n){return t.onChange(e)},start:t.onStart,end:function(e){return t.onEnd(e)}},model:{value:e["lessonsNodes"],callback:function(n){t.$set(e,"lessonsNodes",n)},expression:"item['lessonsNodes']"}},[n("transition-group",t._l(e.lessonsNodes,(function(e){return n("div",{key:e.lessonsId,staticClass:"small_list",on:{click:function(n){return t.lessonsEditclick(e)}}},[n("div",{staticClass:"small_list_left"},[t._v(t._s(e.name))])])})),0)],1)],1)],1)})),n("div",{directives:[{name:"show",rawName:"v-show",value:t.isShowAdd,expression:"isShowAdd"}],staticClass:"add_chapter",on:{click:t.addCatalogueClick}},[n("a-icon",{staticClass:"add",attrs:{type:"plus"}}),n("span",[t._v("新增章节")])],1),n("a-modal",{attrs:{title:"添加章节"},on:{ok:t.handleOk,cancel:t.handleCancel},model:{value:t.modelShow,callback:function(e){t.modelShow=e},expression:"modelShow"}},[n("span",{staticClass:"add_input"},[n("a-input",{attrs:{placeholder:"章节名称",maxLength:32},model:{value:t.addaddCatalogueTitle,callback:function(e){t.addaddCatalogueTitle=e},expression:"addaddCatalogueTitle"}}),n("span",[t._v(t._s(t.addaddCatalogueTitle.length)+"/32")])],1),n("UpdataImg",{staticStyle:{"margin-top":"20px"},attrs:{imageUrlNum:1,imgUrl:t.syllabus},on:{avatarfns:t.syllabusUrlFn}})],1)],2)}),r=[],i=(n("d81d"),n("99af"),n("ac1f"),n("1276"),n("d3b7"),n("25f0"),n("4de4"),n("b76a")),u=n.n(i),c=n("a65c"),l=n("300c"),d=n("f64c"),h=n("ed3b"),f=n("b893"),g={props:["courseNo"],created:function(){this.GetCatalogueTreeResultApiFn(),Object(f["a"])("/admin/course/catalogue/saveCatalogue")&&(this.isShowAdd=!0),Object(f["a"])("/admin/course/catalogue/updCatalogue")&&(this.isShowUpd=!0),Object(f["a"])("/admin/course/catalogue/delete")&&(this.isShowDel=!0)},data:function(){return{flag:0,modelShow:!1,syllabus:[],catalogueArr:[],addaddCatalogueTitle:"",addCatalogueType:1,drag:!1,dragArr:[],dragItem:{},title:"",isShowAdd:!1,isShowUpd:!1,isShowDel:!1,id:""}},components:{draggable:u.a,UpdataImg:c["a"]},methods:{syllabusUrlFn:function(t){this.syllabus=t},onStart:function(){this.drag=!0},onChange:function(t){this.dragArr.push(t),1===this.dragArr.length?this.dragItem=this.dragArr[this.dragArr.length-1]:this.dragItem=this.dragArr[this.dragArr.length-2]},onEnd:function(t){var e=this;this.$nextTick((function(){if(e.drag=!1,e.dragItem.lessonsNodes){var t=[];e.dragItem.lessonsNodes.map((function(e,n){t.push({id:e.lessonsId,sort:n})})),Object(l["d"])({catalogueNo:e.dragItem.catalogueNo,lesssons:t}).then((function(t){var e=t.code;t.data;200==e&&d["a"].success("排序成功",1)}))}}))},lessonsEditclick:function(t){var e=this,n=sessionStorage.getItem("catalogueFlag"),a=localStorage.getItem("courseNo");Object(l["y"])({id:t.lessonsId}).then((function(o){var s=o.code,r=o.data;200==s&&(sessionStorage.setItem("editData",JSON.stringify(r)),e.$router.push("/coursManage/courseList/contentManage/addLessons/".concat(t.lessonsId,"/").concat(a,"/").concat(n)))}))},addCatalogueClick:function(){this.flag=1,this.modelShow=!0},editClick:function(t,e){this.flag=0,this.id=e.id,this.addaddCatalogueTitle=e.title,this.syllabus=e.backgroundImg.split(","),this.modelShow=!0},handleOk:function(){var t=this;this.addaddCatalogueTitle?1===this.flag?Object(l["L"])({courseNo:this.courseNo,catalogueName:this.addaddCatalogueTitle,backgroundImg:this.syllabus&&this.syllabus.length>0?this.syllabus.toString():""}).then((function(e){var n=e.code;200==n&&(d["a"].success("新增成功"),t.$router.go(0))})):Object(l["S"])({courseNo:this.courseNo,id:this.id,catalogueName:this.addaddCatalogueTitle,backgroundImg:this.syllabus&&this.syllabus.length>0?this.syllabus.toString():""}).then((function(e){var n=e.code;200==n&&(d["a"].success("修改成功"),t.$router.go(0))})):d["a"].warning("请添加章节名称")},handleCancel:function(){this.modelShow=!1,this.id="",this.addaddCatalogueTitle="",this.addCatalogueType="",this.syllabus=[]},catalogueDeleteClick:function(t){var e=this;t.lessonsNodes.length>0?h["a"].confirm({title:"提示",content:"此章节下面有课节,不能删除",okText:"确认",okType:"danger",cancelText:"取消"}):h["a"].confirm({title:"提示",content:"删除后相关数据无法恢复, 是否确认删除",okText:"确认",okType:"danger",cancelText:"取消",onOk:function(){Object(l["c"])({catalogueNo:t.catalogueNo}).then((function(n){var a=n.code;n.datea;if(200==a){d["a"].success("删除目录成功");var o=e.catalogueArr;e.catalogueArr=o.filter((function(e){return e.catalogueNo!==t.catalogueNo}))}}))}})},GetCatalogueTreeResultApiFn:function(){var t=this;Object(l["s"])({courseNo:this.courseNo}).then((function(e){var n=e.code,a=e.data;200==n&&(t.catalogueArr=a)}))}}},p=g,m=(n("0751"),n("2877")),v=Object(m["a"])(p,s,r,!1,null,"40b4440a",null),w=v.exports,b=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"top"},[n("div",{staticClass:"top_left"},[n("a-button",{directives:[{name:"show",rawName:"v-show",value:t.isShowAdd,expression:"isShowAdd"}],attrs:{icon:"plus",type:"primary"},on:{click:t.addLessons}},[t._v(" 添加课节 ")])],1),n("div",{staticClass:"top_rigiht"},[n("span",[t._v("课节老师")]),n("a-select",{staticStyle:{width:"120px"},attrs:{getPopupContainer:function(e){return e.parentNode||t.document.body}},on:{change:t.changeShowTeach},model:{value:t.showTeach,callback:function(e){t.showTeach=e},expression:"showTeach"}},t._l(t.showTeachArr,(function(e){return n("a-select-option",{key:e.labelNo},[t._v(" "+t._s(e.labelText)+" ")])})),1),n("span",[t._v("课节状态")]),n("a-select",{staticStyle:{width:"120px"},attrs:{getPopupContainer:function(e){return e.parentNode||t.document.body}},on:{change:t.changePutawayFlag},model:{value:t.putawayFlag,callback:function(e){t.putawayFlag=e},expression:"putawayFlag"}},t._l(t.putawayFlagArr,(function(e){return n("a-select-option",{key:e.key},[t._v(" "+t._s(e.value)+" ")])})),1),n("a-input",{ref:"userNameInput",staticStyle:{width:"200px"},attrs:{placeholder:"请输入课节名称"},on:{pressEnter:t.searchClick},model:{value:t.searchVal,callback:function(e){t.searchVal=e},expression:"searchVal"}},[n("a-icon",{attrs:{slot:"prefix",type:"search"},slot:"prefix"})],1),n("a-button",{attrs:{icon:"search",type:"primary",disabled:t.isDisableSearch},on:{click:t.searchClick}},[t._v("搜索")])],1)]),n("a-table",{attrs:{columns:t.columns,"data-source":t.tableData,pagination:!1,customRow:t.customRow,loading:t.tableLoading},scopedSlots:t._u([{key:"number",fn:function(e,a,o){return n("span",{},[n("span",[t._v(t._s(o+1))])])}},{key:"putawayFlagText",fn:function(t,e){return n("span",{},[n("a-badge",{directives:[{name:"show",rawName:"v-show",value:0==e.putawayFlag,expression:"record.putawayFlag == 0"}],attrs:{status:"error",text:"已下架"}}),n("a-badge",{directives:[{name:"show",rawName:"v-show",value:1==e.putawayFlag,expression:"record.putawayFlag == 1"}],attrs:{status:"processing",text:"定时上架"}}),n("a-badge",{directives:[{name:"show",rawName:"v-show",value:2==e.putawayFlag,expression:"record.putawayFlag == 2"}],attrs:{status:"success",text:"已上架"}}),n("a-badge",{directives:[{name:"show",rawName:"v-show",value:3==e.putawayFlag,expression:"record.putawayFlag == 3"}],attrs:{status:"warning",text:"暂不上架"}})],1)}},{key:"operation",fn:function(e,a){return n("span",{},[n("a",{directives:[{name:"show",rawName:"v-show",value:t.isShowUpd,expression:"isShowUpd"}],staticClass:"margin_right20",on:{click:function(e){return t.editClick(a)}}},[t._v("编辑")]),n("a",{directives:[{name:"show",rawName:"v-show",value:2==a.putawayFlag&&t.isShowOut,expression:"record.putawayFlag == 2 && isShowOut"}],staticClass:"margin_right20",on:{click:function(e){return t.TapeOutClick(a)}}},[t._v("下架")]),n("a",{directives:[{name:"show",rawName:"v-show",value:2!=a.putawayFlag&&t.isShowOnline,expression:"record.putawayFlag != 2 && isShowOnline"}],staticClass:"margin_right20",on:{click:function(e){return t.TapeOutClick(a)}}},[t._v("上架")]),n("a",{directives:[{name:"show",rawName:"v-show",value:t.isShowCopy,expression:"isShowCopy"}],staticClass:"margin_right20",on:{click:function(e){return t.shareClick(a)}}},[t._v("复制链接")]),n("a",{directives:[{name:"show",rawName:"v-show",value:1==a.hkeyeFlag&&t.isShowShow,expression:"record.hkeyeFlag == 1 && isShowShow"}],staticClass:"margin_right20",on:{click:function(e){return t.showOrHideClick(a)}}},[t._v("显示")]),n("a",{directives:[{name:"show",rawName:"v-show",value:0==a.hkeyeFlag&&t.isShowHide,expression:"record.hkeyeFlag == 0 && isShowHide"}],staticClass:"margin_right20",on:{click:function(e){return t.showOrHideClick(a)}}},[t._v("隐藏")]),n("a",{directives:[{name:"show",rawName:"v-show",value:t.isShowDel,expression:"isShowDel"}],staticClass:"margin_right20",on:{click:function(e){return t.delClick(a)}}},[t._v("删除")]),n("a",{staticClass:"margin_right20",on:{click:function(e){return t.updateLessonSortClick(a)}}},[t._v("修改排序")])])}}])}),n("a-modal",{attrs:{footer:null,width:"40%"},model:{value:t.shareModalVisible,callback:function(e){t.shareModalVisible=e},expression:"shareModalVisible"}},[n("div",{staticClass:"share"},[t._v("分享")]),n("a-tabs",{attrs:{"default-active-key":"1"}},[n("a-tab-pane",{key:"1",attrs:{tab:"H5"}},[n("div",[n("span",{staticStyle:{"margin-right":"20px"}},[t._v("链接")]),n("a-input",{staticStyle:{width:"80%"},attrs:{placeholder:"H5链接",disabled:""},model:{value:t.shareInputVal,callback:function(e){t.shareInputVal=e},expression:"shareInputVal"}}),n("a-button",{staticStyle:{"margin-left":"20px"},attrs:{id:"copy_text","data-clipboard-text":t.shareInputVal,type:"primary"},on:{click:t.handleCopyFun}},[t._v(" 复制 ")])],1)])],1)],1),n("a-modal",{attrs:{title:"修改课节排序",width:"400px",visible:t.updateSortModalVisible,"confirm-loading":t.updateSortConfirmLoading},on:{ok:t.handleUpdateLessonSort,cancel:t.closeSortModal}},[n("a-form",{attrs:{"label-col":{span:5},"wrapper-col":{span:12}}},[n("a-form-item",{attrs:{label:"课节排序:"}},[n("a-input-number",{attrs:{min:0},model:{value:t.currLessionSortData.sort,callback:function(e){t.$set(t.currLessionSortData,"sort",e)},expression:"currLessionSortData.sort"}})],1)],1)],1),n("MyPagination",{directives:[{name:"show",rawName:"v-show",value:!t.tableLoading,expression:"!tableLoading"}],attrs:{count:t.count,pageNo:t.pageNo},on:{showSizeChangeFn:t.showSizeChangeFn}})],1)},y=[],S=n("2909"),C=n("ade3"),k=(n("159b"),n("5319"),n("a434"),n("b311")),N=n.n(k),x=n("6ffe"),T={props:["courseNo","catalogueFlag"],components:{MyPagination:x["a"]},created:function(){var t=this;this.ShowTeacherFn();var e=JSON.parse(localStorage.getItem("dictionaryObj"));e.putawayFlag.forEach((function(e){return t.putawayFlagArr.push(e)})),Object(f["a"])("/admin/course/lessons/saveLessons")&&(this.isShowAdd=!0),Object(f["a"])("/admin/course/lessons/updLessons")&&(this.isShowUpd=!0),Object(f["a"])("/admin/course/lessons/delete")&&(this.isShowDel=!0),Object(f["a"])("/admin/course/lessons/onLine")&&(this.isShowOnline=!0),Object(f["a"])("/admin/course/lessons/out")&&(this.isShowOut=!0),Object(f["a"])("/admin/course/lessons/copyCourseLessonsLink")&&(this.isShowCopy=!0),Object(f["a"])("/admin/course/lessons/show")&&(this.isShowShow=!0),Object(f["a"])("/admin/course/lessons/hide")&&(this.isShowHide=!0)},data:function(){return{pageNo:1,pageSize:20,type:0,recordCurrent:{},searchVal:"",isDisableSearch:!1,showTeach:"",showTeachArr:[{labelNo:"",labelText:"全部老师"}],putawayFlag:"",putawayFlagArr:[{key:"",value:"全部状态"}],shareModalVisible:!1,shareInputVal:"",updateSortModalVisible:!1,updateSortConfirmLoading:!1,currLessionSortData:{},count:0,tableLoading:!0,columns:[{title:"序号",dataIndex:"number",key:"number",width:"4%",scopedSlots:{customRender:"number"}},{title:"课节名称",dataIndex:"name",key:"name",width:"25%",scopedSlots:{customRender:"name"}},{title:"老师",dataIndex:"teacherName",key:"teacherName",width:"10%",scopedSlots:{customRender:"teacherName"}},{title:"类型",dataIndex:"lessonsText",key:"lessonsText",width:"10%",scopedSlots:{customRender:"lessonsText"}},{title:"状态",dataIndex:"putawayFlagText",width:"10%",key:"putawayFlagText",scopedSlots:{customRender:"putawayFlagText"}},Object(C["a"])({title:"创建时间",dataIndex:"createTime",width:"12%",sorter:!0,key:"createTime"},"sorter",(function(t,e){var n=new Date(t.createTime).getTime(),a=new Date(e.createTime).getTime();return n-a})),{title:"操作",key:"operation",dataIndex:"operation",scopedSlots:{customRender:"operation"}}],tableData:[],sourceObj:{},sourceIndex:null,targetObj:{},targetIndex:null,isShowAdd:!1,isShowUpd:!1,isShowDel:!1,isShowOnline:!1,isShowOut:!1,isShowCopy:!1,isShowShow:!1,isShowHide:!1}},watch:{$route:{handler:function(t){"contentManage"==t.name&&this.GetCourseLessonsResultFn()},immediate:!0},searchVal:function(t){t.length<=0&&this.GetCourseLessonsResultFn()},catalogueFlag:function(t){"0"==t&&this.GetCourseLessonsResultFn()}},methods:{addLessons:function(){this.$router.push("/coursManage/courseList/contentManage/addLessons/0/".concat(this.courseNo,"/").concat(this.catalogueFlag))},changeShowTeach:function(t){this.showTeach=t,this.GetCourseLessonsResultFn()},changePutawayFlag:function(t){this.putawayFlag=t,this.GetCourseLessonsResultFn()},searchClick:function(){var t=this;this.isDisableSearch=!0,setTimeout((function(){t.isDisableSearch=!1}),3e3),this.pageNo=1,this.GetCourseLessonsResultFn()},editClick:function(t){location.href="/coursManage/courseList/contentManage/addLessons/".concat(t.key,"/").concat(t.courseNo,"/").concat(this.catalogueFlag)},TapeOutClick:function(t){2==t.putawayFlag?h["a"].confirm({title:"提示",content:"下架后用户无法在APP查看学习是否确定下架",okText:"确认",okType:"danger",cancelText:"取消",onOk:function(){Object(l["xb"])({id:t.key}).then((function(e){var n=e.code;200==n&&(d["a"].success("下架成功",1),t.putawayFlag=0)}))}}):Object(l["wb"])({id:t.key}).then((function(e){var n=e.code;200==n&&(d["a"].success("上架成功",1),t.putawayFlag=2)}))},shareClick:function(t){var e=this;this.shareModalVisible=!0,Object(l["e"])({courseNo:t.courseNo,lessonsNo:t.lessonsNo,lessonsType:t.lessonsType}).then((function(t){var n=t.code,a=t.data;200==n&&(e.shareInputVal=a.lessonsLink)}))},handleCopyFun:function(){var t=this,e=new N.a("#copy_text");e.on("success",(function(n){d["a"].success("复制成功"),t.shareModalVisible=!1,e.destroy()})),e.on("error",(function(n){d["a"].error("复制失败"),t.shareModalVisible=!1,e.destroy()}))},showOrHideClick:function(t){0==t.hkeyeFlag?Object(l["J"])({lessonsNo:t.lessonsNo}).then((function(e){var n=e.code;200==n&&(d["a"].success("隐藏成功",1),t.hkeyeFlag=1)})):Object(l["K"])({lessonsNo:t.lessonsNo}).then((function(e){var n=e.code;200==n&&(d["a"].success("显示成功",1),t.hkeyeFlag=0)}))},delClick:function(t){var e=this;2==t.putawayFlag?h["a"].confirm({title:"提示",content:"上架中的课节不能删除,请先下架课节",okText:"确认",okType:"danger",cancelText:"取消"}):h["a"].confirm({title:"提示",content:"删除后相关数据无法恢复, 是否确认删除",okText:"确认",okType:"danger",cancelText:"取消",onOk:function(){Object(l["I"])({id:t.key}).then((function(n){var a=n.code;n.data;if(200==a){d["a"].success("删除成功");var o=e.tableData;e.tableData=o.filter((function(e){return e.key!==t.key}))}}))}})},updateLessonSortClick:function(t){this.updateSortModalVisible=!0;var e=t.key,n=t.catalogueNo,a=t.sort;this.currLessionSortData={key:e,catalogueNo:n,sort:a}},handleUpdateLessonSort:function(){var t=this,e=this.currLessionSortData,n=[{id:e.key,sort:e.sort}];this.updateSortConfirmLoading=!0,Object(l["d"])({catalogueNo:e.catalogueNo,lesssons:n}).then((function(e){var n=e.code;200==n&&(t.updateSortConfirmLoading=!1,t.closeSortModal(),d["a"].success("修改排序成功",1),t.GetCourseLessonsResultFn())}))},closeSortModal:function(){this.updateSortModalVisible=!1},showSizeChangeFn:function(t,e){this.pageNo=t,this.pageSize=e,this.GetCourseLessonsResultFn()},GetCourseLessonsResultFn:function(){var t=this;Object(l["A"])({courseNo:this.courseNo,pageNo:this.pageNo,pageSize:this.pageSize,teacherNo:this.showTeach,putawayFlag:this.putawayFlag,name:this.searchVal}).then((function(e){var n=e.code,a=e.data;if(200==n){t.tableLoading=!1;var o=a.data.map((function(t){return JSON.parse(JSON.stringify(t).replace(/id/g,"key"))}));t.tableData=o,t.count=a.count}}))},ShowTeacherFn:function(){var t=this;Object(l["R"])().then((function(e){var n,a=e.code,o=e.data;200==a&&(n=t.showTeachArr).push.apply(n,Object(S["a"])(o))}))},customRow:function(t,e){var n=this;if("0"==this.catalogueFlag)return{props:{},style:{cursor:"pointer"},on:{mouseenter:function(t){var e=t||window.event;e.target.draggable=!0},dragstart:function(a){var o=a||window.event;o.stopPropagation(),n.sourceObj=t,n.sourceIndex=e},dragover:function(t){var e=t||window.event;e.preventDefault()},drop:function(a){var o=a||window.event;o.stopPropagation(),n.targetObj=t,n.targetIndex=e,n.tableData.splice(n.sourceIndex,1),n.tableData.splice(n.targetIndex,0,n.sourceObj);var s=[];n.tableData.map((function(t,e){var a=(n.pageNo-1)*n.pageSize+e;s.push({id:t.key,sort:a})})),Object(l["d"])({catalogueNo:t.catalogueNo,lesssons:s}).then((function(t){var e=t.code;200==e&&d["a"].success("排序成功",1)}))}}}}}},F=T,L=(n("8079"),Object(m["a"])(F,b,y,!1,null,"7f9cb093",null)),_=L.exports,I={created:function(){Object(f["a"])("/admin/course/catalogue/getCatalogueTreeResult")&&(this.isShowCatalogueList=!0),Object(f["a"])("/admin/course/lessons/getCourseLessonsResult")&&(this.isShowCourseList=!0),this.courseNo=localStorage.getItem("courseNo"),this.createTime=localStorage.getItem("createTime"),this.name=localStorage.getItem("name"),this.catalogueFlag=localStorage.getItem("catalogueFlag"),this.activeKey=localStorage.getItem("activeKey")&&this.isShowCatalogueList?localStorage.getItem("activeKey"):"0"},components:{ChapterManage:w,LessonsManage:_},data:function(){return{activeKey:null,catalogueFlag:null,courseNo:"",name:"",createTime:"",isShowCatalogueList:!1,isShowCourseList:!1}},methods:{callback:function(t){this.activeKey=t,localStorage.setItem("activeKey",t)}},beforeDestroy:function(){localStorage.removeItem("catalogueFlag"),localStorage.removeItem("activeKey"),localStorage.removeItem("courseNo"),localStorage.removeItem("createTime"),localStorage.removeItem("name"),localStorage.removeItem("courseType")}},O=I,j=(n("19e1"),Object(m["a"])(O,a,o,!1,null,"30c831d9",null));e["default"]=j.exports},"61b7":function(t,e,n){},"654d":function(t,e,n){},8079:function(t,e,n){"use strict";n("654d")},9523:function(t,e,n){}}]); //# sourceMappingURL=contentManage.5259c039.js.map