diff --git a/fir_admin/src/api/order.js b/fir_admin/src/api/order.js new file mode 100644 index 0000000..c9c514d --- /dev/null +++ b/fir_admin/src/api/order.js @@ -0,0 +1,18 @@ +import request from '@/utils/request' + +export function getOrderInfo(query) { + return request({ + url: '/order/info', + method: 'get', + params: query + }) +} + +export function updateOrderInfo(data) { + return request({ + url: '/order/info', + method: 'put', + data + }) +} + diff --git a/fir_admin/src/router/index.js b/fir_admin/src/router/index.js index ef618c0..5982724 100644 --- a/fir_admin/src/router/index.js +++ b/fir_admin/src/router/index.js @@ -172,10 +172,17 @@ export const constantRoutes = [ component: Layout, children: [ { - path: 'index', - name: 'index', - component: () => import('@/views/form/index'), + path: 'list', + name: 'order_info_list', + component: () => import('@/views/order/list'), meta: { title: '订单管理', icon: 'form' } + }, + { + path: 'edit/:id(\\d+)', + component: () => import('@/views/order/Detail'), + name: 'order_info_edit', + meta: { title: '编辑信息', noCache: true, activeMenu: '/order/list' }, + hidden: true } ] }, diff --git a/fir_admin/src/utils/index.js b/fir_admin/src/utils/index.js index 4830c04..9248de4 100644 --- a/fir_admin/src/utils/index.js +++ b/fir_admin/src/utils/index.js @@ -115,3 +115,11 @@ export function param2Obj(url) { }) return obj } + +export function baseFilter(id, choices) { + for (const v of choices) { + if (v.id === id) { + return v.name + } + } +} diff --git a/fir_admin/src/views/appinfos/AppReleaseList.vue b/fir_admin/src/views/appinfos/AppReleaseList.vue index 083eb03..fd2b3cb 100644 --- a/fir_admin/src/views/appinfos/AppReleaseList.vue +++ b/fir_admin/src/views/appinfos/AppReleaseList.vue @@ -84,6 +84,7 @@ + + diff --git a/fir_admin/src/views/order/list.vue b/fir_admin/src/views/order/list.vue new file mode 100644 index 0000000..7ce28c8 --- /dev/null +++ b/fir_admin/src/views/order/list.vue @@ -0,0 +1,232 @@ + + + diff --git a/fir_admin/src/views/userinfos/list.vue b/fir_admin/src/views/userinfos/list.vue index ad9a9dc..e9063af 100644 --- a/fir_admin/src/views/userinfos/list.vue +++ b/fir_admin/src/views/userinfos/list.vue @@ -108,6 +108,7 @@