askbot-dragon 0.9.7 → 0.9.8

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": "askbot-dragon",
3
- "version": "0.9.7",
3
+ "version": "0.9.8",
4
4
  "scripts": {
5
5
  "serve": "vue-cli-service serve",
6
6
  "build": "vue-cli-service build",
@@ -867,7 +867,8 @@ export default {
867
867
  fieldValue:{},
868
868
  optionsList:{},
869
869
  currentEditor:null,
870
- workOrderDes:""
870
+ workOrderDes:"",
871
+ workOrderDestail:null
871
872
  }
872
873
  },
873
874
  props: {
@@ -957,6 +958,7 @@ export default {
957
958
  }
958
959
  if (item.fieldId==='workorder_description'){
959
960
  this.workOrderDes = item.value;
961
+ this.workOrderDestail = item
960
962
  }
961
963
  })
962
964
  let newArr = arr.filter(item=>item.relationDisplay)
@@ -2421,12 +2423,14 @@ export default {
2421
2423
  let newVal = ''
2422
2424
  newVal = val.replace(/ style=".*?"/g, '');
2423
2425
  if (this.currentEditor){
2424
- this.workOrderDes = newVal;
2426
+ if (this.workOrderDestail){
2427
+ this.workOrderDestail.value = newVal;
2428
+ }
2425
2429
  this.currentEditor.model.change( writer => {
2426
2430
  writer.setSelection( writer.createPositionAt( this.currentEditor.model.document.getRoot(), 'end' ) );
2427
2431
  });
2428
2432
  }
2429
- console.debug('workOrderDes',this.workOrderDes)
2433
+ console.debug('workOrderDes',this.workOrderDestail)
2430
2434
  },
2431
2435
  deep:true,
2432
2436
  immediate:true