ecinc-cloud-mappaio 9.7.10 → 9.7.12
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/lib/ecmappaio.common.js +13 -5
- package/lib/ecmappaio.umd.js +13 -5
- package/lib/ecmappaio.umd.min.js +1 -1
- package/package.json +1 -1
package/lib/ecmappaio.common.js
CHANGED
|
@@ -1042,8 +1042,10 @@ var actions = {
|
|
|
1042
1042
|
loginUser = _context3.sent;
|
|
1043
1043
|
commit('SET_TOKEN', window.$auth.getToken());
|
|
1044
1044
|
commit('SET_LOGIN_USER', loginUser);
|
|
1045
|
-
|
|
1046
|
-
|
|
1045
|
+
if (inJwtToken) {
|
|
1046
|
+
window.$auth.removeTicket();
|
|
1047
|
+
}
|
|
1048
|
+
window.$user.findUserRolePermissions(jwtToken).then(function (response) {
|
|
1047
1049
|
if (response.code === 'success') {
|
|
1048
1050
|
var data = response.body;
|
|
1049
1051
|
window.$auth.setProductCode(data['PRODUCT_CODE_LIST'], loginUser.sysCode);
|
|
@@ -55052,11 +55054,17 @@ var user_install = function install(Vue) {
|
|
|
55052
55054
|
method: 'get'
|
|
55053
55055
|
});
|
|
55054
55056
|
},
|
|
55055
|
-
findUserRolePermissions: function findUserRolePermissions() {
|
|
55056
|
-
|
|
55057
|
+
findUserRolePermissions: function findUserRolePermissions(jwtToken) {
|
|
55058
|
+
var req = {
|
|
55057
55059
|
url: 'base/resRolePermission/getUserRolePermissions',
|
|
55058
55060
|
method: 'get'
|
|
55059
|
-
}
|
|
55061
|
+
};
|
|
55062
|
+
if (jwtToken) {
|
|
55063
|
+
req.params = {
|
|
55064
|
+
jwtToken: jwtToken
|
|
55065
|
+
};
|
|
55066
|
+
}
|
|
55067
|
+
return httpRequest(req);
|
|
55060
55068
|
},
|
|
55061
55069
|
findH5apps: function findH5apps() {
|
|
55062
55070
|
var searchFields = [{
|
package/lib/ecmappaio.umd.js
CHANGED
|
@@ -1052,8 +1052,10 @@ var actions = {
|
|
|
1052
1052
|
loginUser = _context3.sent;
|
|
1053
1053
|
commit('SET_TOKEN', window.$auth.getToken());
|
|
1054
1054
|
commit('SET_LOGIN_USER', loginUser);
|
|
1055
|
-
|
|
1056
|
-
|
|
1055
|
+
if (inJwtToken) {
|
|
1056
|
+
window.$auth.removeTicket();
|
|
1057
|
+
}
|
|
1058
|
+
window.$user.findUserRolePermissions(jwtToken).then(function (response) {
|
|
1057
1059
|
if (response.code === 'success') {
|
|
1058
1060
|
var data = response.body;
|
|
1059
1061
|
window.$auth.setProductCode(data['PRODUCT_CODE_LIST'], loginUser.sysCode);
|
|
@@ -55062,11 +55064,17 @@ var user_install = function install(Vue) {
|
|
|
55062
55064
|
method: 'get'
|
|
55063
55065
|
});
|
|
55064
55066
|
},
|
|
55065
|
-
findUserRolePermissions: function findUserRolePermissions() {
|
|
55066
|
-
|
|
55067
|
+
findUserRolePermissions: function findUserRolePermissions(jwtToken) {
|
|
55068
|
+
var req = {
|
|
55067
55069
|
url: 'base/resRolePermission/getUserRolePermissions',
|
|
55068
55070
|
method: 'get'
|
|
55069
|
-
}
|
|
55071
|
+
};
|
|
55072
|
+
if (jwtToken) {
|
|
55073
|
+
req.params = {
|
|
55074
|
+
jwtToken: jwtToken
|
|
55075
|
+
};
|
|
55076
|
+
}
|
|
55077
|
+
return httpRequest(req);
|
|
55070
55078
|
},
|
|
55071
55079
|
findH5apps: function findH5apps() {
|
|
55072
55080
|
var searchFields = [{
|