| | |
| | | //console.log(e.target) |
| | | getApp().onScan((result) => { |
| | | console.log(result); |
| | | this.classAttrList[e.target.dataset['index']].Attr[e.target.dataset[ |
| | | 'iindex']] |
| | | .Value = |
| | | result.decodedata; |
| | | this.classAttrList[e.target.dataset['index']].Attr[e.target.dataset['iindex']].Value =result; |
| | | uni.hideKeyboard(); |
| | | this.onevent($ele, result.decodedata); |
| | | this.onevent($ele, result); |
| | | }) |
| | | }, |
| | | onarrow(index, open) { |
| | |
| | | |
| | | |
| | | }, |
| | | onevent(e, decodedata) { |
| | | onevent(e, value) { |
| | | // console.log(e.target); |
| | | var data_attr = this.classAttrList[e.target.dataset['index']].Attr[e.target.dataset[ |
| | | 'iindex']]; |
| | | // console.log(decodedata); |
| | | // console.log(value); |
| | | if (e.detail.value != data_attr.Value) { |
| | | this.classAttrList[e.target.dataset['index']].Attr[e.target.dataset['iindex']].Value = |
| | | decodedata ? decodedata : e.detail.value; |
| | | value ? value : e.detail.value; |
| | | var eventid = this.classAttrList[e.target.dataset['index']].Attr[e.target.dataset['iindex']].action; |
| | | if (eventid) { |
| | | // self.event_no_sub = 1; |