adata-ui 0.1.26 → 0.1.27

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adata-ui",
3
- "version": "0.1.26",
3
+ "version": "0.1.27",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -12,7 +12,7 @@
12
12
  <a v-for="(item, index) in subheaderItems"
13
13
  :key="index"
14
14
  class="menu__wrapper menu__items"
15
- :class="{active: locationUrl.includes(toAdtdev(item.url))}"
15
+ :class="{active: item.key === activeTabKey}"
16
16
  :href="toAdtdev(item.url)"
17
17
  >
18
18
  {{ item.name }}
@@ -63,7 +63,7 @@
63
63
  v-for="(item, index) in subheaderItems"
64
64
  :key="index"
65
65
  class="menu_mobile-wrapper"
66
- :class="{'active-burger-tab': locationUrl.includes(toAdtdev(item.url))}"
66
+ :class="{'active-burger-tab': item.key === activeTabKey}"
67
67
  :href="toAdtdev(item.url)"
68
68
  >
69
69
  {{ item.name }}
@@ -135,21 +135,25 @@ export default {
135
135
  id: 1,
136
136
  name: "Контрагенты",
137
137
  url: 'https://pk.adata.kz',
138
+ key: 'counterparty'
138
139
  },
139
140
  {
140
141
  id: 2,
141
142
  name: "Тендеры",
142
143
  url: 'https://tender.adata.kz',
144
+ key: 'tenders'
143
145
  },
144
146
  {
145
147
  id: 3,
146
148
  name: "Работа",
147
149
  url: 'https://work.adata.kz',
150
+ key: 'work'
148
151
  },
149
152
  {
150
153
  id: 4,
151
154
  name: "Штрафы",
152
155
  url: 'https://avto.adata.kz',
156
+ key: 'fines'
153
157
  }
154
158
  ],
155
159
  isOpen: false
@@ -158,14 +162,6 @@ export default {
158
162
  mounted() {
159
163
  this.setBalance(this.balance);
160
164
  },
161
- computed: {
162
- locationUrl() {
163
- if (window)
164
- return window.location.href;
165
- else
166
- return ''
167
- }
168
- },
169
165
  methods: {
170
166
  changeValue() {
171
167
  this.isOpen = !this.isOpen
@@ -295,7 +295,7 @@ export default {
295
295
  }
296
296
  if(this.activeTabKey === 'counterparty') {
297
297
  this.chosenElem = this.listDropDown.find(el => el.name === 'Контрагенты');
298
- } else if (this.activeTabKey === 'tender') {
298
+ } else if (this.activeTabKey === 'tenders') {
299
299
  this.chosenElem = this.listDropDown.find(el => el.name === 'Тендеры');
300
300
  } else if (this.activeTabKey === 'work') {
301
301
  this.chosenElem = this.listDropDown.find(el => el.name === 'Работа');