askbot-dragon 1.0.12 → 1.0.13

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 (77) hide show
  1. package/README.md +27 -27
  2. package/babel.config.js +6 -6
  3. package/dragon.iml +7 -7
  4. package/package.json +56 -56
  5. package/public/index.html +43 -43
  6. package/src/App.vue +31 -31
  7. package/src/api/index.js +1 -1
  8. package/src/api/mock.http +2 -2
  9. package/src/api/requestUrl.js +185 -185
  10. package/src/assets/js/AliyunlssUtil.js +92 -92
  11. package/src/assets/js/Base64Util.js +22 -22
  12. package/src/assets/js/script.js +36 -36
  13. package/src/assets/less/common.css +6773 -6773
  14. package/src/assets/less/converSationContainer/common.less +191 -191
  15. package/src/assets/less/converSationContainer/converSatonContainer.less +493 -493
  16. package/src/assets/less/iconfont.css +37 -37
  17. package/src/assets/less/ticketMessage.less +211 -211
  18. package/src/components/ActionAlertIframe.vue +112 -112
  19. package/src/components/AiGuide.vue +467 -467
  20. package/src/components/AskIFrame.vue +15 -15
  21. package/src/components/ConversationContainer.vue +4617 -4617
  22. package/src/components/FileType.vue +86 -86
  23. package/src/components/Message.vue +27 -27
  24. package/src/components/actionSatisfaction.vue +107 -107
  25. package/src/components/actionSendToBot.vue +62 -62
  26. package/src/components/answerDissatisfaction.vue +62 -62
  27. package/src/components/answerRadio.vue +76 -76
  28. package/src/components/ask-components/DissatisfactionOptions.vue +57 -57
  29. package/src/components/ask-components/Msgloading.vue +37 -37
  30. package/src/components/ask-components/SatisfactionV2.vue +15 -15
  31. package/src/components/askVideo.vue +138 -138
  32. package/src/components/assetDetails.vue +370 -370
  33. package/src/components/assetMessage.vue +228 -228
  34. package/src/components/associationIntention.vue +243 -241
  35. package/src/components/botActionSatisfactor.vue +68 -68
  36. package/src/components/chatContent.vue +513 -513
  37. package/src/components/feedBack.vue +136 -136
  38. package/src/components/fielListView.vue +346 -346
  39. package/src/components/file/AliyunOssComponents.vue +108 -108
  40. package/src/components/formTemplate.vue +3344 -3342
  41. package/src/components/loadingProcess.vue +164 -164
  42. package/src/components/message/ActionAlertIframe.vue +112 -112
  43. package/src/components/message/ShopMessage.vue +164 -164
  44. package/src/components/message/TextMessage.vue +924 -924
  45. package/src/components/message/TicketMessage.vue +177 -177
  46. package/src/components/message/swiper/index.js +4 -4
  47. package/src/components/message/swiper/ticketSwiper.vue +503 -503
  48. package/src/components/message/swiper/ticketSwiperItem.vue +61 -61
  49. package/src/components/msgLoading.vue +231 -231
  50. package/src/components/myPopup.vue +70 -70
  51. package/src/components/popup.vue +227 -227
  52. package/src/components/receiverMessagePlatform.vue +65 -65
  53. package/src/components/recommend.vue +89 -89
  54. package/src/components/selector/hOption.vue +20 -20
  55. package/src/components/selector/hSelector.vue +199 -199
  56. package/src/components/selector/hWrapper.vue +216 -216
  57. package/src/components/senderMessagePlatform.vue +50 -50
  58. package/src/components/source/BotMessage.vue +24 -24
  59. package/src/components/source/CustomMessage.vue +24 -24
  60. package/src/components/test.vue +260 -260
  61. package/src/components/tree.vue +247 -247
  62. package/src/components/utils/AliyunIssUtil.js +72 -72
  63. package/src/components/utils/ckeditor.js +155 -153
  64. package/src/components/utils/ckeditorImageUpload/command.js +109 -109
  65. package/src/components/utils/ckeditorImageUpload/editing.js +11 -11
  66. package/src/components/utils/ckeditorImageUpload/plugin-image.js +11 -11
  67. package/src/components/utils/ckeditorImageUpload/toolbar-ui.js +40 -40
  68. package/src/components/utils/ckeditorfileUpload/common.js +111 -111
  69. package/src/components/utils/ckeditorfileUpload/editing.js +11 -11
  70. package/src/components/utils/ckeditorfileUpload/plugin_file.js +11 -11
  71. package/src/components/utils/ckeditorfileUpload/toolbar_ui.js +34 -34
  72. package/src/components/utils/format_date.js +25 -25
  73. package/src/components/utils/index.js +6 -6
  74. package/src/components/utils/math_utils.js +29 -29
  75. package/src/components/voiceComponent.vue +119 -119
  76. package/src/main.js +60 -60
  77. package/vue.config.js +47 -47
@@ -1,87 +1,87 @@
1
- <template>
2
- <div>
3
- <div v-for="(file,_index) in urls" :key="_index" class="fileType">
4
- <img src="https://guoranopen-zjk.oss-cn-zhangjiakou.aliyuncs.com/cdn-common/images/excel.png" v-if="fileType[_index]==='xls'||fileType[_index]==='xlsx'">
5
- <img src="https://guoranopen-zjk.oss-cn-zhangjiakou.aliyuncs.com/cdn-common/images/pdf.png" v-if="fileType[_index]==='pdf'">
6
- <img src="https://guoranopen-zjk.oss-cn-zhangjiakou.aliyuncs.com/cdn-common/images/ppt.png" v-if="fileType[_index]==='ppt'||fileType[_index] === 'pptx'">
7
- <img src="https://guoranopen-zjk.oss-cn-zhangjiakou.aliyuncs.com/cdn-common/images/word.png" v-if="fileType[_index]==='doc'||fileType[_index]==='docx'">
8
- <img src="https://guoranopen-zjk.oss-cn-zhangjiakou.aliyuncs.com/cdn-common/images/zip.jpg" v-if="fileType[_index] === 'zip'||fileType[_index]==='rar'">
9
- <img src="https://guoranopen-zjk.oss-cn-zhangjiakou.aliyuncs.com/cdn-common/images/file.png"
10
- v-if="fileType[_index] !== 'zip'&& fileType[_index]!=='rar'&&fileType[_index]!=='doc'&&fileType[_index]!=='docx'&&fileType[_index]!=='xls'&&fileType[_index]!=='xlsx'
11
- &&fileType[_index]!=='ppt'&&fileType[_index]!=='pptx'&&fileType[_index]!=='pdf'"
12
- >
13
- <div style="line-height: 30px;word-wrap:break-word;">
14
- <a :href="file.response" target="_blank" :style="{color:color}">{{file.name}}</a>
15
- </div>
16
- </div>
17
- </div>
18
- </template>
19
-
20
- <script>
21
- let that
22
- export default {
23
- name: "FileType",
24
- data(){
25
- return{
26
- fileType:[]
27
- }
28
- },
29
- props:{
30
- urls:Array,
31
- color:String
32
- },
33
- methods:{
34
- typeClick(){
35
- for (let i=0;i<this.urls.length;i++)
36
- {
37
- let type=this.urls[i].name
38
- let nameType=type.split('.')
39
- let suffix=nameType[nameType.length - 1]
40
- /* let fileType=['pdf','ppt','doc','docx','xls','zip','txt','xlsx','pptx']*/
41
- this.fileType[i]=suffix
42
-
43
- }
44
- },
45
- matchType(){
46
-
47
- /* let result='';
48
- let fileType=['pdf','ppt','doc','docx','xls','zip']
49
- result=fileType.some(function (){
50
-
51
- })
52
- console.log(result)*/
53
- }
54
- },
55
- beforeCreate() {
56
- that=this
57
- },
58
- beforeMount() {
59
- that.typeClick()
60
- },
61
- mounted() {
62
-
63
- }
64
- }
65
- </script>
66
-
67
- <style lang="less">
68
- .fileType{
69
- display: flex;
70
- align-items: center;
71
- img{
72
- width: 25px;
73
- height: 25px;
74
- margin-right: 10px;
75
- align-items: center;
76
- text-align: center;
77
- }
78
- a{
79
- align-items: center;
80
- color: black;
81
- }
82
- .el-link--inner{
83
- display: flex!important;
84
- align-items: center!important;
85
- }
86
- }
1
+ <template>
2
+ <div>
3
+ <div v-for="(file,_index) in urls" :key="_index" class="fileType">
4
+ <img src="https://guoranopen-zjk.oss-cn-zhangjiakou.aliyuncs.com/cdn-common/images/excel.png" v-if="fileType[_index]==='xls'||fileType[_index]==='xlsx'">
5
+ <img src="https://guoranopen-zjk.oss-cn-zhangjiakou.aliyuncs.com/cdn-common/images/pdf.png" v-if="fileType[_index]==='pdf'">
6
+ <img src="https://guoranopen-zjk.oss-cn-zhangjiakou.aliyuncs.com/cdn-common/images/ppt.png" v-if="fileType[_index]==='ppt'||fileType[_index] === 'pptx'">
7
+ <img src="https://guoranopen-zjk.oss-cn-zhangjiakou.aliyuncs.com/cdn-common/images/word.png" v-if="fileType[_index]==='doc'||fileType[_index]==='docx'">
8
+ <img src="https://guoranopen-zjk.oss-cn-zhangjiakou.aliyuncs.com/cdn-common/images/zip.jpg" v-if="fileType[_index] === 'zip'||fileType[_index]==='rar'">
9
+ <img src="https://guoranopen-zjk.oss-cn-zhangjiakou.aliyuncs.com/cdn-common/images/file.png"
10
+ v-if="fileType[_index] !== 'zip'&& fileType[_index]!=='rar'&&fileType[_index]!=='doc'&&fileType[_index]!=='docx'&&fileType[_index]!=='xls'&&fileType[_index]!=='xlsx'
11
+ &&fileType[_index]!=='ppt'&&fileType[_index]!=='pptx'&&fileType[_index]!=='pdf'"
12
+ >
13
+ <div style="line-height: 30px;word-wrap:break-word;">
14
+ <a :href="file.response" target="_blank" :style="{color:color}">{{file.name}}</a>
15
+ </div>
16
+ </div>
17
+ </div>
18
+ </template>
19
+
20
+ <script>
21
+ let that
22
+ export default {
23
+ name: "FileType",
24
+ data(){
25
+ return{
26
+ fileType:[]
27
+ }
28
+ },
29
+ props:{
30
+ urls:Array,
31
+ color:String
32
+ },
33
+ methods:{
34
+ typeClick(){
35
+ for (let i=0;i<this.urls.length;i++)
36
+ {
37
+ let type=this.urls[i].name
38
+ let nameType=type.split('.')
39
+ let suffix=nameType[nameType.length - 1]
40
+ /* let fileType=['pdf','ppt','doc','docx','xls','zip','txt','xlsx','pptx']*/
41
+ this.fileType[i]=suffix
42
+
43
+ }
44
+ },
45
+ matchType(){
46
+
47
+ /* let result='';
48
+ let fileType=['pdf','ppt','doc','docx','xls','zip']
49
+ result=fileType.some(function (){
50
+
51
+ })
52
+ console.log(result)*/
53
+ }
54
+ },
55
+ beforeCreate() {
56
+ that=this
57
+ },
58
+ beforeMount() {
59
+ that.typeClick()
60
+ },
61
+ mounted() {
62
+
63
+ }
64
+ }
65
+ </script>
66
+
67
+ <style lang="less">
68
+ .fileType{
69
+ display: flex;
70
+ align-items: center;
71
+ img{
72
+ width: 25px;
73
+ height: 25px;
74
+ margin-right: 10px;
75
+ align-items: center;
76
+ text-align: center;
77
+ }
78
+ a{
79
+ align-items: center;
80
+ color: black;
81
+ }
82
+ .el-link--inner{
83
+ display: flex!important;
84
+ align-items: center!important;
85
+ }
86
+ }
87
87
  </style>
@@ -1,27 +1,27 @@
1
- <!-- 消息记录容器 -->
2
- <template>
3
- <div class="conversation-container">
4
-
5
- <div :class="message.source">
6
-
7
-
8
- </div>
9
-
10
- </div>
11
- </template>
12
-
13
- <script>
14
- import TextMessage from "./message/TextMessage";
15
-
16
- export default {
17
- name: 'Message',
18
- props: {
19
- message: Object
20
- }
21
- }
22
- </script>
23
-
24
- <!-- Add "scoped" attribute to limit CSS to this component only -->
25
- <style scoped>
26
-
27
- </style>
1
+ <!-- 消息记录容器 -->
2
+ <template>
3
+ <div class="conversation-container">
4
+
5
+ <div :class="message.source">
6
+
7
+
8
+ </div>
9
+
10
+ </div>
11
+ </template>
12
+
13
+ <script>
14
+ import TextMessage from "./message/TextMessage";
15
+
16
+ export default {
17
+ name: 'Message',
18
+ props: {
19
+ message: Object
20
+ }
21
+ }
22
+ </script>
23
+
24
+ <!-- Add "scoped" attribute to limit CSS to this component only -->
25
+ <style scoped>
26
+
27
+ </style>
@@ -1,108 +1,108 @@
1
- <template>
2
- <div
3
- class="action-satisfaction"
4
- >
5
- <p class="satisfaction-des" v-if="msg.content.satisfactionDes" v-html="msg.content.satisfactionDes"></p>
6
- <div class="statisfaction-list">
7
- <div
8
- class="statisfaction-item"
9
- :class="isCheckSatis?'check-satisfied':''"
10
- @click="
11
- sendSatisfaction(
12
- 'USER_ACTION_TO_SATISFACTION_V2',
13
- '满意',
14
- msg.content.satisfactoryAnswer,
15
- null,
16
- msg.apiKey
17
- )
18
- "
19
- >
20
- 满意
21
- </div>
22
- <div
23
- class="statisfaction-item"
24
- :class="isCheckDissatis?'check-satisfied':''"
25
- @click="
26
- sendSatisfaction(
27
- 'USER_ACTION_TO_SATISFACTION_V2',
28
- '不满意',
29
- msg.content.unsatisfiedAnswer,
30
- msg.content.answerRadio,
31
- msg.apiKey
32
- )
33
- "
34
- >
35
- 不满意
36
- </div>
37
- </div>
38
-
39
- </div>
40
- </template>
41
-
42
- <script>
43
- export default {
44
- name: "actionSatisfaction",
45
- props:['msg'],
46
- data(){
47
- return{
48
- isCheckSatis:false,
49
- isCheckDissatis:false
50
- }
51
- },
52
- methods:{
53
- sendSatisfaction(type, choose, answer, answerRadio,answerApiKey){
54
- if (choose==='满意'){
55
- this.isCheckSatis = true
56
- this.isCheckDissatis = false
57
- }
58
- else {
59
- this.isCheckSatis = false
60
- this.isCheckDissatis = true
61
- }
62
- this.$emit('sendSatisfaction',type, choose, answer, answerRadio,answerApiKey)
63
- }
64
- }
65
- }
66
- </script>
67
-
68
- <style scoped lang="less">
69
- @import url(../assets/less/converSationContainer/common);
70
- .action-satisfaction{
71
- .satisfaction-des{
72
- word-wrap: break-word;
73
- word-break: break-all;
74
- overflow: hidden;
75
- padding: 0px 0 10px 0;
76
- height: auto;
77
- /* border-bottom: 1px solid #EEEEEE;*/
78
- }
79
- .statisfaction-list{
80
- display: flex;
81
- align-items: center;
82
- }
83
- .statisfaction-item{
84
- color: #616161;
85
- min-width: 60px;
86
- padding: 0 10px;
87
- height: 29px;
88
- background: #FFFFFF;
89
- border: 1px solid #BEC5DB;
90
- border-radius: 14px;
91
- cursor:pointer;
92
- display: flex;
93
- align-items: center;
94
- justify-content: center;
95
- }
96
- .statisfaction-item:first-child{
97
- margin-right: 8px;
98
- }
99
- .check-satisfied{
100
- border: 1px solid #BBCDFF;
101
- color: #366aff;
102
- }
103
- .end{
104
- border-bottom-left-radius: 25px !important;
105
- border-bottom-right-radius: 25px !important;
106
- }
107
- }
1
+ <template>
2
+ <div
3
+ class="action-satisfaction"
4
+ >
5
+ <p class="satisfaction-des" v-if="msg.content.satisfactionDes" v-html="msg.content.satisfactionDes"></p>
6
+ <div class="statisfaction-list">
7
+ <div
8
+ class="statisfaction-item"
9
+ :class="isCheckSatis?'check-satisfied':''"
10
+ @click="
11
+ sendSatisfaction(
12
+ 'USER_ACTION_TO_SATISFACTION_V2',
13
+ '满意',
14
+ msg.content.satisfactoryAnswer,
15
+ null,
16
+ msg.apiKey
17
+ )
18
+ "
19
+ >
20
+ 满意
21
+ </div>
22
+ <div
23
+ class="statisfaction-item"
24
+ :class="isCheckDissatis?'check-satisfied':''"
25
+ @click="
26
+ sendSatisfaction(
27
+ 'USER_ACTION_TO_SATISFACTION_V2',
28
+ '不满意',
29
+ msg.content.unsatisfiedAnswer,
30
+ msg.content.answerRadio,
31
+ msg.apiKey
32
+ )
33
+ "
34
+ >
35
+ 不满意
36
+ </div>
37
+ </div>
38
+
39
+ </div>
40
+ </template>
41
+
42
+ <script>
43
+ export default {
44
+ name: "actionSatisfaction",
45
+ props:['msg'],
46
+ data(){
47
+ return{
48
+ isCheckSatis:false,
49
+ isCheckDissatis:false
50
+ }
51
+ },
52
+ methods:{
53
+ sendSatisfaction(type, choose, answer, answerRadio,answerApiKey){
54
+ if (choose==='满意'){
55
+ this.isCheckSatis = true
56
+ this.isCheckDissatis = false
57
+ }
58
+ else {
59
+ this.isCheckSatis = false
60
+ this.isCheckDissatis = true
61
+ }
62
+ this.$emit('sendSatisfaction',type, choose, answer, answerRadio,answerApiKey)
63
+ }
64
+ }
65
+ }
66
+ </script>
67
+
68
+ <style scoped lang="less">
69
+ @import url(../assets/less/converSationContainer/common);
70
+ .action-satisfaction{
71
+ .satisfaction-des{
72
+ word-wrap: break-word;
73
+ word-break: break-all;
74
+ overflow: hidden;
75
+ padding: 0px 0 10px 0;
76
+ height: auto;
77
+ /* border-bottom: 1px solid #EEEEEE;*/
78
+ }
79
+ .statisfaction-list{
80
+ display: flex;
81
+ align-items: center;
82
+ }
83
+ .statisfaction-item{
84
+ color: #616161;
85
+ min-width: 60px;
86
+ padding: 0 10px;
87
+ height: 29px;
88
+ background: #FFFFFF;
89
+ border: 1px solid #BEC5DB;
90
+ border-radius: 14px;
91
+ cursor:pointer;
92
+ display: flex;
93
+ align-items: center;
94
+ justify-content: center;
95
+ }
96
+ .statisfaction-item:first-child{
97
+ margin-right: 8px;
98
+ }
99
+ .check-satisfied{
100
+ border: 1px solid #BBCDFF;
101
+ color: #366aff;
102
+ }
103
+ .end{
104
+ border-bottom-left-radius: 25px !important;
105
+ border-bottom-right-radius: 25px !important;
106
+ }
107
+ }
108
108
  </style>
@@ -1,63 +1,63 @@
1
- <template>
2
- <div
3
- class="action-send-to-bot"
4
- >
5
- <p class="bot-des" v-html="msg.content.description"></p>
6
- <div class="options-list">
7
- <p
8
- v-for="(option, index) in msg.content.options"
9
- class="options-item"
10
- :class="index!==msg.content.options.length -1?'recommend-item':'last-item'"
11
- :key="msg.nodeId + '_' + index"
12
- @click="$emit('onRadioClick2', option.content, option.name, msg.apiKey)"
13
- >
14
- {{ option.name }}<i class="arsenal_icon arsenalangle-right-solid"></i>
15
- </p>
16
- </div>
17
-
18
- </div>
19
- </template>
20
-
21
- <script>
22
- export default {
23
- name: "actionSendToBot",
24
- props:['msg']
25
- }
26
- </script>
27
-
28
- <style scoped lang="less">
29
- .action-send-to-bot{
30
- .bot-des {
31
- word-wrap: break-word;
32
- word-break: break-all;
33
- overflow: hidden;
34
- padding: 8px 10px 10px 0;
35
- height: auto;
36
- border-bottom: 1px solid #EEEEEE;
37
- }
38
- .options-list{
39
- padding-top: 4px;
40
- /* padding-top: 10px;*/
41
- /*padding-right: 10px;*/
42
- .options-item{
43
- height: 25px;
44
- line-height: 25px;
45
- background-color: #ffffff;
46
- color: #366aff;
47
- cursor:pointer;
48
- display: flex;
49
- align-items: center;
50
- justify-content: space-between;
51
- i{
52
- padding-left: 10px;
53
- }
54
- }
55
- .recommend-item{
56
- padding: 8px 0;
57
- }
58
- .last-item{
59
- padding-top: 8px;
60
- }
61
- }
62
- }
1
+ <template>
2
+ <div
3
+ class="action-send-to-bot"
4
+ >
5
+ <p class="bot-des" v-html="msg.content.description"></p>
6
+ <div class="options-list">
7
+ <p
8
+ v-for="(option, index) in msg.content.options"
9
+ class="options-item"
10
+ :class="index!==msg.content.options.length -1?'recommend-item':'last-item'"
11
+ :key="msg.nodeId + '_' + index"
12
+ @click="$emit('onRadioClick2', option.content, option.name, msg.apiKey)"
13
+ >
14
+ {{ option.name }}<i class="arsenal_icon arsenalangle-right-solid"></i>
15
+ </p>
16
+ </div>
17
+
18
+ </div>
19
+ </template>
20
+
21
+ <script>
22
+ export default {
23
+ name: "actionSendToBot",
24
+ props:['msg']
25
+ }
26
+ </script>
27
+
28
+ <style scoped lang="less">
29
+ .action-send-to-bot{
30
+ .bot-des {
31
+ word-wrap: break-word;
32
+ word-break: break-all;
33
+ overflow: hidden;
34
+ padding: 8px 10px 10px 0;
35
+ height: auto;
36
+ border-bottom: 1px solid #EEEEEE;
37
+ }
38
+ .options-list{
39
+ padding-top: 4px;
40
+ /* padding-top: 10px;*/
41
+ /*padding-right: 10px;*/
42
+ .options-item{
43
+ height: 25px;
44
+ line-height: 25px;
45
+ background-color: #ffffff;
46
+ color: #366aff;
47
+ cursor:pointer;
48
+ display: flex;
49
+ align-items: center;
50
+ justify-content: space-between;
51
+ i{
52
+ padding-left: 10px;
53
+ }
54
+ }
55
+ .recommend-item{
56
+ padding: 8px 0;
57
+ }
58
+ .last-item{
59
+ padding-top: 8px;
60
+ }
61
+ }
62
+ }
63
63
  </style>