diff --git a/src/views/sheet/independent/JournalList.vue b/src/views/sheet/independent/JournalList.vue index 75867df0..651a435c 100644 --- a/src/views/sheet/independent/JournalList.vue +++ b/src/views/sheet/independent/JournalList.vue @@ -229,7 +229,7 @@ export default { }, optionModal: { visible: false, - options: [] + options: {} } } }, @@ -282,7 +282,7 @@ export default { } }, handleListOptions() { - apiClient.option.list().then(response => { + apiClient.option.listAsMapViewByKeys(['journals_page_size', 'journals_title']).then(response => { this.optionModal.options = response.data }) }, @@ -391,7 +391,7 @@ export default { handleSaveOptions() { apiClient.option - .save(this.optionModal.options) + .saveMapView(this.optionModal.options) .then(() => { this.$message.success('保存成功!') this.optionModal.visible = false diff --git a/src/views/sheet/independent/LinkList.vue b/src/views/sheet/independent/LinkList.vue index b14bc945..a8a3af83 100644 --- a/src/views/sheet/independent/LinkList.vue +++ b/src/views/sheet/independent/LinkList.vue @@ -143,7 +143,7 @@ export default { }, optionsModal: { visible: false, - data: [] + data: {} }, teams: [], linkTeam: [] @@ -265,7 +265,7 @@ export default { }) }, handleListOptions() { - apiClient.option.list().then(response => { + apiClient.option.listAsMapViewByKeys(['links_title']).then(response => { this.optionsModal.data = response.data }) }, @@ -367,7 +367,7 @@ export default { }, handleSaveOptions() { apiClient.option - .save(this.optionsModal.data) + .saveMapView(this.optionsModal.data) .then(() => { this.$message.success('保存成功!') this.optionsModal.visible = false diff --git a/src/views/sheet/independent/PhotoList.vue b/src/views/sheet/independent/PhotoList.vue index 0cfda617..874f5242 100644 --- a/src/views/sheet/independent/PhotoList.vue +++ b/src/views/sheet/independent/PhotoList.vue @@ -225,7 +225,7 @@ export default { formVisible: false, teams: [], - options: [], + options: {}, optionFormVisible: false } }, @@ -438,14 +438,14 @@ export default { }, handleListOptions() { - apiClient.option.list().then(response => { + apiClient.option.listAsMapViewByKeys(['photos_page_size', 'photos_title']).then(response => { this.options = response.data }) }, handleSaveOptions() { apiClient.option - .save(this.options) + .saveMapView(this.options) .then(() => { this.$message.success('保存成功!') this.optionFormVisible = false