eztech-core-components 1.0.26 → 1.0.28

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.
@@ -63,7 +63,7 @@ export default {
63
63
  computed: {
64
64
  ...mapGetters('user', ['isLocked', 'user']),
65
65
  isDevelopment () {
66
- return process.env.NODE_ENV === 'development' && true
66
+ return process.env.NODE_ENV === 'development' && false
67
67
  },
68
68
  idleTimeoutServer () {
69
69
  return process.env.NODE_ENV === 'development' ? 10000 : this.idleTimeout
@@ -86,6 +86,9 @@ export default {
86
86
  methods: {
87
87
  ...mapActions('user', ['logout_locked', 'set_locked']),
88
88
  addIdleListeners () {
89
+ if (this.isLocked) {
90
+ return
91
+ }
89
92
  if (this.isDevelopment) {
90
93
  return
91
94
  }
@@ -27,12 +27,12 @@
27
27
  <el-option
28
28
  v-for="item of dataList"
29
29
  :key="item._id"
30
- :label="table_name === 'service_search_reg_org_emps' ? `${ (item.degree_name || item.position_name || '') } ${ item.name || '' } ${ item.phone_num || '' }` : `${item.full_name} ${ item.expert_num || ''}`"
30
+ :label="['service_search_reg_org_emps', 'reg_org_emps'].includes(table_name) ? `${ (item.degree_name || item.position_name || '') } ${ item.name || '' } ${ item.phone_num || '' }` : `${item.full_name} ${ item.expert_num || ''}`"
31
31
  :value="item"
32
32
  class="h-auto max-w-[500px] h-auto whitespace-normal break-normal"
33
33
  >
34
34
  <div class="flex">
35
- <div v-if="table_name === 'service_search_reg_org_emps'" class="leading-3 flex-1">
35
+ <div v-if="['service_search_reg_org_emps', 'reg_org_emps'].includes(table_name)" class="leading-3 flex-1">
36
36
  <div class="flex flex-row justify-between leading-3">
37
37
  <span class="!text-normal">{{ item.degree_name || item.position_name }} <span class="font-bold text-xs">{{ item.name }}</span></span>
38
38
  </div>
@@ -244,7 +244,7 @@ export default {
244
244
  search.resolution_org_id = { val: this.parentTemp?.resolution_org_id?._id, t: 'number', op: 'eq' }
245
245
  }
246
246
  const fields = this.ref_column.split(',')
247
- if (this.table_name === 'service_search_reg_org_emps') {
247
+ if (['service_search_reg_org_emps', 'reg_org_emps'].includes(this.table_name)) {
248
248
  fields.push('resolution_org_id.name', 'resolution_org_id.short_name')
249
249
  }
250
250
  this.dataList = []
@@ -70,7 +70,7 @@
70
70
  >
71
71
  Дахин ачаалах
72
72
  </el-button>
73
- <!-- <el-button
73
+ <el-button
74
74
  icon="el-icon-search"
75
75
  :plain="plainButton"
76
76
  :size="sizeButton || defaultSize"
@@ -78,7 +78,7 @@
78
78
  @click="visibleSearch = true"
79
79
  >
80
80
  Дэлгэрэнгүй хайлт
81
- </el-button> -->
81
+ </el-button>
82
82
  <el-button
83
83
  v-if="buttons.textExport"
84
84
  icon="el-icon-download"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eztech-core-components",
3
- "version": "1.0.26",
3
+ "version": "1.0.28",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
package/plugins/axios.js CHANGED
@@ -28,7 +28,7 @@ export default ({ $axios, query, store, $cookies, redirect, i18n, route, params,
28
28
  $axios.defaults.headers.common['x-at'] = authType
29
29
  const userToken = store.getters['user/token']
30
30
  if (userToken) {
31
- $axios.defaults.headers.common.Autherization = `Bearer ${userToken}`
31
+ $axios.defaults.headers.common.Authorization = `Bearer ${userToken}`
32
32
  }
33
33
  }
34
34
  $axios.defaults.headers.common['Accept-Language'] = query.lang || i18n?.locale || 'mn'
@@ -20,7 +20,7 @@ export const getDefaultConfig = (options) => {
20
20
  const axios = {
21
21
  baseURL: process.env.BASE_URL_SERVER || process.env.BASE_URL,
22
22
  browserBaseURL: '/api',
23
- credentials: true,
23
+ withCredentials: true,
24
24
  process: false
25
25
  }
26
26
  if (process.env.FILE_URL && !process.env.FILE_URL?.startsWith('/api')) {
@@ -528,11 +528,6 @@ export const tableMethods = {
528
528
  if (getFormBoolean(col.col_multiple)) {
529
529
  ruleType = 'array'
530
530
  } else if (['manyToOne', 'image', 'file', 'profileImage', 'icon'].includes(col.col_type)) {
531
- // if (['hrm_employees', 'hrm_users'].includes(col.ref_table)) {
532
- // ruleType = 'string'
533
- // } else {
534
- // ruleType = 'object'
535
- // }
536
531
  ruleType = 'object'
537
532
  }
538
533
  if (col.form.required && !col.form.col_readonly) {