askbot-dragon 1.0.2 → 1.0.3
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
|
@@ -58,15 +58,16 @@
|
|
|
58
58
|
:maxlength="item.formField.extInfo&&item.formField.extInfo.maxNum?item.formField.extInfo.maxNum*1:1000"
|
|
59
59
|
v-if="item.formField.type==='TEXTAREA'&& item.fieldId!=='workorder_description'"
|
|
60
60
|
></el-input>
|
|
61
|
-
<
|
|
61
|
+
<div v-else-if="item.fieldId === 'workorder_description'">
|
|
62
|
+
<ckeditor
|
|
62
63
|
:editor="ckeditor.editor"
|
|
63
64
|
v-model="item.value"
|
|
64
65
|
:config="{...ckeditor.editorConfig,placeholder:item.formField.extInfo && item.formField.extInfo.placeholder?item.formField.extInfo.placeholder:'请输入'}"
|
|
65
|
-
v-else-if="item.fieldId==='workorder_description'"
|
|
66
66
|
@ready="(editor)=>currentEditor=editor"
|
|
67
67
|
@focus="(zh,editor)=>currentEditor=editor"
|
|
68
|
-
|
|
69
|
-
|
|
68
|
+
></ckeditor>
|
|
69
|
+
<file-list-view :attachmentList="attachmentList" @attachDeleteAttch="attachDeleteAttch"></file-list-view>
|
|
70
|
+
</div>
|
|
70
71
|
<el-date-picker
|
|
71
72
|
v-model=item.value
|
|
72
73
|
type="date"
|
|
@@ -2061,8 +2062,9 @@ export default {
|
|
|
2061
2062
|
for (let i=0;i<newForm.form.formFieldRelation.length;i++){
|
|
2062
2063
|
if (newForm.form.formFieldRelation[i].fieldId === 'workorder_description'){
|
|
2063
2064
|
newForm.form.formFieldRelation[i].value = newForm.form.formFieldRelation[i].value.replace(/<img/g, "<img onclick='previewImage(this)' ")
|
|
2064
|
-
|
|
2065
|
-
this.$set(newForm.form.formFieldRelation[i].extInfo,'
|
|
2065
|
+
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)
|
|
2066
2068
|
}
|
|
2067
2069
|
}
|
|
2068
2070
|
console.debug('formShow',this.formShow.form,newForm.form)
|