LinuxConfig/LarkShell/PC_Gadget/7195161935556460547/app/cli_9eeb505c0df5500d/0.7.189/app.js

3 lines
7.6 KiB
JavaScript
Raw Normal View History

2023-10-14 02:46:39 +08:00
define("app.js", function(require, module, exports, window,document,frames,self,location,navigator,localStorage,history,Caches,screen,alert,confirm,prompt,fetch,XMLHttpRequest,WebSocket,webkit,ttJSCore,Reporter,print,indexedDB){
require("./runtime"),require("./common"),require("./vendors"),require("./taro"),require("./admin"),(tt["webpackJsonp"]=tt["webpackJsonp"]||[]).push([[5],{346:function(e,t,r){"use strict";(function(e){var n=r(42),a=r(22),i=r(12),o=r(15),s=r(5),l=r(23),d=r(24),p=r(6),u=r(0),c=r.n(u),g=r(18),f=r(3),m=r(16),b=r(1),y=r(14),x=r(21),O=r(19),h=r(495),v=r(70),D=r(76);r(741);Object(f["configure"])({enforceActions:"observed"});var S=function(e){return[O["a"].getRoute("operateConnect")].includes(e)},P=function(t){Object(l["a"])(u,t);var r=Object(d["a"])(u);function u(){var t;Object(i["a"])(this,u);for(var o=arguments.length,l=new Array(o),d=0;d<o;d++)l[d]=arguments[d];return t=r.call.apply(r,[this].concat(l)),Object(p["a"])(Object(s["a"])(t),"init",(function(){x["globalStore"].updateStore({initLoading:!0});var t={};Object(m["initPxTransform"])({designWidth:375,deviceRatio:{375:2}}),Object(b["injectPreloadApis"])(h["a"]),Object(y["injectRequest"])({msgNetworkError:e("SuiteAdminMP_Common_NetworkError"),msgNetworkTimeout:e("SuiteAdminMP_Common_NetworkTimeout")},t),Object(v["b"])(),b["amToast"].create(),tt.onAppRoute((function(e){b["amToast"].hide({isPre:!0}),b["$currentPage"].updatePages(),Object(b["updateHistory"])(e.openType),null===a["ModalManager"]||void 0===a["ModalManager"]||a["ModalManager"].reset(),null===n["ActionSheetManager"]||void 0===n["ActionSheetManager"]||n["ActionSheetManager"].reset()}))})),Object(p["a"])(Object(s["a"])(t),"initMiniAppWithDeviceId",(function(e,t,r){Object(x["initMiniApp"])({safeInit:S(e),slardarPages:["companyInfo","userDepartment","userInfo","resignUser","adminPerm"],device_id:t,force:!0,loading:!0,fromAppLinkQuery:r})})),Object(p["a"])(Object(s["a"])(t),"getUpdateSystemInfo",(function(){Object(m["getSystemInfo"])({success:function(e){D["b"].globalStore.updateStore({globalWindowWidth:e.windowWidth,globalWindowHeight:e.windowHeight,globalStatusBarHeight:e.statusBarHeight})}})})),t}return Object(o["a"])(u,[{key:"componentWillMount",value:function(){var e=this;this.init();var t=tt.getLaunchOptionsSync(),r=t.path,n=t.query;tt.getDeviceID({success:function(t){e.initMiniAppWithDeviceId(r,t.deviceID,n)},fail:function(){e.initMiniAppWithDeviceId(r,"0",n)}})}},{key:"componentDidMount",value:function(){this.getUpdateSystemInfo(),Object(m["onWindowResize"])(this.getUpdateSystemInfo)}},{key:"componentDidShow",value:function(){if(D["b"].globalStore){console.log("app didshow");var e=D["b"].globalStore,t=e.globalHide,r=e.updateStore,n=e.globalReset;if(n(),t){b["$currentPage"].getUrl(null,!1);r({globalHide:!1,isEnterNativePage:!1})}}}},{key:"componentDidHide",value:function(){var e=D["b"].globalStore,t=e.updateStore,r=e.isEnterNativePage,n=x["permStore"].has(b["PERMISSION"].ADMIN_MINI_ADDPASSWORDVERIFY);n&&!r&&t({hasGlobalVerify:!1}),t({globalHide:!0})}},{key:"componentWillUnmount",value:function(){Object(m["offWindowResize"])(this.getUpdateSystemInfo)}},{key:"componentDidCatchError",value:function(e){b["slardar"].reportError(new Error(e),null)}},{key:"render",value:function(){return c.a.createElement(g["Provider"],D["b"],this.props.children)}}]),u}(u["Component"]);t["a"]=P}).call(this,r(30)["default"])},495:function(e,t,r){"use strict";r.d(t,"a",(function(){return x}));var n={};r.r(n),r.d(n,"Proposal",(function(){return f}));var a={};r.r(a),r.d(a,"B2B",(function(){return n}));var i,o=r(6),s=r(1),l=r(19),d=r(14),p=r(48),u=r(85),c=r(10),g=r(29),f=(r(97),r(77)),m=r(41),b=a.B2B.Proposal.apis,y=function(){return d["contactModuleApi"].getEmployeeTypeEnums({query:{field_key:"B-EMPLOYEETYPE"}})},x=(i={},Object(o["a"])(i,l["a"].getFullUrl("userDepartment"),[function(e){return d["contactModuleApi"].getOuInfo({query:{ouId:e.id||s["DEFAULT_DEPARTMENT_ID"],permResource:d["PERM_RESOURCE"].DEPT}})},function(e){return d["contactModuleApi"].getSubListFilterByUser({query:{parentID:e.id||s["DEFAULT_DEPARTMENT_ID"],permResource:d["PERM_RESOURCE"].DEPT,memberOffset:0,memberLimit:s["MEMBER_LIMIT"],subType:0}})}]),Object(o["a"])(i,l["a"].getFullUrl("addDept"),[y]),Object(o["a"])(i,l["a"].getFullUrl("editDept"),[function(e){var t=e.prel
});