Browse Source

合流区参数过滤

develop
王兴琳 1 week ago
parent
commit
4c09ecad30
  1. 22
      ruoyi-ui/src/views/JiHeExpressway/components/Descriptions.vue
  2. 6
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/FatigueWakesUp/components/DeviceParam.vue

22
ruoyi-ui/src/views/JiHeExpressway/components/Descriptions.vue

@ -76,6 +76,26 @@ export default {
return (item) => getContent(this.data, item); return (item) => getContent(this.data, item);
}, },
getResolveList() { getResolveList() {
// property
const disallowedProperties = ['cellVoltage', 'chargeCurrent','solarVoltage','time','averageData'];
return this.list.reduce((prev, data) => {
if (disallowedProperties.includes(data.key)) {
return prev; //
}
// visible
if (typeof data.visible === "function") {
if (!data.visible(data)) return prev;
} else if (data.visible === false) {
return prev;
}
prev.push(data);
return prev;
}, []);
}
/* getResolveList() {
return this.list.reduce((prev, data) => { return this.list.reduce((prev, data) => {
if (typeof data.visible === "function") { if (typeof data.visible === "function") {
if (!data.visible(data)) return prev; if (!data.visible(data)) return prev;
@ -84,7 +104,7 @@ export default {
prev.push(data); prev.push(data);
return prev; return prev;
}, []); }, []);
}, },*/
}, },
methods: { methods: {
getStyle() { getStyle() {

6
ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/FatigueWakesUp/components/DeviceParam.vue

@ -275,9 +275,13 @@ export default {
// this.activeName = "second"; // this.activeName = "second";
// this.tabClick(); // this.tabClick();
// } else { // } else {
this.formData.controlType = result.data + "" || "1"; console.log("工作模式")
console.log(result.data)
this.formData.controlType = result.data + "" || "0";
// //
let resultTime = await this.requestURL("ASKTM"); let resultTime = await this.requestURL("ASKTM");
console.log("工作时长")
console.log(resultTime.data)
this.formData.onWorkStatus = resultTime.data || 0; this.formData.onWorkStatus = resultTime.data || 0;
this.activeName = "first"; this.activeName = "first";
// } // }

Loading…
Cancel
Save