diff --git a/src/api/fault/faultcode.js b/src/api/fault/faultcode.js new file mode 100644 index 0000000..faadfc2 --- /dev/null +++ b/src/api/fault/faultcode.js @@ -0,0 +1,10 @@ +import request from '@/utils/request' + + +export function faultList(data) { + return request({ + url: 'fault/sysFault/FaultList', + method: 'post', + data + }) +} diff --git a/src/api/fault/faultlog.js b/src/api/fault/faultlog.js new file mode 100644 index 0000000..520e9af --- /dev/null +++ b/src/api/fault/faultlog.js @@ -0,0 +1,34 @@ +import request from '@/utils/request' + + + +export function FaultLogList(data) { + return request({ + url: '/fault/faultLog/FaultLogList', + method: 'post', + data + }) +} + +export function insertFaultLog(data) { + return request({ + url: '/fault/faultLog/insertFaultLog', + method: 'post', + data + }) +} + +export function updateFaultLog(data) { + return request({ + url: '/fault/faultLog/updateFaultLog', + method: 'post', + data + }) +} + +export function deleteFaultLog(carFaultCodeId) { + return request({ + url: '/fault/faultLog/deleteFaultLog/' + carFaultCodeId, + method: 'post', + }) +} diff --git a/src/router/index.js b/src/router/index.js index 2afac71..711b5d8 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -73,6 +73,30 @@ export const constantRoutes = [ } ] }, + { + path: '/faultcode', + component: Layout, + children: [ + { + path: 'index', + name: 'Form', + component: () => import('@/views/faultcode/index'), + meta: { title: '故障码管理', icon: 'form' } + } + ] + }, + { + path: '/faultlog', + component: Layout, + children: [ + { + path: 'index', + name: 'Form', + component: () => import('@/views/faultlog/index'), + meta: { title: '故障日志', icon: 'form' } + } + ] + }, { path: '/user', component: Layout, diff --git a/src/views/faultcode/index.vue b/src/views/faultcode/index.vue new file mode 100644 index 0000000..4a6b8a2 --- /dev/null +++ b/src/views/faultcode/index.vue @@ -0,0 +1,152 @@ + + + + diff --git a/src/views/faultlog/index.vue b/src/views/faultlog/index.vue new file mode 100644 index 0000000..f3a019f --- /dev/null +++ b/src/views/faultlog/index.vue @@ -0,0 +1,191 @@ + + + +