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