askbot-dragon 0.9.16 → 0.9.18
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
|
@@ -718,7 +718,7 @@
|
|
|
718
718
|
}"
|
|
719
719
|
></select-popup>
|
|
720
720
|
</el-drawer>
|
|
721
|
-
<van-popup v-model="showArea" position="bottom" :style="{ height: '400px' }">
|
|
721
|
+
<van-popup v-model="showArea" position="bottom" :style="{ height: '400px' }" v-if="!isCompany">
|
|
722
722
|
<tree ref="drawerTree"
|
|
723
723
|
:dataOptions="detailField.formField"
|
|
724
724
|
@saveData="saveData"
|
|
@@ -726,7 +726,7 @@
|
|
|
726
726
|
:fieldValue="fieldValue"
|
|
727
727
|
></tree>
|
|
728
728
|
</van-popup>
|
|
729
|
-
<van-popup v-model="selectPicker" position="bottom" :style="{ height: '300px' }">
|
|
729
|
+
<van-popup v-model="selectPicker" position="bottom" :style="{ height: '300px' }" v-if="!isCompany">
|
|
730
730
|
<select-popup
|
|
731
731
|
:options="optionsList[selectDetail.fieldId]"
|
|
732
732
|
:defaultValue="defaultValue"
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="">
|
|
3
|
+
<span v-if="messagePlateform == 'IM'">
|
|
4
|
+
与【{{isMe ? '您': payload.newSession.senderDisplayInfo.name}}】建立对话
|
|
5
|
+
</span>
|
|
6
|
+
<span v-if="messagePlateform == 'BOT'">
|
|
7
|
+
与机器人【{{isMe ? '您': payload.newSession.senderDisplayInfo.name}}】建立对话
|
|
8
|
+
</span>
|
|
9
|
+
<span v-if="messagePlateform == 'Transfer'">
|
|
10
|
+
{{payload.oldSession.senderDisplayInfo.name}}
|
|
11
|
+
将会话转接给
|
|
12
|
+
{{payload.newSession.senderDisplayInfo.name}}
|
|
13
|
+
</span>
|
|
14
|
+
</div>
|
|
15
|
+
</template>
|
|
16
|
+
|
|
17
|
+
<script>
|
|
18
|
+
// 客服 的接入消息展示
|
|
19
|
+
export default {
|
|
20
|
+
data() {
|
|
21
|
+
return {
|
|
22
|
+
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
props:['source','payload','isMe'],
|
|
26
|
+
computed: {
|
|
27
|
+
messagePlateform() {
|
|
28
|
+
if(this.payload) {
|
|
29
|
+
if((this.payload.newSession.senderMessagePlatform == 'CUSTOMER_SERVICE_SYSTEM' ||
|
|
30
|
+
this.payload.newSession.senderMessagePlatform == 'AIMER_SERVER') &&
|
|
31
|
+
this.payload.oldSession.senderMessagePlatform == 'GUORAN_BOT') {
|
|
32
|
+
return 'IM'
|
|
33
|
+
} else if((this.payload.oldSession.senderMessagePlatform == 'CUSTOMER_SERVICE_SYSTEM' ||
|
|
34
|
+
this.payload.oldSession.senderMessagePlatform == 'AIMER_SERVER') &&
|
|
35
|
+
this.payload.newSession.senderMessagePlatform == 'GUORAN_BOT') {
|
|
36
|
+
return 'BOT'
|
|
37
|
+
} else if((this.payload.oldSession.senderMessagePlatform == 'CUSTOMER_SERVICE_SYSTEM' ||
|
|
38
|
+
this.payload.oldSession.senderMessagePlatform == 'AIMER_SERVER') &&
|
|
39
|
+
(this.payload.newSession.senderMessagePlatform == 'CUSTOMER_SERVICE_SYSTEM' ||
|
|
40
|
+
this.payload.newSession.senderMessagePlatform == 'AIMER_SERVER')) {
|
|
41
|
+
return 'Transfer'
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
</script>
|
|
48
|
+
|
|
49
|
+
<style>
|
|
50
|
+
|
|
51
|
+
</style>
|
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="">
|
|
3
3
|
<span v-if="messagePlateform == 'IM'">
|
|
4
|
-
|
|
4
|
+
IM人工 <span class="text_color">{{payload.newSession.receiverDisplayInfo.name}}</span>将为您服务
|
|
5
5
|
</span>
|
|
6
6
|
<span v-if="messagePlateform == 'BOT'">
|
|
7
|
-
|
|
7
|
+
<span class="text_color">{{payload.newSession.receiverDisplayInfo.name}}</span>将为您服务
|
|
8
8
|
</span>
|
|
9
9
|
<span v-if="messagePlateform == 'Transfer'">
|
|
10
|
-
{{payload.oldSession.receiverDisplayInfo.name}}
|
|
10
|
+
<span class="text_color">{{payload.oldSession.receiverDisplayInfo.name}}</span>
|
|
11
11
|
将会话转接给
|
|
12
|
-
{{payload.newSession.receiverDisplayInfo.name}}
|
|
12
|
+
<span class="text_color">{{payload.newSession.receiverDisplayInfo.name}}</span>
|
|
13
13
|
</span>
|
|
14
14
|
</div>
|
|
15
15
|
</template>
|
|
16
16
|
|
|
17
17
|
<script>
|
|
18
|
+
// 咨询者的接入消息展示
|
|
18
19
|
export default {
|
|
19
20
|
data() {
|
|
20
21
|
return {
|
|
@@ -45,6 +46,8 @@ export default {
|
|
|
45
46
|
}
|
|
46
47
|
</script>
|
|
47
48
|
|
|
48
|
-
<style>
|
|
49
|
-
|
|
49
|
+
<style lang="less" scoped>
|
|
50
|
+
.text_color {
|
|
51
|
+
color: #366aff;
|
|
52
|
+
}
|
|
50
53
|
</style>
|