askbot-dragon 1.7.15-beta → 1.7.17-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.
@@ -68,10 +68,10 @@
68
68
  <span class="model-switch-handle-name">{{msg.footerStyleValue}}</span>
69
69
  </div>
70
70
  <van-popup v-model="previewShowPopup" position="bottom" v-if="previewShowPopup" :style="{ height: '90%', background:'#FFFFFF'}">
71
- <previewDoc ref="previewDoc" :url="previewHref" :language="language" @close="close" v-if="previewShowPopup"></previewDoc>
71
+ <previewDoc ref="previewDoc" :url="previewHref" @close="close" v-if="previewShowPopup"></previewDoc>
72
72
  </van-popup>
73
73
  <el-drawer
74
- :title="$t('common.drawerTitle')"
74
+ title="我是标题"
75
75
  :append-to-body="true"
76
76
  :model="false"
77
77
  :visible.sync="drawer"
@@ -79,7 +79,7 @@
79
79
  size="65%"
80
80
  v-if="drawer"
81
81
  >
82
- <previewDoc ref="previewDoc" :url="previewHref" :language="language" @close="close" v-if="drawer"></previewDoc>
82
+ <previewDoc ref="previewDoc" :url="previewHref" @close="close" v-if="drawer"></previewDoc>
83
83
  </el-drawer>
84
84
  </div>
85
85
  </template>
@@ -92,7 +92,7 @@
92
92
  export default {
93
93
  name: "associationIntention",
94
94
  components: {Recommend, askVideo, previewDoc},
95
- props: ["msg",'msgType','isOpen','sourceOhm','isOhmPc', 'nodownload', 'hiddenHeaderFooter','language'],
95
+ props: ["msg",'msgType','isOpen','sourceOhm','isOhmPc', 'nodownload', 'hiddenHeaderFooter'],
96
96
  filters: {
97
97
  imageStyle: function (html) {
98
98
  //富文本内图片自适应高度宽度
@@ -115,6 +115,8 @@
115
115
  drawer:false
116
116
  }
117
117
  },
118
+ mounted() {
119
+ },
118
120
  methods:{
119
121
  // 将匹配结果替换表情图片
120
122
  emotion(res) {
@@ -235,7 +237,7 @@
235
237
  this.$emit("onRadioClick", id, name, apikey,optionApiKey);
236
238
  },
237
239
  onImageClick(url){
238
- this.$emit('onImageClick', encodeURI(url))
240
+ this.$emit('onImageClick',url)
239
241
  },
240
242
  msgContent(content){
241
243
  console.debug('215',content)
@@ -366,12 +368,6 @@
366
368
  display: block;
367
369
  }
368
370
  }
369
- /deep/ img {
370
- height: auto;
371
- width: calc(100vw - 137px);
372
- border-radius: 25px;
373
- max-width: 230px;
374
- }
375
371
  }
376
372
  /deep/.el-drawer__body{
377
373
  height: 100%;
@@ -13,8 +13,8 @@
13
13
  <div class="field-item">
14
14
  <div v-if="item.fieldId !== 'workorder_name' && item.formField.type !== 'EXPLANATION' && item.formField.type !== 'EXPLAIN' " class="field-item-name">
15
15
  <span 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" v-if="item.fieldId !== '0feca81fce97465da537248c066e4db8' && item.fieldId !=='1d8bd21485834773a6d18eae60013000' && (item.required || isRequiredFn(item.formField))">*</span>
19
19
  <el-tooltip class="item" effect="dark" placement="right-start">
20
20
  <div slot="content" v-if="item.formField.remark">{{item.formField.remark.text}}</div>
@@ -58,7 +58,7 @@
58
58
  </div>
59
59
  </template>
60
60
  <el-input type="textarea" :rows="2" v-model="item.value"
61
- :placeholder="item.formField.extInfo&&item.formField.extInfo.placeholder?item.formField.extInfo.placeholder:$t('common.inputPlaceholder')"
61
+ :placeholder="item.formField.extInfo&&item.formField.extInfo.placeholder?item.formField.extInfo.placeholder:'请输入'"
62
62
  :maxlength="item.formField.extInfo&&item.formField.extInfo.maxNum?item.formField.extInfo.maxNum*1:1000"
63
63
  v-if="item.formField.type==='TEXTAREA'&& item.fieldId!=='workorder_description'"
64
64
  ></el-input>
@@ -82,7 +82,7 @@
82
82
  <el-date-picker
83
83
  v-model=item.value
84
84
  type="date"
85
- :placeholder="item.formField.extInfo&&item.formField.extInfo.placeholder?item.formField.extInfo.placeholder:$t('common.selectDate')"
85
+ :placeholder="item.formField.extInfo&&item.formField.extInfo.placeholder?item.formField.extInfo.placeholder:'请选择日期'"
86
86
  style="width: 100%"
87
87
  v-else-if="item.formField.type==='DATE_PICKER'"
88
88
  >
@@ -90,7 +90,7 @@
90
90
  <el-time-picker
91
91
  v-model=item.value
92
92
  format="HH:mm"
93
- :placeholder="item.formField.extInfo&&item.formField.extInfo.placeholder?item.formField.extInfo.placeholder:$t('common.selectTime')"
93
+ :placeholder="item.formField.extInfo&&item.formField.extInfo.placeholder?item.formField.extInfo.placeholder:'请选择时间'"
94
94
  style="width: 100%"
95
95
  v-else-if="item.formField.type==='TIME_PICKER' && (!item.formField.extInfo.mold || item.formField.extInfo.mold == 'TIME' || getMoldTime(item.formField) == 'TIME')"
96
96
  >
@@ -99,13 +99,13 @@
99
99
  v-model=item.value
100
100
  type="date"
101
101
  style="width: 100%"
102
- :placeholder="item.formField.extInfo&&item.formField.extInfo.placeholder?item.formField.extInfo.placeholder:$t('common.selectDate')"
102
+ :placeholder="item.formField.extInfo&&item.formField.extInfo.placeholder?item.formField.extInfo.placeholder:'请选择日期'"
103
103
  v-else-if="item.formField.type==='TIME_PICKER' && (item.formField.extInfo.mold==='DATA' || item.formField.extInfo.mold==='DATE' || getMoldTime(item.formField) == 'DATE')"
104
104
  >
105
105
  </el-date-picker>
106
106
  <el-date-picker
107
107
  v-model=item.value
108
- :placeholder="item.formField.extInfo&&item.formField.extInfo.placeholder?item.formField.extInfo.placeholder:$t('common.selectDateTime')"
108
+ :placeholder="item.formField.extInfo&&item.formField.extInfo.placeholder?item.formField.extInfo.placeholder:'请选择日期时间'"
109
109
  clearable
110
110
  style="width: 100%"
111
111
  type="datetime"
@@ -143,7 +143,7 @@
143
143
  <div v-else-if="item.formField.type==='SELECT' || item.formField.type==='OPTION'" >
144
144
  <el-select
145
145
  v-model=item.value
146
- :placeholder="item.formField.extInfo&&item.formField.extInfo.placeholder?item.formField.extInfo.placeholder:$t('common.selectPlaceholder')"
146
+ :placeholder="item.formField.extInfo&&item.formField.extInfo.placeholder?item.formField.extInfo.placeholder:'请选择'"
147
147
  style="width: 100%"
148
148
  filterable
149
149
  v-if="item.fieldId==='workorder_clientId' || item.fieldId === 'workorder_statusId' || item.fieldId === 'workorder_priority'"
@@ -157,7 +157,7 @@
157
157
  </el-select>
158
158
  <el-select
159
159
  v-model=item.value
160
- :placeholder="item.formField.extInfo&&item.formField.extInfo.placeholder?item.formField.extInfo.placeholder:$t('common.selectPlaceholder')"
160
+ :placeholder="item.formField.extInfo&&item.formField.extInfo.placeholder?item.formField.extInfo.placeholder:'请选择'"
161
161
  style="width: 100%"
162
162
  filterable
163
163
  v-else
@@ -190,7 +190,7 @@
190
190
  {{casIndex==0?cas.label:'/'+cas.label}}
191
191
  </span>
192
192
  </template>
193
- <span v-else>{{item.formField.extInfo&&item.formField.extInfo.placeholder?item.formField.extInfo.placeholder:$t('common.selectPlaceholder')}}</span>
193
+ <span v-else>{{item.formField.extInfo&&item.formField.extInfo.placeholder?item.formField.extInfo.placeholder:'请选择'}}</span>
194
194
  </div>
195
195
  <!-- <el-cascader
196
196
  v-model=item.value
@@ -245,7 +245,7 @@
245
245
  <div v-else-if="item.formField.type == 'REF_TEMPLATE' || item.formField.type == 'REF'">
246
246
  <el-select
247
247
  v-model=item.value
248
- :placeholder="item.formField.extInfo&&item.formField.extInfo.placeholder?item.formField.extInfo.placeholder:$t('common.selectPlaceholder')"
248
+ :placeholder="item.formField.extInfo&&item.formField.extInfo.placeholder?item.formField.extInfo.placeholder:'请选择'"
249
249
  style="width: 100%"
250
250
  filterable
251
251
  :multiple="item.formField.extInfo && item.formField.extInfo.selectType == '多选'"
@@ -285,7 +285,7 @@
285
285
  :label=item.formField.name
286
286
  :required="item.required || isRequiredFn(item.formField)"
287
287
  :disabled="disableds"
288
- :placeholder="item.formField.extInfo&&item.formField.extInfo.placeholder?item.formField.extInfo.placeholder:$t('common.inputPlaceholder')"
288
+ :placeholder="item.formField.extInfo&&item.formField.extInfo.placeholder?item.formField.extInfo.placeholder:'请输入'"
289
289
  :maxlength="item.formField.extInfo&&item.formField.extInfo.maxNum?item.formField.extInfo.maxNum*1:1000"
290
290
  @blur="typeCheck(item.formField,item)"
291
291
  :type="item.formField.extInfo.inputType==='NUMBER'||
@@ -323,7 +323,7 @@
323
323
  :required="item.required || isRequiredFn(item.formField)"
324
324
  type="textarea"
325
325
  :disabled="disableds"
326
- :placeholder="item.formField.extInfo&&item.formField.extInfo.placeholder?item.formField.extInfo.placeholder:$t('common.inputPlaceholder')"
326
+ :placeholder="item.formField.extInfo&&item.formField.extInfo.placeholder?item.formField.extInfo.placeholder:'请输入'"
327
327
  :maxlength="item.formField.extInfo&&item.formField.extInfo.maxNum?item.formField.extInfo.maxNum*1:1000"
328
328
  v-if="item.fieldId!=='workorder_description'"
329
329
  >
@@ -376,7 +376,7 @@
376
376
  name="calendar"
377
377
  :value=dateValue[item.fieldId]
378
378
  :label=item.formField.name
379
- :placeholder="item.formField.extInfo&&item.formField.extInfo.placeholder?item.formField.extInfo.placeholder:$t('common.selectDate')"
379
+ :placeholder="item.formField.extInfo&&item.formField.extInfo.placeholder?item.formField.extInfo.placeholder:'请选择日期'"
380
380
  :required="item.required || isRequiredFn(item.formField)"
381
381
  @click="dateClick(item.fieldId)"
382
382
  :disabled="disableds"
@@ -409,7 +409,7 @@
409
409
  :required="item.required || isRequiredFn(item.formField)"
410
410
  :value=extInfoFieldValue[item.fieldId]
411
411
  :label=item.formField.name
412
- :placeholder="item.formField.extInfo&&item.formField.extInfo.placeholder?item.formField.extInfo.placeholder:$t('common.selectPlaceholder')"
412
+ :placeholder="item.formField.extInfo&&item.formField.extInfo.placeholder?item.formField.extInfo.placeholder:'请选择'"
413
413
  @click="timeClick(item.fieldId,item,'DATE_TIME')"
414
414
  :disabled="disableds"
415
415
  right-icon="van-icon van-icon-arrow van-cell__right-icon"
@@ -447,7 +447,7 @@
447
447
  :required="item.required || isRequiredFn(item.formField)"
448
448
  :value=extInfoFieldValue[item.fieldId]
449
449
  :label=item.formField.name
450
- :placeholder="item.formField.extInfo&&item.formField.extInfo.placeholder?item.formField.extInfo.placeholder:$t('common.selectPlaceholder')"
450
+ :placeholder="item.formField.extInfo&&item.formField.extInfo.placeholder?item.formField.extInfo.placeholder:'请选择'"
451
451
  @click="timeClick(item.fieldId,item,'TIME')"
452
452
  :disabled="disableds"
453
453
  right-icon="van-icon van-icon-arrow van-cell__right-icon"
@@ -485,7 +485,7 @@
485
485
  :required="item.required || isRequiredFn(item.formField)"
486
486
  :value=extInfoFieldValue[item.fieldId]
487
487
  :label=item.formField.name
488
- :placeholder="item.formField.extInfo&&item.formField.extInfo.placeholder?item.formField.extInfo.placeholder:$t('common.selectPlaceholder')"
488
+ :placeholder="item.formField.extInfo&&item.formField.extInfo.placeholder?item.formField.extInfo.placeholder:'请选择'"
489
489
  @click="timeClick(item.fieldId,item,'DATE')"
490
490
  :disabled="disableds"
491
491
  right-icon="van-icon van-icon-arrow van-cell__right-icon"
@@ -601,7 +601,7 @@
601
601
  name="picker"
602
602
  :value=selectValues[item.fieldId]
603
603
  :label="item.fieldId==='workorder_clientId'?'报单人':item.formField.name"
604
- :placeholder="item.formField.extInfo&&item.formField.extInfo.placeholder?item.formField.extInfo.placeholder:$t('common.selectPlaceholder')"
604
+ :placeholder="item.formField.extInfo&&item.formField.extInfo.placeholder?item.formField.extInfo.placeholder:'请选择'"
605
605
  @click="selectClick(item.fieldId,'client',item)"
606
606
  :required="item.required || isRequiredFn(item.formField)"
607
607
  :disabled="disableds"
@@ -638,7 +638,7 @@
638
638
  name="picker"
639
639
  :value="showSelectText(item.formField.extInfo ? (item.formField.extInfo.option || item.formField.extInfo.options) : [],item.value)"
640
640
  :label=item.formField.name
641
- :placeholder="item.formField.extInfo&&item.formField.extInfo.placeholder?item.formField.extInfo.placeholder:$t('common.selectPlaceholder')"
641
+ :placeholder="item.formField.extInfo&&item.formField.extInfo.placeholder?item.formField.extInfo.placeholder:'请选择'"
642
642
  @click="selectClick(item.fieldId,'select',item)"
643
643
  :required="item.required || isRequiredFn(item.formField)"
644
644
  :disabled="disableds"
@@ -691,7 +691,7 @@
691
691
  :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:'')"
692
692
  :label="item.formField.name"
693
693
  name="picker"
694
- :placeholder="item.formField.extInfo&&item.formField.extInfo.placeholder?item.formField.extInfo.placeholder:$t('common.selectPlaceholder')"
694
+ :placeholder="item.formField.extInfo&&item.formField.extInfo.placeholder?item.formField.extInfo.placeholder:'请选择'"
695
695
  @click="selectClick(item.fieldId,'ref',item)"
696
696
  @click-right-icon.stop="SelectClear(item.fieldId)"
697
697
  :required="item.required || isRequiredFn(item.formField)"
@@ -712,7 +712,7 @@
712
712
  }"
713
713
  >
714
714
  <template slot="popup-footer" v-if="refNextPage[item.fieldId] && refNextPage[item.fieldId].hasNextPage">
715
- <span @click="lodeMore(item)">{{$t('common.loadMore')}}</span>
715
+ <span @click="lodeMore(item)">加载更多</span>
716
716
  </template>
717
717
  </select-popup>
718
718
  </van-popup>
@@ -724,7 +724,7 @@
724
724
  name="area"
725
725
  :value="extInfoFieldValue[item.fieldId] && Array.isArray(extInfoFieldValue[item.fieldId])?extInfoFieldValue[item.fieldId].map(e=>e.label).join('/'):''"
726
726
  :label=item.formField.name
727
- :placeholder="item.formField.extInfo&&item.formField.extInfo.placeholder?item.formField.extInfo.placeholder:$t('common.selectPlaceholder')"
727
+ :placeholder="item.formField.extInfo&&item.formField.extInfo.placeholder?item.formField.extInfo.placeholder:'请选择'"
728
728
  @click="openDrawer(item,'cascader')"
729
729
  :required="item.fieldId !== '0feca81fce97465da537248c066e4db8' && item.fieldId !=='1d8bd21485834773a6d18eae60013000' && (item.required || isRequiredFn(item.formField))"
730
730
  :disabled="disableds"
@@ -1022,10 +1022,6 @@ export default {
1022
1022
  default(){
1023
1023
  return ""
1024
1024
  }
1025
- },
1026
- language:{
1027
- type:String,
1028
- default:"cn"
1029
1025
  }
1030
1026
  },
1031
1027
  computed:{
@@ -1243,7 +1239,7 @@ export default {
1243
1239
  {
1244
1240
  this.disableds=false
1245
1241
  }
1246
- this.submitValue = this.submit ? this.$t('common.submited') : this.$t('common.submit')
1242
+ this.submitValue = this.submit ? '已提交' : "提交"
1247
1243
  },
1248
1244
  beforeMount() {
1249
1245
  that.defaultClick()
@@ -1528,11 +1524,11 @@ export default {
1528
1524
  const isLte2M = file.size / 1024 / 1024 <= 8;
1529
1525
  const isSupportedFormat = file.type.indexOf('image')!==-1
1530
1526
  if (!isSupportedFormat){
1531
- this.$message.error(this.$t('formTemplate.uploadType'));
1527
+ this.$message.error("只能上传图片格式");
1532
1528
  return false
1533
1529
  }
1534
1530
  if (!isLte2M&&isSupportedFormat) {
1535
- this.$message.error(this.$t('formTemplate.uploadImageSize'));
1531
+ this.$message.error("上传图片大小不能超过 8MB!");
1536
1532
  return false
1537
1533
  }
1538
1534
  return true
@@ -1541,11 +1537,11 @@ export default {
1541
1537
  const isLte2M = file.size / 1024 / 1024 <= 100;
1542
1538
  const isSupportedFormat =file.type.indexOf('video')!==-1
1543
1539
  if (!isSupportedFormat){
1544
- this.$message.error(this.$t('formTemplate.uploadVideoType'));
1540
+ this.$message.error("只能上传视频格式");
1545
1541
  return false
1546
1542
  }
1547
1543
  if (!isLte2M&&isSupportedFormat) {
1548
- this.$message.error(this.$t('formTemplate.uploadVideoSize'));
1544
+ this.$message.error("上传视频大小不能超过100MB!");
1549
1545
  return false
1550
1546
  }
1551
1547
  return true
@@ -1553,7 +1549,7 @@ export default {
1553
1549
  else if (type === 'ATTACHMENT'){
1554
1550
  const isLte2M = file.size / 1024 / 1024 <= 100;
1555
1551
  if (!isLte2M) {
1556
- this.$message.error(this.$t('formTemplate.uploadFileSize'));
1552
+ this.$message.error("上传附件大小不能超过100MB!");
1557
1553
  return false
1558
1554
  }
1559
1555
  return true
@@ -1570,11 +1566,11 @@ export default {
1570
1566
  const isLte2M = file[i].size / 1024 / 1024 <= 8;
1571
1567
  const isSupportedFormat =file[i].type.indexOf('image')!==-1
1572
1568
  if (!isSupportedFormat){
1573
- this.$message.error(this.$t('formTemplate.uploadType'));
1569
+ this.$message.error("只能上传图片格式");
1574
1570
  return false
1575
1571
  }
1576
1572
  if (!isLte2M&&isSupportedFormat) {
1577
- this.$message.error(this.$t('formTemplate.uploadImageSize'));
1573
+ this.$message.error("上传图片大小不能超过 8MB!");
1578
1574
  return false
1579
1575
  }
1580
1576
  return true
@@ -1583,11 +1579,11 @@ export default {
1583
1579
  const isLte2M = file[i].size / 1024 / 1024 <= 100;
1584
1580
  const isSupportedFormat =file[i].type.indexOf('video')!==-1
1585
1581
  if (!isSupportedFormat){
1586
- this.$message.error(this.$t('formTemplate.uploadVideoType'));
1582
+ this.$message.error("只能上传视频格式");
1587
1583
  return false
1588
1584
  }
1589
1585
  if (!isLte2M&&isSupportedFormat) {
1590
- this.$message.error(this.$t('formTemplate.uploadVideoSize'));
1586
+ this.$message.error("上传视频大小不能超过100MB!");
1591
1587
  return false
1592
1588
  }
1593
1589
  return true
@@ -1595,7 +1591,7 @@ export default {
1595
1591
  else if (type === 'ATTACHMENT'){
1596
1592
  const isLte2M = file[i].size / 1024 / 1024 <= 100;
1597
1593
  if (!isLte2M) {
1598
- this.$message.error(this.$t('formTemplate.uploadFileSize'));
1594
+ this.$message.error("上传附件大小不能超过100MB!");
1599
1595
  return false
1600
1596
  }
1601
1597
  return true
@@ -1607,7 +1603,7 @@ export default {
1607
1603
  if (this.limitNum){
1608
1604
  num = this.limitNum
1609
1605
  }
1610
- let messageText = this.$t('formTemplate.onlyUpload')+num+ this.$t('formTemplate.number')
1606
+ let messageText = '仅支持上传'+num+''
1611
1607
  this.$message.error(messageText);
1612
1608
  return false
1613
1609
  }
@@ -1629,7 +1625,7 @@ export default {
1629
1625
  num = this.limitNum
1630
1626
  }
1631
1627
  if (file.length >num){
1632
- this.$message.warning(this.$t('formTemplate.onlyUpload')+num+this.$t('formTemplate.number'))
1628
+ this.$message.warning('仅支持上传'+num+'张图片')
1633
1629
  return false
1634
1630
  }
1635
1631
  else {
@@ -2125,27 +2121,27 @@ export default {
2125
2121
  if (checkDescription.checkAttachment && this.attachmentList.length == 0) {
2126
2122
  attachmentFlag = false
2127
2123
  }
2128
- let text = this.isBaiLi ? this.$t('formTemplate.feedbackDes') : this.$t('formTemplate.orderDes')
2124
+ let text = this.isBaiLi ? '反馈描述' : '问题描述'
2129
2125
  if (!textFlag) {
2130
- errorText = text + this.$t('formTemplate.textFlag')
2126
+ errorText = text + '必须要有文字'
2131
2127
  }
2132
2128
  if(!imageOrAttachment) {
2133
- errorText = text + this.$t('formTemplate.imageOrAttachment')
2129
+ errorText = text + '必须要有图片或附件'
2134
2130
  }
2135
2131
  if (!imageFlag) {
2136
- errorText = text + this.$t('formTemplate.imageFlag')
2132
+ errorText = text + '必须要有图片'
2137
2133
  }
2138
2134
  if (!attachmentFlag) {
2139
- errorText = text + this.$t('formTemplate.attachmentFlag')
2135
+ errorText = text + '必须要有附件'
2140
2136
  }
2141
2137
  if (!textFlag && (!imageFlag || !attachmentFlag)) {
2142
- errorText = text + this.$t('formTemplate.textFlag') + this.$t('formTemplate.and') + (!imageFlag ? this.$t('formTemplate.image') : this.$t('formTemplate.file'))
2138
+ errorText = text + '必须要有文字和' + (!imageFlag ? '图片' : '附件')
2143
2139
  }
2144
2140
  if (!imageFlag && !attachmentFlag) {
2145
- errorText = text + this.$t('formTemplate.imageFlag') + this.$t('formTemplate.and') + this.$t('formTemplate.file')
2141
+ errorText = text + '必须要有图片和附件'
2146
2142
  }
2147
2143
  if (!imageFlag && !attachmentFlag && !textFlag) {
2148
- errorText = text + this.$t('formTemplate.textFlag') + ',' + this.$t('formTemplate.image') + this.$t('formTemplate.and') + this.$t('formTemplate.file')
2144
+ errorText = text + '必须要有文字、图片和附件'
2149
2145
  }
2150
2146
  if (errorText) {
2151
2147
  this.$message.error(errorText);
@@ -2154,7 +2150,7 @@ export default {
2154
2150
  let d = document.createElement('div')
2155
2151
  d.innerHTML = this.workOrderDestail.value
2156
2152
  if (checkDescription.required && !d.innerText && !this.workOrderDestail.value.includes('img') && this.attachmentList.length == 0) {
2157
- let errorText = this.isBaiLi ? this.$t('formTemplate.feedbackDesRequired') : this.$t('formTemplate.orderDesRequired')
2153
+ let errorText = this.isBaiLi ? '反馈描述是必填的' : '问题描述是必填的'
2158
2154
  this.$message.error(errorText);
2159
2155
  return false
2160
2156
  }
@@ -2164,7 +2160,7 @@ export default {
2164
2160
  //提交按钮事件
2165
2161
  submitClick() {
2166
2162
  if (this.uploadImgQueue || this.attachmentList.some(arrach => { return !arrach.url })) {
2167
- this.$message.warning(this.$t('formTemplate.uploading'))
2163
+ this.$message.warning('文件正在上传,请稍后')
2168
2164
  return
2169
2165
  }
2170
2166
  if(this.workOrderDestail && !this.verificationDescription()) {
@@ -2244,8 +2240,8 @@ export default {
2244
2240
  bool[this.formShow.form.formFieldRelation[i].fieldId] = this.formShow.form.formFieldRelation[i].value && this.formShow.form.formFieldRelation[i].value.includes('\n') && !strVal
2245
2241
  }
2246
2242
  if (this.formShow.form.formFieldRelation[i].relationDisplay && this.formShow.form.formFieldRelation[i].display && this.formShow.form.formFieldRelation[i].fieldId !== 'workorder_description') {
2247
- 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)) {
2248
- this.$message.error(this.$t('formTemplate.pleaseImprove')+ this.formShow.form.formFieldRelation[i].formField.name)
2243
+ 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)) {
2244
+ this.$message.error('请完善'+ this.formShow.form.formFieldRelation[i].formField.name)
2249
2245
  return
2250
2246
  }
2251
2247
  }
@@ -2276,7 +2272,13 @@ export default {
2276
2272
  console.error('formShow',newForm)
2277
2273
  this.$emit('submitClick',newForm)
2278
2274
  this.disableds = true
2279
- this.submitValue = this.$t('common.submited')
2275
+ this.submitValue = '已提交'
2276
+ },
2277
+ strIsNull (str) {
2278
+ if (str == "") return true;
2279
+ let regu = "^[ ]+$";
2280
+ let re = new RegExp(regu);
2281
+ return re.test(str);
2280
2282
  },
2281
2283
  //日期的点击事件
2282
2284
  dateClick(id) {
@@ -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>