isdata-customer-sdk 0.1.50 → 0.1.51
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +28 -3
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +28 -3
- package/dist/index.umd.js.map +1 -1
- package/dist/index.umd.min.js +1 -1
- package/dist/index.umd.min.js.map +1 -1
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -29592,6 +29592,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
29592
29592
|
getPortalUserMappingInfos: function() { return /* reexport */ getPortalUserMappingInfos; },
|
|
29593
29593
|
getPortalUserSig: function() { return /* reexport */ getPortalUserSig; },
|
|
29594
29594
|
getRoleIDsByUserAndGroupID: function() { return /* reexport */ getRoleIDsByUserAndGroupID; },
|
|
29595
|
+
getThirdAppPathByKey: function() { return /* reexport */ getThirdAppPathByKey; },
|
|
29595
29596
|
getUrlParamValue: function() { return /* reexport */ getUrlParamValue; },
|
|
29596
29597
|
getUserAllMappngPortal: function() { return /* reexport */ getUserAllMappngPortal; },
|
|
29597
29598
|
hasListener: function() { return /* reexport */ hasListener; },
|
|
@@ -29599,6 +29600,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
29599
29600
|
initFrameWindowListener: function() { return /* reexport */ initFrameWindowListener; },
|
|
29600
29601
|
loginAccount: function() { return /* reexport */ loginAccount; },
|
|
29601
29602
|
logoutAccount: function() { return /* reexport */ logoutAccount; },
|
|
29603
|
+
queryAndStoreAppVariable: function() { return /* reexport */ queryAndStoreAppVariable; },
|
|
29602
29604
|
queryAppVariable: function() { return /* reexport */ queryAppVariable; },
|
|
29603
29605
|
queryAssetById: function() { return /* reexport */ queryAssetById; },
|
|
29604
29606
|
queryGroupIDByOfficeId: function() { return /* reexport */ queryGroupIDByOfficeId; },
|
|
@@ -30295,9 +30297,10 @@ const logoutAccount = async endside_type => {
|
|
|
30295
30297
|
let response = JSON.parse(resultData.request.response);
|
|
30296
30298
|
let resultCode = response.code;
|
|
30297
30299
|
if (resultCode == "10110020") {
|
|
30298
|
-
window.sessionStorage.setItem("iportal_login_user_id", "");
|
|
30299
|
-
window.sessionStorage.setItem("iportal_group_id", "");
|
|
30300
|
-
window.sessionStorage.setItem("iportal_login_user_key", "");
|
|
30300
|
+
// window.sessionStorage.setItem("iportal_login_user_id", "");
|
|
30301
|
+
// window.sessionStorage.setItem("iportal_group_id", "");
|
|
30302
|
+
// window.sessionStorage.setItem("iportal_login_user_key", "");
|
|
30303
|
+
window.sessionStorage.clear();
|
|
30301
30304
|
return {
|
|
30302
30305
|
code: resultCode,
|
|
30303
30306
|
message: response.message
|
|
@@ -30483,6 +30486,28 @@ const queryAppVariable = (name, appVariables) => {
|
|
|
30483
30486
|
}
|
|
30484
30487
|
return "";
|
|
30485
30488
|
};
|
|
30489
|
+
const getThirdAppPathByKey = async (appkey, appSecret, groupID) => {
|
|
30490
|
+
let requestData = {
|
|
30491
|
+
param: {
|
|
30492
|
+
appKey: appkey,
|
|
30493
|
+
appSecret: appSecret,
|
|
30494
|
+
groupID: groupID
|
|
30495
|
+
}
|
|
30496
|
+
};
|
|
30497
|
+
let result = await request.post(`/dataservice/rest/orchestration/getThirdAppPathByKey`, requestData);
|
|
30498
|
+
let path = result.data.path;
|
|
30499
|
+
return path;
|
|
30500
|
+
};
|
|
30501
|
+
const queryAndStoreAppVariable = async (name, appVariables) => {
|
|
30502
|
+
let value = window.sessionStorage.getItem("isdata_app_variable_" + name);
|
|
30503
|
+
if (!value) {
|
|
30504
|
+
value = queryAppVariable(name, appVariables);
|
|
30505
|
+
if (value) {
|
|
30506
|
+
window.sessionStorage.setItem("isdata_app_variable_" + name, value);
|
|
30507
|
+
}
|
|
30508
|
+
}
|
|
30509
|
+
return value;
|
|
30510
|
+
};
|
|
30486
30511
|
|
|
30487
30512
|
/**
|
|
30488
30513
|
* 添加或更新对象使用次数
|