新增选项

This commit is contained in:
2022-11-10 18:59:26 +08:00
parent aa2c671bd5
commit 801b74eb3f

View File

@@ -136,12 +136,36 @@
<button class="button--defalut" :class="{'bgcgreen': rData.cowl_b_cowl_bPass}">套帽B合格</button>
</li>
</ul>
<div class="d_item">
<div class="d_item" style="margin-top: 7px">
<div class="d_input">
<label class="d-label2 d-label4">不合格输送辊缓存计数</label>
<div class="showbox showbox2" @click="toChange(7, '不合格输送辊缓存计数', val7)">{{val7}}</div>
</div>
</div>
<div class="d_item">
<div class="d_input">
<label class="d-label2 d-label4">反向输送电机频率设定</label>
<div class="showbox showbox2" @click="toChange(9, '主、反向输送电机频率设定', val9)">{{val9}}</div>
</div>
</div>
<div class="d_item">
<div class="d_input">
<label class="d-label2 d-label4">捆扎时夹紧开度设定</label>
<div class="showbox showbox2" @click="toChange(10, '捆扎时夹紧开度设定', val10)">{{val10}}</div>
</div>
</div>
<div class="d_item">
<div class="d_input">
<label class="d-label2 d-label4">套帽合格顶升需要根数</label>
<div class="showbox showbox2" @click="toChange(11, '套帽合格顶升需要根数', val11)">{{val11}}</div>
</div>
</div>
<div class="d_item">
<div class="d_input">
<label class="d-label2 d-label4">套帽合格顶升已有根数</label>
<div class="showbox showbox2" @click="toChange(12, '套帽合格顶升已有根数', val12)">{{val12}}</div>
</div>
</div>
</div>
<div class="box3">
<div class="b3-top">
@@ -241,6 +265,10 @@ export default {
val6: '',
val7: '',
val8: '',
val9: '',
val10: '',
val11: '',
val12: '',
rData: '',
options: [
{
@@ -284,20 +312,20 @@ export default {
disabled2: false
}
},
created () {
this.refresh()
},
beforeDestroy () {
clearInterval(this.timer)
this.timer = null
},
// created () {
// this.refresh()
// },
// beforeDestroy () {
// clearInterval(this.timer)
// this.timer = null
// },
methods: {
refresh () {
this._queryDeviceInfo()
this.timer = setInterval(() => {
this._queryDeviceInfo()
}, this.interTime)
},
// refresh () {
// this._queryDeviceInfo()
// this.timer = setInterval(() => {
// this._queryDeviceInfo()
// }, this.interTime)
// },
// 查询
async _queryDeviceInfo () {
let res = await queryDeviceInfo()
@@ -377,6 +405,22 @@ export default {
this.putPoint('strapping_current_step', '3', this.val)
this.val8 = this.val
}
if (this.opt === 9) {
this.putPoint('motor_frequency_setting', '3', this.val)
this.val9 = this.val
}
if (this.opt === 10) {
this.putPoint('nip_setting', '3', this.val)
this.val10 = this.val
}
if (this.opt === 11) {
this.putPoint('cowl_pass_jacking_need_num', '3', this.val)
this.val11 = this.val
}
if (this.opt === 12) {
this.putPoint('cowl_pass_jacking_has_num', '3', this.val)
this.val12 = this.val
}
this.active = false
},
msgCancle () {
@@ -501,7 +545,7 @@ export default {
.d-label3
width .6rem
.d-label4
width 1.1rem
width 1.4rem
.d_input
width: 100%;
display: flex;
@@ -543,7 +587,7 @@ export default {
margin-left 1.3rem
ul
li
margin 20px 0
margin 5px 0
label
font-size 12px
display inline-block