|
|
|
@ -196,15 +196,15 @@
|
|
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
|
|
<el-table-column prop="maxvalue" align="center" show-overflow-tooltip label="数据范围">
|
|
|
|
|
<el-table-column prop="maxData" align="center" show-overflow-tooltip label="数据范围">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="scope.row.datadown"
|
|
|
|
|
v-model="scope.row.minData"
|
|
|
|
|
placeholder="下限"
|
|
|
|
|
style="width:80px;height: 20px;"
|
|
|
|
|
size="mini"
|
|
|
|
|
/>--
|
|
|
|
|
<el-input v-model="scope.row.dataup" placeholder="上限" style="width:80px;" size="mini" />
|
|
|
|
|
<el-input v-model="scope.row.maxData" placeholder="上限" style="width:80px;" size="mini" />
|
|
|
|
|
<br>
|
|
|
|
|
<div v-if="sensorTableData[scope.row.id - 1]['name'] =='水位'" style="margin-top:5px">
|
|
|
|
|
<el-input v-model="scope.row.p1" placeholder="表面积" style="width:80px;" size="mini" />--
|
|
|
|
@ -214,8 +214,8 @@
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column prop="minvalue" align="center" show-overflow-tooltip label="测量范围">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-input v-model="scope.row.p3" placeholder="下限" style="width:80px;" size="mini" />--
|
|
|
|
|
<el-input v-model="scope.row.p4" placeholder="上限" style="width:80px;" size="mini" />
|
|
|
|
|
<el-input v-model="scope.row.minValue" placeholder="下限" style="width:80px;" size="mini" />--
|
|
|
|
|
<el-input v-model="scope.row.maxValue" placeholder="上限" style="width:80px;" size="mini" />
|
|
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
@ -377,6 +377,8 @@ export default {
|
|
|
|
|
upperLimitYellow: 0,
|
|
|
|
|
lowerLimitOrange: 0,
|
|
|
|
|
upperLimitOrange: 0,
|
|
|
|
|
minData: 0,
|
|
|
|
|
maxValue: 0,
|
|
|
|
|
p1: '',
|
|
|
|
|
p2: '',
|
|
|
|
|
state: 0,
|
|
|
|
@ -489,8 +491,8 @@ export default {
|
|
|
|
|
console.log(val)
|
|
|
|
|
for (let index = 0; index < this.sensorNameList.length; index++) {
|
|
|
|
|
if (this.sensorNameList[index]['value'] === val) {
|
|
|
|
|
this.sensorTableData[id - 1]['dataup'] = this.sensorNameList[index]['maxValue']
|
|
|
|
|
this.sensorTableData[id - 1]['datadown'] = this.sensorNameList[index]['minValue']
|
|
|
|
|
this.sensorTableData[id - 1]['maxValue'] = this.sensorNameList[index]['maxValue']
|
|
|
|
|
this.sensorTableData[id - 1]['minValue'] = this.sensorNameList[index]['minValue']
|
|
|
|
|
this.sensorTableData[id - 1]['name'] = this.sensorNameList[index]['name']
|
|
|
|
|
this.sensorTableData[id - 1]['unitName'] = this.sensorNameList[index]['unitName']
|
|
|
|
|
}
|
|
|
|
@ -519,8 +521,8 @@ export default {
|
|
|
|
|
sid: rDatas[index]['id'],
|
|
|
|
|
sensoName: rDatas[index]['type'],
|
|
|
|
|
interface: rDatas[index]['devPort'],
|
|
|
|
|
dataup: rDatas[index]['maxValue'],
|
|
|
|
|
datadown: rDatas[index]['minValue'],
|
|
|
|
|
maxValue: rDatas[index]['maxValue'],
|
|
|
|
|
minValue: rDatas[index]['minValue'],
|
|
|
|
|
unitName: rDatas[index]['unitName'],
|
|
|
|
|
name: rDatas[index]['name'],
|
|
|
|
|
p4: '',
|
|
|
|
@ -531,6 +533,8 @@ export default {
|
|
|
|
|
upperLimitYellow: rDatas[index]['upperLimitYellow'],
|
|
|
|
|
lowerLimitOrange: rDatas[index]['lowerLimitOrange'],
|
|
|
|
|
upperLimitOrange: rDatas[index]['upperLimitOrange'],
|
|
|
|
|
minData: rDatas[index]['minData'],
|
|
|
|
|
maxData: rDatas[index]['maxData'],
|
|
|
|
|
state: rDatas[index]['status'],
|
|
|
|
|
p1: rDatas[index]['p1'],
|
|
|
|
|
p2: rDatas[index]['p2'],
|
|
|
|
@ -555,8 +559,8 @@ export default {
|
|
|
|
|
type: this.sensorTableData[index]['sensoName'],
|
|
|
|
|
name: this.sensorTableData[index]['name'],
|
|
|
|
|
unitName: this.sensorTableData[index]['unitName'],
|
|
|
|
|
minValue: this.sensorTableData[index]['datadown'],
|
|
|
|
|
maxValue: this.sensorTableData[index]['dataup'],
|
|
|
|
|
minValue: this.sensorTableData[index]['minValue'],
|
|
|
|
|
maxValue: this.sensorTableData[index]['maxValue'],
|
|
|
|
|
lowerLimit: this.sensorTableData[index]['datadown'],
|
|
|
|
|
upperLimit: this.sensorTableData[index]['dataup'],
|
|
|
|
|
lowerLimitRed: this.sensorTableData[index]['lowerLimitRed'],
|
|
|
|
@ -564,6 +568,8 @@ export default {
|
|
|
|
|
lowerLimitYellow: this.sensorTableData[index]['lowerLimitYellow'],
|
|
|
|
|
upperLimitYellow: this.sensorTableData[index]['upperLimitYellow'],
|
|
|
|
|
lowerLimitOrange: this.sensorTableData[index]['lowerLimitOrange'],
|
|
|
|
|
minData: this.sensorTableData[index]['minData'],
|
|
|
|
|
maxData: this.sensorTableData[index]['maxData'],
|
|
|
|
|
upperLimitOrange: this.sensorTableData[index]['upperLimitOrange']
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|