askbot-dragon 1.0.2 → 1.0.4
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"
|
|
@@ -1943,7 +1944,7 @@ export default {
|
|
|
1943
1944
|
errorText = '问题描述必须要有附件'
|
|
1944
1945
|
}
|
|
1945
1946
|
if (!textFlag && (!imageFlag || !attachmentFlag)) {
|
|
1946
|
-
errorText = '问题描述必须要有文字和' + !imageFlag ? '图片' : '附件'
|
|
1947
|
+
errorText = '问题描述必须要有文字和' + (!imageFlag ? '图片' : '附件')
|
|
1947
1948
|
}
|
|
1948
1949
|
if (!imageFlag && !attachmentFlag) {
|
|
1949
1950
|
errorText = '问题描述必须要有图片和附件'
|
|
@@ -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)
|