eztech-core-components 1.0.22 → 1.0.24

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.
@@ -401,7 +401,7 @@ export default {
401
401
  return this.mainFormMenus.find(c => c.name === this.submenu)
402
402
  },
403
403
  isShowLogButton () {
404
- return this.level?.isAdmin || this.level?.actions?.some(c => c.code === 'LOG') || this.isDevelopment
404
+ return this.level?.isAdmin || this.level?.actions?.some(c => c.code === 'LOG') || this.submenu === 'LOG' || this.isDevelopment
405
405
  },
406
406
  selectedColumns () {
407
407
  if (!this.selectedSubmenu) {
@@ -147,7 +147,7 @@ export default {
147
147
  if (!this.modelValue || this.item) {
148
148
  return
149
149
  }
150
- const { data: item } = await this.$axios.get('one/5/hrm_users', {
150
+ const { data: item } = await this.$axios.get('one/5/service_search_hrm_users', {
151
151
  process: false,
152
152
  params: {
153
153
  search: JSON.stringify({
@@ -222,7 +222,7 @@ export default {
222
222
  triggerSearch[localKey] = { val: localVal, t: type, op: operation }
223
223
  }
224
224
  }
225
- const { data: list } = await this.$axios.get('list/5/hrm_users', {
225
+ const { data: list } = await this.$axios.get('list/5/service_search_hrm_users', {
226
226
  process: false,
227
227
  params: {
228
228
  search: JSON.stringify({
@@ -282,7 +282,7 @@ export default {
282
282
  if (!id) {
283
283
  return
284
284
  }
285
- const { data: item } = await this.$axios.get('one/5/hrm_users', {
285
+ const { data: item } = await this.$axios.get('one/5/service_search_hrm_users', {
286
286
  process: false,
287
287
  params: {
288
288
  search: JSON.stringify({
@@ -396,7 +396,7 @@ export default {
396
396
  })
397
397
  this.list = list
398
398
  } else {
399
- const { data: list } = await this.$axios.get('list/5/hrm_users', {
399
+ const { data: list } = await this.$axios.get('list/5/service_search_hrm_users', {
400
400
  process: false,
401
401
  params: {
402
402
  search: JSON.stringify({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eztech-core-components",
3
- "version": "1.0.22",
3
+ "version": "1.0.24",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -52,9 +52,6 @@ export const tableComputed = {
52
52
  urlOne () {
53
53
  return this.customOneUrl || `${this.subUrl || ''}one/${this.projectId}/${this.tableName}`
54
54
  },
55
- urlTable () {
56
- return `${this.subUrl || ''}${this.projectId}/${this.table?.name}`
57
- },
58
55
  urlExcel () {
59
56
  return this.customExcelUrl || `${this.subUrl || ''}excel/${this.url}`
60
57
  },
@@ -223,7 +220,7 @@ export const tableMethods = {
223
220
  if (col_field === 'register_num') {
224
221
  const isEmployee = this.table?.name === 'hrm_employees'
225
222
  if (isEmployee && !this.temp?._id) {
226
- const { data } = await this.$axios.get(`one/${this.urlTable}`, {
223
+ const { data } = await this.$axios.get(`one/service_search_hrm_employees`, {
227
224
  params: {
228
225
  search: JSON.stringify({ [col_field]: { val: this.temp[col_field], t: 'string', op: 'eq' } }),
229
226
  locale_id: this.localeId,