askbot-dragon 1.7.24-beta → 1.7.26-beta

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.
Files changed (35) hide show
  1. package/package.json +12 -14
  2. package/public/index.html +10 -8
  3. package/src/assets/js/AliyunlssUtil.js +26 -50
  4. package/src/assets/js/hammer.js +2 -13
  5. package/src/assets/less/converSationContainer/common.less +0 -7
  6. package/src/components/ActionAlertIframe.vue +1 -24
  7. package/src/components/AiGuide.vue +154 -121
  8. package/src/components/AnswerDocknowledge.vue +100 -108
  9. package/src/components/ConversationContainer.vue +220 -13
  10. package/src/components/MyEditor.vue +1 -2
  11. package/src/components/QwFeedback.vue +301 -0
  12. package/src/components/actionSatisfaction.vue +3 -3
  13. package/src/components/answerRadio.vue +3 -3
  14. package/src/components/askVideo.vue +0 -23
  15. package/src/components/associationIntention.vue +7 -11
  16. package/src/components/formTemplate.vue +50 -54
  17. package/src/components/intelligentSummary.vue +4 -8
  18. package/src/components/message/TextMessage.vue +11 -15
  19. package/src/components/message/swiper/ticketSwiper.vue +1 -1
  20. package/src/components/pdfPosition.vue +37 -217
  21. package/src/components/popup.vue +2 -2
  22. package/src/components/previewDoc.vue +2 -6
  23. package/src/components/previewPdf.vue +134 -159
  24. package/src/components/senderMessagePlatform.vue +4 -4
  25. package/src/components/utils/ckeditor.js +1 -1
  26. package/src/components/welcomeKnowledgeFile.vue +2 -6
  27. package/src/components/welcomeLlmCard.vue +1 -5
  28. package/src/components/welcomeSuggest.vue +1 -1
  29. package/src/main.js +0 -18
  30. package/src/components/imgView.vue +0 -32
  31. package/src/components/markDownText.vue +0 -128
  32. package/src/components/newPdfPosition.vue +0 -878
  33. package/src/locales/cn.json +0 -72
  34. package/src/locales/en.json +0 -73
  35. package/src/locales/jp.json +0 -73
@@ -13,8 +13,8 @@
13
13
  class="field-item-name">
14
14
  <span
15
15
  v-if="item.fieldId !== 'workorder_description' && item.fieldId !== 'workorder_clientId'">{{ item.formField.name }}</span>
16
- <span v-if="item.fieldId === 'workorder_description'">{{ isBaiLi ? $t('formTemplate.feedbackDes') : $t('formTemplate.orderDes') }}</span>
17
- <span v-if="item.fieldId === 'workorder_clientId'">{{$t('formTemplate.report')}}</span>
16
+ <span v-if="item.fieldId === 'workorder_description'">{{ isBaiLi ? '反馈描述' : '问题描述' }}</span>
17
+ <span v-if="item.fieldId === 'workorder_clientId'">报单人</span>
18
18
  <span style="color: red;padding-left: 5px;padding-right: 5px"
19
19
  v-if="item.fieldId !== '0feca81fce97465da537248c066e4db8' && item.fieldId !== '1d8bd21485834773a6d18eae60013000' && (item.required || isRequiredFn(item.formField))">*</span>
20
20
  <el-tooltip class="item" effect="dark" placement="right-start">
@@ -59,7 +59,7 @@
59
59
  </div>
60
60
  </template>
61
61
  <el-input type="textarea" :rows="2" v-model="item.value"
62
- :placeholder="item.formField.extInfo && item.formField.extInfo.placeholder ? item.formField.extInfo.placeholder : $t('common.inputPlaceholder')"
62
+ :placeholder="item.formField.extInfo && item.formField.extInfo.placeholder ? item.formField.extInfo.placeholder : '请输入'"
63
63
  :maxlength="item.formField.extInfo && item.formField.extInfo.maxNum ? item.formField.extInfo.maxNum * 1 : 1000"
64
64
  v-if="item.formField.type === 'TEXTAREA' && item.fieldId !== 'workorder_description'"></el-input>
65
65
  <div v-else-if="item.fieldId === 'workorder_description'">
@@ -79,20 +79,20 @@
79
79
  <file-list-view :attachmentList="attachmentList" @attachDeleteAttch="attachDeleteAttch"></file-list-view>
80
80
  </div>
81
81
  <el-date-picker v-model=item.value type="date"
82
- :placeholder="item.formField.extInfo && item.formField.extInfo.placeholder ? item.formField.extInfo.placeholder : $t('common.selectDate')"
82
+ :placeholder="item.formField.extInfo && item.formField.extInfo.placeholder ? item.formField.extInfo.placeholder : '请选择日期'"
83
83
  style="width: 100%" v-else-if="item.formField.type === 'DATE_PICKER'">
84
84
  </el-date-picker>
85
85
  <el-time-picker v-model=item.value format="HH:mm"
86
- :placeholder="item.formField.extInfo && item.formField.extInfo.placeholder ? item.formField.extInfo.placeholder : $t('common.selectTime')"
86
+ :placeholder="item.formField.extInfo && item.formField.extInfo.placeholder ? item.formField.extInfo.placeholder : '请选择时间'"
87
87
  style="width: 100%"
88
88
  v-else-if="item.formField.type === 'TIME_PICKER' && (!item.formField.extInfo.mold || item.formField.extInfo.mold == 'TIME' || getMoldTime(item.formField) == 'TIME')">
89
89
  </el-time-picker>
90
90
  <el-date-picker v-model=item.value type="date" style="width: 100%"
91
- :placeholder="item.formField.extInfo && item.formField.extInfo.placeholder ? item.formField.extInfo.placeholder : $t('common.selectDate')"
91
+ :placeholder="item.formField.extInfo && item.formField.extInfo.placeholder ? item.formField.extInfo.placeholder : '请选择日期'"
92
92
  v-else-if="item.formField.type === 'TIME_PICKER' && (item.formField.extInfo.mold === 'DATA' || item.formField.extInfo.mold === 'DATE' || getMoldTime(item.formField) == 'DATE')">
93
93
  </el-date-picker>
94
94
  <el-date-picker v-model=item.value
95
- :placeholder="item.formField.extInfo && item.formField.extInfo.placeholder ? item.formField.extInfo.placeholder : $t('common.selectDateTime')"
95
+ :placeholder="item.formField.extInfo && item.formField.extInfo.placeholder ? item.formField.extInfo.placeholder : '请选择日期时间'"
96
96
  clearable style="width: 100%" type="datetime"
97
97
  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')">
98
98
  </el-date-picker>
@@ -122,7 +122,7 @@
122
122
  </div>
123
123
  <div v-else-if="item.formField.type === 'SELECT' || item.formField.type === 'OPTION'">
124
124
  <el-select v-model=item.value
125
- :placeholder="item.formField.extInfo && item.formField.extInfo.placeholder ? item.formField.extInfo.placeholder : $t('common.selectPlaceholder')"
125
+ :placeholder="item.formField.extInfo && item.formField.extInfo.placeholder ? item.formField.extInfo.placeholder : '请选择'"
126
126
  style="width: 100%" filterable
127
127
  v-if="item.fieldId === 'workorder_clientId' || item.fieldId === 'workorder_statusId' || item.fieldId === 'workorder_priority'">
128
128
  <el-option v-for="(items, index) in selectOptions(item.formField)" :key="index" :label="items.label"
@@ -130,7 +130,7 @@
130
130
  </el-option>
131
131
  </el-select>
132
132
  <el-select v-model=item.value
133
- :placeholder="item.formField.extInfo && item.formField.extInfo.placeholder ? item.formField.extInfo.placeholder : $t('common.selectPlaceholder')"
133
+ :placeholder="item.formField.extInfo && item.formField.extInfo.placeholder ? item.formField.extInfo.placeholder : '请选择'"
134
134
  style="width: 100%" filterable v-else @change="changeSelect(item)"
135
135
  :multiple="item.formField.extInfo && item.formField.extInfo.selectType == '多选'">
136
136
  <el-option v-for="(items, index) in optionsLists(item)" :key="index" :label="items.label"
@@ -159,7 +159,7 @@
159
159
  </span>
160
160
  </template>
161
161
  <span
162
- v-else>{{ item.formField.extInfo && item.formField.extInfo.placeholder ? item.formField.extInfo.placeholder : $t('common.selectPlaceholder' )}}</span>
162
+ v-else>{{ item.formField.extInfo && item.formField.extInfo.placeholder ? item.formField.extInfo.placeholder : '请选择' }}</span>
163
163
  </div>
164
164
  <!-- <el-cascader
165
165
  v-model=item.value
@@ -210,7 +210,7 @@
210
210
  </template>
211
211
  <div v-else-if="item.formField.type == 'REF_TEMPLATE' || item.formField.type == 'REF'">
212
212
  <el-select v-model=item.value
213
- :placeholder="item.formField.extInfo && item.formField.extInfo.placeholder ? item.formField.extInfo.placeholder : $t('common.selectPlaceholder')"
213
+ :placeholder="item.formField.extInfo && item.formField.extInfo.placeholder ? item.formField.extInfo.placeholder : '请选择'"
214
214
  style="width: 100%" filterable
215
215
  :multiple="item.formField.extInfo && item.formField.extInfo.selectType == '多选'"
216
216
  @visible-change="(visible) => { return refTemplateVisibleChange(visible, item) }" collapse-tags
@@ -234,7 +234,7 @@
234
234
  <div v-if="item.formField.type === 'INPUT'" class="form-field-item-value">
235
235
  <van-field v-model=item.value :label=item.formField.name
236
236
  :required="item.required || isRequiredFn(item.formField)" :disabled="disableds"
237
- :placeholder="item.formField.extInfo && item.formField.extInfo.placeholder ? item.formField.extInfo.placeholder : $t('common.inputPlaceholder')"
237
+ :placeholder="item.formField.extInfo && item.formField.extInfo.placeholder ? item.formField.extInfo.placeholder : '请输入'"
238
238
  :maxlength="item.formField.extInfo && item.formField.extInfo.maxNum ? item.formField.extInfo.maxNum * 1 : 1000"
239
239
  @blur="typeCheck(item.formField, item)" :type="item.formField.extInfo.inputType === 'NUMBER' ||
240
240
  item.formField.extInfo.inputType === 'RATE' ? 'number' : 'text'">
@@ -270,7 +270,7 @@
270
270
  <div v-else-if="item.formField.type === 'TEXTAREA'" class="form-field-item-value">
271
271
  <van-field v-model=item.value :label=item.formField.name
272
272
  :required="item.required || isRequiredFn(item.formField)" type="textarea" :disabled="disableds"
273
- :placeholder="item.formField.extInfo && item.formField.extInfo.placeholder ? item.formField.extInfo.placeholder : $t('common.inputPlaceholder')"
273
+ :placeholder="item.formField.extInfo && item.formField.extInfo.placeholder ? item.formField.extInfo.placeholder : '请输入'"
274
274
  :maxlength="item.formField.extInfo && item.formField.extInfo.maxNum ? item.formField.extInfo.maxNum * 1 : 1000"
275
275
  v-if="item.fieldId !== 'workorder_description'">
276
276
  <template slot="label">
@@ -317,7 +317,7 @@
317
317
  </div>
318
318
  <div v-else-if="item.formField.type === 'DATE_PICKER'" class="form-field-item-value">
319
319
  <van-field readonly clickable name="calendar" :value=dateValue[item.fieldId] :label=item.formField.name
320
- :placeholder="item.formField.extInfo && item.formField.extInfo.placeholder ? item.formField.extInfo.placeholder : $t('common.selectDate')"
320
+ :placeholder="item.formField.extInfo && item.formField.extInfo.placeholder ? item.formField.extInfo.placeholder : '请选择日期'"
321
321
  :required="item.required || isRequiredFn(item.formField)" @click="dateClick(item.fieldId)"
322
322
  :disabled="disableds" right-icon="van-icon van-icon-arrow van-cell__right-icon">
323
323
  <template slot="label">
@@ -341,7 +341,7 @@
341
341
  class="form-field-item-value">
342
342
  <van-field readonly clickable name="datetimePicker" :required="item.required || isRequiredFn(item.formField)"
343
343
  :value=extInfoFieldValue[item.fieldId] :label=item.formField.name
344
- :placeholder="item.formField.extInfo && item.formField.extInfo.placeholder ? item.formField.extInfo.placeholder : $t('common.selectPlaceholder')"
344
+ :placeholder="item.formField.extInfo && item.formField.extInfo.placeholder ? item.formField.extInfo.placeholder : '请选择'"
345
345
  @click="timeClick(item.fieldId, item, 'DATE_TIME')" :disabled="disableds"
346
346
  right-icon="van-icon van-icon-arrow van-cell__right-icon">
347
347
  <template slot="label">
@@ -368,7 +368,7 @@
368
368
  class="form-field-item-value">
369
369
  <van-field readonly clickable name="datetimePicker" :required="item.required || isRequiredFn(item.formField)"
370
370
  :value=extInfoFieldValue[item.fieldId] :label=item.formField.name
371
- :placeholder="item.formField.extInfo && item.formField.extInfo.placeholder ? item.formField.extInfo.placeholder : $t('common.selectPlaceholder')"
371
+ :placeholder="item.formField.extInfo && item.formField.extInfo.placeholder ? item.formField.extInfo.placeholder : '请选择'"
372
372
  @click="timeClick(item.fieldId, item, 'TIME')" :disabled="disableds"
373
373
  right-icon="van-icon van-icon-arrow van-cell__right-icon">
374
374
  <template slot="label">
@@ -394,7 +394,7 @@
394
394
  class="form-field-item-value">
395
395
  <van-field readonly clickable name="datetimePicker" :required="item.required || isRequiredFn(item.formField)"
396
396
  :value=extInfoFieldValue[item.fieldId] :label=item.formField.name
397
- :placeholder="item.formField.extInfo && item.formField.extInfo.placeholder ? item.formField.extInfo.placeholder : $t('common.selectPlaceholder')"
397
+ :placeholder="item.formField.extInfo && item.formField.extInfo.placeholder ? item.formField.extInfo.placeholder : '请选择'"
398
398
  @click="timeClick(item.fieldId, item, 'DATE')" :disabled="disableds"
399
399
  right-icon="van-icon van-icon-arrow van-cell__right-icon">
400
400
  <template slot="label">
@@ -511,7 +511,7 @@
511
511
  v-if="item.fieldId === 'workorder_clientId' || item.fieldId === 'workorder_statusId' || item.fieldId === 'workorder_priority'">
512
512
  <van-field readonly clickable name="picker" :value=selectValues[item.fieldId]
513
513
  :label="item.fieldId === 'workorder_clientId' ? '报单人' : item.formField.name"
514
- :placeholder="item.formField.extInfo && item.formField.extInfo.placeholder ? item.formField.extInfo.placeholder : $t('common.selectPlaceholder')"
514
+ :placeholder="item.formField.extInfo && item.formField.extInfo.placeholder ? item.formField.extInfo.placeholder : '请选择'"
515
515
  @click="selectClick(item.fieldId, 'client', item)" :required="item.required || isRequiredFn(item.formField)"
516
516
  :disabled="disableds" @click-right-icon.stop="SelectClear(item.fieldId)"
517
517
  :right-icon="selectValues[item.fieldId] ? 'close' : 'van-icon van-icon-arrow van-cell__right-icon'">
@@ -537,7 +537,7 @@
537
537
  <van-field readonly clickable name="picker"
538
538
  :value="showSelectText(item.formField.extInfo ? (item.formField.extInfo.option || item.formField.extInfo.options) : [], item.value)"
539
539
  :label=item.formField.name
540
- :placeholder="item.formField.extInfo && item.formField.extInfo.placeholder ? item.formField.extInfo.placeholder : $t('common.selectPlaceholder')"
540
+ :placeholder="item.formField.extInfo && item.formField.extInfo.placeholder ? item.formField.extInfo.placeholder : '请选择'"
541
541
  @click="selectClick(item.fieldId, 'select', item)" :required="item.required || isRequiredFn(item.formField)"
542
542
  :disabled="disableds" @click-right-icon.stop="SelectClear(item.fieldId)"
543
543
  :right-icon="item.value && item.value.length ? 'close' : 'van-icon van-icon-arrow van-cell__right-icon'">
@@ -586,7 +586,7 @@
586
586
  <van-field readonly clickable
587
587
  :value="Array.isArray(extInfoFieldValue[item.fieldId]) ? extInfoFieldValue[item.fieldId].map(v => v.name).join(',') : (extInfoFieldValue[item.fieldId] && extInfoFieldValue[item.fieldId].name ? extInfoFieldValue[item.fieldId].name : '')"
588
588
  :label="item.formField.name" name="picker"
589
- :placeholder="item.formField.extInfo && item.formField.extInfo.placeholder ? item.formField.extInfo.placeholder : $t('common.selectPlaceholder')"
589
+ :placeholder="item.formField.extInfo && item.formField.extInfo.placeholder ? item.formField.extInfo.placeholder : '请选择'"
590
590
  @click="selectClick(item.fieldId, 'ref', item)" @click-right-icon.stop="SelectClear(item.fieldId)"
591
591
  :required="item.required || isRequiredFn(item.formField)" :disabled="disableds"
592
592
  :right-icon="extInfoFieldValue[item.fieldId] && extInfoFieldValue[item.fieldId].length ? 'close' : 'van-icon van-icon-arrow van-cell__right-icon'" />
@@ -600,7 +600,7 @@
600
600
  label: 'name'
601
601
  }">
602
602
  <template slot="popup-footer" v-if="refNextPage[item.fieldId] && refNextPage[item.fieldId].hasNextPage">
603
- <span @click="lodeMore(item)">{{$t('common.loadMore')}}</span>
603
+ <span @click="lodeMore(item)">加载更多</span>
604
604
  </template>
605
605
  </select-popup>
606
606
  </van-popup>
@@ -610,7 +610,7 @@
610
610
  <van-field readonly clickable name="area"
611
611
  :value="extInfoFieldValue[item.fieldId] && Array.isArray(extInfoFieldValue[item.fieldId]) ? extInfoFieldValue[item.fieldId].map(e => e.label).join('/') : ''"
612
612
  :label=item.formField.name
613
- :placeholder="item.formField.extInfo && item.formField.extInfo.placeholder ? item.formField.extInfo.placeholder : $t('common.selectPlaceholder')"
613
+ :placeholder="item.formField.extInfo && item.formField.extInfo.placeholder ? item.formField.extInfo.placeholder : '请选择'"
614
614
  @click="openDrawer(item, 'cascader')"
615
615
  :required="item.fieldId !== '0feca81fce97465da537248c066e4db8' && item.fieldId !== '1d8bd21485834773a6d18eae60013000' && (item.required || isRequiredFn(item.formField))"
616
616
  :disabled="disableds" right-icon="van-icon van-icon-arrow van-cell__right-icon">
@@ -722,7 +722,7 @@
722
722
  /* eslint-disable */
723
723
  import { forMatTime } from "./utils/format_date";
724
724
  let that
725
- import { multipartUpload, ossFileUrl } from "../assets/js/AliyunlssUtil";
725
+ import { multipartUpload, ossFileUrl } from "./utils/AliyunIssUtil";
726
726
  import MyEditor from './MyEditor'
727
727
  import myPopup from "./myPopup.vue";
728
728
  import Tree from '../components/tree'
@@ -883,10 +883,6 @@ export default {
883
883
  default () {
884
884
  return ""
885
885
  }
886
- },
887
- language:{
888
- type:String,
889
- default:"cn"
890
886
  }
891
887
  },
892
888
  computed: {
@@ -1102,7 +1098,7 @@ export default {
1102
1098
  } else {
1103
1099
  this.disableds = false
1104
1100
  }
1105
- this.submitValue = this.submit ? this.$t('common.submited') : this.$t('common.submit')
1101
+ this.submitValue = this.submit ? '已提交' : "提交"
1106
1102
  },
1107
1103
  beforeMount () {
1108
1104
  that.defaultClick()
@@ -1387,11 +1383,11 @@ export default {
1387
1383
  const isLte2M = file.size / 1024 / 1024 <= 8;
1388
1384
  const isSupportedFormat = file.type.indexOf('image') !== -1
1389
1385
  if (!isSupportedFormat) {
1390
- this.$message.error(this.$t('formTemplate.uploadType'));
1386
+ this.$message.error("只能上传图片格式");
1391
1387
  return false
1392
1388
  }
1393
1389
  if (!isLte2M && isSupportedFormat) {
1394
- this.$message.error(this.$t('formTemplate.uploadImageSize'));
1390
+ this.$message.error("上传图片大小不能超过 8MB!");
1395
1391
  return false
1396
1392
  }
1397
1393
  return true
@@ -1400,11 +1396,11 @@ export default {
1400
1396
  const isLte2M = file.size / 1024 / 1024 <= 100;
1401
1397
  const isSupportedFormat = file.type.indexOf('video') !== -1
1402
1398
  if (!isSupportedFormat) {
1403
- this.$message.error(this.$t('formTemplate.uploadVideoType'));
1399
+ this.$message.error("只能上传视频格式");
1404
1400
  return false
1405
1401
  }
1406
1402
  if (!isLte2M && isSupportedFormat) {
1407
- this.$message.error(this.$t('formTemplate.uploadVideoSize'));
1403
+ this.$message.error("上传视频大小不能超过100MB!");
1408
1404
  return false
1409
1405
  }
1410
1406
  return true
@@ -1412,7 +1408,7 @@ export default {
1412
1408
  else if (type === 'ATTACHMENT') {
1413
1409
  const isLte2M = file.size / 1024 / 1024 <= 100;
1414
1410
  if (!isLte2M) {
1415
- this.$message.error(this.$t('formTemplate.uploadFileSize'));
1411
+ this.$message.error("上传附件大小不能超过100MB!");
1416
1412
  return false
1417
1413
  }
1418
1414
  return true
@@ -1429,11 +1425,11 @@ export default {
1429
1425
  const isLte2M = file[i].size / 1024 / 1024 <= 8;
1430
1426
  const isSupportedFormat = file[i].type.indexOf('image') !== -1
1431
1427
  if (!isSupportedFormat) {
1432
- this.$message.error(this.$t('formTemplate.uploadType'));
1428
+ this.$message.error("只能上传图片格式");
1433
1429
  return false
1434
1430
  }
1435
1431
  if (!isLte2M && isSupportedFormat) {
1436
- this.$message.error(this.$t('formTemplate.uploadImageSize'));
1432
+ this.$message.error("上传图片大小不能超过 8MB!");
1437
1433
  return false
1438
1434
  }
1439
1435
  return true
@@ -1442,11 +1438,11 @@ export default {
1442
1438
  const isLte2M = file[i].size / 1024 / 1024 <= 100;
1443
1439
  const isSupportedFormat = file[i].type.indexOf('video') !== -1
1444
1440
  if (!isSupportedFormat) {
1445
- this.$message.error(this.$t('formTemplate.uploadVideoType'));
1441
+ this.$message.error("只能上传视频格式");
1446
1442
  return false
1447
1443
  }
1448
1444
  if (!isLte2M && isSupportedFormat) {
1449
- this.$message.error(this.$t('formTemplate.uploadVideoSize'));
1445
+ this.$message.error("上传视频大小不能超过100MB!");
1450
1446
  return false
1451
1447
  }
1452
1448
  return true
@@ -1454,7 +1450,7 @@ export default {
1454
1450
  else if (type === 'ATTACHMENT') {
1455
1451
  const isLte2M = file[i].size / 1024 / 1024 <= 100;
1456
1452
  if (!isLte2M) {
1457
- this.$message.error(this.$t('formTemplate.uploadFileSize'));
1453
+ this.$message.error("上传附件大小不能超过100MB!");
1458
1454
  return false
1459
1455
  }
1460
1456
  return true
@@ -1466,7 +1462,7 @@ export default {
1466
1462
  if (this.limitNum) {
1467
1463
  num = this.limitNum
1468
1464
  }
1469
- let messageText = this.$t('formTemplate.onlyUpload' )+num+ this.$t('formTemplate.number')
1465
+ let messageText = '仅支持上传' + num + ''
1470
1466
  this.$message.error(messageText);
1471
1467
  return false
1472
1468
  }
@@ -1488,7 +1484,7 @@ export default {
1488
1484
  num = this.limitNum
1489
1485
  }
1490
1486
  if (file.length > num) {
1491
- this.$message.warning(this.$t('formTemplate.onlyUpload' )+ num + this.$t('formTemplate.number'))
1487
+ this.$message.warning('仅支持上传' + num + '张图片')
1492
1488
  return false
1493
1489
  }
1494
1490
  else {
@@ -1691,7 +1687,7 @@ export default {
1691
1687
  this.$set(this.extInfoFieldValue, this.formList.form.formFieldRelation[i].fieldId, [])
1692
1688
  this.loopCascaderSetDefalut(cascadeOptions, this.formList.form.formFieldRelation[i], extInfo.selectType)
1693
1689
  this.loopCascaderSetValue(cascadeOptions, this.formList.form.formFieldRelation[i], extInfo.selectType)
1694
-
1690
+
1695
1691
  }
1696
1692
  if (type === 'DATE_PICKER') {
1697
1693
  if (this.formList.form.formFieldRelation[i].value && this.formList.form.formFieldRelation[i].value !== null && this.formList.form.formFieldRelation[i].value !== '') {
@@ -1980,27 +1976,27 @@ export default {
1980
1976
  if (checkDescription.checkAttachment && this.attachmentList.length == 0) {
1981
1977
  attachmentFlag = false
1982
1978
  }
1983
- let text = this.isBaiLi ? this.$t('formTemplate.feedbackDes') : this.$t('formTemplate.orderDes')
1979
+ let text = this.isBaiLi ? '反馈描述' : '问题描述'
1984
1980
  if (!textFlag) {
1985
- errorText = text + this.$t('formTemplate.textFlag')
1981
+ errorText = text + '必须要有文字'
1986
1982
  }
1987
1983
  if (!imageOrAttachment) {
1988
- errorText = text + this.$t('formTemplate.imageOrAttachment')
1984
+ errorText = text + '必须要有图片或附件'
1989
1985
  }
1990
1986
  if (!imageFlag) {
1991
- errorText = text + this.$t('formTemplate.imageFlag')
1987
+ errorText = text + '必须要有图片'
1992
1988
  }
1993
1989
  if (!attachmentFlag) {
1994
- errorText = text + this.$t('formTemplate.attachmentFlag')
1990
+ errorText = text + '必须要有附件'
1995
1991
  }
1996
1992
  if (!textFlag && (!imageFlag || !attachmentFlag)) {
1997
- errorText = text + this.$t('formTemplate.textFlag') + this.$t('formTemplate.and') + (!imageFlag ? this.$t('formTemplate.image') : this.$t('formTemplate.file'))
1993
+ errorText = text + '必须要有文字和' + (!imageFlag ? '图片' : '附件')
1998
1994
  }
1999
1995
  if (!imageFlag && !attachmentFlag) {
2000
- errorText = text + this.$t('formTemplate.imageFlag') + this.$t('formTemplate.and') + this.$t('formTemplate.file')
1996
+ errorText = text + '必须要有图片和附件'
2001
1997
  }
2002
1998
  if (!imageFlag && !attachmentFlag && !textFlag) {
2003
- errorText = text + this.$t('formTemplate.textFlag') + ',' + this.$t('formTemplate.image') + this.$t('formTemplate.and') + this.$t('formTemplate.file')
1999
+ errorText = text + '必须要有文字、图片和附件'
2004
2000
  }
2005
2001
  if (errorText) {
2006
2002
  this.$message.error(errorText);
@@ -2009,7 +2005,7 @@ export default {
2009
2005
  let d = document.createElement('div')
2010
2006
  d.innerHTML = this.workOrderDestail.value
2011
2007
  if (checkDescription.required && !d.innerText && !this.workOrderDestail.value.includes('img') && this.attachmentList.length == 0) {
2012
- let errorText = this.isBaiLi ? this.$t('formTemplate.feedbackDesRequired') : this.$t('formTemplate.orderDesRequired')
2008
+ let errorText = this.isBaiLi ? '反馈描述是必填的' : '问题描述是必填的'
2013
2009
  this.$message.error(errorText);
2014
2010
  return false
2015
2011
  }
@@ -2019,7 +2015,7 @@ export default {
2019
2015
  //提交按钮事件
2020
2016
  submitClick () {
2021
2017
  if (this.uploadImgQueue || this.attachmentList.some(arrach => { return !arrach.url })) {
2022
- this.$message.warning(this.$t('formTemplate.uploading'))
2018
+ this.$message.warning('文件正在上传,请稍后')
2023
2019
  return
2024
2020
  }
2025
2021
  if (this.workOrderDestail && !this.verificationDescription()) {
@@ -2098,7 +2094,7 @@ export default {
2098
2094
  }
2099
2095
  if (this.formShow.form.formFieldRelation[i].relationDisplay && this.formShow.form.formFieldRelation[i].display && this.formShow.form.formFieldRelation[i].fieldId !== 'workorder_description') {
2100
2096
  if (!this.formShow.form.formFieldRelation[i].value || this.strIsNull(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)) {
2101
- this.$message.error(this.$t('formTemplate.pleaseImprove' )+ this.formShow.form.formFieldRelation[i].formField.name)
2097
+ this.$message.error('请完善' + this.formShow.form.formFieldRelation[i].formField.name)
2102
2098
  return
2103
2099
  }
2104
2100
  }
@@ -2129,7 +2125,7 @@ export default {
2129
2125
  console.error('formShow', newForm)
2130
2126
  this.$emit('submitClick', newForm)
2131
2127
  this.disableds = true
2132
- this.submitValue = this.$t('common.submited')
2128
+ this.submitValue = '已提交'
2133
2129
  },
2134
2130
  strIsNull (str) {
2135
2131
  if (str == "") return true;
@@ -3508,4 +3504,4 @@ export default {
3508
3504
  height: 100%;
3509
3505
  overflow: hidden;
3510
3506
  }
3511
- </style>
3507
+ </style>
@@ -3,11 +3,11 @@
3
3
  <div class="summaryHeader">
4
4
  <div class="left">
5
5
  <i class="iconfont guoran-tongyichicun-write-29-jiqiren"></i>
6
- <span>{{$t('previewPdf.intelligentSummary')}}</span>
6
+ <span>智能摘要</span>
7
7
  </div>
8
8
  <div class="right">
9
9
  <div class="regenerationBtn" @click="regeneration">
10
- <template v-if="!isLoading">{{$t('previewPdf.regeneration')}}</template>
10
+ <template v-if="!isLoading">重新生成</template>
11
11
  <template v-else>
12
12
  <img
13
13
  height="20px"
@@ -17,7 +17,7 @@
17
17
  srcset
18
18
  style="margin-right: 6px"
19
19
  />
20
- <span>{{$t('previewPdf.generating')}}</span>
20
+ <span>生成中</span>
21
21
  </template>
22
22
  </div>
23
23
  <i class="iconfont guoran-tongyichicun-shouqi" @click="closeSummary"></i>
@@ -26,7 +26,7 @@
26
26
  <div class="summaryContent">
27
27
  <span>{{ typedContent }}</span>
28
28
  </div>
29
- <div class="intelligentBottom" v-if="recommendQuestions.length > 0 && !formKnowledgeManagement">
29
+ <div class="intelligentBottom" v-if="recommendQuestions.length > 0">
30
30
  <div class="intelligentQues"
31
31
  v-for="(item,index) in recommendQuestions"
32
32
  :key="index"
@@ -59,10 +59,6 @@ export default {
59
59
  default() {
60
60
  return []
61
61
  }
62
- },
63
- formKnowledgeManagement:{
64
- type: Boolean,
65
- default: false
66
62
  }
67
63
  },
68
64
  methods:{
@@ -12,14 +12,14 @@
12
12
  </div>
13
13
  <div v-if="isCompany">
14
14
  <div v-if="single === true" class="editMessage">
15
- <el-input v-model="input" :placeholder="$t('common.inputPlaceholder')" class="inputClass" @input="testClick" @blur="inputBlur"></el-input>
15
+ <el-input v-model="input" placeholder="请输入内容" class="inputClass" @input="testClick" @blur="inputBlur"></el-input>
16
16
  <!-- <span @click="quedingClick" style="display: flex;align-items: center"><i class="el-icon-success" style="color: #4C61E1;font-size: 32px;cursor: pointer"></i></span>
17
17
  --> </div>
18
18
  <div v-if="date" class="editMessage">
19
19
  <el-date-picker
20
20
  v-model="dateValue"
21
21
  type="date"
22
- :placeholder="$t('common.selectDate')"
22
+ placeholder="选择日期"
23
23
  style="width: 100%;margin: 10px 0 10px 0"
24
24
  :clearable=false
25
25
  @change="dataclick"
@@ -31,7 +31,7 @@
31
31
  <div v-if="time" class="editMessage">
32
32
  <el-time-picker
33
33
  v-model="timeValue"
34
- :placeholder="$t('common.selectTime')"
34
+ placeholder="任意时间点"
35
35
  style="margin: 10px 0 10px 0;width: 100%"
36
36
  :clearable=false
37
37
  @change="dataclick"
@@ -43,7 +43,7 @@
43
43
  <el-date-picker
44
44
  v-model="dateTimeValue"
45
45
  type="datetime"
46
- :placeholder="$t('common.selectDateTime')"
46
+ placeholder="选择日期时间"
47
47
  style="width: 100%;margin: 10px 0 10px 0"
48
48
  @change="dataclick"
49
49
  >
@@ -92,7 +92,7 @@
92
92
  </div>
93
93
  <div v-if="isPhone">
94
94
  <div v-if="single" class="editMessage">
95
- <el-input v-model="input" :placeholder="$t('common.inputPlaceholder')" class="inputClass" @input="testClick" @blur="inputBlur"></el-input>
95
+ <el-input v-model="input" placeholder="请输入内容" class="inputClass" @input="testClick" @blur="inputBlur"></el-input>
96
96
  <!-- <span @click="quedingClick" style="display: flex;align-items: center"><i class="el-icon-success" style="color: #4C61E1;font-size: 32px;cursor: pointer"></i></span>
97
97
  --> </div>
98
98
  <div v-if="date">
@@ -113,7 +113,7 @@
113
113
  <van-datetime-picker
114
114
  v-model="timeValue"
115
115
  type="datetime"
116
- :title="$t('common.selectTime')"
116
+ title="选择时间"
117
117
  :min-date="minDate"
118
118
  :formatter="formatter"
119
119
  @cancel="showTimePicker = false"
@@ -134,7 +134,7 @@
134
134
  <van-datetime-picker
135
135
  v-model="dateTimeValue"
136
136
  type="datetime"
137
- :title="$t('common.selectDateTime')"
137
+ title="选择日期时间"
138
138
  :min-date="minDate"
139
139
  :formatter="formatter"
140
140
  @cancel="showDateTimePicker = false"
@@ -301,11 +301,7 @@ export default {
301
301
  },
302
302
  type:String,
303
303
  disable:Boolean,
304
- submit:Boolean,
305
- language:{
306
- type:String,
307
- default:"cn"
308
- }
304
+ submit:Boolean
309
305
  },
310
306
  mounted() {
311
307
  this.isMobile()
@@ -371,11 +367,11 @@ export default {
371
367
  }
372
368
  if(this.submit===true)
373
369
  {
374
- this.submitValue=this.$t('common.confirmed')
370
+ this.submitValue='已确认'
375
371
  }
376
372
  else
377
373
  {
378
- this.submitValue=this.$t('common.confirm')
374
+ this.submitValue='确认'
379
375
  }
380
376
  },
381
377
  methods:{
@@ -616,7 +612,7 @@ export default {
616
612
  infomation['template']=innerhtml.querySelector('#html').innerHTML
617
613
  infomation['apiKey']=this.text.apiKey
618
614
  this.$emit('submitClick',infomation,this.text.apiKey)
619
- this.submitValue=this.$t('common.confirmed')
615
+ this.submitValue='已确认'
620
616
  this.disableds=true
621
617
  },
622
618
  addZero(i){
@@ -9,7 +9,7 @@
9
9
  >
10
10
  <slot></slot>
11
11
  </div>
12
- <div v-if="device==='PC'&&content.multiple===true && content.cards && content.cards.length > 1" class="clickBtn">
12
+ <div v-if="device==='PC'&&content.multiple===true" class="clickBtn">
13
13
  <div class="preBtn" @click="preClick" style="display: flex">
14
14
  <i class="el-icon-arrow-left" style="font-size: 18px;font-weight:800;align-self: center;margin: auto"></i>
15
15
  </div>