Commit d541899f authored by 毛线's avatar 毛线

按钮逻辑

parent 446dfdc1
......@@ -129,15 +129,13 @@ export default {
},
btnList() {
const btnList = this.deviceButtonPanel.keyMapping || []
return btnList.filter(i => i.buttonStatus === 1)
return btnList.filter(i => i.buttonImgN)
},
btnList1() {
const i = this.btnList.length / 2
return this.btnList.filter((item, index) => index < i)
return this.btnList.filter(i => i.buttonName.includes('u'))
},
btnList2() {
const i = this.btnList.length / 2
return this.btnList.filter((item, index) => index >= i)
return this.btnList.filter(i => i.buttonName.includes('D'))
},
// 当前设备
device() {
......
......@@ -13,7 +13,7 @@ export default {
data() {
return {
form: {
username: process.env.NODE_ENV === 'development' ? 'W003' : '',
username: process.env.NODE_ENV === 'development' ? 'Hb' : '',
password: process.env.NODE_ENV === 'development' ? '123456' : '',
},
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment