chunk-2a636122.e4896c2b.js
12.3 KB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2a636122"],{"093a":function(t,e,n){"use strict";n.d(e,"h",(function(){return a})),n.d(e,"n",(function(){return o})),n.d(e,"x",(function(){return r})),n.d(e,"y",(function(){return l})),n.d(e,"b",(function(){return u})),n.d(e,"m",(function(){return d})),n.d(e,"p",(function(){return s})),n.d(e,"r",(function(){return c})),n.d(e,"v",(function(){return p})),n.d(e,"w",(function(){return m})),n.d(e,"g",(function(){return f})),n.d(e,"l",(function(){return h})),n.d(e,"a",(function(){return v})),n.d(e,"s",(function(){return b})),n.d(e,"i",(function(){return g})),n.d(e,"d",(function(){return w})),n.d(e,"q",(function(){return y})),n.d(e,"f",(function(){return _})),n.d(e,"k",(function(){return k})),n.d(e,"u",(function(){return O})),n.d(e,"c",(function(){return V})),n.d(e,"o",(function(){return j})),n.d(e,"e",(function(){return x})),n.d(e,"t",(function(){return F})),n.d(e,"j",(function(){return S}));var i=n("b775");function a(t){return Object(i["a"])({url:"/api/admin/video/create",method:"post",data:t})}function o(t){return Object(i["a"])({url:"/api/admin/video/video_list",method:"get",params:t})}function r(t){return Object(i["a"])({url:"/api/admin/video/update",method:"post",data:t})}function l(t){return Object(i["a"])({url:"/api/admin/video/update_all",method:"post",data:t})}function u(t){return Object(i["a"])({url:"/api/admin/video/check_video",method:"post",data:t})}function d(t){return Object(i["a"])({url:"/api/admin/video/delete",method:"post",data:t})}function s(t){return Object(i["a"])({url:"/api/admin/video/push",method:"post",data:t})}function c(t){return Object(i["a"])({url:"/api/admin/video/type_list",method:"get",params:t})}function p(t){return Object(i["a"])({url:"/api/admin/video/update_type",method:"post",data:t})}function m(t){return Object(i["a"])({url:"/api/admin/video/update_type_all",method:"post",data:t})}function f(t){return Object(i["a"])({url:"/api/admin/video/create_type",method:"post",data:t})}function h(t){return Object(i["a"])({url:"/api/admin/video/delete_type",method:"post",data:t})}function v(t){return Object(i["a"])({url:"/api/admin/video/actor_list",method:"post",data:t})}function b(t){return Object(i["a"])({url:"/api/admin/video/update_actor",method:"post",data:t})}function g(t){return Object(i["a"])({url:"/api/admin/video/delete_actor",method:"post",data:t})}function w(t){return Object(i["a"])({url:"/api/admin/video/create_actor",method:"post",data:t})}function y(t){return Object(i["a"])({url:"/api/admin/video/rank_list",method:"get",params:t})}function _(t){return Object(i["a"])({url:"/api/admin/video/create_rank",method:"post",data:t})}function k(t){return Object(i["a"])({url:"/api/admin/video/delete_rank",method:"post",data:t})}function O(t){return Object(i["a"])({url:"/api/admin/video/update_rank",method:"post",data:t})}function V(t){return Object(i["a"])({url:"/api/admin/cache/clearVideoCache",method:"get",params:t})}function j(t){return Object(i["a"])({url:"/api/admin/video/label_list",method:"get",params:t})}function x(t){return Object(i["a"])({url:"/api/admin/video/create_label",method:"post",data:t})}function F(t){return Object(i["a"])({url:"/api/admin/video/update_label",method:"post",data:t})}function S(t){return Object(i["a"])({url:"/api/admin/video/delete_label",method:"post",data:t})}},"09f4":function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),Math.easeInOutQuad=function(t,e,n,i){return t/=i/2,t<1?n/2*t*t+e:(t--,-n/2*(t*(t-2)-1)+e)};var i=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)}}();function a(t){document.documentElement.scrollTop=t,document.body.parentNode.scrollTop=t,document.body.scrollTop=t}function o(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function r(t,e,n){var r=o(),l=t-r,u=20,d=0;e="undefined"===typeof e?500:e;var s=function t(){d+=u;var o=Math.easeInOutQuad(d,r,l,e);a(o),d<e?i(t):n&&"function"===typeof n&&n()};s()}},"5c72":function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"app-container"},[n("div",{staticClass:"filter-container"},[n("el-input",{staticClass:"filter-item",staticStyle:{width:"200px"},attrs:{placeholder:"名字"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleFilter(e)}},model:{value:t.listQuery.name,callback:function(e){t.$set(t.listQuery,"name",e)},expression:"listQuery.name"}}),n("el-button",{staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:t.handleFilter}},[t._v(" 搜索 ")]),n("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-edit"},on:{click:t.handleCreate}},[t._v(" 创建 ")])],1),n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],key:t.tableKey,staticStyle:{width:"100%"},attrs:{data:t.list,border:"",fit:"","highlight-current-row":""},on:{"sort-change":t.sortChange}},[n("el-table-column",{attrs:{label:"ID",prop:"id",sortable:"custom",align:"center",width:"80","class-name":t.getSortClass()},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[n("span",[t._v(t._s(i.id))])]}}])}),n("el-table-column",{attrs:{label:"演员名称","min-width":"150px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[n("span",[t._v(t._s(i.name))])]}}])}),n("el-table-column",{attrs:{label:"演员生日","min-width":"150px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[n("span",[t._v(t._s(i.birthday))])]}}])}),n("el-table-column",{attrs:{label:"胸围","min-width":"150px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[n("span",[t._v(t._s(i.cup))])]}}])}),n("el-table-column",{attrs:{label:"身高","min-width":"150px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[n("span",[t._v(t._s(i.height))])]}}])}),n("el-table-column",{attrs:{label:"操作",align:"center",width:"200","class-name":"small-padding fixed-width"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row,a=e.$index;return[n("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(e){return t.handleUpdate(i)}}},[t._v(" 编辑 ")]),0!=i.status?n("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(e){return t.handleDelete(i,a)}}},[t._v(" 删除 ")]):t._e()]}}])})],1),n("pagination",{directives:[{name:"show",rawName:"v-show",value:t.total>0,expression:"total>0"}],attrs:{total:t.total,page:t.listQuery.page,limit:t.listQuery.limit},on:{"update:page":function(e){return t.$set(t.listQuery,"page",e)},"update:limit":function(e){return t.$set(t.listQuery,"limit",e)},pagination:t.getList}}),n("el-dialog",{attrs:{title:t.textMap[t.dialogStatus],visible:t.dialogFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(e){t.dialogFormVisible=e}}},[n("el-form",{ref:"dataForm",staticStyle:{width:"400px","margin-left":"50px"},attrs:{rules:t.rules,model:t.newVideo,"label-position":"left","label-width":"70px"}},[n("el-form-item",{attrs:{label:"演员名称",prop:"name"}},[n("el-input",{model:{value:t.newVideo.name,callback:function(e){t.$set(t.newVideo,"name",e)},expression:"newVideo.name"}})],1),n("el-form-item",{attrs:{label:"生日",prop:"birthday"}},[n("el-input",{model:{value:t.newVideo.birthday,callback:function(e){t.$set(t.newVideo,"birthday",e)},expression:"newVideo.birthday"}})],1),n("el-form-item",{attrs:{label:"胸围",prop:"cup"}},[n("el-input",{model:{value:t.newVideo.cup,callback:function(e){t.$set(t.newVideo,"cup",e)},expression:"newVideo.cup"}})],1),n("el-form-item",{attrs:{label:"身高",prop:"height"}},[n("el-input",{model:{value:t.newVideo.height,callback:function(e){t.$set(t.newVideo,"height",e)},expression:"newVideo.height"}})],1),n("el-form-item",{attrs:{label:"演员头像",prop:"img"}},[n("el-input",{model:{value:t.newVideo.img,callback:function(e){t.$set(t.newVideo,"img",e)},expression:"newVideo.img"}})],1)],1),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(e){t.dialogFormVisible=!1}}},[t._v(" 取消 ")]),n("el-button",{attrs:{type:"primary"},on:{click:function(e){"create"===t.dialogStatus?t.createData():t.updateData()}}},[t._v(" 提交 ")])],1)],1)],1)},a=[],o=(n("c740"),n("a434"),n("093a")),r=n("6724"),l=n("333d"),u=["未通过","已审核"],d=["普通","推荐"],s=["否","是"],c={name:"ActorList",components:{Pagination:l["a"]},directives:{waves:r["a"]},filters:{isCheckFilter:function(t){return u[t]},betterShowFilter:function(t){return d[t]},homeShowFilter:function(t){return s[t]}},data:function(){return{tableKey:0,list:null,total:0,listLoading:!0,listQuery:{page:1,limit:20,view_type:void 0,video_type:void 0,name:void 0,sort:"id desc"},newVideo:{},dialogFormVisible:!1,dialogStatus:"",textMap:{update:"编辑",create:"创建"},rules:{name:[{required:!0,message:"请输入演员名字",trigger:"blur"}],birthday:[{required:!0,message:"请输入生日",trigger:"blur"}],cup:[{required:!0,message:"请输入胸围",trigger:"blur"}],height:[{required:!0,message:"请输入身高",trigger:"blur"}],img:[{required:!0,message:"请输入演员图片",trigger:"blur"}]}}},created:function(){this.getList()},methods:{getList:function(){var t=this;this.listLoading=!0,Object(o["a"])(this.listQuery).then((function(e){t.total=e.data.total,t.list=e.data.list,t.listLoading=!1}))},handleFilter:function(){this.listQuery.page=1,this.getList()},sortChange:function(t){var e=t.prop,n=t.order;this.listQuery.sort="ascending"===n?e:e+" desc",this.handleFilter()},handleUpdate:function(t){var e=this;this.newVideo=Object.assign({},t),this.dialogStatus="update",this.dialogFormVisible=!0,this.$nextTick((function(){e.$refs["dataForm"].clearValidate()}))},updateData:function(){var t=this;this.$refs["dataForm"].validate((function(e){if(e){var n=Object.assign({},t.newVideo);Object(o["s"])(n).then((function(){var e=t.list.findIndex((function(e){return e.id===t.newVideo.id}));t.list.splice(e,1,t.newVideo),t.dialogFormVisible=!1,t.$notify({title:"Success",message:"操作成功",type:"success",duration:2e3})}))}}))},handleDelete:function(t,e){var n=this;this.listLoading=!0,Object(o["i"])(t).then((function(){n.list.splice(e,1),n.listLoading=!1,n.$notify({title:"Success",message:"操作成功",type:"success",duration:2e3})})).catch((function(){n.listLoading=!1}))},handleCreate:function(t,e){var n=this;this.newVideo={},this.dialogStatus="create",this.dialogFormVisible=!0,this.$nextTick((function(){n.$refs["dataForm"].clearValidate()}))},createData:function(){var t=this;this.$refs["dataForm"].validate((function(e){e&&Object(o["d"])(t.newVideo).then((function(){t.dialogFormVisible=!1,t.getList(),t.$notify({title:"Success",message:"创建成功",type:"success",duration:2e3})}))}))},getSortClass:function(){var t=this.listQuery.sort;return"id"===t?"ascending":"descending"}}},p=c,m=n("2877"),f=Object(m["a"])(p,i,a,!1,null,null,null);e["default"]=f.exports},6724:function(t,e,n){"use strict";n("8d41");var i="@@wavesContext";function a(t,e){function n(n){var i=Object.assign({},e.value),a=Object.assign({ele:t,type:"hit",color:"rgba(0, 0, 0, 0.15)"},i),o=a.ele;if(o){o.style.position="relative",o.style.overflow="hidden";var r=o.getBoundingClientRect(),l=o.querySelector(".waves-ripple");switch(l?l.className="waves-ripple":(l=document.createElement("span"),l.className="waves-ripple",l.style.height=l.style.width=Math.max(r.width,r.height)+"px",o.appendChild(l)),a.type){case"center":l.style.top=r.height/2-l.offsetHeight/2+"px",l.style.left=r.width/2-l.offsetWidth/2+"px";break;default:l.style.top=(n.pageY-r.top-l.offsetHeight/2-document.documentElement.scrollTop||document.body.scrollTop)+"px",l.style.left=(n.pageX-r.left-l.offsetWidth/2-document.documentElement.scrollLeft||document.body.scrollLeft)+"px"}return l.style.backgroundColor=a.color,l.className="waves-ripple z-active",!1}}return t[i]?t[i].removeHandle=n:t[i]={removeHandle:n},n}var o={bind:function(t,e){t.addEventListener("click",a(t,e),!1)},update:function(t,e){t.removeEventListener("click",t[i].removeHandle,!1),t.addEventListener("click",a(t,e),!1)},unbind:function(t){t.removeEventListener("click",t[i].removeHandle,!1),t[i]=null,delete t[i]}},r=function(t){t.directive("waves",o)};window.Vue&&(window.waves=o,Vue.use(r)),o.install=r;e["a"]=o},"8d41":function(t,e,n){}}]);