askbot-dragon 1.0.6 → 1.0.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": "1.0.6",
3
+ "version": "1.0.8",
4
4
  "scripts": {
5
5
  "serve": "vue-cli-service serve",
6
6
  "build": "vue-cli-service build",
@@ -1956,7 +1956,9 @@ export default {
1956
1956
  this.$message.error(errorText);
1957
1957
  return false
1958
1958
  } else {
1959
- if (checkDescription.required && !this.workOrderDestail.value && this.attachments.length == 0) {
1959
+ let d = document.createElement('div')
1960
+ d.innerHTML = this.workOrderDestail.value
1961
+ if (checkDescription.required && !d.innerText && this.attachments.length == 0) {
1960
1962
  this.$message.error('问题描述是必填的');
1961
1963
  return false
1962
1964
  }
@@ -2056,6 +2058,8 @@ export default {
2056
2058
  }
2057
2059
  let extInfo = {
2058
2060
  extInfoFieldValue:this.extInfoFieldValue,
2061
+ attachments:this.attachments,
2062
+ attachmentList:this.attachmentList
2059
2063
  }
2060
2064
  this.$set(this.formShow,'extInfo',extInfo)
2061
2065
  let newForm = JSON.parse(JSON.stringify(this.formShow));
@@ -2063,11 +2067,9 @@ export default {
2063
2067
  if (newForm.form.formFieldRelation[i].fieldId === 'workorder_description'){
2064
2068
  newForm.form.formFieldRelation[i].value = newForm.form.formFieldRelation[i].value.replace(/<img/g, "<img onclick='previewImage(this)' ")
2065
2069
  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
2070
  }
2069
2071
  }
2070
- console.debug('formShow',this.formShow.form,newForm.form)
2072
+ console.debug('formShow',this.formShow,this.formShow.form,newForm.form)
2071
2073
  this.$emit('submitClick',newForm)
2072
2074
  this.disableds = true
2073
2075
  this.submitValue = '已提交'