初始化

master
法外狂徒张三 2024-09-04 17:45:44 +08:00
parent 493b5cc7c2
commit ba7de1fc0f
1 changed files with 7 additions and 0 deletions

View File

@ -126,6 +126,7 @@
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,6 +190,12 @@ export default {
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.result
if(this.jsonData==null){
this.jsonData=response.reason
}
if(response==error){
this.jsonData="未知错误"
}
this.dialogVisible=true this.dialogVisible=true
}) })
}, },