服务器管理下架功能

This commit is contained in:
康冉冉
2025-12-29 18:25:13 +08:00
parent 315a1a5e55
commit 802598e3f5
5 changed files with 22 additions and 15 deletions
+8
View File
@@ -767,6 +767,14 @@ export function removeAlarmFlag(query) {
data: query
})
}
// 下架
export function removeServer(query) {
return request({
url: '/system/registration/removeServer',
method: 'post',
data: query
})
}
export function bindBusByClient(query) {
return request({
Binary file not shown.

Before

Width:  |  Height:  |  Size: 137 KiB

+3
View File
@@ -242,6 +242,9 @@ aside {
.disInlineBlock {
display: inline-block;
}
.w20 {
width:20%;
}
.w30 {
width: 30%;
}
+1
View File
@@ -551,6 +551,7 @@
}
::v-deep .labelWidthNullSty .el-form-item__label {
width: 0px!important;
padding-right: 0px!important;
}
::v-deep .labelWidthNullSty .el-form-item__content {
margin-left: 0px!important;
+10 -15
View File
@@ -202,7 +202,7 @@
<script setup name="Register">
import Form from '@/components/form/index.vue';
import {listHandle, networkList, getScriptResultBySn, getLogicalNode, addRemark, updateRemark, repBandwidthSubmit, bindBusPublic, virNetInterfaceChild, getAlarmFlag, removeAlarmFlag, frpConnectLink, listFrpcConfig} from '@/api/disRevenue/resource';
import {listHandle, networkList, getScriptResultBySn, getLogicalNode, addRemark, updateRemark, repBandwidthSubmit, bindBusPublic, virNetInterfaceChild, getAlarmFlag, removeAlarmFlag, frpConnectLink, listFrpcConfig, removeServer} from '@/api/disRevenue/resource';
import {listAllBusinessList} from "@/api/disRevenue/earnManage"
import TableList from '@/components/table/index.vue';
import MonitorStrategy from '../serverMonitorStrat/monitorStrategy';
@@ -295,7 +295,7 @@
{content: '批量增加标签', fnCode: 'tagRemark', type: 'primary', icon: 'el-icon-plus', hasPermi: 'resource:serverRegister:tagRemark'},
{content: '流量图形展示', fnCode: 'trafficChart', type: 'primary', icon: 'el-icon-data-analysis', hasPermi: 'resource:serverRegister:trafficChart'},
{content: '导出', fnCode: 'export', type: 'warning', icon: 'el-icon-download', hasPermi: 'resource:serverRegister:export'},
// {content: '下架', fnCode: 'unShelve', type: 'danger', icon: 'el-icon-bottom', hasPermi: 'resource:serverRegister:export'},
{content: '下架', fnCode: 'unShelve', type: 'danger', icon: 'el-icon-bottom', hasPermi: 'resource:serverRegister:unShelve'},
],
line: [
{content: '选择业务IP', fnCode: 'pubilcNet', type: 'text', icon: 'el-icon-thumb', showName: 'multiPublicIpStatus', showVal: '0', hasPermi: 'resource:serverRegister:pubilcNet'},
@@ -763,22 +763,17 @@
});
break;
case 'unShelve':
if (selectList && selectList.length <= 0) {
this.$modal.msgWarning("请选择数据!");
return;
}
let unShelveContent = '<p style="font-size: 1rem;font-weight: 600;">下架</p>' +
'<p style="height: 0px;margin-bottom: 50px;">所选服务器下架后将不再服务器管理列表中展示!';
this.$modal.confirm(unShelveContent).then(() => {
// let fnType = addMachine;
// if (dataVal && dataVal.id) {
// fnType = updateTopology;
// }
// if(this.loading) return;
// this.loading = true;
// fnType(dataVal).then(response => {
// this.$modal.msgSuccess(response.msg);
// this.$router.push("/resource/serverRegister");
// this.loading = false;
// }).catch(() => {
// this.$modal.msgError("操作失败")
// });
removeServer({ids: selectChange}).then(response => {
this.$modal.msgSuccess(response.msg);
this.getHightLight();
});
}).catch(() => {});
break;
case 'export':