From 2feda8800c19af5d56ce2e50e6c01aee25560166 Mon Sep 17 00:00:00 2001 From: youngS Date: Thu, 23 Sep 2021 16:18:39 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AE=A1=E7=90=86=E5=90=8E=E5=8F=B0=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E5=9F=9F=E5=90=8D=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fir_admin/src/api/domain.js | 25 +++ fir_admin/src/api/order.js | 14 ++ fir_admin/src/router/index.js | 31 ++- fir_admin/src/views/appinfos/list.vue | 3 +- fir_admin/src/views/authentication/list.vue | 4 +- fir_admin/src/views/domain/Detail.vue | 145 ++++++++++++++ fir_admin/src/views/domain/list.vue | 193 +++++++++++++++++++ fir_admin/src/views/order/list.vue | 18 +- fir_admin/src/views/storage/list.vue | 4 +- fir_admin/src/views/userinfos/UserDetail.vue | 34 +++- fir_admin/src/views/userinfos/list.vue | 8 +- fir_ser/admin/urls.py | 4 +- fir_ser/admin/views/domain.py | 83 ++++++++ fir_ser/admin/views/order.py | 52 +++-- fir_ser/api/utils/baseutils.py | 4 + fir_ser/api/utils/serializer.py | 12 ++ fir_ser/api/utils/storage/caches.py | 1 - 17 files changed, 593 insertions(+), 42 deletions(-) create mode 100644 fir_admin/src/api/domain.js create mode 100644 fir_admin/src/views/domain/Detail.vue create mode 100644 fir_admin/src/views/domain/list.vue create mode 100644 fir_ser/admin/views/domain.py 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 @@