pull/154/head
parent
4797a08ace
commit
c49e5803d3
|
@ -334,7 +334,10 @@ geteqetdata(data) {
|
||||||
addWarnMessage(data) {
|
addWarnMessage(data) {
|
||||||
return sendPostRequest(`/shortMessage/setMessage`, data)
|
return sendPostRequest(`/shortMessage/setMessage`, data)
|
||||||
},
|
},
|
||||||
|
//短信报警填写条件
|
||||||
|
selnowmes(data) {
|
||||||
|
return sendGetRequest(`/shortMessage/selnowmes`, data)
|
||||||
|
},
|
||||||
//根据设备id查看短信报警
|
//根据设备id查看短信报警
|
||||||
messageList(data) {
|
messageList(data) {
|
||||||
return sendGetRequest(`/shortMessage/selMesById`, data)
|
return sendGetRequest(`/shortMessage/selMesById`, data)
|
||||||
|
|
|
@ -1535,6 +1535,8 @@
|
||||||
|
|
||||||
.el-dialog__wrapper .el-dialog .el-dialog__body .model1-top.model4-top {
|
.el-dialog__wrapper .el-dialog .el-dialog__body .model1-top.model4-top {
|
||||||
align-items: flex-start;
|
align-items: flex-start;
|
||||||
|
padding: 20px 0 0;
|
||||||
|
justify-content: flex-start;
|
||||||
}
|
}
|
||||||
|
|
||||||
.el-dialog__wrapper .el-dialog .el-dialog__body .model1-top.model4-top .btn {
|
.el-dialog__wrapper .el-dialog .el-dialog__body .model1-top.model4-top .btn {
|
||||||
|
@ -1546,6 +1548,13 @@
|
||||||
height: 24px;
|
height: 24px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.el-dialog__wrapper .el-dialog .el-dialog__body .model1-top.model4-top .model-left {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
height: 54px;
|
||||||
|
margin-right: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
.el-dialog__wrapper .el-dialog .el-dialog__body .model1-top .btn img {
|
.el-dialog__wrapper .el-dialog .el-dialog__body .model1-top .btn img {
|
||||||
width: 10px;
|
width: 10px;
|
||||||
height: 14px;
|
height: 14px;
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1632,7 +1632,8 @@
|
||||||
|
|
||||||
&.model4-top {
|
&.model4-top {
|
||||||
align-items: flex-start;
|
align-items: flex-start;
|
||||||
|
padding: 20px 0 0;
|
||||||
|
justify-content: flex-start;
|
||||||
.btn {
|
.btn {
|
||||||
padding: 0 10px;
|
padding: 0 10px;
|
||||||
|
|
||||||
|
@ -1641,6 +1642,12 @@
|
||||||
height: 24px;
|
height: 24px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.model-left{
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
height: 54px;
|
||||||
|
margin-right: 10px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn {
|
.btn {
|
||||||
|
|
|
@ -65,7 +65,7 @@ export default new Vuex.Store({
|
||||||
{ label: '土壤磷含量', value: 42, countType: 0,unit:'mg/kg' },
|
{ label: '土壤磷含量', value: 42, countType: 0,unit:'mg/kg' },
|
||||||
{ label: '土壤钾含量', value: 43, countType: 0,unit:'mg/kg' },
|
{ label: '土壤钾含量', value: 43, countType: 0,unit:'mg/kg' },
|
||||||
{ label: '管道压力', value: 44, countType: 0,unit:'Kpa' },
|
{ label: '管道压力', value: 44, countType: 0,unit:'Kpa' },
|
||||||
{ label: '一氧化碳', value: 45, countType: 0,unit:'ppm' },
|
{ label: '水位', value: 45, countType: 0,unit:'cm' },
|
||||||
{ label: '氨气', value: 46, countType: 0,unit:'ppm' },
|
{ label: '氨气', value: 46, countType: 0,unit:'ppm' },
|
||||||
{ label: '硫化氢', value: 47, countType: 0,unit:'ppm' },
|
{ label: '硫化氢', value: 47, countType: 0,unit:'ppm' },
|
||||||
{ label: '氧气', value: 48, countType: 2,unit:'%vol' },
|
{ label: '氧气', value: 48, countType: 2,unit:'%vol' },
|
||||||
|
|
|
@ -412,12 +412,38 @@
|
||||||
</div>
|
</div>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
<el-dialog :modal-append-to-body="false" :show-close="false" :close-on-click-modal="true" :visible.sync="model4"
|
<el-dialog :modal-append-to-body="false" :show-close="false" :close-on-click-modal="true" :visible.sync="model4"
|
||||||
width="560px" :before-close="handleClose4">
|
width="700px" :before-close="handleClose4">
|
||||||
<div class="page-title title-302">{{ indexs }}#灌溉组控制参数配置</div>
|
<div class="page-title title-302">{{ indexs }}#灌溉组控制参数配置</div>
|
||||||
<div class="model1-top model4-top">
|
<div style="display: flex;align-items: center;">
|
||||||
<div class="btn blue" @click="model4 = true">
|
<div class="btn blue">
|
||||||
<img src="../../assets/image/model4-icon.png" alt="" />外控模式
|
<img src="../../assets/image/model4-icon.png" alt="" />外控模式
|
||||||
</div>
|
</div>
|
||||||
|
<div>
|
||||||
|
<div class="input-main-80">
|
||||||
|
<span>有效时间:</span>
|
||||||
|
<input @blur="blurChange(10 + (indexs - 1) + '67', $event)" v-model="inputData[10 + (indexs - 1) + '67']"
|
||||||
|
@input="change(10 + (indexs - 1) + '67', $event)" type="number" placeholder="0" min="0" max="23" />
|
||||||
|
<span>:</span>
|
||||||
|
<input @blur="blurChange(10 + (indexs - 1) + '68', $event)" v-model="inputData[10 + (indexs - 1) + '68']"
|
||||||
|
@input="change(10 + (indexs - 1) + '68', $event)" type="number" placeholder="0" min="0" max="59" />
|
||||||
|
<span>--</span>
|
||||||
|
<input @blur="blurChange(10 + (indexs - 1) + '69', $event)" v-model="inputData[10 + (indexs - 1) + '69']"
|
||||||
|
@input="change(10 + (indexs - 1) + '69', $event)" type="number" placeholder="0" min="0" max="23" />
|
||||||
|
<span>:</span>
|
||||||
|
<input @blur="blurChange(10 + (indexs - 1) + '70', $event)" v-model="inputData[10 + (indexs - 1) + '70']"
|
||||||
|
@input="change(10 + (indexs - 1) + '70', $event)" type="number" placeholder="0" min="0" max="59" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="model1-top model4-top">
|
||||||
|
<div class="model-left">
|
||||||
|
<div class="btn btn-w80" @click="blurChange(10 + (indexs - 1) + '71', {target:{value:1}}),model4Sel=1" :class="model4Sel==1?'blue':'off'">
|
||||||
|
{{model4Sel==1?'有效':'无效'}}
|
||||||
|
</div>
|
||||||
|
<span>外部数字量控制方式:</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="model-right">
|
<div class="model-right">
|
||||||
<div>
|
<div>
|
||||||
<div class="number">1</div>
|
<div class="number">1</div>
|
||||||
|
@ -437,20 +463,39 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="model1-top model4-top">
|
||||||
|
<div class="model-left">
|
||||||
|
<div class="btn btn-w80 " @click="blurChange(10 + (indexs - 1) + '71', {target:{value:2}}),model4Sel=2" :class="model4Sel==2?'blue':'off'">
|
||||||
|
{{model4Sel==2?'有效':'无效'}}
|
||||||
|
</div>
|
||||||
|
<span>液位传感器控制方式:</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="model-right">
|
||||||
<div>
|
<div>
|
||||||
<div class="input-main-80">
|
<div class="input-main-80">
|
||||||
<span>有效时间:</span>
|
<span>液位信号通道</span>
|
||||||
<input @blur="blurChange(10 + (indexs - 1) + '67', $event)" v-model="inputData[10 + (indexs - 1) + '67']"
|
<input @blur="blurChange(10 + (indexs - 1) + '72', $event)" v-model="inputData[10 + (indexs - 1) + '72']"
|
||||||
@input="change(10 + (indexs - 1) + '67', $event)" type="number" placeholder="0" min="0" max="23" />
|
@input="change(10 + (indexs - 1) + '72', $event)" type="number" placeholder="0" />
|
||||||
<span>:</span>
|
</div>
|
||||||
<input @blur="blurChange(10 + (indexs - 1) + '68', $event)" v-model="inputData[10 + (indexs - 1) + '68']"
|
</div>
|
||||||
@input="change(10 + (indexs - 1) + '68', $event)" type="number" placeholder="0" min="0" max="59" />
|
<div>
|
||||||
<span>--</span>
|
<div class="input-main-80">
|
||||||
<input @blur="blurChange(10 + (indexs - 1) + '69', $event)" v-model="inputData[10 + (indexs - 1) + '69']"
|
<span>启动低液位值</span>
|
||||||
@input="change(10 + (indexs - 1) + '69', $event)" type="number" placeholder="0" min="0" max="23" />
|
<input @blur="blurChange(10 + (indexs - 1) + '73', $event)" v-model="inputData[10 + (indexs - 1) + '73']"
|
||||||
<span>:</span>
|
@input="change(10 + (indexs - 1) + '73', $event)" type="number" placeholder="0" />
|
||||||
<input @blur="blurChange(10 + (indexs - 1) + '70', $event)" v-model="inputData[10 + (indexs - 1) + '70']"
|
<span>cm</span>
|
||||||
@input="change(10 + (indexs - 1) + '70', $event)" type="number" placeholder="0" min="0" max="59" />
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<div class="input-main-80">
|
||||||
|
<span>停止高液位值</span>
|
||||||
|
<input @blur="blurChange(10 + (indexs - 1) + '74', $event)" v-model="inputData[10 + (indexs - 1) + '74']"
|
||||||
|
@input="change(10 + (indexs - 1) + '74', $event)" type="number" placeholder="0" />
|
||||||
|
<span>cm</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="model-return">
|
<div class="model-return">
|
||||||
|
@ -478,6 +523,7 @@ export default {
|
||||||
model2: false,
|
model2: false,
|
||||||
model3: false,
|
model3: false,
|
||||||
model4: false,
|
model4: false,
|
||||||
|
model4Sel:0,
|
||||||
model5: false,
|
model5: false,
|
||||||
timer: null,
|
timer: null,
|
||||||
indexs: 2,
|
indexs: 2,
|
||||||
|
@ -691,7 +737,7 @@ export default {
|
||||||
var data = {
|
var data = {
|
||||||
equipmentId: store.equipmentList[store.equipmentIndex - 1].deviceId,
|
equipmentId: store.equipmentList[store.equipmentIndex - 1].deviceId,
|
||||||
pattern: 10 + (this.indexs - 1) + "00", //需要根据文档填写 //6目标ph-数值
|
pattern: 10 + (this.indexs - 1) + "00", //需要根据文档填写 //6目标ph-数值
|
||||||
regNum: 71,
|
regNum: 75,
|
||||||
};
|
};
|
||||||
this.api.postReg(data).then((res) => {
|
this.api.postReg(data).then((res) => {
|
||||||
this.loading.close()
|
this.loading.close()
|
||||||
|
@ -707,6 +753,7 @@ export default {
|
||||||
this.inputData[10 + (indexs - 1) + '40'] = this.countData10(this.inputData[10 + (indexs - 1) + '40'])
|
this.inputData[10 + (indexs - 1) + '40'] = this.countData10(this.inputData[10 + (indexs - 1) + '40'])
|
||||||
this.inputData[10 + (indexs - 1) + '43'] = this.countData10(this.inputData[10 + (indexs - 1) + '43'])
|
this.inputData[10 + (indexs - 1) + '43'] = this.countData10(this.inputData[10 + (indexs - 1) + '43'])
|
||||||
this.inputData[10 + (indexs - 1) + '44'] = this.countData10(this.inputData[10 + (indexs - 1) + '44'])
|
this.inputData[10 + (indexs - 1) + '44'] = this.countData10(this.inputData[10 + (indexs - 1) + '44'])
|
||||||
|
this.model4Sel= this.inputData[10 + (indexs - 1) + '71']
|
||||||
} else {
|
} else {
|
||||||
this.$message.error(res.data.msg);
|
this.$message.error(res.data.msg);
|
||||||
}
|
}
|
||||||
|
@ -776,6 +823,9 @@ export default {
|
||||||
clearInterval(this.timer);
|
clearInterval(this.timer);
|
||||||
}
|
}
|
||||||
}, 100);
|
}, 100);
|
||||||
|
},
|
||||||
|
changeModel4(){
|
||||||
|
|
||||||
},
|
},
|
||||||
//间隔灌溉天数
|
//间隔灌溉天数
|
||||||
change(code, el) {
|
change(code, el) {
|
||||||
|
|
|
@ -526,12 +526,7 @@ export default {
|
||||||
},
|
},
|
||||||
tableData: [],
|
tableData: [],
|
||||||
//选择内容
|
//选择内容
|
||||||
typeSelList: [{ name: '1#平均空气温度', value: 1, },
|
typeSelList: [],
|
||||||
{ name: '2#平均空气温度', value: 2, },
|
|
||||||
{ name: '1#平均光亮度', value: 3, },
|
|
||||||
{ name: '1#平均二氧化碳', value: 4, },
|
|
||||||
{ name: '1#平均土壤温度', value: 5, },
|
|
||||||
{ name: '1#平均土壤湿度', value: 6, },],
|
|
||||||
typeSelList1: [{ name: '大于(>)', value: 1, },
|
typeSelList1: [{ name: '大于(>)', value: 1, },
|
||||||
{ name: '小于(<)', value: 2, },
|
{ name: '小于(<)', value: 2, },
|
||||||
{ name: '大于等于(>=)', value: 3, },
|
{ name: '大于等于(>=)', value: 3, },
|
||||||
|
@ -566,7 +561,8 @@ export default {
|
||||||
this.deviceName = store.equipmentList[this.indexs - 1].deviceName
|
this.deviceName = store.equipmentList[this.indexs - 1].deviceName
|
||||||
this.deviceState = store.equipmentList[this.indexs - 1].deviceState
|
this.deviceState = store.equipmentList[this.indexs - 1].deviceState
|
||||||
// this.getTime()
|
// this.getTime()
|
||||||
console.log(store.equipmentList[this.indexs - 1].deviceName, this.indexs - 1, 77);
|
|
||||||
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
that.dataInit();
|
that.dataInit();
|
||||||
that.timer && clearInterval(that.timer)
|
that.timer && clearInterval(that.timer)
|
||||||
|
@ -686,7 +682,8 @@ export default {
|
||||||
//类型选择
|
//类型选择
|
||||||
handleCommand(index) {
|
handleCommand(index) {
|
||||||
this.warnModelSel1 = this.typeSelList[index].name
|
this.warnModelSel1 = this.typeSelList[index].name
|
||||||
this.warnForm.environmentId = this.typeSelList[index].value
|
this.warnForm.environmentId = this.typeSelList[index].environmentId
|
||||||
|
this.warnForm.equipmentNumber = this.typeSelList[index].equipmentNumber
|
||||||
// this.TypeSel = this.typeSelList[index].name
|
// this.TypeSel = this.typeSelList[index].name
|
||||||
// this.TypeSelIndex = this.typeSelList[index].value
|
// this.TypeSelIndex = this.typeSelList[index].value
|
||||||
// var dataNum = {
|
// var dataNum = {
|
||||||
|
@ -923,6 +920,15 @@ export default {
|
||||||
var formData = {
|
var formData = {
|
||||||
equipmentId: store.equipmentList[this.indexs - 1].deviceId
|
equipmentId: store.equipmentList[this.indexs - 1].deviceId
|
||||||
}
|
}
|
||||||
|
var selData={
|
||||||
|
messageId:store.equipmentList[this.indexs - 1].deviceId
|
||||||
|
}
|
||||||
|
this.api.selnowmes(selData).then(res=>{
|
||||||
|
|
||||||
|
if(res.data.code==200){
|
||||||
|
this.typeSelList=res.data.data
|
||||||
|
}
|
||||||
|
})
|
||||||
var list = store.typeList
|
var list = store.typeList
|
||||||
if (this.deviceName == 1) {
|
if (this.deviceName == 1) {
|
||||||
this.api.postRtdata(equipmentId).then((res) => {
|
this.api.postRtdata(equipmentId).then((res) => {
|
||||||
|
|
Loading…
Reference in New Issue