fix: BUG修改
This commit is contained in:
parent
e9e575fa8b
commit
8f7bdb1cc0
@ -18,7 +18,7 @@
|
|||||||
<span>额定人数: {{ equipInfo.ratedPeopleNum ? equipInfo.ratedPeopleNum : 0 }}人</span>
|
<span>额定人数: {{ equipInfo.ratedPeopleNum ? equipInfo.ratedPeopleNum : 0 }}人</span>
|
||||||
<span>当前楼层数: {{ equipInfo.floorNum ? equipInfo.floorNum : 0 }}</span>
|
<span>当前楼层数: {{ equipInfo.floorNum ? equipInfo.floorNum : 0 }}</span>
|
||||||
<span>最大高度: {{ equipInfo.height ? equipInfo.height : 0 }}m</span>
|
<span>最大高度: {{ equipInfo.height ? equipInfo.height : 0 }}m</span>
|
||||||
<span>高度百分比: {{ equipInfo.heightRatio ? equipInfo.heightRatio : 0 }}%</span>
|
<!-- <span>高度百分比: {{ equipInfo.heightRatio ? equipInfo.heightRatio : 0 }}%</span> -->
|
||||||
<!-- <span>额定上行速度: {{ equipInfo.maxHeight ? equipInfo.maxHeight : 0 }}m</span>
|
<!-- <span>额定上行速度: {{ equipInfo.maxHeight ? equipInfo.maxHeight : 0 }}m</span>
|
||||||
<span>额定下行速度: {{ equipInfo.maxHeight ? equipInfo.maxHeight : 0 }}m</span> -->
|
<span>额定下行速度: {{ equipInfo.maxHeight ? equipInfo.maxHeight : 0 }}m</span> -->
|
||||||
</div>
|
</div>
|
||||||
@ -179,6 +179,7 @@ const monitorList = ref([]);
|
|||||||
const alarmList = ref([]);
|
const alarmList = ref([]);
|
||||||
const equipList = ref([]);
|
const equipList = ref([]);
|
||||||
const equipInfo = ref({});
|
const equipInfo = ref({});
|
||||||
|
const activeValue = ref("eng");
|
||||||
const searchForm = ref({
|
const searchForm = ref({
|
||||||
timeRange: []
|
timeRange: []
|
||||||
});
|
});
|
||||||
@ -280,7 +281,8 @@ const alarmTransform = (obj: any) => {
|
|||||||
const getMonitorList = async () => {
|
const getMonitorList = async () => {
|
||||||
let requestData = {
|
let requestData = {
|
||||||
pageNo: pages.value.pageNo,
|
pageNo: pages.value.pageNo,
|
||||||
pageSize: pages.value.pageSize
|
pageSize: pages.value.pageSize,
|
||||||
|
devId: equipInfo.value.id
|
||||||
} as any;
|
} as any;
|
||||||
requestData.engineeringSn = searchSn.value;
|
requestData.engineeringSn = searchSn.value;
|
||||||
if (searchForm.value.timeRange && searchForm.value.timeRange.length > 0) {
|
if (searchForm.value.timeRange && searchForm.value.timeRange.length > 0) {
|
||||||
@ -301,7 +303,8 @@ const getMonitorList = async () => {
|
|||||||
const getAlarmList = async () => {
|
const getAlarmList = async () => {
|
||||||
let requestData = {
|
let requestData = {
|
||||||
pageNo: pages.value.pageNo,
|
pageNo: pages.value.pageNo,
|
||||||
pageSize: pages.value.pageSize
|
pageSize: pages.value.pageSize,
|
||||||
|
devId: equipInfo.value.id
|
||||||
} as any;
|
} as any;
|
||||||
requestData.engineeringSn = searchSn.value;
|
requestData.engineeringSn = searchSn.value;
|
||||||
if (searchForm.value.timeRange && searchForm.value.timeRange.length > 0) {
|
if (searchForm.value.timeRange && searchForm.value.timeRange.length > 0) {
|
||||||
@ -322,17 +325,23 @@ const getAlarmList = async () => {
|
|||||||
const getEquipList = async () => {
|
const getEquipList = async () => {
|
||||||
let requestData = {} as any;
|
let requestData = {} as any;
|
||||||
requestData.engineeringSn = searchSn.value;
|
requestData.engineeringSn = searchSn.value;
|
||||||
const res = await lifterEquipAll(requestData);
|
if (searchSn.value) {
|
||||||
console.log(res);
|
const res = await lifterEquipAll(requestData);
|
||||||
if (res && res.result && res.result.length > 0) {
|
console.log(res);
|
||||||
equipList.value = res.result;
|
if (res && res.result && res.result.length > 0) {
|
||||||
getEquipInfo(res.result[0]);
|
equipList.value = res.result;
|
||||||
|
getEquipInfo(res.result[0]);
|
||||||
|
} else {
|
||||||
|
equipList.value = [];
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
|
equipInfo.value = {};
|
||||||
equipList.value = [];
|
equipList.value = [];
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
// 获取设备信息
|
// 获取设备信息
|
||||||
const getEquipInfo = async (obj: any) => {
|
const getEquipInfo = async (obj: any) => {
|
||||||
|
equipActive.value = equipList.value.findIndex(item => item.id == obj.id);
|
||||||
let requestData = {
|
let requestData = {
|
||||||
id: obj.id
|
id: obj.id
|
||||||
};
|
};
|
||||||
@ -343,6 +352,11 @@ const getEquipInfo = async (obj: any) => {
|
|||||||
} else {
|
} else {
|
||||||
equipInfo.value = { ...obj };
|
equipInfo.value = { ...obj };
|
||||||
}
|
}
|
||||||
|
if (active.value === 0) {
|
||||||
|
getAlarmList();
|
||||||
|
} else {
|
||||||
|
getMonitorList();
|
||||||
|
}
|
||||||
};
|
};
|
||||||
// 右侧报警数据搜索
|
// 右侧报警数据搜索
|
||||||
const search = () => {
|
const search = () => {
|
||||||
@ -371,6 +385,11 @@ const getengineering = async () => {
|
|||||||
searchSn.value = res.result[0].engineeringSn;
|
searchSn.value = res.result[0].engineeringSn;
|
||||||
}
|
}
|
||||||
getEquipList();
|
getEquipList();
|
||||||
|
if (active.value === 0) {
|
||||||
|
getAlarmList();
|
||||||
|
} else {
|
||||||
|
getMonitorList();
|
||||||
|
}
|
||||||
console.log(res);
|
console.log(res);
|
||||||
};
|
};
|
||||||
// 点击抽屉的工程名称更新页面
|
// 点击抽屉的工程名称更新页面
|
||||||
|
|||||||
@ -57,14 +57,14 @@
|
|||||||
<span>额定人数: {{ equipInfo.ratedPeopleNum ? equipInfo.ratedPeopleNum : 0 }}人</span>
|
<span>额定人数: {{ equipInfo.ratedPeopleNum ? equipInfo.ratedPeopleNum : 0 }}人</span>
|
||||||
<span>当前楼层数: {{ equipInfo.floorNum ? equipInfo.floorNum : 0 }}</span>
|
<span>当前楼层数: {{ equipInfo.floorNum ? equipInfo.floorNum : 0 }}</span>
|
||||||
<span>最大高度: {{ equipInfo.maxHeight ? equipInfo.maxHeight : 0 }}m</span>
|
<span>最大高度: {{ equipInfo.maxHeight ? equipInfo.maxHeight : 0 }}m</span>
|
||||||
<span>高度百分比: {{ equipInfo.heightRatio ? equipInfo.heightRatio : 0 }}%</span>
|
<!-- <span>高度百分比: {{ equipInfo.heightRatio ? equipInfo.heightRatio : 0 }}%</span> -->
|
||||||
<!-- <span>额定上行速度: {{ equipInfo.maxHeight ? equipInfo.maxHeight : 0 }}m</span>
|
<!-- <span>额定上行速度: {{ equipInfo.maxHeight ? equipInfo.maxHeight : 0 }}m</span>
|
||||||
<span>额定下行速度: {{ equipInfo.maxHeight ? equipInfo.maxHeight : 0 }}m</span> -->
|
<span>额定下行速度: {{ equipInfo.maxHeight ? equipInfo.maxHeight : 0 }}m</span> -->
|
||||||
</div>
|
</div>
|
||||||
<div class="other-info">
|
<div class="other-info">
|
||||||
<span>备案编号: {{ equipInfo.filingNumber ? equipInfo.filingNumber : "" }}</span>
|
<span :title="equipInfo.filingNumber">备案编号: {{ equipInfo.filingNumber ? equipInfo.filingNumber : "" }}</span>
|
||||||
<span>安装日期: {{ equipInfo.installTime ? equipInfo.installTime : "" }}</span>
|
<span>安装日期: {{ equipInfo.installTime ? equipInfo.installTime : "" }}</span>
|
||||||
<span>终端编号: {{ equipInfo.devNumber ? equipInfo.devNumber : "" }}</span>
|
<span :title="equipInfo.devNumber">终端编号: {{ equipInfo.devNumber ? equipInfo.devNumber : "" }}</span>
|
||||||
<span>更新时间: {{ equipInfo.realTime ? equipInfo.realTime : "" }}</span>
|
<span>更新时间: {{ equipInfo.realTime ? equipInfo.realTime : "" }}</span>
|
||||||
<!-- <span>安装时间: {{ equipInfo.installTime ? equipInfo.installTime : "" }}</span> -->
|
<!-- <span>安装时间: {{ equipInfo.installTime ? equipInfo.installTime : "" }}</span> -->
|
||||||
</div>
|
</div>
|
||||||
@ -326,11 +326,16 @@ const getEquipList = async () => {
|
|||||||
} else {
|
} else {
|
||||||
requestData.engineeringSn = searchSn.value;
|
requestData.engineeringSn = searchSn.value;
|
||||||
}
|
}
|
||||||
const res = await lifterEquipAll(requestData);
|
if (searchSn.value) {
|
||||||
console.log(res, "设备列表");
|
const res = await lifterEquipAll(requestData);
|
||||||
if (res && res.result && res.result.length > 0) {
|
console.log(res);
|
||||||
equipList.value = res.result;
|
if (res && res.result && res.result.length > 0) {
|
||||||
getEquipInfo(res.result[0]);
|
equipList.value = res.result;
|
||||||
|
getEquipInfo(res.result[0]);
|
||||||
|
} else {
|
||||||
|
equipInfo.value = {};
|
||||||
|
equipList.value = [];
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
equipInfo.value = {};
|
equipInfo.value = {};
|
||||||
equipList.value = [];
|
equipList.value = [];
|
||||||
@ -349,12 +354,18 @@ const getEquipInfo = async (obj: any) => {
|
|||||||
} else {
|
} else {
|
||||||
equipInfo.value = { ...obj };
|
equipInfo.value = { ...obj };
|
||||||
}
|
}
|
||||||
|
if (active.value === 0) {
|
||||||
|
getAlarmList();
|
||||||
|
} else {
|
||||||
|
getMonitorList();
|
||||||
|
}
|
||||||
};
|
};
|
||||||
// 获取历史检测信息
|
// 获取历史检测信息
|
||||||
const getMonitorList = async () => {
|
const getMonitorList = async () => {
|
||||||
let requestData = {
|
let requestData = {
|
||||||
pageNo: pages.value.pageNo,
|
pageNo: pages.value.pageNo,
|
||||||
pageSize: pages.value.pageSize
|
pageSize: pages.value.pageSize,
|
||||||
|
devId: equipInfo.value.id
|
||||||
} as any;
|
} as any;
|
||||||
if (alarmActive.value == 0) {
|
if (alarmActive.value == 0) {
|
||||||
requestData.projectSn = searchSn.value;
|
requestData.projectSn = searchSn.value;
|
||||||
@ -379,7 +390,8 @@ const getMonitorList = async () => {
|
|||||||
const getAlarmList = async () => {
|
const getAlarmList = async () => {
|
||||||
let requestData = {
|
let requestData = {
|
||||||
pageNo: pages.value.pageNo,
|
pageNo: pages.value.pageNo,
|
||||||
pageSize: pages.value.pageSize
|
pageSize: pages.value.pageSize,
|
||||||
|
devId: equipInfo.value.id
|
||||||
} as any;
|
} as any;
|
||||||
if (alarmActive.value == 0) {
|
if (alarmActive.value == 0) {
|
||||||
requestData.projectSn = searchSn.value;
|
requestData.projectSn = searchSn.value;
|
||||||
@ -469,7 +481,7 @@ const getEngPage = async () => {
|
|||||||
};
|
};
|
||||||
const { result } = await getLifterRealTimeEngineeringPage(requestData);
|
const { result } = await getLifterRealTimeEngineeringPage(requestData);
|
||||||
records.value = result.records;
|
records.value = result.records;
|
||||||
pages.value.total = Number(result.total);
|
pages.value.total = +result.total;
|
||||||
};
|
};
|
||||||
watch(
|
watch(
|
||||||
() => active.value,
|
() => active.value,
|
||||||
|
|||||||
@ -18,7 +18,7 @@
|
|||||||
<span>额定人数: {{ equipInfo.ratedPeopleNum ? equipInfo.ratedPeopleNum : 0 }}人</span>
|
<span>额定人数: {{ equipInfo.ratedPeopleNum ? equipInfo.ratedPeopleNum : 0 }}人</span>
|
||||||
<span>当前楼层数: {{ equipInfo.floorNum ? equipInfo.floorNum : 0 }}</span>
|
<span>当前楼层数: {{ equipInfo.floorNum ? equipInfo.floorNum : 0 }}</span>
|
||||||
<span>最大高度: {{ equipInfo.maxHeight ? equipInfo.maxHeight : 0 }}m</span>
|
<span>最大高度: {{ equipInfo.maxHeight ? equipInfo.maxHeight : 0 }}m</span>
|
||||||
<span>高度百分比: {{ equipInfo.heightRatio ? equipInfo.heightRatio : 0 }}%</span>
|
<!-- <span>高度百分比: {{ equipInfo.heightRatio ? equipInfo.heightRatio : 0 }}%</span> -->
|
||||||
<!-- <span>额定上行速度: {{ equipInfo.maxHeight ? equipInfo.maxHeight : 0 }}m</span>
|
<!-- <span>额定上行速度: {{ equipInfo.maxHeight ? equipInfo.maxHeight : 0 }}m</span>
|
||||||
<span>额定下行速度: {{ equipInfo.maxHeight ? equipInfo.maxHeight : 0 }}m</span> -->
|
<span>额定下行速度: {{ equipInfo.maxHeight ? equipInfo.maxHeight : 0 }}m</span> -->
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user