From 5af1b16fdd38840401465f741a2eb86e38f79f88 Mon Sep 17 00:00:00 2001 From: Wang YiHang <3060234389@qq.com> Date: Wed, 4 Sep 2024 15:39:35 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/market/apitype.js | 4 ++-- src/views/market/apitype/index.vue | 28 ++++++++++++++++++---------- 2 files changed, 20 insertions(+), 12 deletions(-) diff --git a/src/api/market/apitype.js b/src/api/market/apitype.js index 9bafc4f..f6696ef 100644 --- a/src/api/market/apitype.js +++ b/src/api/market/apitype.js @@ -1,8 +1,8 @@ import request from '@/utils/request' -export function getAirQuality(query) { +export function getAirQuality(query,query2) { return request({ - url: '/market/third/getAirQuality/'+query, + url: '/market/apitype/third/'+query+"/"+query2, method: 'get' }) } diff --git a/src/views/market/apitype/index.vue b/src/views/market/apitype/index.vue index 05e8e2e..10df076 100644 --- a/src/views/market/apitype/index.vue +++ b/src/views/market/apitype/index.vue @@ -83,7 +83,7 @@ - + @@ -103,10 +103,16 @@ title="提示" :visible.sync="dialogVisible" width="30%"> + + + + + + 提交 + + {{jsonData}} - 取 消 - 确 定 @@ -166,23 +172,25 @@ export default { }, pay:{ }, - jsonData:{} + jsonData:{}, + unkownvalue:"", + sysId:"", }; }, created() { this.getList(); }, methods: { - test(customer){ - if(customer.sysId==1){ - getAirQuality(1).then(response =>{ + handleTabClick(customer) { + this.sysId=customer.sysId + this.dialogVisible=true + }, + test(){ + getAirQuality(this.sysId,this.unkownvalue).then(response =>{ console.log(response) - console.log(response.result.Data) - console.log(response.result.CityInfo) this.jsonData=response.result this.dialogVisible=true }) - } }, async gotoMaintained(customer){ this.pay.subject=customer.sysIntro