Adding style in $refs?
You're not supposed to use cssText but instead use the JavaScript API to set styles (which you can do on $refs, too):
let $ref = this.$refs['ticketCode_' + this.resoTrans_id]$ref.style.backgroundColor = '#66bb6a';$ref.style.border = '1px solid #66bb6a';...
Even better is to utilize Vue's power for that directly in your template:
<your-element ref="'ticketCode_' + resoTrans_id" :style="{ backgroundColor: '#66bb6a', border: '1px solid #66bb6a' /* ... */ }" />
apply directly $refs.objectkey style
this.$refs['ticketCode_' + this.resoTrans_id].style.background="red"