eztech-core-components 1.0.76 → 1.0.77
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/comps/CoreForm.vue +1 -1
- package/package.json +1 -1
- package/utils/component-helper.js +2 -2
- package/utils/table-helper.js +2 -2
package/comps/CoreForm.vue
CHANGED
|
@@ -214,7 +214,7 @@
|
|
|
214
214
|
<div class="w-full overflow-hidden">
|
|
215
215
|
<core-form-table
|
|
216
216
|
:table_name="selectedSubmenu.group_fields"
|
|
217
|
-
:ref-column="refColumns.
|
|
217
|
+
:ref-column="refColumns.findLast(c => c.tableName === selectedSubmenu.group_fields)"
|
|
218
218
|
:project-id="projectId"
|
|
219
219
|
:temp-id="tempId"
|
|
220
220
|
:root-api-id="rootApiId"
|
package/package.json
CHANGED
|
@@ -312,7 +312,7 @@ export const getColWidth = ({ col_type, col_multiple, col_length, col_key, col_f
|
|
|
312
312
|
}
|
|
313
313
|
return valWidth
|
|
314
314
|
}
|
|
315
|
-
export const isHidden = ({ col_field, col_hidden }, subColumn, apiName) => {
|
|
315
|
+
export const isHidden = ({ col_field, col_hidden, col_multiple }, subColumn, apiName) => {
|
|
316
316
|
const isColHidden = getFormBoolean(col_hidden)
|
|
317
317
|
if (isColHidden && apiName?.includes('vw_rprt') && ['current_user_id'].includes(col_field)) {
|
|
318
318
|
return false
|
|
@@ -325,7 +325,7 @@ export const isHidden = ({ col_field, col_hidden }, subColumn, apiName) => {
|
|
|
325
325
|
}
|
|
326
326
|
if (subColumn) {
|
|
327
327
|
if (col_field === subColumn.col_field) {
|
|
328
|
-
return
|
|
328
|
+
return !col_multiple
|
|
329
329
|
} else if (subColumn.trigger_fields && !subColumn.trigger_fields.includes('extract')) {
|
|
330
330
|
for (const triggerField of subColumn.trigger_fields.split(',')) {
|
|
331
331
|
const triggerValues = triggerField.split(':')
|
package/utils/table-helper.js
CHANGED
|
@@ -604,9 +604,9 @@ export const tableMethods = {
|
|
|
604
604
|
setParentVal (obj) {
|
|
605
605
|
if (this.subColumn && obj) {
|
|
606
606
|
if (this.inlineParentTemp) {
|
|
607
|
-
obj[this.subColumn.col_field] = cloneDeep(this.inlineParentTemp)
|
|
607
|
+
obj[this.subColumn.col_field] = this.subColumn.col_multiple ? [cloneDeep(this.inlineParentTemp)] : cloneDeep(this.inlineParentTemp)
|
|
608
608
|
} else {
|
|
609
|
-
obj[this.subColumn.col_field] = cloneDeep(this.parentRow)
|
|
609
|
+
obj[this.subColumn.col_field] = this.subColumn.col_multiple ? [cloneDeep(this.parentRow)] : cloneDeep(this.parentRow)
|
|
610
610
|
}
|
|
611
611
|
const trigger_fields = getTriggerFields(this.subColumn.trigger_fields)
|
|
612
612
|
for (const { localKey, localVal } of trigger_fields) {
|