askbot-dragon 0.8.22 → 0.8.23
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
|
@@ -1632,7 +1632,6 @@ export default {
|
|
|
1632
1632
|
}
|
|
1633
1633
|
bool[this.formShow.form.formFieldRelation[i].fieldId] = this.formShow.form.formFieldRelation[i].value && this.formShow.form.formFieldRelation[i].value.includes('\n') && !strVal
|
|
1634
1634
|
}
|
|
1635
|
-
console.debug('formFieldRelation',this.formShow.form.formFieldRelation[i].value,bool[this.formShow.form.formFieldRelation[i]],Array.isArray(this.formShow.form.formFieldRelation[i].value) && !this.formShow.form.formFieldRelation[i].value.length)
|
|
1636
1635
|
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)) {
|
|
1637
1636
|
this.$message.error('请完善'+ this.formShow.form.formFieldRelation[i].formField.name)
|
|
1638
1637
|
return
|
|
@@ -1642,9 +1641,15 @@ export default {
|
|
|
1642
1641
|
let extInfo = {
|
|
1643
1642
|
extInfoFieldValue:this.extInfoFieldValue
|
|
1644
1643
|
}
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1644
|
+
this.$set(this.formShow,'extInfo',extInfo)
|
|
1645
|
+
let newForm = JSON.parse(JSON.stringify(this.formShow));
|
|
1646
|
+
for (let i=0;i<newForm.form.formFieldRelation.length;i++){
|
|
1647
|
+
if (newForm.form.formFieldRelation[i].fieldId === 'workorder_description'){
|
|
1648
|
+
newForm.form.formFieldRelation[i].value = newForm.form.formFieldRelation[i].value.replace(/<img/g, "<img onclick='previewImage(this)' ")
|
|
1649
|
+
}
|
|
1650
|
+
}
|
|
1651
|
+
console.debug('formShow',this.formShow.form,newForm.form)
|
|
1652
|
+
this.$emit('submitClick',newForm)
|
|
1648
1653
|
this.disableds = true
|
|
1649
1654
|
this.submitValue = '已提交'
|
|
1650
1655
|
},
|