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