askbot-dragon 1.4.87 → 1.4.89
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 +2 -2
- package/public/index.html +20 -5
- package/src/components/ConversationContainer.vue +779 -422
- package/src/components/formTemplate.vue +19 -14
- package/src/main.js +1 -1
- package/vue.config.js +1 -1
|
@@ -13,7 +13,7 @@
|
|
|
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'"
|
|
16
|
+
<span v-if="item.fieldId==='workorder_description'">{{ isBaiLi ? '反馈描述' : '问题描述' }}</span>
|
|
17
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">
|
|
@@ -335,7 +335,7 @@
|
|
|
335
335
|
<div v-if="item.fieldId==='workorder_description'" class="workorder_description">
|
|
336
336
|
<div class="field-name" :class="item.required || isRequiredFn(item.formField)?'required-name':''">
|
|
337
337
|
<span v-if="item.required || isRequiredFn(item.formField)" style="color: red">*</span>
|
|
338
|
-
<span style="padding-right: 5px">{{item.formField.name}}</span>
|
|
338
|
+
<span style="padding-right: 5px">{{ isBaiLi ? '反馈描述' : item.formField.name }}</span>
|
|
339
339
|
<span v-if="item.formField.remark && item.formField.remark.enable"
|
|
340
340
|
@click.stop="leftIcon(item.formField.remark)">
|
|
341
341
|
<i class="el-icon-warning-outline"></i>
|
|
@@ -1270,11 +1270,15 @@ export default {
|
|
|
1270
1270
|
else {
|
|
1271
1271
|
item.value = ""
|
|
1272
1272
|
}
|
|
1273
|
-
this.extInfoFieldValue
|
|
1274
|
-
this.selectValues
|
|
1275
|
-
this.extInfoFieldValue
|
|
1273
|
+
this.$set(this.extInfoFieldValue, item.fieldId , [])
|
|
1274
|
+
this.$set(this.selectValues, item.fieldId , [])
|
|
1275
|
+
// this.$set(this.extInfoFieldValue, item.fieldId , [])
|
|
1276
|
+
// this.extInfoFieldValue[item.fieldId] = []
|
|
1277
|
+
// this.selectValues[item.fieldId] = []
|
|
1278
|
+
// this.extInfoFieldValue[item.fieldId] = []
|
|
1276
1279
|
if (item.formField.extInfo.extInfoFieldValue){
|
|
1277
1280
|
item.formField.extInfo.extInfoFieldValue = ''
|
|
1281
|
+
this.$set(item.formField.extInfo, 'extInfoFieldValue' , '')
|
|
1278
1282
|
}
|
|
1279
1283
|
}
|
|
1280
1284
|
if(this.fieldValue[item.fieldId] && !this.associatedControlsCopy.includes(item.fieldId) && (item.formField.extInfo.selectType == '单选' || item.formField.type == 'RADIO')) {
|
|
@@ -2043,23 +2047,24 @@ export default {
|
|
|
2043
2047
|
if (checkDescription.checkAttachment && this.attachments.length == 0) {
|
|
2044
2048
|
attachmentFlag = false
|
|
2045
2049
|
}
|
|
2050
|
+
let text = this.isBaiLi ? '反馈描述' : '问题描述'
|
|
2046
2051
|
if (!textFlag) {
|
|
2047
|
-
errorText = '
|
|
2052
|
+
errorText = text + '必须要有文字'
|
|
2048
2053
|
}
|
|
2049
2054
|
if (!imageFlag) {
|
|
2050
|
-
errorText = '
|
|
2055
|
+
errorText = text + '必须要有图片'
|
|
2051
2056
|
}
|
|
2052
2057
|
if (!attachmentFlag) {
|
|
2053
|
-
errorText = '
|
|
2058
|
+
errorText = text + '必须要有附件'
|
|
2054
2059
|
}
|
|
2055
2060
|
if (!textFlag && (!imageFlag || !attachmentFlag)) {
|
|
2056
|
-
errorText = '
|
|
2061
|
+
errorText = text + '必须要有文字和' + (!imageFlag ? '图片' : '附件')
|
|
2057
2062
|
}
|
|
2058
2063
|
if (!imageFlag && !attachmentFlag) {
|
|
2059
|
-
errorText = '
|
|
2064
|
+
errorText = text + '必须要有图片和附件'
|
|
2060
2065
|
}
|
|
2061
2066
|
if (!imageFlag && !attachmentFlag && !textFlag) {
|
|
2062
|
-
errorText = '
|
|
2067
|
+
errorText = text + '必须要有文字、图片和附件'
|
|
2063
2068
|
}
|
|
2064
2069
|
if (errorText) {
|
|
2065
2070
|
this.$message.error(errorText);
|
|
@@ -2068,7 +2073,8 @@ export default {
|
|
|
2068
2073
|
let d = document.createElement('div')
|
|
2069
2074
|
d.innerHTML = this.workOrderDestail.value
|
|
2070
2075
|
if (checkDescription.required && !d.innerText && !this.workOrderDestail.value.includes('img') && this.attachments.length == 0) {
|
|
2071
|
-
this
|
|
2076
|
+
let errorText = this.isBaiLi ? '反馈描述是必填的' : '问题描述是必填的'
|
|
2077
|
+
this.$message.error(errorText);
|
|
2072
2078
|
return false
|
|
2073
2079
|
}
|
|
2074
2080
|
return true
|
|
@@ -2502,8 +2508,7 @@ export default {
|
|
|
2502
2508
|
imgInfo.name = data.file.name
|
|
2503
2509
|
imgInfo.uid = data.file.uid
|
|
2504
2510
|
}
|
|
2505
|
-
if (!this.extInfoFieldValue[this.filedId])
|
|
2506
|
-
{
|
|
2511
|
+
if (!this.extInfoFieldValue[this.filedId]){
|
|
2507
2512
|
this.$set(this.extInfoFieldValue,this.filedId,[])
|
|
2508
2513
|
}
|
|
2509
2514
|
this.extInfoFieldValue[this.filedId].push(imgInfo)
|
package/src/main.js
CHANGED
|
@@ -10,7 +10,7 @@ import 'video.js/dist/video-js.css'
|
|
|
10
10
|
import Vant from 'vant';
|
|
11
11
|
import 'vant/lib/index.css';
|
|
12
12
|
|
|
13
|
-
import CKEditor from '@ckeditor/ckeditor5-
|
|
13
|
+
import CKEditor from '@ckeditor/ckeditor5-vue2';
|
|
14
14
|
Vue.use(CKEditor);
|
|
15
15
|
|
|
16
16
|
/*import VConsole from 'vconsole'
|