askbot-dragon 0.9.5 → 0.9.7

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.5",
3
+ "version": "0.9.7",
4
4
  "scripts": {
5
5
  "serve": "vue-cli-service serve",
6
6
  "build": "vue-cli-service build",
@@ -2,7 +2,7 @@
2
2
  <div class="media-body">
3
3
  <div class="formClass" :class="isPhone?'remPhoneClassForm':'remCompanyClassForm'" v-if="formShow.form">
4
4
  <div class="titleName" >
5
- {{formShow.form.name}}
5
+ {{!!formShow.form.formShowName?formShow.form.formShowName:formShow.form.name}}
6
6
  </div>
7
7
  <div class="title-link"></div>
8
8
  <div class="pcFormClass" v-if="isCompany">
@@ -64,6 +64,7 @@
64
64
  :config="{...ckeditor.editorConfig,placeholder:item.formField.extInfo && item.formField.extInfo.placeholder?item.formField.extInfo.placeholder:'请输入'}"
65
65
  v-else-if="item.fieldId==='workorder_description'"
66
66
  @ready="(editor)=>currentEditor=editor"
67
+ @focus="(zh,editor)=>currentEditor=editor"
67
68
  ></ckeditor>
68
69
  <el-date-picker
69
70
  v-model=item.value
@@ -325,7 +326,8 @@
325
326
  <ckeditor
326
327
  :editor="ckeditor.editor"
327
328
  v-model="item.value"
328
- @onReady="onReady"
329
+ @ready="(editor)=>currentEditor=editor"
330
+ @focus="(zh,editor)=>currentEditor=editor"
329
331
  :config="{...ckeditor.editorConfig,placeholder:item.formField.extInfo && item.formField.extInfo.placeholder?item.formField.extInfo.placeholder:'请输入'}"
330
332
  ></ckeditor>
331
333
  </div>
@@ -864,7 +866,8 @@ export default {
864
866
  selectOptionWidth:null,
865
867
  fieldValue:{},
866
868
  optionsList:{},
867
- currentEditor:null
869
+ currentEditor:null,
870
+ workOrderDes:""
868
871
  }
869
872
  },
870
873
  props: {
@@ -952,6 +955,9 @@ export default {
952
955
  item.formField.extInfo.extInfoFieldValue = ''
953
956
  }
954
957
  }
958
+ if (item.fieldId==='workorder_description'){
959
+ this.workOrderDes = item.value;
960
+ }
955
961
  })
956
962
  let newArr = arr.filter(item=>item.relationDisplay)
957
963
  console.debug('arr',arr,newArr)
@@ -2409,6 +2415,21 @@ export default {
2409
2415
  console.log(value);
2410
2416
  },
2411
2417
  deep:true
2418
+ },
2419
+ workOrderDes:{
2420
+ handler(val){
2421
+ let newVal = ''
2422
+ newVal = val.replace(/ style=".*?"/g, '');
2423
+ if (this.currentEditor){
2424
+ this.workOrderDes = newVal;
2425
+ this.currentEditor.model.change( writer => {
2426
+ writer.setSelection( writer.createPositionAt( this.currentEditor.model.document.getRoot(), 'end' ) );
2427
+ });
2428
+ }
2429
+ console.debug('workOrderDes',this.workOrderDes)
2430
+ },
2431
+ deep:true,
2432
+ immediate:true
2412
2433
  }
2413
2434
  }
2414
2435