centaline-data-driven 1.2.53 → 1.2.54

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "centaline-data-driven",
3
- "version": "1.2.53",
3
+ "version": "1.2.54",
4
4
  "description": "ccai",
5
5
  "author": "hjc <3226136347@qq.com>",
6
6
  "private": false,
@@ -157,7 +157,7 @@
157
157
  else if(data.content.actionType=='扫码拨号'){
158
158
  this.visible=true;
159
159
  this.message=data.content.message;
160
- this.qrCode='data:image/png;base64,' + data.content.qrCode;
160
+ this.qrCode = data.content.qrCode;
161
161
  if(data.content.width)this.width=data.content.width;
162
162
  if(data.content.height)this.height=data.content.height;
163
163
  }
@@ -152,11 +152,13 @@
152
152
  let moreWidth = 20;
153
153
  self.model.actionRoutersSimple.forEach((v,i) => {
154
154
  if(!v.rightField || (self.model.fields1Dic[v.rightField] && self.model.fields1Dic[v.rightField].value == 1)){
155
- if(sumWidth+self.$refs['routers'+i][0].$el.offsetWidth+moreWidth+10>totalWidth && self.showIndex===0){
156
- self.showIndex=i;
157
- }
158
- else{
159
- sumWidth=sumWidth+self.$refs['routers'+i][0].$el.offsetWidth+(i>0?10:0);
155
+ if(self.$refs['routers'+i][0] && self.$refs['routers'+i][0].$el){
156
+ if(sumWidth+self.$refs['routers'+i][0].$el.offsetWidth+moreWidth+10>totalWidth && self.showIndex===0){
157
+ self.showIndex=i;
158
+ }
159
+ else{
160
+ sumWidth=sumWidth+self.$refs['routers'+i][0].$el.offsetWidth+(i>0?10:0);
161
+ }
160
162
  }
161
163
  }
162
164
  });