diff --git a/src/components/echarts/rmsboxi.vue b/src/components/echarts/rmsboxi.vue index 23cc2c8..fcdb502 100644 --- a/src/components/echarts/rmsboxi.vue +++ b/src/components/echarts/rmsboxi.vue @@ -36,6 +36,10 @@ export default { type: [String, Number, Boolean], default: 3, }, + parentHeight: { + type: [String, Number, Boolean], + default: 0 + }, DColor: { type: Boolean, default: false, @@ -103,6 +107,10 @@ export default { } else { this.vh = mainHeight(200, 2).height } + if (this.parentHeight != 0) { + this.vh = mainHeight(this.parentHeight, 2).height + + } this.vw = '100%' }, mounted() { @@ -210,7 +218,10 @@ export default { "s"; } else if (this.boxoList.systemType == 'WX') { - + let featureAmplitude = this.boxoList.featureAmplitude + '' ? this.boxoList.featureAmplitude.toFixed(2) : '/' + if (String(this.boxoList.featureAmplitude).split('.')[1] == '00') { + this.boxoList.featureAmplitude = String(this.boxoList.featureAmplitude).split('.')[0] + } this.titles = ' 监测点名称:' + @@ -218,7 +229,7 @@ export default { ' 发生时刻:' + this.boxoList.startTime + ' 暂降(骤升)幅值:' + - (this.boxoList.featureAmplitude) + + (featureAmplitude) + '% 持续时间:' + (this.boxoList.persistTime ? this.boxoList.persistTime.toFixed(2) : '-') + 's' diff --git a/src/components/echarts/shushiboxi.vue b/src/components/echarts/shushiboxi.vue index 5e2b694..214b8b0 100644 --- a/src/components/echarts/shushiboxi.vue +++ b/src/components/echarts/shushiboxi.vue @@ -28,6 +28,10 @@ export default { type: [String, Number, Boolean], default: 3 }, + parentHeight: { + type: [String, Number, Boolean], + default: 0 + }, DColor: { type: Boolean, default: false @@ -77,6 +81,10 @@ export default { } else { this.vh = mainHeight(200, 2).height } + if (this.parentHeight != 0) { + this.vh = mainHeight(this.parentHeight, 2).height + + } this.vw = '100%' }, watch: { @@ -166,6 +174,11 @@ export default { 's' } else if (this.boxoList.systemType == 'WX') { + let featureAmplitude = this.boxoList.featureAmplitude + '' ? this.boxoList.featureAmplitude.toFixed(2) : '/' + if (String(this.boxoList.featureAmplitude).split('.')[1] == '00') { + this.boxoList.featureAmplitude = String(this.boxoList.featureAmplitude).split('.')[0] + } + this.titles = ' 监测点名称:' + @@ -173,7 +186,7 @@ export default { ' 发生时刻:' + this.boxoList.startTime + ' 暂降(骤升)幅值:' + - (this.boxoList.featureAmplitude) + + (featureAmplitude) + '% 持续时间:' + (this.boxoList.persistTime ? this.boxoList.persistTime.toFixed(2) : '-') + 's' @@ -496,7 +509,7 @@ export default { colors.push('#CC0000') break } - + if (waveDatas[0].unit === '电压') { if (this.value === 1) { @@ -507,7 +520,7 @@ export default { } else { unit = 'A' } - + //把剩余的DIV先拼接好 for (var step = 1; step < waveDatas.length; step++) { diff --git a/src/layouts/admin/components/popup/adminInfo.vue b/src/layouts/admin/components/popup/adminInfo.vue index 0cefcbf..045e1ab 100644 --- a/src/layouts/admin/components/popup/adminInfo.vue +++ b/src/layouts/admin/components/popup/adminInfo.vue @@ -1,7 +1,7 @@