From c7e4dd9bd50cf6e6426598753c796ec1a27f333f Mon Sep 17 00:00:00 2001 From: zmc <zmc_li@foxmail.com> Date: 星期五, 22 十二月 2023 13:18:10 +0800 Subject: [PATCH] 修改了异常的名称 --- src/views/analysis/graph/AllRate.vue | 24 +++++++++++++----------- 1 files changed, 13 insertions(+), 11 deletions(-) diff --git a/src/views/analysis/graph/AllRate.vue b/src/views/analysis/graph/AllRate.vue index b1139a3..5dda4e8 100644 --- a/src/views/analysis/graph/AllRate.vue +++ b/src/views/analysis/graph/AllRate.vue @@ -1,10 +1,6 @@ <template> <div> <el-container> - <!-- <el-header style="text-align:right; font-size:15px "> - <i class="el-icon-s-data" style="font-size: 15px;color:rgb(226,207,207);margin-right:10px;"></i> - <span style="color:rgb(226,207,207);">鐧惧垎姣旀暟鎹�</span> - </el-header> --> <el-main> <el-form :inline="true" class="demo-form-inline"> @@ -41,7 +37,7 @@ </el-form-item> <el-form-item> - <el-button type="primary" @click="fetchData">灞曠ず鍥�</el-button> + <el-button type="primary" :loading="button.showChartButton" @click="fetchData">灞曠ず鍥�</el-button> </el-form-item> </el-form> @@ -62,6 +58,10 @@ export default { data() { return { + button:{ + // 灞曠ず鍥剧殑鎸夐挳 + showChartButton:false, + }, isNoData:false, chart:null, loading:false, @@ -222,10 +222,12 @@ params['end'] = this.end } this.loading = true + this.button.showChartButton = true axiosInstanceInstance.get('/data/id',{params:params}) .then(response => { this.chartData = response.data.data this.loading = false + this.button.showChartButton = false if(response.data.data.length==0){ alert('璇ユ椂娈垫棤鏁版嵁') this.isNoData = true @@ -287,10 +289,7 @@ this.chart = echarts.init(this.$refs.lineChart) this.chart.setOption({ - title: { - text: '姣旂巼', - //left: 'center' - }, + grid: { left: '3%', right: '4%', @@ -301,7 +300,7 @@ legend: { data: ['鍑�鍖栧櫒寮�鍚巼','瓒呮爣鐜�','鏁版嵁鏈夋晥鐜�','鏃ュ湪绾跨巼','涓崍鍦ㄧ嚎鐜�','鏅氫笂鍦ㄧ嚎鐜�','閲嶇偣鏃舵鍦ㄧ嚎鐜�','涓崍鏈夋晥鐜�','鏅氫笂鏈夋晥鐜�','閲嶇偣鏃舵鏈夋晥鐜�','涓崍寮�鍚巼','鏅氫笂寮�鍚巼','閲嶇偣鏃舵寮�鍚巼','涓崍瓒呮爣鐜�','鏅氫笂瓒呮爣鐜�','閲嶇偣鏃舵瓒呮爣鐜�'], - //type: "scroll" + }, toolbox: { //宸ュ叿鏍� top:20, @@ -434,5 +433,8 @@ color: #333; line-height: 60px; } - +:deep().el-form .el-form-item__label{ + color: #000000; + font-weight: bold; +} </style> \ No newline at end of file -- Gitblit v1.9.3