Commit 37fc3239 by lxyang

feat:部分接口调试完成

parent f9c21c59
...@@ -37,3 +37,33 @@ export function doctaskList(data) { ...@@ -37,3 +37,33 @@ export function doctaskList(data) {
params: data params: data
}) })
} }
// 提交表单
export function doctaskUpsert(data) {
return request({
url: '/api/doc/doctask/upsert',
method: 'post',
data
})
}
// 选择文档
export function doctaskDocuments() {
return request({
url: '/api/doc/doctask/documents',
method: 'get'
})
}
// 订阅文档
export function doctaskSubscription({id, sub}) {
return request({
url: '/api/doc/doctask/subscription/' + id + '?sub=' + sub,
method: 'get'
})
}
// 删除文档
export function doctaskDelete(id) {
return request({
url: '/api/doc/doctask/delete/' + id,
method: 'get'
})
}
\ No newline at end of file
...@@ -74,7 +74,7 @@ export const constantRoutes = [ ...@@ -74,7 +74,7 @@ export const constantRoutes = [
children: [ children: [
{ {
path: 'index', path: 'index',
component: () => import('../views/index'), component: () => import('@/views/index'),
name: '搜索文档', name: '搜索文档',
meta: { title: '搜索文档', icon: 'search-new', noCache: true, affix: true } meta: { title: '搜索文档', icon: 'search-new', noCache: true, affix: true }
} }
...@@ -103,7 +103,7 @@ export const constantRoutes = [ ...@@ -103,7 +103,7 @@ export const constantRoutes = [
children: [ children: [
{ {
path: 'type/data/:dictId(\\d+)', path: 'type/data/:dictId(\\d+)',
component: () => import('../views/system/dict/data'), component: () => import('@/views/system/dict/data'),
name: '字典数据', name: '字典数据',
meta: { title: '字典数据', icon: '' } meta: { title: '字典数据', icon: '' }
} }
...@@ -119,7 +119,7 @@ export const constantRoutes = [ ...@@ -119,7 +119,7 @@ export const constantRoutes = [
path: '/documentManagement', path: '/documentManagement',
children: [ children: [
{ {
component: () => import('../views/dataList/dashboard/index'), component: () => import('@/views/dataList/dashboard/index'),
meta: { meta: {
icon: '', icon: '',
title: '搜索文档详情' title: '搜索文档详情'
...@@ -129,7 +129,7 @@ export const constantRoutes = [ ...@@ -129,7 +129,7 @@ export const constantRoutes = [
hidden: true hidden: true
}, },
{ {
component: () => import('../views/system/customer/index'), component: () => import('@/views/system/customer/index'),
meta: { meta: {
icon: '', icon: '',
title: '跟踪文档' title: '跟踪文档'
...@@ -141,7 +141,7 @@ export const constantRoutes = [ ...@@ -141,7 +141,7 @@ export const constantRoutes = [
} }
}, },
{ {
component: () => import('../views/dataList/product/index'), component: () => import('@/views/dataList/product/index'),
meta: { meta: {
icon: '', icon: '',
title: '跟踪文档详情' title: '跟踪文档详情'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment