jc
fanluyan 1 year ago
parent e3b7b79e74
commit fafc902dd2

@ -1,5 +1,25 @@
import request from "../request"; 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) { export function getDataListJoggle(data) {
return request({ return request({

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

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

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

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

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

Loading…
Cancel
Save