From d58be9584f409e7d198fd34982155331d6710f1f Mon Sep 17 00:00:00 2001 From: zmc <zmc_li@foxmail.com> Date: 星期二, 15 八月 2023 17:37:52 +0800 Subject: [PATCH] 修改了数据库多表联查语句 --- src/views/analysis/graph/AllRate.vue | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/src/views/analysis/graph/AllRate.vue b/src/views/analysis/graph/AllRate.vue index 42ba7b2..793398e 100644 --- a/src/views/analysis/graph/AllRate.vue +++ b/src/views/analysis/graph/AllRate.vue @@ -37,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> @@ -58,6 +58,10 @@ export default { data() { return { + button:{ + // 灞曠ず鍥剧殑鎸夐挳 + showChartButton:false, + }, isNoData:false, chart:null, loading:false, @@ -218,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 -- Gitblit v1.9.3