jc
fanluyan 12 months ago
parent fadebb3410
commit 411ef6d491

@ -314,7 +314,7 @@ export default {
console.log("电压-公司"); console.log("电压-公司");
weatherParams = { weatherParams = {
dyId: data.id, dyId: data.id,
pageNum: this.page, pageNum: 1,
pageSize: this.pageSize, pageSize: this.pageSize,
}; };
this.getWeatherData(weatherParams); this.getWeatherData(weatherParams);
@ -322,14 +322,14 @@ export default {
console.log("线路-电压"); console.log("线路-电压");
weatherParams = { weatherParams = {
lineId: data.id, lineId: data.id,
pageNum: this.page, pageNum: 1,
pageSize: this.pageSize, pageSize: this.pageSize,
}; };
this.getWeatherData(weatherParams); this.getWeatherData(weatherParams);
} else { } else {
console.log("装置-杆塔"); console.log("装置-杆塔");
weatherParams = { weatherParams = {
pageNum: this.page, pageNum: 1,
pageSize: this.pageSize, pageSize: this.pageSize,
towerId: data.towerid, towerId: data.towerid,
}; };
@ -356,14 +356,68 @@ export default {
// //
handleCurrentChange(val) { handleCurrentChange(val) {
this.page = val; this.page = val;
let data = this.paramsData;
let weatherParams;
this.tableData = []; this.tableData = [];
this.getWeatherData(this.paramsData); if (data.dyValue) {
console.log("电压-公司");
weatherParams = {
dyId: data.id,
pageNum: this.page,
pageSize: this.pageSize,
};
this.getWeatherData(weatherParams);
} else if (data.bsManufacturer) {
console.log("线路-电压");
weatherParams = {
lineId: data.id,
pageNum: this.page,
pageSize: this.pageSize,
};
this.getWeatherData(weatherParams);
} else {
console.log("装置-杆塔");
weatherParams = {
pageNum: this.page,
pageSize: this.pageSize,
towerId: data.towerid,
};
this.getWeatherData(weatherParams);
}
//this.getCurrentData(this.paramsData);
}, },
// //
handleSizeChange(val) { handleSizeChange(val) {
this.pageSize = val; this.pageSize = val;
this.tableData = []; this.tableData = [];
this.getWeatherData(this.paramsData); let data = this.paramsData;
let weatherParams;
this.tableData = [];
if (data.dyValue) {
console.log("电压-公司");
weatherParams = {
dyId: data.id,
pageNum: this.page,
pageSize: this.pageSize,
};
this.getWeatherData(weatherParams);
} else if (data.bsManufacturer) {
console.log("线路-电压");
weatherParams = {
lineId: data.id,
pageNum: this.page,
pageSize: this.pageSize,
};
this.getWeatherData(weatherParams);
} else {
console.log("装置-杆塔");
weatherParams = {
pageNum: this.page,
pageSize: this.pageSize,
towerId: data.towerid,
};
this.getWeatherData(weatherParams);
}
}, },
// //
moreDataClick(row) { moreDataClick(row) {

@ -720,8 +720,32 @@ export default {
id: 20, id: 20,
name: "", name: "",
}, },
], // ], //
nxratiolist: [ nxratiolist: [
{
id: 1,
name: "320X240",
},
{
id: 2,
name: "640X480",
},
{
id: 3,
name: "704X576",
},
{
id: 4,
name: "800X600 ",
},
{
id: 5,
name: "1024X768",
},
{
id: 6,
name: "1280X1024 ",
},
{ {
id: 7, id: 7,
name: "1280X720", name: "1280X720",
@ -730,6 +754,54 @@ export default {
id: 8, id: 8,
name: "1920X1080", name: "1920X1080",
}, },
{
id: 9,
name: "2560X1440",
},
{
id: 10,
name: "3840X2160",
},
{
id: 11,
name: "2560X1920 ",
},
{
id: 12,
name: "3264X2448",
},
{
id: 13,
name: "4224X3136",
},
{
id: 14,
name: "",
},
{
id: 15,
name: "",
},
{
id: 16,
name: "",
},
{
id: 17,
name: "",
},
{
id: 18,
name: "",
},
{
id: 19,
name: "",
},
{
id: 20,
name: "",
},
], // ], //
// //
selaccess: "", // selaccess: "", //

@ -241,7 +241,7 @@ export default {
termid: -1, termid: -1,
search: "", search: "",
}, },
tdTermid: "",
page: 1, // page: 1, //
pageSize: 20, // pageSize: 20, //
total: 0, // total: 0, //
@ -365,6 +365,14 @@ export default {
}) })
.catch((err) => {}); .catch((err) => {});
}, },
getSearchtdAlone() {
getSearchInfo({ type: 5, id: this.tdTermid })
.then((res) => {
this.tdOptions = [{ id: -1, name: "全部", alias: null }];
this.tdOptions = this.tdOptions.concat(res.data.list);
})
.catch((err) => {});
},
// //
getPicData() { getPicData() {
this.loading = true; this.loading = true;
@ -376,6 +384,8 @@ export default {
this.picList = []; this.picList = [];
this.picList = res.data.list; this.picList = res.data.list;
this.total = res.data.total; this.total = res.data.total;
this.tdTermid = res.data.list[0].termid;
this.getSearchtdAlone();
this.loading = false; this.loading = false;
}) })
.catch((err) => { .catch((err) => {

@ -23,8 +23,8 @@ module.exports = defineConfig({
//表示拦截以/api开头的请求路径 //表示拦截以/api开头的请求路径
//target: "http://192.168.1.190:8080", //190 需要去掉/Api //target: "http://192.168.1.190:8080", //190 需要去掉/Api
// target: "http://61.169.135.146:9911/", //运维 target: "http://61.169.135.146:9911/", //运维
target: "http://61.169.135.146:40080/", //dell // target: "http://61.169.135.146:40080/", //dell
changOrigin: true, //是否开启跨域 changOrigin: true, //是否开启跨域
pathRewrite: { pathRewrite: {
"^/api": "/api", //重写api把api变成空字符因为我们真正请求的路径是没有api的 "^/api": "/api", //重写api把api变成空字符因为我们真正请求的路径是没有api的

Loading…
Cancel
Save