From dc3cd2e8a9062e73d1d911383a62cfdcbfddf076 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E5=8F=AC=E9=9B=AA?= <1637048769@qq.com> Date: Fri, 27 Nov 2020 16:00:47 +0800 Subject: [PATCH] topic --- src/api/topicInfo/info.js | 43 ++++ src/api/topicInfo/management.js | 53 +++++ src/views/topic/infoManagement/index.vue | 290 +++++++++++++++++++++++ 3 files changed, 386 insertions(+) create mode 100644 src/api/topicInfo/info.js create mode 100644 src/api/topicInfo/management.js create mode 100644 src/views/topic/infoManagement/index.vue diff --git a/src/api/topicInfo/info.js b/src/api/topicInfo/info.js new file mode 100644 index 0000000..b7b01ba --- /dev/null +++ b/src/api/topicInfo/info.js @@ -0,0 +1,43 @@ +import request from '@/utils/request' + +// 查询列表 +export function list(params) { + return request({ + url: '/system/topic/list', + method: 'get', + params + }) +} + +// 查询详细 +export function info(topicId) { + return request({ + url: '/system/topic/' + topicId, + method: 'get' + }) + } + +// 新增更新 +export function add(data) { + return request({ + url: '/system/topic', + method: 'post', + data + }) +} + +// 删除 +export function del(ids) { + return request({ + url: '/system/topic/' + ids, + method: 'delete' + }) +} + +// 下拉 +export function select() { + return request({ + url: '/system/topic/select', + method: 'get', + }) +} \ No newline at end of file diff --git a/src/api/topicInfo/management.js b/src/api/topicInfo/management.js new file mode 100644 index 0000000..70aec47 --- /dev/null +++ b/src/api/topicInfo/management.js @@ -0,0 +1,53 @@ +import request from '@/utils/request' + +// 查询列表 +export function ProList(params) { + return request({ + url: '/system/topic/project/list', + method: 'get', + params + }) +} + +// 查询详细 +export function ProInfo(id) { + return request({ + url: '/system/topic/project/' + id, + method: 'get' + }) + } + +// 新增 +export function save(data) { + return request({ + url: '/system/topic/project/save', + method: 'post', + data + }) +} + +// 批量新增 +export function saves(data) { + return request({ + url: '/system/topic/project/saves', + method: 'post', + data + }) +} + +// 删除 +export function ProDel(ids) { + return request({ + url: '/system/topic/project' + ids, + method: 'delete' + }) +} + +// 下拉 +export function ProSelect(topicId) { + return request({ + url: '/system/topic/project/select', + method: 'get', + params: {topicId} + }) +} \ No newline at end of file diff --git a/src/views/topic/infoManagement/index.vue b/src/views/topic/infoManagement/index.vue new file mode 100644 index 0000000..fbec541 --- /dev/null +++ b/src/views/topic/infoManagement/index.vue @@ -0,0 +1,290 @@ + + + + + \ No newline at end of file