fix:修改设备告警逻辑 修改冲突样式
This commit is contained in:
@@ -242,12 +242,15 @@
|
|||||||
dynamicParams: {
|
dynamicParams: {
|
||||||
deviceCode: 'deviceInfoCode', //帮定上级联动数据
|
deviceCode: 'deviceInfoCode', //帮定上级联动数据
|
||||||
},
|
},
|
||||||
|
defaultParams: {
|
||||||
|
type: 0,
|
||||||
|
},
|
||||||
componentProps: {
|
componentProps: {
|
||||||
api: device.queryDevicePoint,
|
api: device.queryDevicePoint,
|
||||||
allowClear: true,
|
allowClear: true,
|
||||||
resultField: 'data',
|
resultField: 'data',
|
||||||
placeholder: '请选择设备点位',
|
placeholder: '请选择设备点位',
|
||||||
labelField: 'code',
|
labelField: 'name',
|
||||||
valueField: 'id',
|
valueField: 'id',
|
||||||
dependency: 'deviceInfoCode',
|
dependency: 'deviceInfoCode',
|
||||||
showSearch: true,
|
showSearch: true,
|
||||||
|
@@ -217,13 +217,14 @@
|
|||||||
//获取设备点位
|
//获取设备点位
|
||||||
const getDevicePoint = (value: any) => {
|
const getDevicePoint = (value: any) => {
|
||||||
devicePointData.value = [];
|
devicePointData.value = [];
|
||||||
|
value.type = 0;
|
||||||
http.post(device.queryDevicePoint, value).then((res) => {
|
http.post(device.queryDevicePoint, value).then((res) => {
|
||||||
if (res.msg === 'success') {
|
if (res.msg === 'success') {
|
||||||
res.data.forEach((item: any) => {
|
res.data.forEach((item: any) => {
|
||||||
//显示格式
|
//显示格式
|
||||||
devicePointData.value.push({
|
devicePointData.value.push({
|
||||||
value: item.id,
|
value: item.id,
|
||||||
label: item.code + ' ( ' + item.unit + ' ) ',
|
label: item.name + ' ( ' + item.unit + ' ) ',
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@@ -10,7 +10,7 @@
|
|||||||
@close="handleClose">
|
@close="handleClose">
|
||||||
<div style="width: 100%; height: 100%; overflow-y: auto; overflow-x: hidden">
|
<div style="width: 100%; height: 100%; overflow-y: auto; overflow-x: hidden">
|
||||||
<!-- top -->
|
<!-- top -->
|
||||||
<div class="box">
|
<div class="boxstyle">
|
||||||
<div class="card"></div>
|
<div class="card"></div>
|
||||||
<div style="left: 25px; position: absolute; height: 35px; line-height: 35px">
|
<div style="left: 25px; position: absolute; height: 35px; line-height: 35px">
|
||||||
告警编号:{{ infoObject.alarmCode }}
|
告警编号:{{ infoObject.alarmCode }}
|
||||||
@@ -271,7 +271,7 @@
|
|||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
<style scoped lang="less">
|
<style scoped lang="less">
|
||||||
.box {
|
.boxstyle {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 35px;
|
height: 35px;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
<!-- 双图 -->
|
<!-- 双图 -->
|
||||||
<template>
|
<template>
|
||||||
<div class="box">
|
<div class="boxs">
|
||||||
<div class="box-title title">
|
<div class="box-title title">
|
||||||
{{ dataSource.title }}
|
{{ dataSource.title }}
|
||||||
</div>
|
</div>
|
||||||
@@ -88,7 +88,7 @@
|
|||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
.box {
|
.boxs {
|
||||||
width: 192px;
|
width: 192px;
|
||||||
height: 125px;
|
height: 125px;
|
||||||
background: inherit;
|
background: inherit;
|
||||||
|
@@ -343,4 +343,7 @@
|
|||||||
:deep(.ant-tabs) {
|
:deep(.ant-tabs) {
|
||||||
overflow-y: auto !important;
|
overflow-y: auto !important;
|
||||||
}
|
}
|
||||||
|
:deep(.ant-empty-description) {
|
||||||
|
color: white !important;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
Reference in New Issue
Block a user