askbot-dragon 1.4.55 → 1.4.57
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
|
@@ -13,10 +13,23 @@
|
|
|
13
13
|
</div>
|
|
14
14
|
</div> -->
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
<!-- <form-template
|
|
17
17
|
:formList="formList2"
|
|
18
18
|
@submitClick="submitClick"
|
|
19
19
|
></form-template> -->
|
|
20
|
+
<form-template
|
|
21
|
+
:formList="formList"
|
|
22
|
+
@submitClick="submitClick"
|
|
23
|
+
></form-template>
|
|
24
|
+
<!-- <form-template
|
|
25
|
+
:formList="formList3"
|
|
26
|
+
@submitClick="submitClick"
|
|
27
|
+
></form-template>
|
|
28
|
+
<form-template
|
|
29
|
+
:formList="formList4"
|
|
30
|
+
@submitClick="submitClick"
|
|
31
|
+
></form-template> -->
|
|
32
|
+
<text-message :text="text" @submitClick="submitClick"></text-message>
|
|
20
33
|
<answer-docknowledge :isAskLightning="2" :msg="answerDocknowledge"></answer-docknowledge>
|
|
21
34
|
<!-- <voice-component @closeVoice="closeVoice">
|
|
22
35
|
<div slot="voiceTip">
|
|
@@ -55,7 +68,8 @@
|
|
|
55
68
|
</div>
|
|
56
69
|
</template>
|
|
57
70
|
<script>
|
|
58
|
-
|
|
71
|
+
import TextMessage from '@/components/message/TextMessage'
|
|
72
|
+
import FormTemplate from "@/components/formTemplate";
|
|
59
73
|
|
|
60
74
|
/*import FormTemplate from "@/components/formTemplate";
|
|
61
75
|
import TextMessage from "@/components/message/TextMessage";*/
|
|
@@ -102,13 +116,13 @@ export default {
|
|
|
102
116
|
// AsserDeatils,
|
|
103
117
|
AnswerRadio,
|
|
104
118
|
// FormTemplate,
|
|
105
|
-
|
|
119
|
+
TextMessage,
|
|
106
120
|
// FeedBack,
|
|
107
121
|
// VoiceCompontent,
|
|
108
122
|
// AiGuide,
|
|
109
123
|
AnswerVoice,
|
|
110
124
|
// FormTemplate,
|
|
111
|
-
|
|
125
|
+
FormTemplate,
|
|
112
126
|
// FileType,
|
|
113
127
|
// ChatContent,
|
|
114
128
|
AnswerDocknowledge,
|
|
@@ -396,6 +410,48 @@ export default {
|
|
|
396
410
|
formActionId: '',
|
|
397
411
|
form: {
|
|
398
412
|
formFieldRelation: [
|
|
413
|
+
{
|
|
414
|
+
display: true,
|
|
415
|
+
paramName: 'miaoshu',
|
|
416
|
+
formField: {
|
|
417
|
+
deleted: false,
|
|
418
|
+
createTime: '2020-12-08T08:08:03.000+0000',
|
|
419
|
+
name: '',
|
|
420
|
+
description: '',
|
|
421
|
+
updateTime: '2020-12-08T08:10:41.000+0000',
|
|
422
|
+
id: 11133332,
|
|
423
|
+
lastOperatorId: 21,
|
|
424
|
+
mainId: 'e2f80aecaf7c11eabdcd506b4b2f3ac8',
|
|
425
|
+
type: 'TIME_PICKER',
|
|
426
|
+
extInfo: {
|
|
427
|
+
descriptionText: '我是解释说明文案'
|
|
428
|
+
}
|
|
429
|
+
},
|
|
430
|
+
required: false,
|
|
431
|
+
fieldId: 11133332,
|
|
432
|
+
value: "08:09"
|
|
433
|
+
},
|
|
434
|
+
{
|
|
435
|
+
display: true,
|
|
436
|
+
paramName: 'miaoshu',
|
|
437
|
+
formField: {
|
|
438
|
+
deleted: false,
|
|
439
|
+
createTime: '2020-12-08T08:08:03.000+0000',
|
|
440
|
+
name: '',
|
|
441
|
+
description: '',
|
|
442
|
+
updateTime: '2020-12-08T08:10:41.000+0000',
|
|
443
|
+
id: 11156562,
|
|
444
|
+
lastOperatorId: 21,
|
|
445
|
+
mainId: 'e2f80aecaf7c11eabdcd506b4b2f3ac8',
|
|
446
|
+
type: 'DATE_PICKER',
|
|
447
|
+
extInfo: {
|
|
448
|
+
descriptionText: '我是解释说明文案'
|
|
449
|
+
}
|
|
450
|
+
},
|
|
451
|
+
required: false,
|
|
452
|
+
fieldId: 11156562,
|
|
453
|
+
value: '2020-12-09'
|
|
454
|
+
},
|
|
399
455
|
{
|
|
400
456
|
display: true,
|
|
401
457
|
paramName: 'miaoshu',
|
|
@@ -364,7 +364,7 @@
|
|
|
364
364
|
@confirm="onConfirmCalendar($event,item)"
|
|
365
365
|
/>
|
|
366
366
|
</div>
|
|
367
|
-
<div v-else-if="item.formField.type==='TIME_PICKER'&&(
|
|
367
|
+
<div v-else-if="item.formField.type==='TIME_PICKER'&&(item.formField.extInfo.mold==='DATA_TIME' || item.formField.extInfo.mold==='DATE_TIME' || getMoldTime(item.formField) == 'DATE_TIME')" class="form-field-item-value">
|
|
368
368
|
<van-field
|
|
369
369
|
readonly
|
|
370
370
|
clickable
|
|
@@ -1102,6 +1102,18 @@ export default {
|
|
|
1102
1102
|
fileListView
|
|
1103
1103
|
},
|
|
1104
1104
|
mounted() {
|
|
1105
|
+
|
|
1106
|
+
if (this.formList.form.formFieldRelation && this.formList.form.formFieldRelation.length > 0) {
|
|
1107
|
+
this.formList.form.formFieldRelation.forEach(item => {
|
|
1108
|
+
if (item.formField.type === "TIME_PICKER") {
|
|
1109
|
+
if (item.value.length === 5 && item.value.split(":").length === 2) {
|
|
1110
|
+
console.log(1112, item.value);
|
|
1111
|
+
this.extInfoFieldValue[item.fieldId] = item.value;
|
|
1112
|
+
item.value = new Date().getFullYear() + "-" + (new Date().getMonth() + 1) + "-" + new Date().getDate() + " " + item.value + ":00";
|
|
1113
|
+
}
|
|
1114
|
+
}
|
|
1115
|
+
})
|
|
1116
|
+
}
|
|
1105
1117
|
if (this.mainId == '8b9bd566e3e64156ab764b19defc9d48' || this.mainId == '0b73521f96e4486aaf6be42932bd7b07'){
|
|
1106
1118
|
this.ckeditor.editorConfig.toolbar = []
|
|
1107
1119
|
}
|