diff --git a/client/.env.development b/client/.env.development index b6a98cf..db28ec5 100644 --- a/client/.env.development +++ b/client/.env.development @@ -4,9 +4,9 @@ ENV = 'development' # base api #VUE_APP_BASE_API = 'http://10.0.11.127:8000/api' #VUE_APP_BASE_API = 'http://127.0.0.1:8000/api' -VUE_APP_BASE_API = 'https://testsearch.ctc.ac.cn/api' - -#VUE_APP_BASE_API = 'http://47.95.0.242:9101' +#VUE_APP_BASE_API = 'https://testsearch.ctc.ac.cn/api' + +VUE_APP_BASE_API = 'http://47.95.0.242:9101/api' # vue-cli uses the VUE_CLI_BABEL_TRANSPILE_MODULES environment variable, diff --git a/client/src/api/inspection.js b/client/src/api/inspection.js index e85a306..cc5bfb4 100644 --- a/client/src/api/inspection.js +++ b/client/src/api/inspection.js @@ -49,3 +49,31 @@ export function deletes(data) data }) } +export function createDocument(data) { + return request({ + url: '/quality/document/', + method: 'post', + data + }) +} + +export function getDocumentList(query) { + return request({ + url: '/quality/document/', + method: 'get', + params: query + }) +} +export function deleteDocument(id) { + return request({ + url: `/quality/document/${id}/`, + method: 'delete' + }) +} +export function updateDocument(id, data) { + return request({ + url: `/quality/document/${id}/`, + method: 'put', + data + }) +} \ No newline at end of file diff --git a/client/src/router/index.js b/client/src/router/index.js index ea15064..b9d7fd6 100644 --- a/client/src/router/index.js +++ b/client/src/router/index.js @@ -194,7 +194,12 @@ export const asyncRoutes = [ meta: { title: '任务执行', perms: ['my_inspecttask'] }, hidden: true }, - + { + path: 'InspectDoc', + name: 'InspectDoc', + component: () => import('@/views/qualityinspect/inspectdoc.vue'), + meta: { title: '质量文档', perms: ['inspectdoc'] } + }, ] }, { diff --git a/client/src/views/qualityinspect/inspectdoc.vue b/client/src/views/qualityinspect/inspectdoc.vue new file mode 100644 index 0000000..837440c --- /dev/null +++ b/client/src/views/qualityinspect/inspectdoc.vue @@ -0,0 +1,274 @@ + +