diff --git a/neutrino-proxy-admin/src/api/domain.js b/neutrino-proxy-admin/src/api/domain.js index 5c12b337..e3d9f8a0 100644 --- a/neutrino-proxy-admin/src/api/domain.js +++ b/neutrino-proxy-admin/src/api/domain.js @@ -7,6 +7,7 @@ export function domainNameBindInfo(query) { params: query }) } + export function fetchList(query) { return request({ url: '/domain/page', @@ -15,10 +16,9 @@ export function fetchList(query) { }) } - export function mappingModify(data) { return request({ - url: '/port-mapping/update', + url: '/domain/modify', method: 'post', data }) @@ -26,7 +26,7 @@ export function mappingModify(data) { export function deleteMapping(id) { return request({ - url: '/port-mapping/delete', + url: '/domain/delete', method: 'post', params: { id: id @@ -36,7 +36,7 @@ export function deleteMapping(id) { export function updateEnableStatus(id, enable) { return request({ - url: '/port-mapping/update/enable-status', + url: '/domain/update/enable-status', method: 'post', data: { id: id, @@ -47,7 +47,7 @@ export function updateEnableStatus(id, enable) { export function portMappingBindSecurityGroup(id, securityGroupId) { return request({ - url: '/port-mapping/bind/security-group', + url: '/domain/bind/security-group', method: 'post', data: { id: id, @@ -58,8 +58,15 @@ export function portMappingBindSecurityGroup(id, securityGroupId) { export function portMappingUnbindSecurityGroup(id) { return request({ - url: `/port-mapping/unbind/security-group?id=${id}`, + url: `/domain/unbind/security-group?id=${id}`, method: 'post' }) } +export function domainAvailable(query) { + return request({ + url: '/domain/available', + method: 'get', + params: query + }) +} diff --git a/neutrino-proxy-admin/src/components/Dropdown/DropdownTable.vue b/neutrino-proxy-admin/src/components/Dropdown/DropdownTable.vue index ee41288c..80c11027 100644 --- a/neutrino-proxy-admin/src/components/Dropdown/DropdownTable.vue +++ b/neutrino-proxy-admin/src/components/Dropdown/DropdownTable.vue @@ -54,6 +54,24 @@ prop: 'name', label: 'License', align: 'center' + }, + { + prop: 'isOnline', + label: 'isOnline', + align: 'center', + render: (h, params) => { + switch (params.row.isOnline) { + case 1: + return h('el-tag', { + props: {type: 'success'} + }, '在线') + + case 2: + return h('el-tag', {props:{type: 'danger'}}, '离线') + default: + return h('el-tag', {props:{type: 'danger'}}, '离线') + } + } } ], popVisible: false, diff --git a/neutrino-proxy-admin/src/views/proxy/domainMapping.vue b/neutrino-proxy-admin/src/views/proxy/domainMapping.vue index da61b0b5..dbc81c63 100644 --- a/neutrino-proxy-admin/src/views/proxy/domainMapping.vue +++ b/neutrino-proxy-admin/src/views/proxy/domainMapping.vue @@ -29,91 +29,67 @@ {{ scope.row.id }} - - + - - + - - - + - - - - - - + - - + - - - - - - - - - @@ -124,10 +100,10 @@ - - + + - @@ -136,10 +112,15 @@ - + - - + + + + + @@ -153,16 +134,12 @@ - - - @@ -180,12 +157,10 @@