。。。。

This commit is contained in:
康冉冉
2025-11-11 18:54:10 +08:00
parent 792563c82c
commit ee1b503927
10 changed files with 76 additions and 71 deletions
+2 -2
View File
@@ -298,7 +298,7 @@ export const dynamicRoutes = [
} }
] ]
}, },
// 脚本管理 // 业务脚本管理
{ {
path: '/earnManage/businessScript/details', path: '/earnManage/businessScript/details',
component: Layout, component: Layout,
@@ -309,7 +309,7 @@ export const dynamicRoutes = [
path: ':id?', path: ':id?',
component: () => import('@/views/earnManage/businessScript/details'), component: () => import('@/views/earnManage/businessScript/details'),
name: 'BusinessScriptDetails', name: 'BusinessScriptDetails',
meta: { title: '脚本信息', noCache: true ,activeMenu: '/earnManage/businessScript' } meta: { title: '业务脚本信息', noCache: true ,activeMenu: '/earnManage/businessScript' }
} }
] ]
}, },
@@ -68,16 +68,16 @@
// 列显隐信息 // 列显隐信息
columns: { columns: {
id: {label: `ID`}, id: {label: `ID`},
taskName: {label: `任务名称`, minWidth: '150', visible: true}, taskName: {label: `任务名称`, minWidth: '250', visible: true},
businessName: {label: `业务名称`, minWidth: '150', visible: true}, businessName: {label: `业务名称`, minWidth: '150', visible: true},
resourceType: { label: `包含资源类型`, minWidth: '200', slotName: 'tempResType'}, resourceType: { label: `包含资源类型`, minWidth: '200', slotName: 'tempResType'},
includedResources: { label: `包含资源`, minWidth: '300'}, includedResources: { label: `包含资源`, minWidth: '300'},
calculationType: {label: `计算类型`, minWidth: '150'}, calculationType: {label: `计算类型`, minWidth: '150'},
percentile95: {label: `95值(Mbit)`, minWidth: '100',visible: true}, percentile95: {label: `95值(Mbit)`, minWidth: '200',visible: true},
monthlyAvgPercentile95: {label: `月均日95值(Mbit)`, minWidth: '150',visible: true}, monthlyAvgPercentile95: {label: `月均日95值(Mbit)`, minWidth: '200',visible: true},
// js: {label: `外部数据记录95值(Mbit)`, minWidth: '200'}, // js: {label: `外部数据记录95值(Mbit)`, minWidth: '200'},
timeRange: {label: `时间段`, minWidth: '200',visible: true}, timeRange: {label: `时间段`, minWidth: '200',visible: true},
taskStatus: {label: `任务状态`, minWidth: '80', slotName: 'tempStatus', visible: true}, taskStatus: {label: `任务状态`, minWidth: '150', slotName: 'tempStatus', visible: true},
updateTime: {label: `修改时间`, minWidth: '150'}, updateTime: {label: `修改时间`, minWidth: '150'},
createTime: {label: `创建时间`, minWidth: '150'}, createTime: {label: `创建时间`, minWidth: '150'},
}, },
@@ -45,15 +45,15 @@
}, },
// 列显隐信息 // 列显隐信息
columns: { columns: {
id: {label: 'ID', width: '50'}, id: {label: 'ID'},
taskName: { label: `任务名称`, minWidth: '120', visible: true}, taskName: { label: `任务名称`, minWidth: '120', visible: true},
businessName: { label: `业务名称`, minWidth: '120', visible: true}, businessName: { label: `业务名称`, minWidth: '120', visible: true},
scriptName: { label: `脚本名称`, minWidth: '120', visible: true}, scriptName: { label: `脚本名称`, minWidth: '120', visible: true},
scriptParams: { label: `脚本参数`, minWidth: '120',}, scriptParams: { label: `脚本参数`, minWidth: '120',},
deployDevice: { label: `部署设备`, minWidth: '120', customTooltip: true}, deployDevice: { label: `部署设备`, minWidth: '120',},
submitBy: { label: `提交人`, minWidth: '120',}, submitBy: { label: `提交人`, minWidth: '120',},
reviewStatus: { label: `审核状态`, minWidth: '100', slotName: 'tempStatus', visible: true}, reviewStatus: { label: `审核状态`, minWidth: '120', slotName: 'tempStatus', visible: true},
reviewTime: { label: `审核时间`, minWidth: '120'}, reviewTime: { label: `审核时间`, minWidth: '160'},
reviewComment: { label: `审核意见`, minWidth: '160'}, reviewComment: { label: `审核意见`, minWidth: '160'},
createTime: { label: `创建时间`, minWidth: '160'}, createTime: { label: `创建时间`, minWidth: '160'},
updateTime: { label: `修改时间`, minWidth: '160'}, updateTime: { label: `修改时间`, minWidth: '160'},
@@ -40,7 +40,7 @@
}, },
// 列显隐信息 // 列显隐信息
columns: { columns: {
id: {label: 'ID',width: '50'}, id: {label: 'ID'},
scriptName: { label: `脚本名称`, visible: true}, scriptName: { label: `脚本名称`, visible: true},
scriptPath: { label: `脚本文件地址`, visible: true}, scriptPath: { label: `脚本文件地址`, visible: true},
defaultParams: { label: `脚本默认参数`, visible: true}, defaultParams: { label: `脚本默认参数`, visible: true},
@@ -143,7 +143,7 @@
// }); // });
// this.download("/system/Business/export", {properties: dataList,}, `业务管理_${new Date().getTime()}.xlsx`); // this.download("/system/Business/export", {properties: dataList,}, `业务管理_${new Date().getTime()}.xlsx`);
let paramsList = Object.assign({}, this.queryParams,rowData); let paramsList = Object.assign({}, this.queryParams,rowData);
this.download("system/businessScript/export", paramsList, `脚本管理_${new Date().getTime()}.xlsx`, null, 'json'); this.download("system/businessScript/export", paramsList, `业务脚本管理_${new Date().getTime()}.xlsx`, null, 'json');
break; break;
default: default:
+1 -1
View File
@@ -55,7 +55,7 @@
// 列显隐信息 // 列显隐信息
columns: { columns: {
id: {label: `ID`, width: '50', visible: false}, id: {label: `ID`, visible: false},
updateTime: {label: `修改时间`, minWidth: '160', visible: true}, updateTime: {label: `修改时间`, minWidth: '160', visible: true},
clientId: {label: `ClientID`, minWidth: '300', visible: true}, clientId: {label: `ClientID`, minWidth: '300', visible: true},
hardwareSn: {label: `硬件SN`}, hardwareSn: {label: `硬件SN`},
+6 -6
View File
@@ -174,14 +174,14 @@
showSearch: true, showSearch: true,
// 列显隐信息 // 列显隐信息
columns: { columns: {
id: {label: `ID`, width: '50'}, id: {label: `ID`},
clientId: {label: `ClientID`, minWidth: '280', visible: true}, clientId: {label: `ClientID`, minWidth: '320', visible: true},
hardwareSn: {label: `硬件SN`, minWidth: '150'}, hardwareSn: {label: `硬件SN`, minWidth: '350'},
businessName: {label: `业务名称`, minWidth: '150', visible: true}, businessName: {label: `业务名称`, minWidth: '150', visible: true},
businessId: {label: `业务代码`, minWidth: '150'}, businessId: {label: `业务代码`, minWidth: '150'},
bandwidth95Daily: {label: `95带宽值/日(Mbit)`, minWidth: '150', slotName: 'tempDay',visible: true}, bandwidth95Daily: {label: `95带宽值/日(Mbit)`, minWidth: '200', slotName: 'tempDay',visible: true},
bandwidth95Monthly: {label: `95带宽值/月(Mbit)`, minWidth: '150', slotName: 'tempMonth',visible: true}, bandwidth95Monthly: {label: `95带宽值/月(Mbit)`, minWidth: '200', slotName: 'tempMonth',visible: true},
avgMonthlyBandwidth95: {label: `月均日95值(Mbit)`, minWidth: '150',slotName: 'tempDay',visible: true}, avgMonthlyBandwidth95: {label: `月均日95值(Mbit)`, minWidth: '200',slotName: 'tempDay',visible: true},
machineFlow: {label: `金山machineCode`, minWidth: '150',visible: true}, machineFlow: {label: `金山machineCode`, minWidth: '150',visible: true},
uplinkSwitch: {label: `上联交换机`, minWidth: '150'}, uplinkSwitch: {label: `上联交换机`, minWidth: '150'},
uplinkSwitchPort: {label: `上联交换机端口`, minWidth: '150'}, uplinkSwitchPort: {label: `上联交换机端口`, minWidth: '150'},
+10 -10
View File
@@ -215,14 +215,14 @@
// 列显隐信息 // 列显隐信息
columns: { columns: {
id: { label: `ID`,width: '50', visible: false }, id: { label: `ID`,width: '50', visible: false },
uplinkSwitch: { label: `交换机名称`, minWidth: '120', visible: true }, uplinkSwitch: { label: `交换机名称`, minWidth: '180', visible: true },
hardwareSn: { label: `硬件SN`, minWidth: '120'}, hardwareSn: { label: `硬件SN`, minWidth: '200'},
interfaceName: { label: `接口名称`, minWidth: '100',visible: true }, interfaceName: { label: `接口名称`, minWidth: '120',visible: true },
interfaceLinkDeviceType: { label: `接口连接设备类型`, slotName: 'tempType',minWidth: '130', visible: true }, interfaceLinkDeviceType: { label: `接口连接设备类型`, slotName: 'tempType',minWidth: '180', visible: true },
interfaceRemark: {label: `接口备注`,minWidth: '120'}, interfaceRemark: {label: `接口备注`,minWidth: '150'},
bandwidth95Daily: { label: `95带宽值/日(Mbit)`, minWidth: '180', slotName: 'tempDay', visible: true }, bandwidth95Daily: { label: `95带宽值/日(Mbit)`, minWidth: '200', slotName: 'tempDay', visible: true },
bandwidth95Monthly: { label: `95带宽值/月(Mbit)`, minWidth: '180', slotName: 'tempMonth', visible: true}, bandwidth95Monthly: { label: `95带宽值/月(Mbit)`, minWidth: '200', slotName: 'tempMonth', visible: true},
avgMonthlyBandwidth95: {label: `月均日95值(Mbit`, minWidth: '180', slotName: 'tempDay', visible: true}, avgMonthlyBandwidth95: {label: `月均日95值(Mbit`, minWidth: '200', slotName: 'tempDay', visible: true},
clientId: {label: `ClientID`,minWidth: '320'}, clientId: {label: `ClientID`,minWidth: '320'},
businessId: {label: `业务代码`,minWidth: '150'}, businessId: {label: `业务代码`,minWidth: '150'},
businessName: {label: `业务名称`,minWidth: '100'}, businessName: {label: `业务名称`,minWidth: '100'},
@@ -230,8 +230,8 @@
// effectiveBandwidth95Daily: {label: `有效95带宽值Mbps/日`, minWidth: '200', slotName: 'tempDay', visible: true }, // effectiveBandwidth95Daily: {label: `有效95带宽值Mbps/日`, minWidth: '200', slotName: 'tempDay', visible: true },
// effectiveBandwidth95Monthly: {label: `有效95带宽值Mbps/月`, minWidth: '200', slotName: 'tempMonth',}, // effectiveBandwidth95Monthly: {label: `有效95带宽值Mbps/月`, minWidth: '200', slotName: 'tempMonth',},
// effectiveAvgMonthlyBandwidth95: {label: `有效月均日95值Mbps`, minWidth: '200', slotName: 'tempDay'}, // effectiveAvgMonthlyBandwidth95: {label: `有效月均日95值Mbps`, minWidth: '200', slotName: 'tempDay'},
createTime: { label: `创建时间`, minWidth: '120'}, createTime: { label: `创建时间`, minWidth: '160'},
lastModifyTime: { label: `修改时间`, minWidth: '120'} lastModifyTime: { label: `修改时间`, minWidth: '160'}
}, },
config: { config: {
// searcherForm: [ // searcherForm: [
+24 -7
View File
@@ -12,10 +12,24 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
<el-form-item label="告警类型" prop="type"> <el-form-item label="资源名称" prop="bandwidthType">
<el-select <el-select
v-model="queryParams.bandwidthType" v-model="queryParams.bandwidthType"
placeholder="请选择告警类型" placeholder="请选择资源名称"
clearable>
<el-option
v-for="dict in dict.type.eps_bandwidth_type"
:key="dict.value"
:label="dict.label"
:value="dict.value"/>
</el-select>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="状态" prop="type">
<el-select
v-model="queryParams.bandwidthType"
placeholder="请选择状态"
clearable> clearable>
<el-option <el-option
v-for="dict in dict.type.eps_bandwidth_type" v-for="dict in dict.type.eps_bandwidth_type"
@@ -60,11 +74,11 @@
// 列显隐信息 // 列显隐信息
columns: { columns: {
id: { label: `ID`,width: '50'}, id: { label: `ID`,width: '50'},
clientId: { label: `告警设备`, minWidth: '250', visible: true }, switchName: { label: `资源名称`, minWidth: '250', visible: true },
managePublicIp: { label: `管理网-公网IP`,minWidth: '200',visible: true}, switchSn: { label: `IP`,minWidth: '200',visible: false},
type: { label: `告警类型`,minWidth: '160',visible: true}, createTime: { label: `发生时间`,minWidth: '160'},
createTime: { label: `告警时间`,minWidth: '160',visible: true}, interfaceName: { label: `内容`,minWidth: '250', visible: true },
interfaceName: { label: `告警内容`,minWidth: '250', visible: true }, serverName: { label: `状态`,minWidth: '100',visible: true },
}, },
config: { config: {
tableButton: { tableButton: {
@@ -73,6 +87,7 @@
], ],
line: [ line: [
{content: '详情', fnCode: 'details', type: 'text', icon: 'el-icon-view', hasPermi: 'resource:alarmManage:details'}, {content: '详情', fnCode: 'details', type: 'text', icon: 'el-icon-view', hasPermi: 'resource:alarmManage:details'},
{content: '处理', fnCode: 'handle', type: 'text', icon: 'el-icon-document-copy', hasPermi: 'resource:alarmManage:handle'},
] ]
} }
} }
@@ -120,6 +135,8 @@
} }
}); });
break; break;
case 'handle':
break;
case 'delete': case 'delete':
this.$modal.confirm('是否确认删除数据项?').then(function() { this.$modal.confirm('是否确认删除数据项?').then(function() {
return delMonitorTemp(selectChange) return delMonitorTemp(selectChange)
+11 -11
View File
@@ -169,31 +169,31 @@
columns: { columns: {
id: { label: `ID`,width: '50'}, id: { label: `ID`,width: '50'},
clientId: { label: `clientID`, minWidth: '320', slotName: 'tempCopy'}, clientId: { label: `clientID`, minWidth: '320', slotName: 'tempCopy'},
hardwareSn: { label: `设备SN`,minWidth: '120'}, hardwareSn: { label: `设备SN`,minWidth: '200'},
ip1Isp: { label: `IP1-运营商`, visible: true, minWidth: '85'}, ip1Isp: { label: `IP1-运营商`, visible: true, minWidth: '90'},
ip1Province: { label: `IP1-省`, visible: true, minWidth: '60'}, ip1Province: { label: `IP1-省`, visible: true, minWidth: '80'},
ip1City: { label: `IP1-市`, minWidth: '60'}, ip1City: { label: `IP1-市`, minWidth: '80'},
ip1PublicIp:{ label: `IP1-业务公网`,visible: true,minWidth: '120'}, ip1PublicIp:{ label: `IP1-业务公网`,visible: true,minWidth: '120'},
ip1InterfaceName: { label: `IP1-接口名称`, minWidth: '100'}, ip1InterfaceName: { label: `IP1-接口名称`, minWidth: '100'},
ip1MacAddress: { label: `IP1-mac地址`, minWidth: '120'}, ip1MacAddress: { label: `IP1-mac地址`, minWidth: '150'},
ip1InterfaceType: { label: `IP1-接口类型`, minWidth: '100'}, ip1InterfaceType: { label: `IP1-接口类型`, minWidth: '100'},
ip1Ipv4Address: { label: `IP1-IPv4地址`, minWidth: '120'}, ip1Ipv4Address: { label: `IP1-IPv4地址`, minWidth: '120'},
ip1Gateway: { label: `IP1-网关`, minWidth: '120'}, ip1Gateway: { label: `IP1-网关`, minWidth: '120'},
ip2Isp: { label: `IP2-运营商`, minWidth: '90'}, ip2Isp: { label: `IP2-运营商`, minWidth: '90'},
ip2Province: { label: `IP2-省`,minWidth: '60'}, ip2Province: { label: `IP2-省`,minWidth: '80'},
ip2City: { label: `IP2-市`, minWidth: '60'}, ip2City: { label: `IP2-市`, minWidth: '80'},
ip2PublicIp:{ label: `IP2-业务公网`,minWidth: '120'}, ip2PublicIp:{ label: `IP2-业务公网`,minWidth: '120'},
ip2InterfaceName: { label: `IP2-接口名称`, minWidth: '100'}, ip2InterfaceName: { label: `IP2-接口名称`, minWidth: '100'},
ip2MacAddress: { label: `IP2-mac地址`, minWidth: '120'}, ip2MacAddress: { label: `IP2-mac地址`, minWidth: '150'},
ip2InterfaceType: { label: `IP2-接口类型`, minWidth: '100'}, ip2InterfaceType: { label: `IP2-接口类型`, minWidth: '100'},
ip2Ipv4Address: { label: `IP2-IPv4地址`, minWidth: '120'}, ip2Ipv4Address: { label: `IP2-IPv4地址`, minWidth: '120'},
ip2Gateway: { label: `IP2-网关`, minWidth: '120'}, ip2Gateway: { label: `IP2-网关`, minWidth: '120'},
ip3Isp: { label: `IP3-运营商`, minWidth: '90'}, ip3Isp: { label: `IP3-运营商`, minWidth: '90'},
ip3Province: { label: `IP3-省`, minWidth: '60'}, ip3Province: { label: `IP3-省`, minWidth: '80'},
ip3City: { label: `IP3-市`, minWidth: '60'}, ip3City: { label: `IP3-市`, minWidth: '80'},
ip3PublicIp:{ label: `IP3-业务公网`,minWidth: '120'}, ip3PublicIp:{ label: `IP3-业务公网`,minWidth: '120'},
ip3InterfaceName: { label: `IP3-接口名称`, minWidth: '100'}, ip3InterfaceName: { label: `IP3-接口名称`, minWidth: '100'},
ip3MacAddress: { label: `IP3-mac地址`, minWidth: '120'}, ip3MacAddress: { label: `IP3-mac地址`, minWidth: '150'},
ip3InterfaceType: { label: `IP3-接口类型`, minWidth: '100'}, ip3InterfaceType: { label: `IP3-接口类型`, minWidth: '100'},
ip3Ipv4Address: { label: `IP3-IPv4地址`, minWidth: '120'}, ip3Ipv4Address: { label: `IP3-IPv4地址`, minWidth: '120'},
ip3Gateway: { label: `IP3-网关`, minWidth: '120'}, ip3Gateway: { label: `IP3-网关`, minWidth: '120'},
+12 -24
View File
@@ -38,18 +38,6 @@
<template #tempType="{ row, column }"> <template #tempType="{ row, column }">
<dict-tag :options="dict.type.rm_register_resource_type" :value="row.resourceType"/> <dict-tag :options="dict.type.rm_register_resource_type" :value="row.resourceType"/>
</template> </template>
<!-- 读写权限 -->
<template #tempReadWrite="{ row, column }">
<dict-tag :options="dict.type.rm_register_permission" :value="row.readWritePermission"/>
</template>
<!-- 加密方式 -->
<template #tempEncry="{ row, column }">
<dict-tag :options="dict.type.rm_register_encryption" :value="row.encryptionMethod"/>
</template>
<!-- 读写权限 -->
<template #tempSecurity="{ row, column }">
<dict-tag :options="dict.type.rm_register_security_level" :value="row.securityLevel"/>
</template>
<!-- 端口 --> <!-- 端口 -->
<template #tempPort="{ row, column }"> <template #tempPort="{ row, column }">
<dict-tag :options="dict.type.rm_register_port" :value="row.resourcePort"/> <dict-tag :options="dict.type.rm_register_port" :value="row.resourcePort"/>
@@ -82,7 +70,7 @@
export default { export default {
name: 'SwitchRegister', name: 'SwitchRegister',
components: {TableList, MonitorStrategy}, components: {TableList, MonitorStrategy},
dicts: ['rm_register_resource_type', 'rm_register_protocol', 'rm_register_status', 'rm_register_port', 'rm_register_online_state', 'rm_register_permission', 'rm_register_encryption', 'rm_register_security_level'], dicts: ['rm_register_resource_type', 'rm_register_protocol', 'rm_register_status', 'rm_register_port', 'rm_register_online_state'],
data() { data() {
return { return {
open: false, open: false,
@@ -94,23 +82,23 @@
meltiple: true, meltiple: true,
// 列显隐信息 // 列显隐信息
columns: { columns: {
id: { label: `ID`,width: '50'}, id: { label: `ID`,width: '80'},
switchName: { label: `交换机名称`, visible: true, minWidth: '150'}, switchName: { label: `交换机名称`, visible: true, minWidth: '200'},
hardwareSn: { label: `硬件SN`,minWidth: '250'}, hardwareSn: { label: `硬件SN`,minWidth: '250'},
resourceType: { label: `交换机类型`, minWidth: '100', slotName: 'tempType'}, resourceType: { label: `交换机类型`, minWidth: '100', slotName: 'tempType'},
snmpAddress: { label: `SNMP采集地址`, visible: true, minWidth: '150'}, snmpAddress: { label: `SNMP采集地址`, visible: true, minWidth: '150'},
snmpPort: { label: `SNMP采集端口`, visible: true, minWidth: '120'}, snmpPort: { label: `SNMP采集端口`, visible: true, minWidth: '150'},
onlineStatus: { label: `在线状态`, slotName: 'tempOnlineStatus', minWidth: '80', visible: true }, onlineStatus: { label: `在线状态`, slotName: 'tempOnlineStatus', minWidth: '120', visible: true },
upTime:{ label: `上机时间`,minWidth: '160'}, upTime:{ label: `上机时间`,minWidth: '160'},
updateTime:{ label: `修改时间`,minWidth: '160'}, updateTime:{ label: `修改时间`,minWidth: '160'},
createTime:{ label: `创建时间`,minWidth: '160'}, createTime:{ label: `创建时间`,minWidth: '160'},
heartbeatCount: { label: `交换机心跳检测次数`, minWidth: '140'}, heartbeatCount: { label: `交换机心跳检测次数`, minWidth: '180'},
heartbeatInterval: { label: `交换机心跳检测周期`, minWidth: '140'}, heartbeatInterval: { label: `交换机心跳检测周期`, minWidth: '180'},
heartbeatOid: { label: `交换机心跳检测OID`, minWidth: '140'}, heartbeatOid: { label: `交换机心跳检测OID`, minWidth: '180'},
protocol: { label: `SNMP版本`, minWidth: '100', slotName: 'tempProtocol'}, protocol: { label: `SNMP版本`, minWidth: '150'},
readWritePermission: { label: `读写权限`, minWidth: '80', slotName: 'tempReadWrite'}, readWritePermission: { label: `读写权限`, minWidth: '120'},
securityLevel: { label: `安全级别`, minWidth: '80', slotName: 'tempSecurity'}, securityLevel: { label: `安全级别`, minWidth: '120'},
encryptionMethod: { label: `加密方式`, minWidth: '80', slotName: 'tempEncry'}, encryptionMethod: { label: `加密方式`, minWidth: '120'},
communityName: { label: `团体名称`, minWidth: '120'}, communityName: { label: `团体名称`, minWidth: '120'},
resourceUserName: { label: `用户名`, minWidth: '100'}, resourceUserName: { label: `用户名`, minWidth: '100'},
resourcePwd: { label: `密码`, minWidth: '100'} resourcePwd: { label: `密码`, minWidth: '100'}