|
|
@ -104,6 +104,8 @@ |
|
|
|
:fields-order.sync="fieldsOrder" |
|
|
|
:fields-order.sync="fieldsOrder" |
|
|
|
:sql-ui="sqlUi" |
|
|
|
:sql-ui="sqlUi" |
|
|
|
:show-system-fields.sync="showSystemFields" |
|
|
|
:show-system-fields.sync="showSystemFields" |
|
|
|
|
|
|
|
:cover-image-field.sync="coverImageField" |
|
|
|
|
|
|
|
:is-gallery="isGallery" |
|
|
|
/> |
|
|
|
/> |
|
|
|
|
|
|
|
|
|
|
|
<sort-list |
|
|
|
<sort-list |
|
|
@ -217,7 +219,7 @@ |
|
|
|
@loadMeta="loadMeta" |
|
|
|
@loadMeta="loadMeta" |
|
|
|
/> |
|
|
|
/> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
<template v-else-if="selectedView && selectedView.show_as === 'gallery' "> |
|
|
|
<template v-else-if="isGallery "> |
|
|
|
<gallery-view |
|
|
|
<gallery-view |
|
|
|
:nodes="nodes" |
|
|
|
:nodes="nodes" |
|
|
|
:table="table" |
|
|
|
:table="table" |
|
|
@ -225,7 +227,9 @@ |
|
|
|
:available-columns="availableColumns" |
|
|
|
:available-columns="availableColumns" |
|
|
|
:meta="meta" |
|
|
|
:meta="meta" |
|
|
|
:data="data" |
|
|
|
:data="data" |
|
|
|
|
|
|
|
:sql-ui="sqlUi" |
|
|
|
:primary-value-column="primaryValueColumn" |
|
|
|
:primary-value-column="primaryValueColumn" |
|
|
|
|
|
|
|
:cover-image-field="coverImageField" |
|
|
|
@expandForm="({rowIndex,rowMeta}) => expandRow(rowIndex,rowMeta)" |
|
|
|
@expandForm="({rowIndex,rowMeta}) => expandRow(rowIndex,rowMeta)" |
|
|
|
/> |
|
|
|
/> |
|
|
|
</template> |
|
|
|
</template> |
|
|
@ -237,6 +241,7 @@ |
|
|
|
:available-columns="availableColumns" |
|
|
|
:available-columns="availableColumns" |
|
|
|
:meta="meta" |
|
|
|
:meta="meta" |
|
|
|
:data="data" |
|
|
|
:data="data" |
|
|
|
|
|
|
|
:sql-ui="sqlUi" |
|
|
|
:primary-value-column="primaryValueColumn" |
|
|
|
:primary-value-column="primaryValueColumn" |
|
|
|
@expandForm="({rowIndex,rowMeta}) => expandRow(rowIndex,rowMeta)" |
|
|
|
@expandForm="({rowIndex,rowMeta}) => expandRow(rowIndex,rowMeta)" |
|
|
|
/> |
|
|
|
/> |
|
|
@ -272,6 +277,7 @@ |
|
|
|
:table="table" |
|
|
|
:table="table" |
|
|
|
:meta="meta" |
|
|
|
:meta="meta" |
|
|
|
:selected-view-id.sync="selectedViewId" |
|
|
|
:selected-view-id.sync="selectedViewId" |
|
|
|
|
|
|
|
:cover-image-field.sync="coverImageField" |
|
|
|
:selected-view.sync="selectedView" |
|
|
|
:selected-view.sync="selectedView" |
|
|
|
:primary-value-column="primaryValueColumn" |
|
|
|
:primary-value-column="primaryValueColumn" |
|
|
|
:concatenated-x-where="concatenatedXWhere" |
|
|
|
:concatenated-x-where="concatenatedXWhere" |
|
|
@ -285,6 +291,7 @@ |
|
|
|
:fields-order.sync="fieldsOrder" |
|
|
|
:fields-order.sync="fieldsOrder" |
|
|
|
:view-status.sync="viewStatus" |
|
|
|
:view-status.sync="viewStatus" |
|
|
|
:columns-width.sync="columnsWidth" |
|
|
|
:columns-width.sync="columnsWidth" |
|
|
|
|
|
|
|
:show-system-fields.sync="showSystemFields" |
|
|
|
@mapFieldsAndShowFields="mapFieldsAndShowFields" |
|
|
|
@mapFieldsAndShowFields="mapFieldsAndShowFields" |
|
|
|
@loadTableData="loadTableData" |
|
|
|
@loadTableData="loadTableData" |
|
|
|
@showAdditionalFeatOverlay="showAdditionalFeatOverlay($event)" |
|
|
|
@showAdditionalFeatOverlay="showAdditionalFeatOverlay($event)" |
|
|
@ -519,6 +526,7 @@ export default { |
|
|
|
type: null |
|
|
|
type: null |
|
|
|
}, |
|
|
|
}, |
|
|
|
fieldsOrder: [], |
|
|
|
fieldsOrder: [], |
|
|
|
|
|
|
|
coverImageField: null, |
|
|
|
showSystemFields: false, |
|
|
|
showSystemFields: false, |
|
|
|
showAdvanceOptions: false, |
|
|
|
showAdvanceOptions: false, |
|
|
|
loadViews: false, |
|
|
|
loadViews: false, |
|
|
@ -659,7 +667,12 @@ export default { |
|
|
|
showFields: this.showFields, |
|
|
|
showFields: this.showFields, |
|
|
|
fieldsOrder: this.fieldsOrder, |
|
|
|
fieldsOrder: this.fieldsOrder, |
|
|
|
viewStatus: this.viewStatus, |
|
|
|
viewStatus: this.viewStatus, |
|
|
|
columnsWidth: this.columnsWidth |
|
|
|
columnsWidth: this.columnsWidth, |
|
|
|
|
|
|
|
showSystemFields: this.showSystemFields |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (this.isGallery) { |
|
|
|
|
|
|
|
queryParams.coverImageField = this.coverImageField |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
this.$set(this.selectedView, 'query_params', JSON.stringify(queryParams)) |
|
|
|
this.$set(this.selectedView, 'query_params', JSON.stringify(queryParams)) |
|
|
@ -978,6 +991,9 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
computed: { |
|
|
|
computed: { |
|
|
|
|
|
|
|
isGallery() { |
|
|
|
|
|
|
|
return this.selectedView && this.selectedView.show_as === 'gallery' |
|
|
|
|
|
|
|
}, |
|
|
|
meta() { |
|
|
|
meta() { |
|
|
|
return this.$store.state.meta.metas[this.table] |
|
|
|
return this.$store.state.meta.metas[this.table] |
|
|
|
}, |
|
|
|
}, |
|
|
|