diff --git a/src/components/Pagination/index.vue b/src/components/Pagination/index.vue index 53c72b4..63d837f 100644 --- a/src/components/Pagination/index.vue +++ b/src/components/Pagination/index.vue @@ -1,113 +1,113 @@ - - - - - - - - - + + + + + + + + + diff --git a/src/components/echartsList/line.vue b/src/components/echartsList/line.vue index 01f61d3..43119fd 100644 --- a/src/components/echartsList/line.vue +++ b/src/components/echartsList/line.vue @@ -191,9 +191,27 @@ show: true, }, }, + // 配置高亮状态下的样式 + emphasis: dataXY && dataXY.highlight ? { + itemStyle: { + borderWidth: 2, // 边框加粗 + shadowBlur: 5, // 添加阴影光晕 + }, + label: { + show: false, // 高亮时显示标签 + } + } : {}, series: series }; lineDataListIntance.setOption(option); + if (dataXY && dataXY.highlight) { + // 然后高亮当前点击的数据点 + lineDataListIntance.dispatchAction({ + type: 'highlight', // 高亮类型 + seriesIndex: 0, // 系列索引,从点击事件参数中获取 + dataIndex: 0 // 数据索引,从点击事件参数中获取 + }); + } if (dataXY && dataXY.unitSelList && dataXY.unitSelList.length > 0) { // 初始化图表后,调用方法定位下拉框 this.positionYAxisSelector(lineDataListIntance); @@ -207,6 +225,31 @@ lineDataListIntance.off('click'); lineDataListIntance.on("click", function(params) { that.$emit("chartClickModel", {params: params}); + if (dataXY && dataXY.highlight) { + // 首先取消之前可能存在的高亮状态 + lineDataListIntance.dispatchAction({ + type: 'downplay' // 取消所有数据点的高亮 + }); + + // 然后高亮当前点击的数据点 + setTimeout(() => { + lineDataListIntance.dispatchAction({ + type: 'highlight', // 高亮类型 + seriesIndex: params.seriesIndex, // 系列索引,从点击事件参数中获取 + dataIndex: params.dataIndex // 数据索引,从点击事件参数中获取 + }); + },1000); + } + }); + // 2. 关键:拦截默认的鼠标移出事件,不做任何操作(即不取消高亮) + lineDataListIntance.on('mouseover', (params) => { + // 这个函数体为空,或者只包含一些不涉及downplay的逻辑 + // 这样就阻止了鼠标移出时高亮自动消失 + }); + // 2. 关键:拦截默认的鼠标移出事件,不做任何操作(即不取消高亮) + lineDataListIntance.on('mouseout', (params) => { + // 这个函数体为空,或者只包含一些不涉及downplay的逻辑 + // 这样就阻止了鼠标移出时高亮自动消失 }); }, positionYAxisSelector(chartInstance) { diff --git a/src/utils/request.js b/src/utils/request.js index 8266971..06a9aa7 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -17,7 +17,7 @@ const service = axios.create({ // axios中请求配置有baseURL选项,表示请求URL公共部分 baseURL: process.env.VUE_APP_BASE_API, // 超时 - timeout: 10000 + timeout: 30000 }) // request拦截器 diff --git a/src/views/earnManage/busValueCount/busValueCount.vue b/src/views/earnManage/busValueCount/busValueCount.vue index 1da40cf..fc2ce71 100644 --- a/src/views/earnManage/busValueCount/busValueCount.vue +++ b/src/views/earnManage/busValueCount/busValueCount.vue @@ -97,7 +97,7 @@ }, queryParams: { pageNum: 1, - pageSize: 10, + pageSize: 8, total: 0, }, } diff --git a/src/views/earnManage/busValueCount/index.vue b/src/views/earnManage/busValueCount/index.vue index e591c0a..96c1d41 100644 --- a/src/views/earnManage/busValueCount/index.vue +++ b/src/views/earnManage/busValueCount/index.vue @@ -1,6 +1,6 @@ - + @@ -37,6 +37,6 @@ ::v-deep .el-tabs__content{ height: 100%; overflow: auto; - padding-bottom: 40px; + padding-bottom: 10px; } diff --git a/src/views/earnManage/businessIdent/businessIdent.vue b/src/views/earnManage/businessIdent/businessIdent.vue index ff1695d..c614cdc 100644 --- a/src/views/earnManage/businessIdent/businessIdent.vue +++ b/src/views/earnManage/businessIdent/businessIdent.vue @@ -23,7 +23,7 @@ {{ row.businessName }} - + diff --git a/src/views/earnManage/server/index.vue b/src/views/earnManage/server/index.vue index b0d0f18..960e0a1 100644 --- a/src/views/earnManage/server/index.vue +++ b/src/views/earnManage/server/index.vue @@ -1,6 +1,6 @@ - + @@ -37,6 +37,6 @@ ::v-deep .el-tabs__content{ height: 100%; overflow: auto; - padding-bottom: 40px; + padding-bottom: 10px; } diff --git a/src/views/earnManage/server/serverTabs.vue b/src/views/earnManage/server/serverTabs.vue index f274871..267d01b 100644 --- a/src/views/earnManage/server/serverTabs.vue +++ b/src/views/earnManage/server/serverTabs.vue @@ -209,7 +209,7 @@ }, queryParams: { pageNum: 1, - pageSize: 10, + pageSize: 8, total: 0, bandwidthType: undefined, hardwareSn: undefined, diff --git a/src/views/earnManage/switch/index.vue b/src/views/earnManage/switch/index.vue index cf25069..f513aa8 100644 --- a/src/views/earnManage/switch/index.vue +++ b/src/views/earnManage/switch/index.vue @@ -1,6 +1,6 @@ - + @@ -37,6 +37,6 @@ ::v-deep .el-tabs__content{ height: 100%; overflow: auto; - padding-bottom: 40px; + padding-bottom: 10px; } diff --git a/src/views/earnManage/switch/switchTabs.vue b/src/views/earnManage/switch/switchTabs.vue index f4a3154..9346a10 100644 --- a/src/views/earnManage/switch/switchTabs.vue +++ b/src/views/earnManage/switch/switchTabs.vue @@ -252,7 +252,7 @@ }, queryParams: { pageNum: 1, - pageSize: 10, + pageSize: 8, total: 0, uplinkSwitch:undefined, interfaceName:undefined, diff --git a/src/views/resource/monitorBoard/dialogMonitor.vue b/src/views/resource/monitorBoard/dialogMonitor.vue index e913e69..8c6252b 100644 --- a/src/views/resource/monitorBoard/dialogMonitor.vue +++ b/src/views/resource/monitorBoard/dialogMonitor.vue @@ -58,7 +58,7 @@ id: {label: 'ID',hidden: true}, configName: {label: '配置名称', span: 18, type: 'input', required: true}, monitorStartTime: {label: '监控数据开始时间', span: 18, type: 'datetime', disabled: this.ruleFormData && this.ruleFormData.id ? true : false, required: true}, - resourceType: {label: '资源类型', span: 18, type: 'select', eventName: 'change', options: this.dict.type.resource_type, disabled: this.ruleFormData && this.ruleFormData.id ? true : false}, + resourceType: {label: '资源类型', span: 18, type: 'select', eventName: 'change', required: true, options: this.dict.type.resource_type, disabled: this.ruleFormData && this.ruleFormData.id ? true : false}, deployDevice: {label: '包含资源', span: 18, type: 'textarea', rows: 10, required: true, hidden: this.ruleFormData.resourceType && this.ruleFormData.resourceType === '1' ? false : true}, deployDeviceSwitch: {label: '包含资源', span: 18, type: 'cascader', options: [], hidden: this.ruleFormData.resourceType && this.ruleFormData.resourceType === '2' ? false : true}, businessName: {label: '包含业务', span: 18, type: 'select', options: [], disabled: this.ruleFormData && this.ruleFormData.id ? true : false, hidden: this.ruleFormData.resourceType && this.ruleFormData.resourceType === '3' ? false : true}, diff --git a/src/views/resource/monitorBoard/monitorBoard.vue b/src/views/resource/monitorBoard/monitorBoard.vue index 4d04712..cf47aef 100644 --- a/src/views/resource/monitorBoard/monitorBoard.vue +++ b/src/views/resource/monitorBoard/monitorBoard.vue @@ -1,16 +1,19 @@ - + + @@ -21,51 +24,71 @@ :value="item.value"> - 详情视图 - - - - - - - 新增监控配置 + 概览视图 + 详情视图 - - - - {{chartItem && chartItem.rmMonitorConfig && chartItem.rmMonitorConfig.configName}} - handleCommand(command, key, chartItem)"> + + + + + 新增监控配置 + + + + + + {{chartItem && chartItem.rmMonitorConfig && chartItem.rmMonitorConfig.configName}} + handleCommand(command, key, chartItem)"> - - - {{item.title}} - - - - - - + + + {{item.title}} + + + + + + + - - - - - + + + + + + + +