From 780bb30f814110de029afbaa12ca2d3ac903c143 Mon Sep 17 00:00:00 2001 From: ruibaby Date: Sat, 25 May 2019 14:09:00 +0800 Subject: [PATCH] Perfect sheet page. --- src/api/sheet.js | 7 ++++++ src/views/sheet/SheetList.vue | 47 ++++++++++++++++++----------------- 2 files changed, 31 insertions(+), 23 deletions(-) diff --git a/src/api/sheet.js b/src/api/sheet.js index 2f436cde8..4f815e2e3 100644 --- a/src/api/sheet.js +++ b/src/api/sheet.js @@ -11,6 +11,13 @@ sheetApi.list = () => { }) } +sheetApi.listInternal = () => { + return service({ + url: `${baseUrl}/internal`, + method: 'get' + }) +} + sheetApi.get = sheetId => { return service({ url: `${baseUrl}/${sheetId}`, diff --git a/src/views/sheet/SheetList.vue b/src/views/sheet/SheetList.vue index 68bd477e4..af3cbe690 100644 --- a/src/views/sheet/SheetList.vue +++ b/src/views/sheet/SheetList.vue @@ -35,6 +35,20 @@ :pagination="false" :rowKey="page => page.id" > + { + this.internalSheets = response.data.data + }) + }, loadOptions() { optionApi.listAll(this.keys).then(response => { this.options = response.data.data