askbot-dragon 1.0.5 → 1.0.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": "1.0.5",
3
+ "version": "1.0.7",
4
4
  "scripts": {
5
5
  "serve": "vue-cli-service serve",
6
6
  "build": "vue-cli-service build",
@@ -2046,7 +2046,7 @@ export default {
2046
2046
  }
2047
2047
  bool[this.formShow.form.formFieldRelation[i].fieldId] = this.formShow.form.formFieldRelation[i].value && this.formShow.form.formFieldRelation[i].value.includes('\n') && !strVal
2048
2048
  }
2049
- if (this.formShow.form.formFieldRelation[i].relationDisplay && this.formShow.form.formFieldRelation[i].display) {
2049
+ if (this.formShow.form.formFieldRelation[i].relationDisplay && this.formShow.form.formFieldRelation[i].display && this.formShow.form.formFieldRelation[i].fieldId !== 'workorder_description') {
2050
2050
  if(!this.formShow.form.formFieldRelation[i].value || bool[this.formShow.form.formFieldRelation[i].fieldId] || (Array.isArray(this.formShow.form.formFieldRelation[i].value) && !this.formShow.form.formFieldRelation[i].value.length)) {
2051
2051
  this.$message.error('请完善'+ this.formShow.form.formFieldRelation[i].formField.name)
2052
2052
  return
@@ -2056,6 +2056,8 @@ export default {
2056
2056
  }
2057
2057
  let extInfo = {
2058
2058
  extInfoFieldValue:this.extInfoFieldValue,
2059
+ attachments:this.attachments,
2060
+ attachmentList:this.attachmentList
2059
2061
  }
2060
2062
  this.$set(this.formShow,'extInfo',extInfo)
2061
2063
  let newForm = JSON.parse(JSON.stringify(this.formShow));
@@ -2063,11 +2065,9 @@ export default {
2063
2065
  if (newForm.form.formFieldRelation[i].fieldId === 'workorder_description'){
2064
2066
  newForm.form.formFieldRelation[i].value = newForm.form.formFieldRelation[i].value.replace(/<img/g, "<img onclick='previewImage(this)' ")
2065
2067
  console.log(newForm.form.formFieldRelation[i]);
2066
- this.$set(newForm.form.formFieldRelation[i].formField.extInfo,'attachments',this.attachments)
2067
- this.$set(newForm.form.formFieldRelation[i].formField.extInfo,'attachmentList',this.attachmentList)
2068
2068
  }
2069
2069
  }
2070
- console.debug('formShow',this.formShow.form,newForm.form)
2070
+ console.debug('formShow',this.formShow,this.formShow.form,newForm.form)
2071
2071
  this.$emit('submitClick',newForm)
2072
2072
  this.disableds = true
2073
2073
  this.submitValue = '已提交'