From 37b7bcd66c93bec7f011381ec526991ee2d6b7c6 Mon Sep 17 00:00:00 2001 From: WangHao <43278047@qq.com> Date: Sun, 4 Oct 2020 01:40:29 +0800 Subject: [PATCH] =?UTF-8?q?css=E6=A0=B7=E5=BC=8F=20=E5=88=86=E5=BC=80=20?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E4=B8=BAsecoped?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/src/api/bookmark/tag.js | 53 +++ ruoyi-ui/src/router/index.js | 7 + .../src/views/bookmark/bookmark/index.vue | 111 +++++- .../src/views/bookmark/common/ImportHtml.vue | 2 +- .../src/views/bookmark/common/UserTagAll.vue | 367 +++++++++++++++++- ruoyi-ui/src/views/bookmark/index/index.vue | 101 ++--- ruoyi-ui/src/views/bookmark/menu/index.vue | 2 +- 7 files changed, 541 insertions(+), 102 deletions(-) create mode 100644 ruoyi-ui/src/api/bookmark/tag.js diff --git a/ruoyi-ui/src/api/bookmark/tag.js b/ruoyi-ui/src/api/bookmark/tag.js new file mode 100644 index 000000000..d9069a425 --- /dev/null +++ b/ruoyi-ui/src/api/bookmark/tag.js @@ -0,0 +1,53 @@ +import request from '@/utils/request' + +// 查询书签_标签列表 +export function listTag(query) { + return request({ + url: '/system/tag/list', + method: 'get', + params: query + }) +} + +// 查询书签_标签详细 +export function getTag(id) { + return request({ + url: '/system/tag/' + id, + method: 'get' + }) +} + +// 新增书签_标签 +export function addTag(data) { + return request({ + url: '/system/tag', + method: 'post', + data: data + }) +} + +// 修改书签_标签 +export function updateTag(data) { + return request({ + url: '/system/tag', + method: 'put', + data: data + }) +} + +// 删除书签_标签 +export function delTag(id) { + return request({ + url: '/system/tag/' + id, + method: 'delete' + }) +} + +// 导出书签_标签 +export function exportTag(query) { + return request({ + url: '/system/tag/export', + method: 'get', + params: query + }) +} \ No newline at end of file diff --git a/ruoyi-ui/src/router/index.js b/ruoyi-ui/src/router/index.js index 3ad53238b..24175dc68 100644 --- a/ruoyi-ui/src/router/index.js +++ b/ruoyi-ui/src/router/index.js @@ -159,6 +159,13 @@ export const constantRoutes = [ meta:{ requireAuth: false,//加该字段,表示进入这个路由是需要登录的true }, + },{ + path: '/UserTagAll', + name: 'UserTagAll', + component: resolve => require(['../views/bookmark/common/UserTagAll.vue'], resolve), + meta:{ + requireAuth: true,//加该字段,表示进入这个路由是需要登录的true + }, },{ path: '/importHtml', name: 'importHtml', diff --git a/ruoyi-ui/src/views/bookmark/bookmark/index.vue b/ruoyi-ui/src/views/bookmark/bookmark/index.vue index 0d17f518f..59949a105 100644 --- a/ruoyi-ui/src/views/bookmark/bookmark/index.vue +++ b/ruoyi-ui/src/views/bookmark/bookmark/index.vue @@ -198,7 +198,7 @@ - - diff --git a/ruoyi-ui/src/views/bookmark/index/index.vue b/ruoyi-ui/src/views/bookmark/index/index.vue index 6276ed902..67217f128 100644 --- a/ruoyi-ui/src/views/bookmark/index/index.vue +++ b/ruoyi-ui/src/views/bookmark/index/index.vue @@ -3,7 +3,7 @@ -