初始化
parent
ba7de1fc0f
commit
234cca980b
|
@ -126,7 +126,6 @@
|
||||||
import { listApitype, getApitype, delApitype, addApitype, updateApitype } from "@/api/market/apitype";
|
import { listApitype, getApitype, delApitype, addApitype, updateApitype } from "@/api/market/apitype";
|
||||||
import {getAirQuality, pay} from "../../../api/market/apitype";
|
import {getAirQuality, pay} from "../../../api/market/apitype";
|
||||||
import * as url from "url";
|
import * as url from "url";
|
||||||
import {error} from "echarts/types/src/util/log";
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "Apitype",
|
name: "Apitype",
|
||||||
|
@ -189,12 +188,12 @@ export default {
|
||||||
test(){
|
test(){
|
||||||
getAirQuality(this.sysId,this.unkownvalue).then(response =>{
|
getAirQuality(this.sysId,this.unkownvalue).then(response =>{
|
||||||
console.log(response)
|
console.log(response)
|
||||||
this.jsonData=response.result
|
this.jsonData=response
|
||||||
if(this.jsonData==null){
|
if(response.reason!=null){
|
||||||
this.jsonData=response.reason
|
this.jsonData=response.reason
|
||||||
}
|
}
|
||||||
if(response==error){
|
if(response.result!=null){
|
||||||
this.jsonData="未知错误"
|
this.jsonData=response.result
|
||||||
}
|
}
|
||||||
this.dialogVisible=true
|
this.dialogVisible=true
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue