diff --git a/fir_admin/src/api/domain.js b/fir_admin/src/api/domain.js new file mode 100644 index 0000000..d758ad0 --- /dev/null +++ b/fir_admin/src/api/domain.js @@ -0,0 +1,25 @@ +import request from '@/utils/request' + +export function getDomainInfos(query) { + return request({ + url: '/domain/info', + method: 'get', + params: query + }) +} + +export function updateDomainInfo(data) { + return request({ + url: '/domain/info', + method: 'put', + data + }) +} + +export function deleteDomain(data) { + return request({ + url: '/domain/info', + method: 'delete', + data + }) +} diff --git a/fir_admin/src/api/order.js b/fir_admin/src/api/order.js index c9c514d..bed20a6 100644 --- a/fir_admin/src/api/order.js +++ b/fir_admin/src/api/order.js @@ -15,4 +15,18 @@ export function updateOrderInfo(data) { data }) } +export function deleteOrderInfo(data) { + return request({ + url: '/order/info', + method: 'delete', + data + }) +} +export function createOrderInfo(data) { + return request({ + url: '/order/info', + method: 'post', + data + }) +} diff --git a/fir_admin/src/router/index.js b/fir_admin/src/router/index.js index 93f8162..22ae2c6 100644 --- a/fir_admin/src/router/index.js +++ b/fir_admin/src/router/index.js @@ -155,7 +155,8 @@ export const constantRoutes = [ hidden: true } ] - }, { + }, + { path: '/order', component: Layout, children: [ @@ -173,7 +174,27 @@ export const constantRoutes = [ hidden: true } ] - }, { + }, + { + path: '/domain', + component: Layout, + children: [ + { + path: 'list', + name: 'domain_info_list', + component: () => import('@/views/domain/list'), + meta: { title: '下载域名管理', icon: 'form' } + }, + { + path: 'edit/:id(\\d+)', + component: () => import('@/views/domain/Detail'), + name: 'domain_info_edit', + meta: { title: '编辑信息', noCache: true, activeMenu: '/domain/list' }, + hidden: true + } + ] + }, + { path: '/supersign', component: Layout, redirect: '/supersign/developer', @@ -215,11 +236,12 @@ export const constantRoutes = [ name: 'devices_info_list', component: () => import('@/views/supersign/devices/list'), meta: { title: '设备消耗', icon: 'form' } - }, + } ] } ] - }, { + }, + { path: '/settings', component: Layout, redirect: '/settings/email', @@ -264,7 +286,6 @@ export const constantRoutes = [ } ] }, - { path: '/nested', component: Layout, diff --git a/fir_admin/src/views/appinfos/list.vue b/fir_admin/src/views/appinfos/list.vue index 146816f..2465628 100644 --- a/fir_admin/src/views/appinfos/list.vue +++ b/fir_admin/src/views/appinfos/list.vue @@ -157,7 +157,7 @@ export default { return statusMap[status] }, appStatusNameFilter(row) { - return baseFilter(row.status,row.status_choices) + return baseFilter(row.status, row.status_choices) }, appStatusFilter(status) { const statusMap = { @@ -190,6 +190,7 @@ export default { }, created() { this.listQuery.user_id = this.$route.params && this.$route.params.user_id + this.listQuery.id = this.$route.params && this.$route.params.app_id this.fetchData() }, methods: { diff --git a/fir_admin/src/views/authentication/list.vue b/fir_admin/src/views/authentication/list.vue index 0cb0df0..98b7e40 100644 --- a/fir_admin/src/views/authentication/list.vue +++ b/fir_admin/src/views/authentication/list.vue @@ -86,9 +86,7 @@ 查看编辑 - - 删除 - + diff --git a/fir_admin/src/views/domain/Detail.vue b/fir_admin/src/views/domain/Detail.vue new file mode 100644 index 0000000..6d20c7d --- /dev/null +++ b/fir_admin/src/views/domain/Detail.vue @@ -0,0 +1,145 @@ + + + + + diff --git a/fir_admin/src/views/domain/list.vue b/fir_admin/src/views/domain/list.vue new file mode 100644 index 0000000..961763d --- /dev/null +++ b/fir_admin/src/views/domain/list.vue @@ -0,0 +1,193 @@ + + + diff --git a/fir_admin/src/views/order/list.vue b/fir_admin/src/views/order/list.vue index 4bd7748..9663ca3 100644 --- a/fir_admin/src/views/order/list.vue +++ b/fir_admin/src/views/order/list.vue @@ -105,7 +105,7 @@ 查看编辑 - + 删除 @@ -117,7 +117,7 @@