初始化
parent
8ea2a8c90c
commit
5af1b16fdd
|
@ -1,8 +1,8 @@
|
||||||
import request from '@/utils/request'
|
import request from '@/utils/request'
|
||||||
|
|
||||||
export function getAirQuality(query) {
|
export function getAirQuality(query,query2) {
|
||||||
return request({
|
return request({
|
||||||
url: '/market/third/getAirQuality/'+query,
|
url: '/market/apitype/third/'+query+"/"+query2,
|
||||||
method: 'get'
|
method: 'get'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
@ -83,7 +83,7 @@
|
||||||
<el-descriptions-item>
|
<el-descriptions-item>
|
||||||
<template slot="label">
|
<template slot="label">
|
||||||
<i class="el-icon-user"> </i>测试</template>
|
<i class="el-icon-user"> </i>测试</template>
|
||||||
<button @click="test(customer)">测试</button>
|
<button @click="handleTabClick(customer)">测试</button>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
</el-descriptions>
|
</el-descriptions>
|
||||||
</div>
|
</div>
|
||||||
|
@ -103,10 +103,16 @@
|
||||||
title="提示"
|
title="提示"
|
||||||
:visible.sync="dialogVisible"
|
:visible.sync="dialogVisible"
|
||||||
width="30%">
|
width="30%">
|
||||||
|
<el-form :model="unkownvalue" status-icon :rules="rules" ref="ruleForm" label-width="100px" class="demo-ruleForm">
|
||||||
|
<el-form-item label="请输入" prop="pass">
|
||||||
|
<el-input type="password" v-model="unkownvalue" autocomplete="off"></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item>
|
||||||
|
<el-button type="primary" @click="test">提交</el-button>
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
<span>{{jsonData}}</span>
|
<span>{{jsonData}}</span>
|
||||||
<span slot="footer" class="dialog-footer">
|
<span slot="footer" class="dialog-footer">
|
||||||
<el-button @click="dialogVisible = false">取 消</el-button>
|
|
||||||
<el-button type="primary" @click="dialogVisible = false">确 定</el-button>
|
|
||||||
</span>
|
</span>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
</el-tabs>
|
</el-tabs>
|
||||||
|
@ -166,23 +172,25 @@ export default {
|
||||||
},
|
},
|
||||||
pay:{
|
pay:{
|
||||||
},
|
},
|
||||||
jsonData:{}
|
jsonData:{},
|
||||||
|
unkownvalue:"",
|
||||||
|
sysId:"",
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.getList();
|
this.getList();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
test(customer){
|
handleTabClick(customer) {
|
||||||
if(customer.sysId==1){
|
this.sysId=customer.sysId
|
||||||
getAirQuality(1).then(response =>{
|
this.dialogVisible=true
|
||||||
|
},
|
||||||
|
test(){
|
||||||
|
getAirQuality(this.sysId,this.unkownvalue).then(response =>{
|
||||||
console.log(response)
|
console.log(response)
|
||||||
console.log(response.result.Data)
|
|
||||||
console.log(response.result.CityInfo)
|
|
||||||
this.jsonData=response.result
|
this.jsonData=response.result
|
||||||
this.dialogVisible=true
|
this.dialogVisible=true
|
||||||
})
|
})
|
||||||
}
|
|
||||||
},
|
},
|
||||||
async gotoMaintained(customer){
|
async gotoMaintained(customer){
|
||||||
this.pay.subject=customer.sysIntro
|
this.pay.subject=customer.sysIntro
|
||||||
|
|
Loading…
Reference in New Issue