require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/users/agent/staff_list"],{"1b8b":function(t,e,i){"use strict";var n=i("aca7"),s=i.n(n);s.a},"3d938":function(t,e,i){"use strict";i.r(e);var n=i("8ab8"),s=i("950f");for(var o in s)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return s[t]}))}(o);i("1b8b");var a=i("828b"),r=Object(a["a"])(s["default"],n["b"],n["c"],!1,null,"0b160f68",null,!1,n["a"],void 0);e["default"]=r.exports},"8ab8":function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return s})),i.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,i=(t._self._c,t.recordList.length),n=t.recordList.length;t._isMounted||(t.e0=function(e){t.refund_close=!1},t.e1=function(e){t.refund_close=!1},t.e2=function(e){t.isCancellation=!1},t.e3=function(e){t.isCancellation=!1}),t.$mp.data=Object.assign({},{$root:{g0:i,g1:n}})},s=[]},"911f":function(t,e,i){"use strict";(function(t){var n=i("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var s=i("92f9"),o=i("5088"),a=i("8f59"),r=n(i("89cc")),u={components:{timeSlot:function(){i.e("pages/users/components/timeSlot/index").then(function(){return resolve(i("5603"))}.bind(null,i)).catch(i.oe)},emptyPage:function(){i.e("components/emptyPage").then(function(){return resolve(i("398a"))}.bind(null,i)).catch(i.oe)},tuiModal:function(){i.e("components/tui-modal/index").then(function(){return resolve(i("6b9f"))}.bind(null,i)).catch(i.oe)}},mixins:[r.default],data:function(){return{total:0,totalLevel:0,teamCount:0,page:1,limit:20,keyword:"",sort:"",grade:0,status:!1,recordList:[],isAuto:!1,isShowAuth:!1,start:0,stop:0,count:0,price:0,brokerageLevel:0,refund_close:!1,isCancellation:!1,agent_percent:null,delIndex:0,uid:null}},computed:(0,a.mapGetters)(["isLogin"]),onLoad:function(){this.isLogin?this.userSpreadNewList():(0,o.toLogin)()},onShow:function(){t.removeStorageSync("form_type_cart"),this.is_show&&this.userSpreadNewList()},onHide:function(){this.is_show=!0},methods:{changeData:function(t){this.refund_close=!0,this.uid=t.uid},del:function(t,e){this.uid=t.uid,this.delIndex=e,this.isCancellation=!0},clear:function(){var t=this,e=this;(0,s.agentDelStaff)(this.uid).then((function(i){return e.recordList.splice(t.delIndex,1),e.$set(e,"recordList",e.recordList),e.isCancellation=!1,e.teamCount-=1,e.$util.Tips({title:"删除成功",icon:"success"})})).catch((function(t){return e.$util.Tips({title:t})}))},refundSubmit:function(){var t=this;if(this.agent_percent<0)return this.$util.Tips({title:"请输入比例"});(0,s.agentStaffPercent)({division_percent:this.agent_percent,uid:this.uid}).then((function(e){t.$util.Tips({title:e.msg,icon:"success"},(function(){t.refund_close=!1,t.page=1,t.limit=20,t.keyword="",t.status=!1,t.agent_percent=null,t.$set(t,"recordList",[]),t.userSpreadNewList()}))})).catch((function(e){t.$util.Tips({title:e})}))},changeTime:function(t){this.start=t.start,this.stop=t.stop,this.submitForm()},onLoadFun:function(t){this.userSpreadNewList(),this.isShowAuth=!1},authColse:function(t){this.isShowAuth=t},setSort:function(t){this.sort=t,this.page=1,this.limit=20,this.status=!1,this.$set(this,"recordList",[]),this.userSpreadNewList()},submitForm:function(){this.page=1,this.limit=20,this.status=!1,this.$set(this,"recordList",[]),this.userSpreadNewList()},setType:function(t){this.grade!=t&&(this.grade=t,this.page=1,this.limit=20,this.keyword="",this.sort="",this.status=!1,this.$set(this,"recordList",[]),this.userSpreadNewList())},userSpreadNewList:function(){var t=this,e=t.page,i=t.limit,n=t.status,o=t.keyword,a=(t.sort,t.grade,t.recordList),r=[];1!=n&&(0,s.agentStaffList)({start:this.start,stop:this.stop,page:e,limit:i,keyword:o}).then((function(n){var s=n.data.list.length,o=n.data.list;r=a.concat(o),t.total=n.data.count,t.teamCount=n.data.count,t.status=i>s,t.page=e+1,t.$set(t,"recordList",r),t.count=n.data.count,t.price=n.data.brokerage}))}},onReachBottom:function(){this.userSpreadNewList()}};e.default=u}).call(this,i("df3c")["default"])},"950f":function(t,e,i){"use strict";i.r(e);var n=i("911f"),s=i.n(n);for(var o in n)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e["default"]=s.a},aca7:function(t,e,i){},e51e:function(t,e,i){"use strict";(function(t,e){var n=i("47a9");i("f076");n(i("3240"));var s=n(i("3d938"));t.__webpack_require_UNI_MP_PLUGIN__=i,e(s.default)}).call(this,i("3223")["default"],i("df3c")["createPage"])}},[["e51e","common/runtime","common/vendor"]]]);