jc
fanluyan 1 year ago
parent e3b7b79e74
commit fafc902dd2

@ -1,5 +1,25 @@
import request from "../request";
//获取装置总数图表
//郑州左侧树状结构接口
export function getICEdyTreeList(data) {
return request({
url: "/xymanager/getdyTreeList",
method: "post",
data,
});
}
//气象相关的接口
export function weatherLastJoggle(data) {
return request({
url: "/xymanager/weather/latest",
method: "get",
params: data,
headers: {
"Content-Type": "application/x-www-form-urlencoded;charset=UTF-8",
},
});
}
//获取数据接口
export function getDataListJoggle(data) {
return request({

@ -62,11 +62,8 @@ export function updateUserApi(data) {
export function getdyTreeListJoggle(data) {
return request({
url: "/xymanager/getdyTreeList",
method: "get",
params: data,
headers: {
"Content-Type": "application/x-www-form-urlencoded;charset=UTF-8",
},
method: "post",
data,
});
}
//获取所有杆塔下的图片列表,实时监控

@ -76,7 +76,7 @@
</div>
</template>
<script>
import { getICEdyTreeList } from "@/utils/api/index";
import { getICEdyTreeList } from "@/utils/api/iceApi";
export default {
data() {
return {
@ -140,22 +140,7 @@ export default {
getICEdyTreeList({
type: -1,
lineid: [
"234",
"238",
"253",
"242",
"233",
"231",
"243",
"235",
"248",
"230",
"236",
"239",
"257",
"255",
],
devtype: [2, 3],
})
.then((res) => {
this.lineTreeData = res.data.list;

@ -251,7 +251,7 @@
</template>
<script>
import leftTree from "../components/leftTree";
import { getDataListJoggle } from "@/utils/api/iceApi";
import { getDataListJoggle, weatherLastJoggle } from "@/utils/api/iceApi";
export default {
name: "weather",
components: {
@ -327,16 +327,13 @@ export default {
//this.getAllData(data);
},
getWeatherData(data) {
this.childFlag = false;
console.log(data, this.qt);
this.loading = true;
getDataListJoggle({
act: "meteo",
qt: this.qt,
id: this.id,
p: this.page,
ps: this.pageSize,
latest: 1,
console.log(data);
weatherLastJoggle({
dyId: 8,
lineId: data.lineid,
pageNum: this.page,
pageSize: this.pageSize,
towerId: data.towerid,
})
.then((res) => {
console.log(res);
@ -348,6 +345,29 @@ export default {
console.log(err); //
});
},
// getWeatherData(data) {
// this.childFlag = false;
// console.log(data, this.qt);
// this.loading = true;
// getDataListJoggle({
// act: "meteo",
// qt: this.qt,
// id: this.id,
// p: this.page,
// ps: this.pageSize,
// latest: 1,
// })
// .then((res) => {
// console.log(res);
// this.tableData = res.data;
// this.total = Number(res.page.totalRecords);
// this.loading = false;
// })
// .catch((err) => {
// console.log(err); //
// });
// },
//
handleCurrentChange(val) {
this.page = val;

@ -721,6 +721,7 @@ export default {
name: "",
},
], //
//
selaccess: "", //
capturenr: {}, //
setForm: {}, //
@ -802,6 +803,9 @@ export default {
case 65284:
this.ratiolist = this.zhejiangratiolist;
break;
case 65290:
this.ratiolist = this.henanratiolist;
break;
}
if (val.protocol == 65281) {
@ -809,7 +813,7 @@ export default {
this.$set(this.setForm, "luminance", 50);
this.$set(this.setForm, "contrast", 50);
this.$set(this.setForm, "saturation", 50);
} else if (val.protocol == 65285) {
} else if (val.protocol == 65285 || val.protocol == 65290) {
this.$set(this.setForm, "resolution", this.ratiolist[7].id);
this.$set(this.setForm, "luminance", 50);
this.$set(this.setForm, "contrast", 50);

@ -21,10 +21,10 @@ module.exports = defineConfig({
proxy: {
"/api": {
//表示拦截以/api开头的请求路径
target: "http://180.166.218.222:40080", //dell
//target: "http://180.166.218.222:40080", //dell
//target: "http://192.168.1.190:8080", //liu 本机ip 需要去掉/Api
//target: "http://192.168.50.7:8093", //liu 本机ip 需要去掉/Api
// target: "http://192.168.111.211:80", //东视
target: "http://192.168.111.211:80", //东视
changOrigin: true, //是否开启跨域
pathRewrite: {
"^/api": "/api", //重写api把api变成空字符因为我们真正请求的路径是没有api的

Loading…
Cancel
Save