(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-ed99afca","chunk-b7b74f52","chunk-4aaf9a2f","chunk-b7b74f52","chunk-74bc55b5","chunk-2d221a16","chunk-2d0ac361","chunk-2d0bcdcc","chunk-2d0c4c18"],{1925:function(t,e,n){"use strict";n.r(e),n.d(e,"searchApi",(function(){return a}));var r=n("b775"),a=function(t){return Object(r["default"])({url:"/admin/search",method:"post",data:t})}},"2a18":function(t,e,n){"use strict";n.r(e),n.d(e,"toUpperCase",(function(){return r})),n.d(e,"toLowerCase",(function(){return a})),n.d(e,"toSQLLine",(function(){return i})),n.d(e,"toHump",(function(){return o})),n.d(e,"toType",(function(){return u})),n.d(e,"toTaskStatus",(function(){return c})),n.d(e,"toAgent",(function(){return A})),n.d(e,"toStage",(function(){return f})),n.d(e,"getStage",(function(){return d})),n.d(e,"toFee",(function(){return s})),n.d(e,"toStatus",(function(){return l})),n.d(e,"toConfirm",(function(){return p})),n.d(e,"toSupply",(function(){return g})),n.d(e,"toFeeType",(function(){return h})),n.d(e,"toPoint",(function(){return b})),n.d(e,"tow60",(function(){return m})),n.d(e,"toLogStage",(function(){return w}));n("ac1f"),n("5319"),n("1276");var r=function(t){return t[0]?t.replace(t[0],t[0].toUpperCase()):""},a=function(t){return t[0]?t.replace(t[0],t[0].toLowerCase()):""},i=function(t){return"ID"==t?"ID":t.replace(/([A-Z])/g,"_$1").toLowerCase()},o=function(t){return t.replace(/\_(\w)/g,(function(t,e){return e.toUpperCase()}))},u=function(t){var e={1:"指定任务",2:"委托任务",3:"公开任务"};return e[t]||"---"},c=function(t){var e={1:"编辑",2:"发布",3:"完成",0:"作废"};return e[t]||"---"},A=function(t){return 3==t?"柘荣":4==t?"霞浦":1==t?"宁德":2==t?"福安":"其他"},f=function(t){t&&t.id&&(t=d(t));var e=["未知","审核中","待交付","已交付","已完成"];return e[t]},d=function(t){return t.finish?4:t.deliver_time>1?3:t.confirm?2:1},s=function(t){return"¥"+t/100},l=function(t){return 1==t?"正常":"异常"},p=function(t){return 1==t?"确认":"未确认"},g=function(t){return 1==t?"是":"否"},h=function(t){return 1==t?"按比收费":"税点收费"},b=function(t){return t/100+"%"},m=function(t){return t?t.split("?")[0]+"?x-oss-process=image/resize,m_fill,w_60":""},w=function(t){var e={0:"不变",1:"待接单",2:"待交付",3:"已交付",4:"已完成",5:"删除"};return e[t]||"未知"}},"2a34":function(t,e,n){},"387a":function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"search-term"},[n("el-form",{staticClass:"demo-form-inline",attrs:{inline:!0}},[n("el-form-item",[n("DropSearch",{attrs:{type:"media"},on:{select:t.selectMedia}})],1),n("el-form-item",[n("el-button",{attrs:{type:"primary"},on:{click:function(e){t.dialogFormVisible=!0}}},[t._v("新增课程")])],1)],1)],1),n("el-table",{attrs:{data:t.list.slice((t.page-1)*t.size,t.page*t.size),border:"",stripe:""}},[n("el-table-column",{attrs:{label:"序号",width:"70",prop:"mediaId"}}),n("el-table-column",{attrs:{label:"课程名字",prop:"name"}}),n("el-table-column",{attrs:{label:"视频时长",prop:"duration"},scopedSlots:t._u([{key:"default",fn:function(e){var r=e.row;return[n("span",[t._v(t._s(t._f("toFiexd")(r.duration/3600))+"小时")])]}}])}),n("el-table-column",{attrs:{label:"视频学时",prop:"xs"},scopedSlots:t._u([{key:"default",fn:function(e){var r=e.row;e.$index;return[n("span",[t._v(t._s(t._f("toFiexd")(r.xs/10))+"学时")])]}}])}),n("el-table-column",{attrs:{align:"center",width:"160px",label:"操作","class-name":"small-padding fixed-width"},scopedSlots:t._u([{key:"default",fn:function(e){var r=e.row,a=e.$index;return[r.deleted?n("el-button",{attrs:{type:"danger",size:"small"},on:{click:function(e){return t.dropMedia(r,a)}}},[t._v("取消移除")]):n("el-button",{attrs:{type:"primary",size:"small",icon:"el-icon-edit"},on:{click:function(e){return t.dropMedia(r,a)}}},[t._v("移除")])]}}])})],1),n("el-pagination",{style:{float:"right",padding:"20px"},attrs:{"current-page":t.page,"page-size":t.size,"page-sizes":[10,30,50,100],total:t.list.length,layout:"total, sizes, prev, pager, next, jumper"},on:{"current-change":t.handleCurrentChange,"size-change":t.handleSizeChange}})],1)},a=[],i=(n("b680"),n("5f17")),o=n("cabd"),u=n("196d"),c={name:"Api",data:function(){return{page:1,size:10,list:[],form:{}}},components:{PreviewImg:u["default"],DropSearch:i["default"]},props:{info:{type:Object,default:{courseId:0}}},watch:{"info.courseId":function(){console.log("load"),this.getTableData()}},filters:{toFiexd:function(t){return t.toFixed(1)}},methods:{selectMedia:function(t){this.form=t},getTableData:function(){var t=this;this.page=1;var e={id:this.info.courseId};Object(o["getCourseMediaList"])(e).then((function(e){console.log(e.data),t.list=e.data}))},dropMedia:function(t,e){var n=this,r={mediaId:t.mediaId};Object(o["deleteCourseMedia"])(r).then((function(e){200==e.code&&(n.$message.successMsg("移除成功",1),t.deleted=!0)}))},handleCurrentChange:function(t){this.page=t},handleSizeChange:function(t){this.size=t}},created:function(){this.getTableData()}},A=c,f=(n("d3cc"),n("2877")),d=Object(f["a"])(A,r,a,!1,null,"2241a4fe",null);e["default"]=d.exports},"3bd7":function(t,e){t.exports="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEAZABkAAD/4QAiRXhpZgAATU0AKgAAAAgAAQESAAMAAAABAAEAAAAAAAD/2wBDAAIBAQIBAQICAgICAgICAwUDAwMDAwYEBAMFBwYHBwcGBwcICQsJCAgKCAcHCg0KCgsMDAwMBwkODw0MDgsMDAz/2wBDAQICAgMDAwYDAwYMCAcIDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAz/wAARCABXADwDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoK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2PzMT3A7/U/rVe4iMr71O1tuw5Hyuvof8/4VCpnjbapuFXpjcjgfQsc/nQBavFVbaSJfmkuf3YYnJbPc/QZPt+NS2M3mxySBcrNIzD6dB+gBrItdD2areXhmvt18kcciS3TyIBHux5aZ2Rbt3zFAC+1d33RWoJdoA2/dGBgdKALXmH+7Wfqsga4X/d/xqYzcdKq3w3TfhQA6OXaqj2xXIXPxssrS81KGSyulbT5lhJMkfz5bZkjdkANkZGeBnjpXT+ZtA+9+Fea+KPhrql7qusXFjb2cfmFxaYigDFfKx1xnlnk5bnn2GAD0aLXZLjRre7htJZ2mVW8lXVGA78vtHHTtn0qHwt4ok8UWEF0thcWttdQrPFJLJGd6sARwrEg4OeRWb4u0ebWdChs4bKxuJpF8sTXaK6WWUwZQpB3MOgUYycZIFZ/gnwY3gy/MMOl6VHaJLKVvODceUcCNBhQe3OSR6daALH/AAuS0lu5IbezuJpI5vI2+bEu4+bNETy/ABgdjnGFwx4Nak/jqG38HWutNHJHb3QgbbKyq0SysqgsenG7cfauMn+GU13cGVrNYzJOXIaaGXYjXNwWQhkIOUuGk5JycLnCrjYbw5fXHgfQdIaJovJngW8cTjdFHEd+4EYJZiigYAI3cgYoA3fDvj7TfE17fW1rdWsk1rMY1VJ1czKER/MUDnb85Xvyp5rSuJN0lYmgWd5putakss1zNYt5JtDPN5zD5TvwT8w5x1rZj/ejP8qAK0km125PBxSeb7tUcx/esP8AaP8AOk3t9aAJfN92o833aoRLluG5oLsRy1AE3mfLncaPN92qAPh/vZpSSTQBN52O7VYs5A6Mf9r+gqjlsYzVqx/1Tf73+FAFeWymjnf5M/MR1HrR5Ev/ADzP5iiigA+zy/8APM/mKPIl/wCeZ/MUUUAH2eX/AJ5n8xR5Ev8AzzP5iiigA8iX/nmfzFW9PtZWhb93/F6j0FFFAH//2Q=="},"408a":function(t,e,n){var r=n("e330");t.exports=r(1..valueOf)},5899:function(t,e){t.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},"58a8":function(t,e,n){var r=n("e330"),a=n("1d80"),i=n("577e"),o=n("5899"),u=r("".replace),c="["+o+"]",A=RegExp("^"+c+c+"*"),f=RegExp(c+c+"*$"),d=function(t){return function(e){var n=i(a(e));return 1&t&&(n=u(n,A,"")),2&t&&(n=u(n,f,"")),n}};t.exports={start:d(1),end:d(2),trim:d(3)}},a9e3:function(t,e,n){"use strict";var r=n("83ab"),a=n("da84"),i=n("e330"),o=n("94ca"),u=n("6eeb"),c=n("1a2d"),A=n("7156"),f=n("3a9b"),d=n("d9b5"),s=n("c04e"),l=n("d039"),p=n("241c").f,g=n("06cf").f,h=n("9bf2").f,b=n("408a"),m=n("58a8").trim,w="Number",v=a[w],I=v.prototype,M=a.TypeError,E=i("".slice),C=i("".charCodeAt),D=function(t){var e=s(t,"number");return"bigint"==typeof e?e:k(e)},k=function(t){var e,n,r,a,i,o,u,c,A=s(t,"number");if(d(A))throw M("Cannot convert a Symbol value to a number");if("string"==typeof A&&A.length>2)if(A=m(A),e=C(A,0),43===e||45===e){if(n=C(A,2),88===n||120===n)return NaN}else if(48===e){switch(C(A,1)){case 66:case 98:r=2,a=49;break;case 79:case 111:r=8,a=55;break;default:return+A}for(i=E(A,2),o=i.length,u=0;ua)return NaN;return parseInt(i,r)}return+A};if(o(w,!v(" 0o1")||!v("0b1")||v("+0x1"))){for(var j,B=function(t){var e=arguments.length<1?0:v(D(t)),n=this;return f(I,n)&&l((function(){b(n)}))?A(Object(e),n,B):e},x=r?p(v):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),N=0;x.length>N;N++)c(v,j=x[N])&&!c(B,j)&&h(B,j,g(v,j));B.prototype=I,I.constructor=B,u(a,w,B)}},b680:function(t,e,n){"use strict";var r=n("23e7"),a=n("da84"),i=n("e330"),o=n("5926"),u=n("408a"),c=n("1148"),A=n("d039"),f=a.RangeError,d=a.String,s=Math.floor,l=i(c),p=i("".slice),g=i(1..toFixed),h=function(t,e,n){return 0===e?n:e%2===1?h(t,e-1,n*t):h(t*t,e/2,n)},b=function(t){var e=0,n=t;while(n>=4096)e+=12,n/=4096;while(n>=2)e+=1,n/=2;return e},m=function(t,e,n){var r=-1,a=n;while(++r<6)a+=e*t[r],t[r]=a%1e7,a=s(a/1e7)},w=function(t,e){var n=6,r=0;while(--n>=0)r+=t[n],t[n]=s(r/e),r=r%e*1e7},v=function(t){var e=6,n="";while(--e>=0)if(""!==n||0===e||0!==t[e]){var r=d(t[e]);n=""===n?r:n+l("0",7-r.length)+r}return n},I=A((function(){return"0.000"!==g(8e-5,3)||"1"!==g(.9,0)||"1.25"!==g(1.255,2)||"1000000000000000128"!==g(0xde0b6b3a7640080,0)}))||!A((function(){g({})}));r({target:"Number",proto:!0,forced:I},{toFixed:function(t){var e,n,r,a,i=u(this),c=o(t),A=[0,0,0,0,0,0],s="",g="0";if(c<0||c>20)throw f("Incorrect fraction digits");if(i!=i)return"NaN";if(i<=-1e21||i>=1e21)return d(i);if(i<0&&(s="-",i=-i),i>1e-21)if(e=b(i*h(2,69,1))-69,n=e<0?i*h(2,-e,1):i/h(2,e,1),n*=4503599627370496,e=52-e,e>0){m(A,0,n),r=c;while(r>=7)m(A,1e7,0),r-=7;m(A,h(10,r,1),0),r=e-1;while(r>=23)w(A,1<<23),r-=23;w(A,1<0?(a=g.length,g=s+(a<=c?"0."+l("0",c-a)+g:p(g,0,a-c)+"."+p(g,a-c))):g=s+g,g}})},cabd:function(t,e,n){"use strict";n.r(e),n.d(e,"getcourseList",(function(){return a})),n.d(e,"getCourseInfo",(function(){return i})),n.d(e,"addCourse",(function(){return o})),n.d(e,"addCourseMedia",(function(){return u})),n.d(e,"deleteCourseMedia",(function(){return c})),n.d(e,"getCourseMediaList",(function(){return A}));var r=n("b775"),a=function(t){return Object(r["default"])({url:"/admin/getcourseList",method:"post",data:t})},i=function(t){return Object(r["default"])({url:"/admin/getCourseInfo",method:"post",data:t})},o=function(t){return Object(r["default"])({url:"/admin/addcourse",method:"post",data:t})},u=function(t){return Object(r["default"])({url:"/admin/addcoursemedia",method:"post",data:t})},c=function(t){return Object(r["default"])({url:"/admin/deleteCoursemedia",method:"post",data:t})},A=function(t){return Object(r["default"])({url:"/admin/getCourseMediaList",method:"post",data:t})}},d3cc:function(t,e,n){"use strict";n("2a34")}}]);