Commit d541899f authored by 毛线's avatar 毛线

按钮逻辑

parent 446dfdc1
...@@ -129,15 +129,13 @@ export default { ...@@ -129,15 +129,13 @@ export default {
}, },
btnList() { btnList() {
const btnList = this.deviceButtonPanel.keyMapping || [] const btnList = this.deviceButtonPanel.keyMapping || []
return btnList.filter(i => i.buttonStatus === 1) return btnList.filter(i => i.buttonImgN)
}, },
btnList1() { btnList1() {
const i = this.btnList.length / 2 return this.btnList.filter(i => i.buttonName.includes('u'))
return this.btnList.filter((item, index) => index < i)
}, },
btnList2() { btnList2() {
const i = this.btnList.length / 2 return this.btnList.filter(i => i.buttonName.includes('D'))
return this.btnList.filter((item, index) => index >= i)
}, },
// 当前设备 // 当前设备
device() { device() {
......
...@@ -13,7 +13,7 @@ export default { ...@@ -13,7 +13,7 @@ export default {
data() { data() {
return { return {
form: { form: {
username: process.env.NODE_ENV === 'development' ? 'W003' : '', username: process.env.NODE_ENV === 'development' ? 'Hb' : '',
password: process.env.NODE_ENV === 'development' ? '123456' : '', 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