|
|
@ -590,6 +590,7 @@ export default { |
|
|
|
if (this.load) { |
|
|
|
if (this.load) { |
|
|
|
await this.loadViews() |
|
|
|
await this.loadViews() |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
this.onViewIdChange(this.selectedViewIdLocal) |
|
|
|
}, |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
methods: { |
|
|
|
onViewIdChange(id) { |
|
|
|
onViewIdChange(id) { |
|
|
@ -631,7 +632,8 @@ export default { |
|
|
|
fieldsOrder: JSON.parse(mainView.query_params).fieldsOrder |
|
|
|
fieldsOrder: JSON.parse(mainView.query_params).fieldsOrder |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
} catch {} |
|
|
|
} catch { |
|
|
|
|
|
|
|
} |
|
|
|
this.createViewType = type |
|
|
|
this.createViewType = type |
|
|
|
this.showCreateView = true |
|
|
|
this.showCreateView = true |
|
|
|
}, |
|
|
|
}, |
|
|
@ -711,7 +713,9 @@ export default { |
|
|
|
const old_title = view.title |
|
|
|
const old_title = view.title |
|
|
|
|
|
|
|
|
|
|
|
this.$set(view, 'edit', false) |
|
|
|
this.$set(view, 'edit', false) |
|
|
|
if (view.title_temp === view.title) { return } |
|
|
|
if (view.title_temp === view.title) { |
|
|
|
|
|
|
|
return |
|
|
|
|
|
|
|
} |
|
|
|
if (this.viewsList.some((v, i) => i !== index && (v.alias || v.title) === view.title_temp)) { |
|
|
|
if (this.viewsList.some((v, i) => i !== index && (v.alias || v.title) === view.title_temp)) { |
|
|
|
this.$toast.info('View name should be unique').goAway(3000) |
|
|
|
this.$toast.info('View name should be unique').goAway(3000) |
|
|
|
return |
|
|
|
return |
|
|
|