覆冰样式优化

jc
fanluyan 1 year ago
parent ef2398b980
commit 6028cff2fa

@ -142,10 +142,10 @@ export default {
index: "/roleManagement", index: "/roleManagement",
title: "角色管理", title: "角色管理",
}, },
// { {
// index: "/menuManagement", index: "/menuManagement",
// title: "", title: "菜单功能管理",
// }, },
{ {
index: "/deviceUpgrade", index: "/deviceUpgrade",
title: "升级管理", title: "升级管理",

@ -60,8 +60,19 @@ export function funccodeJoggle(data) {
url: "/xapi/funccode.php", url: "/xapi/funccode.php",
method: "get", method: "get",
params: data, params: data,
headers: { headers: {
"Content-Type": "application/x-www-form-urlencoded;charset=UTF-8", "Content-Type": "application/x-www-form-urlencoded;charset=UTF-8",
}, },
}); });
} }
//导出覆冰数据
export function exportJoggle(data) {
return request({
url: "/xymanager/leadpulls/export",
method: "get",
params: data,
responseType: "blob",
});
}

@ -109,7 +109,7 @@ export default {
}, },
created() { created() {
this.getLineTreeList(); // this.getLineTreeList(); //
//this.companyVal = this.companyOptions[0].value; this.companyVal = this.companyOptions[0].value;
}, },
methods: { methods: {
handleClick(val) { handleClick(val) {
@ -259,7 +259,7 @@ export default {
> .el-tree-node__content { > .el-tree-node__content {
// //
color: #fff; color: #fff;
background: #1c77ac; background: #169e8c;
.custom-tree-node { .custom-tree-node {
color: #fff; color: #fff;
//overflow: hidden; //overflow: hidden;

@ -33,7 +33,10 @@
<el-button type="primary" @click="onSubmit"></el-button> <el-button type="primary" @click="onSubmit"></el-button>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" @click="exportExcl" <el-button
type="primary"
@click="exportExcl"
v-if="termalFlag"
>导出数据</el-button >导出数据</el-button
> >
</el-form-item> </el-form-item>
@ -82,82 +85,88 @@
</el-table-column> </el-table-column>
<el-table-column prop="funcCode" label="功能单元识别码"> <el-table-column prop="funcCode" label="功能单元识别码">
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="scope.row.funcCodeName && scope.row.funcCode"> <span v-if="scope.row.phase !== '' && scope.row.funcCode">
{{ scope.row.funcCodeName }}({{ {{ scope.row.phase }}({{ scope.row.funcCode }})</span
scope.row.funcCodeHex ><span v-else-if="scope.row.funcCode"
}})</span >({{ scope.row.funcCode }})</span
><span v-else-if="scope.row.funcCodeHex"
>({{ scope.row.funcCodeHex }})</span
> >
<span v-else> - </span> <span v-else> - </span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="maxPull" label="最大拉力(Kg)"> <el-table-column prop="maxpullPull" label="最大拉力(Kg)">
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="scope.row.maxPull != 65535"> <span v-if="scope.row.maxpullPull != 65535">
{{ scope.row.maxPull }}</span {{ scope.row.maxpullPull }}</span
> >
<span v-else> - </span> <span v-else> - </span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column prop="maxpullWind" label="最大拉力时风偏角(°)">
prop="maxPullWind" <template slot-scope="scope">
label="最大拉力时风偏角(°)" <span v-if="scope.row.maxpullWind != 65535">
></el-table-column> {{ scope.row.maxpullWind }}</span
<el-table-column >
prop="maxPullTilt" <span v-else> - </span>
label="最大拉力时倾斜角(°)" </template>
></el-table-column> </el-table-column>
<el-table-column prop="minPull" label="最小拉力(Kg)"> <el-table-column prop="maxpullTilt" label="最大拉力时倾斜角(°)">
<template slot-scope="scope">
<span v-if="scope.row.maxpullTilt != 65535">
{{ scope.row.maxpullTilt }}</span
>
<span v-else> - </span>
</template>
</el-table-column>
<el-table-column prop="minpullPull" label="最小拉力(Kg)">
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="scope.row.minPull != 65535"> <span v-if="scope.row.minpullPull != 65535">
{{ scope.row.minPull }}</span {{ scope.row.minpullPull }}</span
> >
<span v-else> - </span> <span v-else> - </span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="minPullWind" prop="minpullWind"
label="最小拉力时风偏角(°)" label="最小拉力时风偏角(°)"
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
prop="minPullTilt" prop="minpullTilt"
label="最小拉力时倾斜角(°)" label="最小拉力时倾斜角(°)"
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
prop="maxWind" prop="maxwindWind"
label="最大风偏角(°)" label="最大风偏角(°)"
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
prop="maxWindTilt" prop="maxwindTilt"
label="最大风偏角时倾斜角(°)" label="最大风偏角时倾斜角(°)"
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
prop="maxWindPull" prop="maxwindPull"
label="最大风偏角时拉力(Kg)" label="最大风偏角时拉力(Kg)"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="scope.row.maxWindPull != 65535"> <span v-if="scope.row.maxwindPull != 65535">
{{ scope.row.maxWindPull }}</span {{ scope.row.maxwindPull }}</span
> >
<span v-else> - </span> <span v-else> - </span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="minWind" prop="minwindWind"
label="最小风偏角(°)" label="最小风偏角(°)"
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
prop="minWindTilt" prop="minwindTilt"
label="最小风偏角时倾斜角(°)" label="最小风偏角时倾斜角(°)"
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
prop="minWindPull" prop="minwindPull"
label="最小风偏角时拉力(Kg)" label="最小风偏角时拉力(Kg)"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="scope.row.minWindPull != 65535"> <span v-if="scope.row.minwindPull != 65535">
{{ scope.row.minWindPull }}</span {{ scope.row.minwindPull }}</span
> >
<span v-else> - </span> <span v-else> - </span>
</template> </template>
@ -199,7 +208,11 @@
</template> </template>
<script> <script>
import leftTree from "../components/leftTree.vue"; import leftTree from "../components/leftTree.vue";
import { LeadPullJoggle, leadpullsListJoggle } from "@/utils/api/iceApi"; import {
LeadPullJoggle,
leadpullsListJoggle,
exportJoggle,
} from "@/utils/api/iceApi";
export default { export default {
name: "icing", name: "icing",
components: { components: {
@ -221,6 +234,8 @@ export default {
echartsShow: false, //线 echartsShow: false, //线
codeList: [], // codeList: [], //
chartsData: [], chartsData: [],
dyFlag: true,
lineFlag: false,
}; };
}, },
watch: { watch: {
@ -262,6 +277,8 @@ export default {
console.log(data); console.log(data);
if (data.dyValue) { if (data.dyValue) {
console.log("电压-公司"); console.log("电压-公司");
this.dyFlag = true;
this.lineFlag = true;
pullParams = { pullParams = {
dyId: data.id, dyId: data.id,
pageNum: this.page, pageNum: this.page,
@ -270,6 +287,8 @@ export default {
this.getIcingData(pullParams); this.getIcingData(pullParams);
this.termalFlag = false; this.termalFlag = false;
} else if (data.bsManufacturer) { } else if (data.bsManufacturer) {
this.dyFlag = false;
this.lineFlag = true;
console.log("线路-电压"); console.log("线路-电压");
pullParams = { pullParams = {
lineId: data.id, lineId: data.id,
@ -279,17 +298,20 @@ export default {
this.getIcingData(pullParams); this.getIcingData(pullParams);
this.termalFlag = false; this.termalFlag = false;
} else { } else {
this.dyFlag = false;
this.lineFlag = false;
console.log("装置-杆塔"); console.log("装置-杆塔");
const sTime = Math.floor(this.formdata.starttime / 1000); const sTime = Math.floor(this.formdata.starttime / 1000);
const eTime = Math.floor(this.formdata.endtime / 1000); const eTime = Math.floor(this.formdata.endtime / 1000);
console.log(data);
pullParams = { pullParams = {
lineId: data.lineId, lineId: data.lineid,
termId: data.id, termId: data.id,
towerId: data.towerId, towerId: data.towerid,
start: sTime, start: sTime,
end: eTime, end: eTime,
pageNum: data.childpage, pageNum: this.page,
pageSize: data.childpageSize, pageSize: this.pageSize,
}; };
this.getIcingListData(pullParams); this.getIcingListData(pullParams);
this.termalFlag = true; this.termalFlag = true;
@ -302,7 +324,9 @@ export default {
LeadPullJoggle(data) LeadPullJoggle(data)
.then((res) => { .then((res) => {
console.log(res); console.log(res);
this.tableData = res.data.list;
this.tableData = res.data.list.map((item) => item.lastLeadPulls);
// this.tableData = res.data.list;
this.total = res.data.total; this.total = res.data.total;
this.loading = false; this.loading = false;
this.echartsShow = false; this.echartsShow = false;
@ -351,7 +375,7 @@ export default {
}) })
.then((res) => { .then((res) => {
console.log(res); console.log(res);
this.chartsData = res.data; this.chartsData = res.data.list;
this.$nextTick(() => { this.$nextTick(() => {
this.drawLine(); this.drawLine();
}); });
@ -389,16 +413,16 @@ export default {
// var codename = [ // var codename = [
// ...new Set(this.chartsData.map((item) => item.funcCodeName)), // ...new Set(this.chartsData.map((item) => item.funcCodeName)),
// ]; // ];
var code = [...new Set(this.chartsData.map((item) => item.funcCodeHex))]; var code = [...new Set(this.chartsData.map((item) => item.funcCode))];
this.codeList = code; this.codeList = code;
// var finalData = []; // var finalData = [];
console.log(this.codeList); console.log(this.codeList);
const groupedData = this.chartsData.reduce((acc, item) => { const groupedData = this.chartsData.reduce((acc, item) => {
if (!acc[item.funcCodeHex]) { if (!acc[item.funcCode]) {
acc[item.funcCodeHex] = []; acc[item.funcCode] = [];
} }
acc[item.funcCodeHex].push(item); acc[item.funcCode].push(item);
return acc; return acc;
}, []); }, []);
@ -497,14 +521,14 @@ export default {
name: "最大拉力", name: "最大拉力",
type: "line", type: "line",
data: result[i].map((item) => data: result[i].map((item) =>
item.maxPull == 65535 ? "" : item.maxPull item.maxpullPull == 65535 ? "" : item.maxpullPull
), ),
}, },
{ {
name: "最小拉力", name: "最小拉力",
type: "line", type: "line",
data: result[i].map((item) => data: result[i].map((item) =>
item.minPull == 65535 ? "" : item.minPull item.minpullPull == 65535 ? "" : item.minpullPull
), ),
}, },
{ {
@ -512,7 +536,7 @@ export default {
type: "line", type: "line",
data: result[i].map((item) => data: result[i].map((item) =>
item.maxWindPull == 65535 ? "" : item.maxWindPull item.maxwindPull == 65535 ? "" : item.maxwindPull
), ),
}, },
{ {
@ -520,7 +544,7 @@ export default {
type: "line", type: "line",
data: result[i].map((item) => data: result[i].map((item) =>
item.minWindPull == 65535 ? "" : item.minWindPull item.minwindPull == 65535 ? "" : item.minwindPull
), ),
}, },
{ {
@ -528,56 +552,56 @@ export default {
type: "line", type: "line",
yAxisIndex: 1, yAxisIndex: 1,
// prettier-ignore // prettier-ignore
data: result[i].map((item) => item.maxPullWind), data: result[i].map((item) => item.maxpullWind),
}, },
{ {
name: "最大拉力时倾斜角", name: "最大拉力时倾斜角",
type: "line", type: "line",
yAxisIndex: 1, yAxisIndex: 1,
// prettier-ignore // prettier-ignore
data: result[i].map((item) => item.maxPullTilt), data: result[i].map((item) => item.maxpullTilt),
}, },
{ {
name: "最小拉力时风偏角", name: "最小拉力时风偏角",
type: "line", type: "line",
yAxisIndex: 1, yAxisIndex: 1,
// prettier-ignore // prettier-ignore
data: result[i].map((item) => item.minPullWind), data: result[i].map((item) => item.minpullWind),
}, },
{ {
name: "最小拉力时倾斜角", name: "最小拉力时倾斜角",
type: "line", type: "line",
yAxisIndex: 1, yAxisIndex: 1,
// prettier-ignore // prettier-ignore
data: result[i].map((item) => item.minPullTilt), data: result[i].map((item) => item.minpullTilt),
}, },
{ {
name: "最大风偏角", name: "最大风偏角",
type: "line", type: "line",
yAxisIndex: 1, yAxisIndex: 1,
// prettier-ignore // prettier-ignore
data:result[i].map((item) => item.maxWind), data:result[i].map((item) => item.maxwindWind),
}, },
{ {
name: "最大风偏角时倾斜角", name: "最大风偏角时倾斜角",
type: "line", type: "line",
yAxisIndex: 1, yAxisIndex: 1,
// prettier-ignore // prettier-ignore
data:result[i].map((item) => item.maxWindTilt), data:result[i].map((item) => item.maxwindTilt),
}, },
{ {
name: "最小风偏角", name: "最小风偏角",
type: "line", type: "line",
yAxisIndex: 1, yAxisIndex: 1,
// prettier-ignore // prettier-ignore
data: result[i].map((item) => item.minWind), data: result[i].map((item) => item.minwindWind),
}, },
{ {
name: "最小风偏角时倾斜角", name: "最小风偏角时倾斜角",
type: "line", type: "line",
yAxisIndex: 1, yAxisIndex: 1,
// prettier-ignore // prettier-ignore
data: result[i].map((item) => item.minWindTilt), data: result[i].map((item) => item.minwindTilt),
}, },
], ],
}; };
@ -603,49 +627,89 @@ export default {
exportExcl() { exportExcl() {
const sTime = Math.floor(this.formdata.starttime / 1000); const sTime = Math.floor(this.formdata.starttime / 1000);
const eTime = Math.floor(this.formdata.endtime / 1000); const eTime = Math.floor(this.formdata.endtime / 1000);
// window.location.href = "/api/api/getOnlineTerminalListExcel?type=" + val;
window.location.href = window.location.href =
"/api/xapi/query.php?act=ice_weight&qt=" + "/api/xymanager/leadpulls/export?+" +
this.qt + "lineId=" +
"&id=" + this.paramsData.lineid +
this.id + "&termId=" +
"&bt=" + this.paramsData.id +
"&towerId=" +
this.paramsData.towerid +
"&start=" +
sTime + sTime +
"&et=" + "&end=" +
eTime + eTime;
"&p=1&ps=20&exp=xls";
}, },
onSubmit() { onSubmit() {
console.log(this.formdata.starttime, this.formdata.endtime); console.log(this.formdata.starttime, this.formdata.endtime);
// if (
// new Date(this.formdata.starttime).getDate() ===
// new Date(this.formdata.endtime).getDate()
// ) {
// this.getIcingData(this.paramsData);
// console.log("");
// } else {
// this.$message({
// duration: 1500,
// showClose: true,
// message: "",
// type: "warning",
// });
// return;
// console.log("");
// }
this.getIcingData(this.paramsData); this.getIcingData(this.paramsData);
}, },
// //
handleCurrentChange(val) { handleCurrentChange(val) {
this.page = val; this.page = val;
this.tableData = []; this.tableData = [];
this.getIcingData(this.paramsData); const sTime = Math.floor(this.formdata.starttime / 1000);
const eTime = Math.floor(this.formdata.endtime / 1000);
if (this.dyFlag) {
let pullParams = {
dyId: this.paramsData.id,
pageNum: this.page,
pageSize: this.pageSize,
};
this.getIcingData(pullParams);
} else if (this.lineFlag) {
let pullParams = {
lineId: this.paramsData.id,
pageNum: this.page,
pageSize: this.pageSize,
};
this.getIcingData(pullParams);
} else if (this.termalFlag) {
let pullParams = {
lineId: this.paramsData.lineid,
termId: this.paramsData.id,
towerId: this.paramsData.towerid,
start: sTime,
end: eTime,
pageNum: this.page,
pageSize: this.pageSize,
};
this.getIcingListData(pullParams);
}
}, },
// //
handleSizeChange(val) { handleSizeChange(val) {
this.pageSize = val; this.pageSize = val;
this.tableData = []; this.tableData = [];
this.getIcingData(this.paramsData); const sTime = Math.floor(this.formdata.starttime / 1000);
const eTime = Math.floor(this.formdata.endtime / 1000);
if (this.dyFlag) {
let pullParams = {
dyId: this.paramsData.id,
pageNum: this.page,
pageSize: this.pageSize,
};
this.getIcingData(pullParams);
} else if (this.lineFlag) {
let pullParams = {
lineId: this.paramsData.id,
pageNum: this.page,
pageSize: this.pageSize,
};
this.getIcingData(pullParams);
} else if (this.termalFlag) {
let pullParams = {
lineId: this.paramsData.lineid,
termId: this.paramsData.id,
towerId: this.paramsData.towerid,
start: sTime,
end: eTime,
pageNum: this.page,
pageSize: this.pageSize,
};
this.getIcingListData(pullParams);
}
}, },
}, },
}; };

@ -406,7 +406,7 @@ export default {
.then((res) => { .then((res) => {
console.log(res); console.log(res);
this.childTableDate = res.data.list; this.childTableDate = res.data.list;
//this.childtotal = Number(res.page.totalRecords); this.childtotal = res.data.total;
this.loading = false; this.loading = false;
//线 //线
this.getAllData(row); this.getAllData(row);
@ -424,12 +424,13 @@ export default {
towerId: row.towerId, towerId: row.towerId,
start: sTime, start: sTime,
end: eTime, end: eTime,
pageNum: this.childpage, pageNum: 1,
pageSize: 1000, pageSize: 1000,
}) })
.then((res) => { .then((res) => {
console.log(res); console.log(res);
this.echartsData = res.data.list; this.echartsData = res.data.list;
//线 //线
this.getEchart4(this.echartsData); this.getEchart4(this.echartsData);
this.getEchart5(this.echartsData); this.getEchart5(this.echartsData);

@ -192,7 +192,7 @@ export default {
selectChannel: "", selectChannel: "",
resolutionCX: "", resolutionCX: "",
resolutionCY: "", resolutionCY: "",
isImageZoomEnabled: 1, isImageZoomEnabled: 0,
zoomVal: 1, zoomVal: 1,
videoSize: "", videoSize: "",
videoCX: "", videoCX: "",

@ -22,7 +22,7 @@ module.exports = defineConfig({
"/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, //是否开启跨域

Loading…
Cancel
Save