From f48498e89e9aaaf96645d969c7bfda073de7c23d Mon Sep 17 00:00:00 2001 From: smallchill Date: Mon, 19 Aug 2019 22:32:04 +0800 Subject: [PATCH] :tada: 2.4.1.RELEASE --- README.md | 2 +- package.json | 2 +- src/App.vue | 2 +- src/api/tool/code.js | 13 +- src/api/tool/datasource.js | 50 +++++++ src/views/tool/code.vue | 91 +++++++++++- src/views/tool/datasource.vue | 262 ++++++++++++++++++++++++++++++++++ 7 files changed, 415 insertions(+), 7 deletions(-) create mode 100644 src/api/tool/datasource.js create mode 100644 src/views/tool/datasource.vue diff --git a/README.md b/README.md index be6132b..6de5d06 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@

Build Status Coverage Status - Downloads + Downloads

## SpringBlade微服务开发平台 diff --git a/package.json b/package.json index 3172066..9126324 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "saber-admin", - "version": "2.4.0", + "version": "2.4.1", "private": true, "scripts": { "serve": "vue-cli-service serve", diff --git a/src/App.vue b/src/App.vue index 0a9d543..2137dfc 100644 --- a/src/App.vue +++ b/src/App.vue @@ -21,7 +21,7 @@ export default { '

若要商用强烈推荐高度定制的商业化框架,具体授权信息请访问如下地址。️

' + '
' + '

BladeX 授权地址:点击授权

' + - '

AvueX 授权地址:点击授权

', + '

AvueX 授权地址:点击授权

', duration: 20000, type: "success" }); diff --git a/src/api/tool/code.js b/src/api/tool/code.js index 5caf58d..4c16645 100644 --- a/src/api/tool/code.js +++ b/src/api/tool/code.js @@ -1,10 +1,11 @@ import request from '@/router/axios'; -export const getList = (current, size) => { +export const getList = (current, size, params) => { return request({ url: '/api/blade-develop/code/list', method: 'get', params: { + ...params, current, size } @@ -47,6 +48,16 @@ export const update = (row) => { }) } +export const copy = (id) => { + return request({ + url: '/api/blade-develop/code/copy', + method: 'post', + params: { + id, + } + }) +} + export const getCode = (id) => { return request({ url: '/api/blade-develop/code/detail', diff --git a/src/api/tool/datasource.js b/src/api/tool/datasource.js new file mode 100644 index 0000000..7e7e40d --- /dev/null +++ b/src/api/tool/datasource.js @@ -0,0 +1,50 @@ +import request from '@/router/axios'; + +export const getList = (current, size, params) => { + return request({ + url: '/api/blade-develop/datasource/list', + method: 'get', + params: { + ...params, + current, + size, + } + }) +} + +export const getDetail = (id) => { + return request({ + url: '/api/blade-develop/datasource/detail', + method: 'get', + params: { + id + } + }) +} + +export const remove = (ids) => { + return request({ + url: '/api/blade-develop/datasource/remove', + method: 'post', + params: { + ids, + } + }) +} + +export const add = (row) => { + return request({ + url: '/api/blade-develop/datasource/submit', + method: 'post', + data: row + }) +} + +export const update = (row) => { + return request({ + url: '/api/blade-develop/datasource/submit', + method: 'post', + data: row + }) +} + diff --git a/src/views/tool/code.vue b/src/views/tool/code.vue index f7166ba..e7ef023 100644 --- a/src/views/tool/code.vue +++ b/src/views/tool/code.vue @@ -1,6 +1,7 @@ + diff --git a/src/views/tool/datasource.vue b/src/views/tool/datasource.vue new file mode 100644 index 0000000..68bb65a --- /dev/null +++ b/src/views/tool/datasource.vue @@ -0,0 +1,262 @@ + + + + +