Commit 37fc3239 by lxyang

feat:部分接口调试完成

parent f9c21c59
......@@ -37,3 +37,33 @@ export function doctaskList(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 = [
children: [
{
path: 'index',
component: () => import('../views/index'),
component: () => import('@/views/index'),
name: '搜索文档',
meta: { title: '搜索文档', icon: 'search-new', noCache: true, affix: true }
}
......@@ -103,7 +103,7 @@ export const constantRoutes = [
children: [
{
path: 'type/data/:dictId(\\d+)',
component: () => import('../views/system/dict/data'),
component: () => import('@/views/system/dict/data'),
name: '字典数据',
meta: { title: '字典数据', icon: '' }
}
......@@ -119,7 +119,7 @@ export const constantRoutes = [
path: '/documentManagement',
children: [
{
component: () => import('../views/dataList/dashboard/index'),
component: () => import('@/views/dataList/dashboard/index'),
meta: {
icon: '',
title: '搜索文档详情'
......@@ -129,7 +129,7 @@ export const constantRoutes = [
hidden: true
},
{
component: () => import('../views/system/customer/index'),
component: () => import('@/views/system/customer/index'),
meta: {
icon: '',
title: '跟踪文档'
......@@ -141,7 +141,7 @@ export const constantRoutes = [
}
},
{
component: () => import('../views/dataList/product/index'),
component: () => import('@/views/dataList/product/index'),
meta: {
icon: '',
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