hl-core 0.0.8-beta.19 → 0.0.8-beta.20

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/locales/ru.json CHANGED
@@ -103,6 +103,8 @@
103
103
  "userLogin": "Логин",
104
104
  "password": "Пароль",
105
105
  "login": "Войти в систему",
106
+ "exit": "Выход",
107
+ "logout": "Выйти из системы",
106
108
  "save": "Сохранить",
107
109
  "back": "Назад",
108
110
  "sign": "Подписать",
@@ -222,6 +224,7 @@
222
224
  "requestedSumInsured": "Запрашиваемая сумма",
223
225
  "insurancePremiumPerMonth": "Премия в месяц",
224
226
  "noStatementCalculator": "Калькулятор стоимости без ввода данных",
227
+ "calculator": "Калькулятор",
225
228
  "agreement": "Согласие",
226
229
  "clientsStatement": "Заявление клиента",
227
230
  "document": "Документ",
@@ -362,6 +365,8 @@
362
365
  "new": "Подать заявление"
363
366
  },
364
367
  "labels": {
368
+ "aml": "AML",
369
+ "amlLong": "Противодействие отмыву денег",
365
370
  "efoLong": "Единое фронтальное окно",
366
371
  "efo": "ЕФО",
367
372
  "lkaLong": "Личный кабинет Агента",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hl-core",
3
- "version": "0.0.8-beta.19",
3
+ "version": "0.0.8-beta.20",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "main": "nuxt.config.ts",
package/pages/Token.vue CHANGED
@@ -19,6 +19,9 @@ export default defineComponent({
19
19
  if (dataStore.isLKA) {
20
20
  return 'Menu';
21
21
  }
22
+ if (dataStore.isAML) {
23
+ return 'Main';
24
+ }
22
25
  };
23
26
 
24
27
  onMounted(async () => {
@@ -112,17 +112,30 @@ export const useDataStore = defineStore('data', {
112
112
  this.refreshToken = response.refreshToken;
113
113
  this.getUserRoles();
114
114
  }
115
+ const checkPermission = () => {
116
+ if (this.isAML) {
117
+ return this.isCompliance() || this.isAdmin() || this.isSupport() || this.isAnalyst();
118
+ }
119
+ if (this.isLKA) {
120
+ return this.isAgent() || this.isAdmin() || this.isSupport() || this.isAnalyst() || this.isDrn();
121
+ }
122
+ if (this.isEFO) {
123
+ return (
124
+ this.isInitiator() ||
125
+ this.isUnderwriter() ||
126
+ this.isAdmin() ||
127
+ this.isCompliance() ||
128
+ this.isAnalyst() ||
129
+ this.isUpk() ||
130
+ this.isFinCenter() ||
131
+ this.isSupervisor() ||
132
+ this.isSupport()
133
+ );
134
+ }
135
+ return false;
136
+ };
115
137
  if (this.controls.onAuth) {
116
- const hasPermission =
117
- this.isInitiator() ||
118
- this.isUnderwriter() ||
119
- this.isAdmin() ||
120
- this.isCompliance() ||
121
- this.isAnalyst() ||
122
- this.isUpk() ||
123
- this.isFinCenter() ||
124
- this.isSupervisor() ||
125
- this.isSupport();
138
+ const hasPermission = checkPermission();
126
139
  if (hasPermission) {
127
140
  localStorage.setItem('accessToken', this.accessToken);
128
141
  localStorage.setItem('refreshToken', this.refreshToken);