askbot-dragon 1.0.4 → 1.0.6
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
|
@@ -1956,7 +1956,7 @@ export default {
|
|
|
1956
1956
|
this.$message.error(errorText);
|
|
1957
1957
|
return false
|
|
1958
1958
|
} else {
|
|
1959
|
-
if (checkDescription.required && !this.workOrderDestail.value) {
|
|
1959
|
+
if (checkDescription.required && !this.workOrderDestail.value && this.attachments.length == 0) {
|
|
1960
1960
|
this.$message.error('问题描述是必填的');
|
|
1961
1961
|
return false
|
|
1962
1962
|
}
|
|
@@ -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
|
|
@@ -2799,6 +2799,13 @@ export default {
|
|
|
2799
2799
|
let ht = '<span class="ask-component-placeholder-container">' + uploadList[index].innerHTML + '</span>'
|
|
2800
2800
|
newVal = newVal.replace(ht, '')
|
|
2801
2801
|
this.uploadImgQueue = false
|
|
2802
|
+
let time = setTimeout(() => {
|
|
2803
|
+
this.currentEditor.model.change(writer => {
|
|
2804
|
+
writer.setSelection(writer.createPositionAt(this.currentEditor.model.document.getRoot(), 'end'));
|
|
2805
|
+
})
|
|
2806
|
+
this.currentEditor.editing.view.focus();
|
|
2807
|
+
clearTimeout(time)
|
|
2808
|
+
}, 500)
|
|
2802
2809
|
}
|
|
2803
2810
|
}
|
|
2804
2811
|
if (uploadList[index].childNodes[0].getAttribute('type') == 'MyFile' || uploadList[index].childNodes[0].getAttribute('type') == 'FileUpload') {
|