From 70756ef148f41163c37e91f3f004e4af5ed89939 Mon Sep 17 00:00:00 2001 From: smallchill Date: Thu, 16 Jul 2020 10:04:43 +0800 Subject: [PATCH] =?UTF-8?q?:heavy=5Fplus=5Fsign:=20=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E5=AF=B9=E8=B1=A1=E5=AD=98=E5=82=A8=E9=99=84=E4=BB=B6=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/resource/attach.js | 50 ++++++ src/page/index/tags.vue | 1 + src/views/resource/attach.vue | 288 ++++++++++++++++++++++++++++++++++ 3 files changed, 339 insertions(+) create mode 100644 src/api/resource/attach.js create mode 100644 src/views/resource/attach.vue diff --git a/src/api/resource/attach.js b/src/api/resource/attach.js new file mode 100644 index 0000000..e90ccaf --- /dev/null +++ b/src/api/resource/attach.js @@ -0,0 +1,50 @@ +import request from '@/router/axios'; + +export const getList = (current, size, params) => { + return request({ + url: '/api/blade-resource/attach/list', + method: 'get', + params: { + ...params, + current, + size, + } + }) +} + +export const getDetail = (id) => { + return request({ + url: '/api/blade-resource/attach/detail', + method: 'get', + params: { + id + } + }) +} + +export const remove = (ids) => { + return request({ + url: '/api/blade-resource/attach/remove', + method: 'post', + params: { + ids, + } + }) +} + +export const add = (row) => { + return request({ + url: '/api/blade-resource/attach/submit', + method: 'post', + data: row + }) +} + +export const update = (row) => { + return request({ + url: '/api/blade-resource/attach/submit', + method: 'post', + data: row + }) +} + diff --git a/src/page/index/tags.vue b/src/page/index/tags.vue index 68723a4..ab14485 100644 --- a/src/page/index/tags.vue +++ b/src/page/index/tags.vue @@ -174,6 +174,7 @@ type: "warning" }).then(() => { clearCache().then(() => { + this.contextmenuFlag = false; this.$message.success('清除完毕'); }) }); diff --git a/src/views/resource/attach.vue b/src/views/resource/attach.vue new file mode 100644 index 0000000..bccd99d --- /dev/null +++ b/src/views/resource/attach.vue @@ -0,0 +1,288 @@ + + + + +