eztech-core-components 1.0.16 → 1.0.18

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.
@@ -107,6 +107,7 @@
107
107
  :is-locale-label="isLocaleLabel"
108
108
  :no-padding-all="noPaddingAll"
109
109
  :parent-form-col="parentFormCol"
110
+ :service-name="serviceName"
110
111
  @temp-change="handleTempChange"
111
112
  @temp-change-all="$emit('temp-change-all', $event)"
112
113
  @form-search="handleFormSearch"
@@ -191,6 +192,7 @@
191
192
  :no-padding-all="noPaddingAll"
192
193
  :disabled="disabled || group.disabled"
193
194
  :parent-form-col="parentFormCol"
195
+ :service-name="serviceName"
194
196
  @temp-change="handleTempChange"
195
197
  @temp-change-all="$emit('temp-change-all', $event)"
196
198
  @form-search="handleFormSearch"
@@ -283,7 +285,8 @@ export default {
283
285
  isLocaleLabel: { type: Boolean, default: false },
284
286
  disabled: { type: Boolean, default: false },
285
287
  parentFormCol: { type: Number, default: 0 },
286
- isDialog: { type: Boolean, default: false }
288
+ isDialog: { type: Boolean, default: false },
289
+ serviceName: { type: String, default: null }
287
290
  },
288
291
  data () {
289
292
  return {
@@ -103,6 +103,7 @@
103
103
  :no-search="true"
104
104
  :plain-button="true"
105
105
  :parent-level="level"
106
+ :service-name="serviceName"
106
107
  :is-log="'SUB_TABLE_LOG' === group.group_type"
107
108
  />
108
109
  </div>
@@ -196,10 +197,12 @@ import { getTriggerEquals, getTriggerFields } from '../utils/data-helper'
196
197
  export default {
197
198
  name: 'CoreFormFields',
198
199
  props: [
199
- 'group', 'parentTemp', 'rootTempId', 'rootApiId', 'temp', 'pk_field_name', 'defaultSize', 'table',
200
+ 'group', 'parentTemp', 'rootTempId', 'rootApiId',
201
+ 'temp', 'pk_field_name', 'defaultSize', 'table',
200
202
  'projectId', 'searching', 'refColumns', 'disabled',
201
203
  'isSubMenu', 'showPkid', 'level', 'isLocaleLabel',
202
- 'noPadding', 'noPaddingAll', 'parentFormCol'
204
+ 'noPadding', 'noPaddingAll', 'parentFormCol',
205
+ 'serviceName'
203
206
  ],
204
207
  data () {
205
208
  return {
@@ -114,7 +114,8 @@ export default {
114
114
  textWhere: { type: String, default: null },
115
115
  tempLocaleId: { type: String, default: null },
116
116
  selectable: { type: Boolean, default: false },
117
- allSelectable: { type: Boolean, default: false }
117
+ allSelectable: { type: Boolean, default: false },
118
+ serviceName: { type: String, default: null }
118
119
  },
119
120
  data () {
120
121
  return {
@@ -149,6 +150,9 @@ export default {
149
150
  },
150
151
  isReadonly () {
151
152
  return this.table_name === 'hrm_users' && this.rootApiId === '62504707439988841'
153
+ },
154
+ subUrl () {
155
+ return `sub/${this.serviceName}/${this.tempId}/`
152
156
  }
153
157
  },
154
158
  watch: {
@@ -1,6 +1,8 @@
1
1
  <template>
2
2
  <transition name="el-fade-in-linear">
3
3
  <div v-if="initted && table">
4
+ 11{{ apiName }}
5
+ 11{{ rootApiId }}
4
6
  <div v-if="groupName === 'QUESTIONS'" class="px-2">
5
7
  <el-alert show-icon :closable="false">
6
8
  <div class="text-sm">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eztech-core-components",
3
- "version": "1.0.16",
3
+ "version": "1.0.18",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -44,16 +44,16 @@ export const tableComputed = {
44
44
  return this.project ? this.project.pk_field_name : '_id'
45
45
  },
46
46
  url () {
47
- return this.customUrl || `${this.projectId}/${this.tableName}`
47
+ return this.customUrl || `${this.subUrl || ''}${this.projectId}/${this.tableName}`
48
48
  },
49
49
  urlOne () {
50
- return this.customUrl || `${this.projectId}/${this.tableName}`
50
+ return this.customUrl || `${this.subUrl || ''}${this.projectId}/${this.tableName}`
51
51
  },
52
52
  urlTable () {
53
- return `${this.projectId}/${this.table?.name}`
53
+ return `${this.subUrl || ''}${this.projectId}/${this.table?.name}`
54
54
  },
55
55
  urlExcel () {
56
- return this.customExcelUrl || `excel/${this.url}`
56
+ return this.customExcelUrl || `${this.subUrl || ''}excel/${this.url}`
57
57
  },
58
58
  urlProfileDownload () {
59
59
  return `profileDownload/${this.url}/${this.id}`