12 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3048c4c6"],{"049d":function(e,t,n){"use strict";var a=n("d2be"),i=n.n(a);i.a},"0aed":function(e,t,n){"use strict";n("aaba");var a=n("bf16"),i=n("86d4"),r=n("238a"),l=n("f6b4"),o=n("cb3d"),c=n("8714"),u=o("species"),s=!r((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),p=function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();e.exports=function(e,t,n){var f=o(e),d=!r((function(){var t={};return t[f]=function(){return 7},7!=""[e](t)})),h=d?!r((function(){var t=!1,n=/a/;return n.exec=function(){return t=!0,null},"split"===e&&(n.constructor={},n.constructor[u]=function(){return n}),n[f](""),!t})):void 0;if(!d||!h||"replace"===e&&!s||"split"===e&&!p){var g=/./[f],v=n(l,f,""[e],(function(e,t,n,a,i){return t.exec===c?d&&!i?{done:!0,value:g.call(t,n,a)}:{done:!0,value:e.call(n,t,a)}:{done:!1}})),b=v[0],m=v[1];a(String.prototype,e,b),i(RegExp.prototype,f,2==t?function(e,t){return m.call(e,this,t)}:function(e){return m.call(e,this)})}}},"129d":function(e,t,n){"use strict";var a=n("46fc"),i=n.n(a);i.a},"2fd4":function(e,t,n){var a=n("fb68"),i=n("75c4"),r=n("cb3d")("match");e.exports=function(e){var t;return a(e)&&(void 0!==(t=e[r])?!!t:"RegExp"==i(e))}},"46fc":function(e,t,n){},7108:function(e,t,n){"use strict";var a=n("7e23"),i=RegExp.prototype.exec;e.exports=function(e,t){var n=e.exec;if("function"===typeof n){var r=n.call(e,t);if("object"!==typeof r)throw new TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==a(e))throw new TypeError("RegExp#exec called on incompatible receiver");return i.call(e,t)}},8714:function(e,t,n){"use strict";var a=n("f1fe"),i=RegExp.prototype.exec,r=String.prototype.replace,l=i,o="lastIndex",c=function(){var e=/a/,t=/b*/g;return i.call(e,"a"),i.call(t,"a"),0!==e[o]||0!==t[o]}(),u=void 0!==/()??/.exec("")[1],s=c||u;s&&(l=function(e){var t,n,l,s,p=this;return u&&(n=new RegExp("^"+p.source+"$(?!\\s)",a.call(p))),c&&(t=p[o]),l=i.call(p,e),c&&l&&(p[o]=p.global?l.index+l[0].length:t),u&&l&&l.length>1&&r.call(l[0],n,(function(){for(s=1;s<arguments.length-2;s++)void 0===arguments[s]&&(l[s]=void 0)})),l}),e.exports=l},"8caf":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("section",{staticClass:"apply"},[n("p",[e._v("在线培训 > 视频管理")]),n("div",{staticClass:"filter"},[n("el-form",{attrs:{"label-width":"80px",inline:!0,size:"small"}},[n("el-form-item",{attrs:{label:"视频名称"}},[n("el-input",{attrs:{placeholder:"视频名称"},model:{value:e.form.title,callback:function(t){e.$set(e.form,"title",t)},expression:"form.title"}})],1),n("el-form-item",{attrs:{label:"类别"}},[n("Subject",{on:{subChange:e.subChange}})],1),n("el-form-item",[n("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.getData}},[e._v("搜索")]),n("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.$router.push({path:"/videos/add"})}}},[e._v("新增")])],1)],1)],1),n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"table",staticStyle:{width:"100%"},attrs:{data:e.list,height:"450px",border:""}},[n("el-table-column",{attrs:{prop:"title",label:"视频名称"}}),n("el-table-column",{attrs:{prop:"subject_item",label:"培训项目"}}),n("el-table-column",{attrs:{prop:"train_type",label:"培训类型"}}),n("el-table-column",{attrs:{prop:"ctime",label:"创建时间"}}),n("el-table-column",{attrs:{prop:"zip",width:"200",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{attrs:{size:"mini",type:"success"},on:{click:function(n){return e.$router.push({path:"/videos/add",query:{id:t.row.id}})}}},[e._v("编辑")]),n("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(n){return e.del(t.row.id)}}},[e._v("删除")])]}}])})],1),n("Page",{ref:"pageButton",attrs:{total:e.total},on:{pageChange:e.gopage}})],1)},i=[],r=n("9973"),l=n("fa7e"),o={components:{Page:r["a"],Subject:l["a"]},data:function(){return{form:{name:"",page:1,page_size:20},activeName:"1",total:1,list:[],loading:!1}},methods:{gopage:function(e){e&&(this.form.page_size=e),this.form.page=this.$refs.pageButton.page,this.getData()},subChange:function(e){this.form.subject_item=e.join("|")},getData:function(){var e=this,t=this.form;this.loading=!0,this.$api.getVideoList(t).then((function(t){e.list=t.data.data.list,e.total=t.data.data.total,e.loading=!1}))},del:function(e){var t=this;this.$confirm("确定删除吗","提示",{type:"warning"}).then((function(){t.$api.deleteVideo({id:e}).then((function(e){t.$message({message:"删除成功",type:"success"}),t.getData()}))}))}},created:function(){this.getData()}},c=o,u=(n("d15e"),n("4023")),s=Object(u["a"])(c,a,i,!1,null,null,null);t["default"]=s.exports},9973:function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-pagination",{attrs:{background:"","page-size":20,"page-sizes":[20,30,40,50,60,70,80,90,100],layout:"sizes,total,prev, pager, next",total:e.total},on:{"current-change":e.getData,"size-change":e.handleSizeChange}})},i=[],r={data:function(){return{page:1}},props:{total:""},methods:{getData:function(e){this.page=e,this.$emit("pageChange")},handleSizeChange:function(e){this.$emit("pageChange",e)}}},l=r,o=(n("129d"),n("4023")),c=Object(o["a"])(l,a,i,!1,null,null,null);t["a"]=c.exports},"9a33":function(e,t,n){"use strict";var a=n("2fd4"),i=n("69b3"),r=n("f63e"),l=n("e754"),o=n("eafa"),c=n("7108"),u=n("8714"),s=n("238a"),p=Math.min,f=[].push,d="split",h="length",g="lastIndex",v=4294967295,b=!s((function(){RegExp(v,"y")}));n("0aed")("split",2,(function(e,t,n,s){var m;return m="c"=="abbc"[d](/(b)*/)[1]||4!="test"[d](/(?:)/,-1)[h]||2!="ab"[d](/(?:ab)*/)[h]||4!="."[d](/(.?)(.?)/)[h]||"."[d](/()()/)[h]>1||""[d](/.?/)[h]?function(e,t){var i=String(this);if(void 0===e&&0===t)return[];if(!a(e))return n.call(i,e,t);var r,l,o,c=[],s=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),p=0,d=void 0===t?v:t>>>0,b=new RegExp(e.source,s+"g");while(r=u.call(b,i)){if(l=b[g],l>p&&(c.push(i.slice(p,r.index)),r[h]>1&&r.index<i[h]&&f.apply(c,r.slice(1)),o=r[0][h],p=l,c[h]>=d))break;b[g]===r.index&&b[g]++}return p===i[h]?!o&&b.test("")||c.push(""):c.push(i.slice(p)),c[h]>d?c.slice(0,d):c}:"0"[d](void 0,0)[h]?function(e,t){return void 0===e&&0===t?[]:n.call(this,e,t)}:n,[function(n,a){var i=e(this),r=void 0==n?void 0:n[t];return void 0!==r?r.call(n,i,a):m.call(String(i),n,a)},function(e,t){var a=s(m,e,this,t,m!==n);if(a.done)return a.value;var u=i(e),f=String(this),d=r(u,RegExp),h=u.unicode,g=(u.ignoreCase?"i":"")+(u.multiline?"m":"")+(u.unicode?"u":"")+(b?"y":"g"),x=new d(b?u:"^(?:"+u.source+")",g),y=void 0===t?v:t>>>0;if(0===y)return[];if(0===f.length)return null===c(x,f)?[f]:[];var C=0,_=0,w=[];while(_<f.length){x.lastIndex=b?_:0;var k,E=c(x,b?f:f.slice(_));if(null===E||(k=p(o(x.lastIndex+(b?0:_)),f.length))===C)_=l(f,_,h);else{if(w.push(f.slice(C,_)),w.length===y)return w;for(var $=1;$<=E.length-1;$++)if(w.push(E[$]),w.length===y)return w;_=C=k}}return w.push(f.slice(C)),w}]}))},"9dc2":function(e,t,n){},aaba:function(e,t,n){"use strict";var a=n("8714");n("e46b")({target:"RegExp",proto:!0,forced:a!==/./.exec},{exec:a})},cc57:function(e,t,n){var a=n("064e").f,i=Function.prototype,r=/^\s*function ([^ (]*)/,l="name";l in i||n("149f")&&a(i,l,{configurable:!0,get:function(){try{return(""+this).match(r)[1]}catch(e){return""}}})},d15e:function(e,t,n){"use strict";var a=n("9dc2"),i=n.n(a);i.a},d2be:function(e,t,n){},e754:function(e,t,n){"use strict";var a=n("fc81")(!0);e.exports=function(e,t,n){return t+(n?a(e,t).length:1)}},f1fe:function(e,t,n){"use strict";var a=n("69b3");e.exports=function(){var e=a(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},fa7e:function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.subject_id?n("span",[n("el-cascader",{staticClass:"sub",attrs:{props:e.props1,clearable:"",placeholder:"请选择作业类别 / 准操项目",options:e.data},on:{change:e.handleChange},model:{value:e.value1,callback:function(t){e.value1=t},expression:"value1"}})],1):n("span",[e.value?n("el-cascader",{staticClass:"sub",attrs:{props:e.props,placeholder:"请选择培训科目 / 作业类别 / 准操项目",options:e.data},on:{change:e.handleChange},model:{value:e.value1,callback:function(t){e.value1=t},expression:"value1"}}):n("el-cascader",{staticClass:"sub",attrs:{props:e.props1,clearable:"",placeholder:"请选择培训科目 / 作业类别 / 准操项目",options:e.data},on:{change:e.handleChange},model:{value:e.value1,callback:function(t){e.value1=t},expression:"value1"}})],1)},i=[],r=(n("9a33"),n("cc57"),{data:function(){return{data:[],value1:[],props:{label:"name",checkStrictly:!0,value:"id"},props1:{label:"name",checkStrictly:!0,value:"name"}}},props:{value:"",subvalue:"",subject_id:""},methods:{getData:function(e){var t=this;this.$api.getSubList().then((function(e){var n=e.data.data;if(t.subject_id)for(var a=0;a<n.length;a++)n[a].id==t.subject_id&&(t.data=n[a].children);else t.data=e.data.data}))},handleChange:function(e){var t="",n=this;if(e.length>=3&&isNaN(e[0])){var a=this.data.filter((function(t){return t.name==e[0]})),i=a[0].children.filter((function(t){return t.name==e[1]})),r=i[0].children.filter((function(t){return t.name==e[2]}));t=r[0].id}setTimeout((function(){var a=document.querySelector(".el-input__inner").value,i=a.split(" / ");console.log(a),n.$emit("subChange",i,t,e)}),100)}},created:function(){this.getData(),this.value&&(this.value1=this.value),this.subvalue&&(this.value1=this.subvalue.split("|"))}}),l=r,o=(n("049d"),n("4023")),c=Object(o["a"])(l,a,i,!1,null,null,null);t["a"]=c.exports},fc81:function(e,t,n){var a=n("ee21"),i=n("f6b4");e.exports=function(e){return function(t,n){var r,l,o=String(i(t)),c=a(n),u=o.length;return c<0||c>=u?e?"":void 0:(r=o.charCodeAt(c),r<55296||r>56319||c+1===u||(l=o.charCodeAt(c+1))<56320||l>57343?e?o.charAt(c):r:e?o.slice(c,c+2):l-56320+(r-55296<<10)+65536)}}}}]);
- //# sourceMappingURL=chunk-3048c4c6.0ee6c784.js.map
|