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