(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-f00febf4"],{"09f4":function(e,t,a){"use strict";a.d(t,"a",(function(){return l})),Math.easeInOutQuad=function(e,t,a,n){return e/=n/2,e<1?a/2*e*e+t:(e--,-a/2*(e*(e-2)-1)+t)};var n=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function i(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function o(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function l(e,t,a){var l=o(),r=e-l,s=20,u=0;t="undefined"===typeof t?500:t;var c=function e(){u+=s;var o=Math.easeInOutQuad(u,l,r,t);i(o),u0,expression:"total > 0"}],attrs:{total:e.total,page:e.listQuery.page,limit:e.listQuery.limit},on:{"update:page":function(t){return e.$set(e.listQuery,"page",t)},"update:limit":function(t){return e.$set(e.listQuery,"limit",t)},pagination:e.getList}}),a("el-dialog",{attrs:{title:e.title,visible:e.dialogCreate},on:{"update:visible":function(t){e.dialogCreate=t}}},[a("el-form",{ref:"form",attrs:{model:e.form,"label-width":"80px"}},[a("el-form-item",{attrs:{label:"用户名",prop:"username"}},[a("el-input",{attrs:{placeholder:"用户名"},model:{value:e.form.username,callback:function(t){e.$set(e.form,"username",t)},expression:"form.username"}})],1),a("el-form-item",{attrs:{label:"姓名",prop:"name"}},[a("el-input",{attrs:{placeholder:"姓名"},model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1),a("el-form-item",{attrs:{label:"手机号",prop:"mobile"}},[a("el-input",{attrs:{placeholder:"请输入手机号"},model:{value:e.form.mobile,callback:function(t){e.$set(e.form,"mobile",t)},expression:"form.mobile"}})],1),a("el-form-item",{attrs:{label:"岗位",prop:"type"}},[a("el-radio-group",{model:{value:e.form.type,callback:function(t){e.$set(e.form,"type",t)},expression:"form.type"}},[a("el-radio",{attrs:{label:2}},[e._v("主播")]),a("el-radio",{attrs:{label:3}},[e._v("中控")])],1)],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{type:"primary"},on:{click:function(t){return e.onSaves(e.form)}}},[e._v("保 存")])],1)],1)],1)},i=[],o=a("5530"),l=a("333d"),r={name:"Works",components:{Pagination:l["a"]},data:function(){return{oss:{},list:null,title:"",total:0,listLoading:!0,loading:!1,listQuery:{page:1,limit:20},form:{username:"",name:"",mobile:"",type:2},dialogWork:!1,dialogCreate:!1,item:{},anchors:[]}},created:function(){this.getList()},methods:{getList:function(){var e=this;this.$axios.get("/admin/liveroom/zhuboStatistics",{params:this.listQuery}).then((function(t){e.list=t.data.data,e.total=t.data.total,e.listLoading=!1})).catch((function(e){}))},onDel:function(e){var t=this;this.$axios.post("/admin/work/del",{id:e.id}).then((function(e){t.dialogVisible=!1,t.getList()})).catch((function(e){}))},onAdd:function(e){var t=this;this.dialogCreate=!0,this.$nextTick((function(a){t.$refs["form"].resetFields(),t.title=e.id?"编辑":"添加",t.form=e.id?Object(o["a"])({},e):{username:"",name:"",mobile:"",type:2}}))},onSaves:function(){var e=this;this.$axios.post("/admin/admin/save",this.form).then((function(t){e.$message({message:"成功",type:"success"}),e.dialogCreate=!1,e.getList()})).catch((function(e){}))}}},s=r,u=a("2877"),c=Object(u["a"])(s,n,i,!1,null,null,null);t["default"]=c.exports}}]);