|
|
|
@ -54,7 +54,7 @@ export default {
|
|
|
|
|
this.options = this.copyOptions(this.column.colOptions?.options) || []; |
|
|
|
|
// Support for older options |
|
|
|
|
for (const op of this.options.filter(el => el.order === null)) { |
|
|
|
|
op.title = op.title.replace(/^'/, '').replace(/'$/, '') |
|
|
|
|
op.title = op.title.replace(/^'/, '').replace(/'$/, ''); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
@ -88,9 +88,7 @@ export default {
|
|
|
|
|
}; |
|
|
|
|
await this.$api.dbTableColumn.create(this.meta.id, selectCol); |
|
|
|
|
if (this.column.colOptions) { |
|
|
|
|
this.$store |
|
|
|
|
.dispatch('meta/ActLoadMeta', { force: true, id: this.column.fk_model_id }) |
|
|
|
|
.then(() => {}); |
|
|
|
|
this.$store.dispatch('meta/ActLoadMeta', { force: true, id: this.column.fk_model_id }).then(() => {}); |
|
|
|
|
} |
|
|
|
|
this.$toast.success('Select column saved successfully').goAway(3000); |
|
|
|
|
return true; |
|
|
|
@ -113,9 +111,7 @@ export default {
|
|
|
|
|
}; |
|
|
|
|
await this.$api.dbTableColumn.update(this.column.id, selectCol); |
|
|
|
|
if (this.column.colOptions) { |
|
|
|
|
this.$store |
|
|
|
|
.dispatch('meta/ActLoadMeta', { force: true, id: this.column.fk_model_id }) |
|
|
|
|
.then(() => {}); |
|
|
|
|
this.$store.dispatch('meta/ActLoadMeta', { force: true, id: this.column.fk_model_id }).then(() => {}); |
|
|
|
|
} |
|
|
|
|
return true; |
|
|
|
|
} |
|
|
|
|