You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
3.5 KiB
1 line
3.5 KiB
5 months ago
|
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["agent/pages/technician/user"],{"0229":function(t,n,e){"use strict";(function(t){var i=e("47a9");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a=i(e("7eb4")),r=i(e("ee10")),o=e("8f59"),s={data:function(){return{loading:!0,isLoad:!1,param:{page:1,limit:10,status:0},list:{data:[]},check_user:{}}},computed:(0,o.mapState)({primaryColor:function(t){return t.config.configInfo.primaryColor},subColor:function(t){return t.config.configInfo.subColor},configInfo:function(t){return t.config.configInfo},userInfo:function(t){return t.user.userInfo}}),onLoad:function(){var t=this.$util.getPage(-1).form,n=t.user_id,e=t.nickName;this.check_user={id:n,nickName:e},this.initIndex()},onPullDownRefresh:function(){t.showNavigationBarLoading(),this.initRefresh(),t.stopPullDownRefresh()},onReachBottom:function(){this.list.current_page>=this.list.last_page||this.loading||(this.param.page=this.param.page+1,this.loading=!0,this.getList())},methods:{initIndex:function(){var t=arguments,n=this;return(0,r.default)(a.default.mark((function e(){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.length>0&&void 0!==t[0]&&t[0],n.$util.setNavigationBarColor({bg:n.primaryColor}),n.getList();case 3:case"end":return e.stop()}}),e)})))()},handerTabChange:function(t){this.activeIndex=t,this.param.status=t,this.getList()},toSearch:function(t){this.param.page=1,this.param.nickName=t,this.check_user={},this.getList()},initRefresh:function(){this.param.page=1,this.initIndex(!0)},getList:function(){var t=this;return(0,r.default)(a.default.mark((function n(){var e,i,r;return a.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return t.$util.showLoading(),e=t.list,i=t.param,n.next=4,t.$api.agent.coachUserList(i);case 4:r=n.sent,1==t.param.page||(r.data=e.data.concat(r.data)),t.list=r,t.isLoad=!0,t.loading=!1,t.$util.hideAll();case 9:case"end":return n.stop()}}),n)})))()},toChangeItem:function(t){this.check_user=this.list.data[t]},toConfirm:function(){var t=this.check_user,n=t.id,e=t.nickName;n?(this.$util.getPage(-1).form.user_id=n,this.$util.getPage(-1).form.nickName=e||"用户".concat(n),this.$util.goUrl({url:1,openType:"navigateBack"})):this.$util.showToast({title:"请选择用户"})}}};n.default=s}).call(this,e("df3c")["default"])},"25c0":function(t,n,e){"use strict";e.d(n,"b",(function(){return i})),e.d(n,"c",(function(){return a})),e.d(n,"a",(function(){}));var i=function(){var t=this,n=t.$createElement,e=(t._self._c,t.loading?t.list.current_page>=t.list.last_page&&t.list.data.length>0:null),i=!t.loading&&t.list.data.length<=0&&1==t.list.current_page;t.$mp.data=Object.assign({},{$root:{g0:e,g1:i}})},a=[]},"4b35":function(t,n,e){},"5b21":function(t,n,e){"use strict";(function(t,n){var i=e("47a9");e("7043");i(e("3240"));var a=i(e("7300"));t.__webpack_require_UNI_MP_PLUGIN__=e,n(a.default)}).call(this,e("3223")["default"],e("df3c")["createPage"])},"5ed5":function(t,n,e){"use strict";var i=e("4b35"),a=e.n(i);a.a},7300:function(t,n,e){"use strict";e.r(n);var i=e("25c0"),a=e("b93f");for(var r in a)["default"].indexOf(r)<0&&function(t){e.d(n,t,(function(){return a[t]}))}(r);e("5ed5");var o=e("828b"),s=Object(o["a"])(a["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);n["default"]=s.exports},b93f:function(t,n,e){"use strict";e.r(n);var i=e("0229"),a=e.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(r);n["default"]=a.a}},[["5b21","common/runtime","common/vendor"]]]);
|