3 lines
7.6 KiB
JavaScript
3 lines
7.6 KiB
JavaScript
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.preload;return p["b"].getDeptSummary({query:{departmentID:t.currentOu.id}})},y]),Object(o["a"])(i,l["a"].getFullUrl("adminPerm"),[u["a"].getFounder,function(){return u["a"].getSuperAdmin({query:{offset:0,limit:20,query:""}})}]),Object(o["a"])(i,l["a"].getFullUrl("resignUser"),[function(e){return c["i"].getEmployeeDataInfo({query:{userIDs:e.ids}})}]),Object(o["a"])(i,l["a"].getFullUrl("relatedOrgPicker"),[function(){return g["f"].getPartnerList({query:{limit:20,offset:0,query:"",ignoreSharedEntity:!0}})},d["tenantApi"].getPendingProposalCount]),Object(o["a"])(i,l["a"].getFullUrl("safetyControl"),[d["contactModuleApi"].getAllSettings,g["f"].getSafetyRules]),Object(o["a"])(i,l["a"].getFullUrl("orgDetail"),[function(e){return g["f"].getPartnerDetail({query:{partnerID:e.partnerID}})}]),Object(o["a"])(i,l["a"].getFullUrl("contactPolicy"),[function(e){var t=e.preload;return g["f"].getPolicyList({query:{partnerID:t.orgDetail.partnerID,limit:10,offset:0}})}]),Object(o["a"])(i,l["a"].getFullUrl("proposalList"),[function(e){return b.getProposalList({query:{status:e.status||m["f"].PROPOSAL_STATUS.PENDING,limit:5,offset:0}})}]),Object(o["a"])(i,l["a"].getFullUrl("proposalDetail"),[function(e){return b.getProposal({query:{proposalID:e.id}})}]),i)},505:function(e,t,r){"use strict";r.r(t);r(506);var n=r(20),a=r(344),i=r(16),o=r(346),s=r(0),l=r(186),d={pages:["pages/index/index","pages/company-info/index","pages/company-info/logo/index","pages/company-info/name/index","pages/company-info/delete-tenant-with-confirm-name/index","pages/user-department/index","pages/user-department/add-dept/index","pages/user-department/edit-dept/index","pages/user-department/edit-enterprise-owner/index","pages/user-department/delete-dept/index","pages/user-department/user-info/index","pages/user-department/user-info/mobile/index","pages/user-department/user-info/custom-field/index","pages/user-department/user-info/position/index","pages/user-department/resign-user/index","pages/user-department/resign-user/receiver/index","pages/user-department/resign-user/instruction/index","pages/user-department/resign-user/public-mail-picker/index","pages/user-department/resign-user/mail-receiver/index","pages/user-department/resign-user/user-search-picker/index","pages/admin-permission/index","pages/related-org/index","pages/related-org/picker/index","pages/related-org/org-detail/index","pages/related-org/org-detail/org-alias/index","pages/related-org/contact-policy/index","pages/related-org/contact-policy/add-policy/index","pages/related-org/contact-policy/policy-detail/index","pages/related-org/proposal-list/index","pages/related-org/proposal-list/proposal-detail/index","pages/related-org/proposal-list/proposal-display-detail/index","pages/related-org/rules-detail/index","pages/related-org/operate-connect/index","pages/related-org/safety-control/index","pages/related-org/safety-control/share-rules/index","pages/related-org/global-settings/index","pages/help/index","pages/no-auth/index","pages/no-login/index","pages/no-group/index","pages/picker/index","pages/picker/tag/index","pages/search/index","pages/image-cropper/index"],window:{backgroundTextStyle:"light",navigationBarBackgroundColor:"#fff",navigationBarTextStyle:"black"}};n["window"].__taroAppConfig=d;App(Object(a["a"])(o["a"],s,l["a"],d));Object(i["initPxTransform"])({designWidth:375,deviceRatio:{375:2,640:1.17,750:1,828:.905}})},741:function(e,t,r){}},[[505,0,3,1,2,4]]]);
|
|
}); |