diff --git a/src/api/api/common.ts b/src/api/api/common.ts index f1a2cf3..8fbc960 100644 --- a/src/api/api/common.ts +++ b/src/api/api/common.ts @@ -72,6 +72,16 @@ export async function getPageList(param, controller) { return result; } +// 获取日志分页 +export async function getLogPageList(param, controller) { + param = param || { FPageIndex: 1, FPageSize: 10 }; + let result = {}; + await http.post('/api/' + controller + '/GetPageListByParams', param).then((data) => { + result = data; + }); + return result; +} + export async function GetFormulaPageList(param, controller) { param = param || { FPageIndex: 1, FPageSize: 10 }; let result = {}; diff --git a/src/router/module/base-routes.ts b/src/router/module/base-routes.ts index 6719401..664453d 100644 --- a/src/router/module/base-routes.ts +++ b/src/router/module/base-routes.ts @@ -55,7 +55,42 @@ export default [ meta: { title: '我参与的', icon: "" }, } ] - }, { + }, + { + path: '/materia', + component: BaseLayout, + meta: { title: '物料路线' }, + children: [ + { + path: '/materia/all', + component: () => import('../../views/materia/all.vue'), + meta: { title: '物料记录', icon: "" }, + }, + { + path: '/materia/route', + component: () => import('../../views/materia/route.vue'), + meta: { title: '物料事项', icon: "" }, + } + ] + }, + { + path: '/half', + component: BaseLayout, + meta: { title: '试验号变更' }, + children: [ + { + path: '/half/half', + component: () => import('../../views/half/half.vue'), + meta: { title: '试验号路线', icon: "" }, + }, + { + path: '/half/route', + component: () => import('../../views/half/route.vue'), + meta: { title: '试验号事项', icon: "" }, + } + ] + }, + { path: '/order', component: BaseLayout, meta: { title: '清单管理' }, @@ -114,40 +149,6 @@ export default [ } ] }, - { - path: '/materia', - component: BaseLayout, - meta: { title: '物料路线' }, - children: [ - { - path: '/materia/all', - component: () => import('../../views/materia/all.vue'), - meta: { title: '物料记录', icon: "" }, - }, - { - path: '/materia/route', - component: () => import('../../views/materia/route.vue'), - meta: { title: '物料事项', icon: "" }, - } - ] - }, - { - path: '/half', - component: BaseLayout, - meta: { title: '半成品实验号变更' }, - children: [ - { - path: '/half/half', - component: () => import('../../views/half/half.vue'), - meta: { title: '配方变更', icon: "" }, - }, - { - path: '/half/route', - component: () => import('../../views/half/route.vue'), - meta: { title: '半成品变更事项', icon: "" }, - } - ] - }, { path: '/log/log', component: BaseLayout, diff --git a/src/views/log/log.vue b/src/views/log/log.vue index a740546..020ecf4 100644 --- a/src/views/log/log.vue +++ b/src/views/log/log.vue @@ -1,13 +1,12 @@