| 12 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/equipMange/index/index"],{137:function(e,n,t){"use strict";(function(e,n){var r=t(4);t(26);r(t(25));var i=r(t(138));e.__webpack_require_UNI_MP_PLUGIN__=t,n(i.default)}).call(this,t(1)["default"],t(2)["createPage"])},138:function(e,n,t){"use strict";t.r(n);var r=t(139),i=t(141);for(var u in i)["default"].indexOf(u)<0&&function(e){t.d(n,e,(function(){return i[e]}))}(u);t(143);var o,a=t(32),s=Object(a["default"])(i["default"],r["render"],r["staticRenderFns"],!1,null,null,null,!1,r["components"],o);s.options.__file="pages/equipMange/index/index.vue",n["default"]=s.exports},139:function(e,n,t){"use strict";t.r(n);var r=t(140);t.d(n,"render",(function(){return r["render"]})),t.d(n,"staticRenderFns",(function(){return r["staticRenderFns"]})),t.d(n,"recyclableRender",(function(){return r["recyclableRender"]})),t.d(n,"components",(function(){return r["components"]}))},140:function(e,n,t){"use strict";var r;t.r(n),t.d(n,"render",(function(){return i})),t.d(n,"staticRenderFns",(function(){return o})),t.d(n,"recyclableRender",(function(){return u})),t.d(n,"components",(function(){return r}));try{r={uniNavBar:function(){return t.e("components/uni-nav-bar/uni-nav-bar").then(t.bind(null,1236))},uInput:function(){return Promise.all([t.e("common/vendor"),t.e("uview-ui/components/u-input/u-input")]).then(t.bind(null,1264))},uIcon:function(){return t.e("uview-ui/components/u-icon/u-icon").then(t.bind(null,1200))}}}catch(a){if(-1===a.message.indexOf("Cannot find module")||-1===a.message.indexOf(".vue"))throw a;console.error(a.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var i=function(){var e=this,n=e.$createElement;e._self._c},u=!1,o=[];i._withStripped=!0},141:function(e,n,t){"use strict";t.r(n);var r=t(142),i=t.n(r);for(var u in r)["default"].indexOf(u)<0&&function(e){t.d(n,e,(function(){return r[e]}))}(u);n["default"]=i.a},142:function(e,n,t){"use strict";(function(e){var r=t(4);Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(t(41)),u=r(t(43)),o=t(86),a={data:function(){return{value:"",type:"text",border:!1,uinputstyle:{margin:"16rpx 0",background:"#f3f3f3","border-radius":"25px"},userlists:[],argument:{page:1,page_size:10,username:""},isTop:!1,addtf:!1}},methods:{getState:function(e){var n=this;return(0,u.default)(i.default.mark((function t(){var r;return i.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,n.$myRequest({url:"/api/api_gateway?method=user.login.users_info",data:{page:e.page,page_size:e.page_size,username:e.username}});case 2:r=t.sent,n.userlists=n.userlists.concat(r.data);case 4:case"end":return t.stop()}}),t)})))()},userlogin:function(n){var t=this;return(0,u.default)(i.default.mark((function r(){var u,o;return i.default.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return r.next=2,t.$myRequest({url:"/api/api_gateway?method=user.login.auto_login",data:{uid:n}});case 2:u=r.sent,o=u.session_key,e.setStorage({key:"session_key",data:o,success:function(){e.switchTab({url:"../../index/index"}),e.showToast({title:"登录成功!",icon:"none"})}});case 5:case"end":return r.stop()}}),r)})))()},clickRight:function(){this.addtf?e.navigateTo({url:"./addusers"}):e.showToast({title:"您暂无权限进行此操作,如有需要,请联系管理员",icon:"none"})},clickLeft:function(){e.switchTab({url:"../../index/index"})},userOperation:function(n){n=JSON.stringify(n),e.navigateTo({url:"./useroperation?item="+n})},userloginbtn:function(e){this.userlogin(e.uid)},search:function(){this.userlists=[],this.getState(this.argument)},searchinput:function(){var e=this;this.argument.page=1,(0,o.Debounce)((function(){e.userlists=[],e.getState(e.argument)}),1e3)()},top:function(){e.pageScrollTo({scrollTop:0,duration:500})}},onLoad:function(){var n=this;this.getState(this.argument),e.getStorage({key:"jurisdiction",success:function(e){console.log(JSON.parse(e.data));var t=JSON.parse(e.data).filter((function(e){return 28==e.pur_id})),r=t[0].children.filter((function(e){return 29==e.pur_id})),i=r[0].children;console.log(i);for(var u=0;u<i.length;u++)switch(i[u].pur_id){case 116:n.addtf=!0;break}}})},onReachBottom:function(){this.argument.page++,this.getState(this.argument)},onPullDownRefresh:function(){this.getState(this.argument),setTimeout((function(){e.stopPullDownRefresh()}),1e3)},onBackPress:function(e){return"navigateBack"!==e.from&&(this.clickLeft(),!0)},onPageScroll:function(e){e.scrollTop>200?this.isTop=!0:this.isTop=!1}};n.default=a}).call(this,t(2)["default"])},143:function(e,n,t){"use strict";t.r(n);var r=t(144),i=t.n(r);for(var u in r)["default"].indexOf(u)<0&&function(e){t.d(n,e,(function(){return r[e]}))}(u);n["default"]=i.a},144:function(e,n,t){}},[[137,"common/runtime","common/vendor"]]]);
- //# sourceMappingURL=../../../../.sourcemap/mp-weixin/pages/equipMange/index/index.js.map
|