File: /var/www/uileague/cms/js/chunk-2d0e5714.e3fcd9be.js
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0e5714"],{9502:function(e,n,t){"use strict";t.r(n),t.d(n,"AdminUserModel",(function(){return f}));var r=t("a34a"),a=t.n(r),c=t("ceda"),u=t("4360");function o(e,n,t,r,a,c,u){try{var o=e[c](u),s=o.value}catch(i){return void t(i)}o.done?n(s):Promise.resolve(s).then(r,a)}function s(e){return function(){var n=this,t=arguments;return new Promise((function(r,a){var c=e.apply(n,t);function u(e){o(c,r,a,u,s,"next",e)}function s(e){o(c,r,a,u,s,"throw",e)}u(void 0)}))}}function i(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function l(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e,n,t){return n&&l(e.prototype,n),t&&l(e,t),e}var f=function(){function e(){i(this,e)}return p(e,null,[{key:"getList",value:function(){var e=s(a.a.mark((function e(n){var t;return a.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=new Object,e.prev=1,e.next=4,Object(c["post"])("/api-data",{c:"AdminUser",a:"getList",company_id:u["default"].state.company_id,pageLimit:n.count,cpage:n.start,keyword:n.keyword}).then((function(e){t=e})).catch((function(e){console.log(null==e?"網絡出錯":e)}));case 4:e.sent,e.next=10;break;case 7:e.prev=7,e.t0=e["catch"](1),console.log("網絡出錯");case 10:return e.abrupt("return",t);case 11:case"end":return e.stop()}}),e,null,[[1,7]])})));function n(n){return e.apply(this,arguments)}return n}()},{key:"setUser",value:function(){var e=s(a.a.mark((function e(n,t){var r;return a.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=new Object,e.prev=1,e.next=4,Object(c["post"])("/api-data",{c:"AdminUser",a:n,id:t.id?t.id:t.ID,user_login:t.user_login,user_name:t.user_name,user_pass:t.user_pass,user_phone:t.user_phone,user_email:t.user_email,status:t.status}).then((function(e){r=e})).catch((function(e){console.log(null==e?"網絡出錯":e)}));case 4:e.sent,e.next=10;break;case 7:e.prev=7,e.t0=e["catch"](1),console.log("網絡出錯");case 10:return e.abrupt("return",r);case 11:case"end":return e.stop()}}),e,null,[[1,7]])})));function n(n,t){return e.apply(this,arguments)}return n}()},{key:"getInfo",value:function(){var e=s(a.a.mark((function e(){var n;return a.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=new Object,e.prev=1,e.next=4,Object(c["post"])("/api-data",{c:"AdminUser",a:"get"}).then((function(e){n=e})).catch((function(e){console.log(null==e?"網絡出錯":e)}));case 4:e.sent,e.next=10;break;case 7:e.prev=7,e.t0=e["catch"](1),console.log("網絡出錯");case 10:return e.abrupt("return",n);case 11:case"end":return e.stop()}}),e,null,[[1,7]])})));function n(){return e.apply(this,arguments)}return n}()}]),e}()}}]);