From 231c90ad9b6bcbb1a3f9fc40251921ee6568297a Mon Sep 17 00:00:00 2001 From: sakuya <81883387@qq.com> Date: Fri, 11 Jun 2021 23:56:24 +0800 Subject: [PATCH] ADD TableSelect --- src/api/index.js | 7 ++ src/components/scTableSelect/index.vue | 104 +++++++++++++++++-------- src/main.js | 2 + src/views/vab/tableselect.vue | 42 ++++++---- 4 files changed, 106 insertions(+), 49 deletions(-) diff --git a/src/api/index.js b/src/api/index.js index 3adc09c3..7f375899 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -119,6 +119,13 @@ const api = { } }, demo: { + page: { + url: `${config.MOCK_URL}/page`, + name: "分页列表", + get: async function(params){ + return await http.get(this.url, params); + } + }, upload: { url: `${config.MOCK_URL}/upload`, name: "文件上传接口", diff --git a/src/components/scTableSelect/index.vue b/src/components/scTableSelect/index.vue index b8c07fdf..e39cfa89 100644 --- a/src/components/scTableSelect/index.vue +++ b/src/components/scTableSelect/index.vue @@ -1,5 +1,5 @@