askbot-dragon 1.8.16-beta → 1.8.18-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 (101) 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 +60 -60
  5. package/public/index.html +73 -73
  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 +141 -141
  11. package/src/assets/js/Base64Util.js +22 -22
  12. package/src/assets/js/common.js +265 -261
  13. package/src/assets/js/hammer.js +100 -100
  14. package/src/assets/js/script.js +36 -36
  15. package/src/assets/less/common.css +6773 -6773
  16. package/src/assets/less/converSationContainer/common.less +199 -199
  17. package/src/assets/less/converSationContainer/converSatonContainer.less +486 -486
  18. package/src/assets/less/iconfont.css +37 -37
  19. package/src/assets/less/ticketMessage.less +294 -294
  20. package/src/assets/less/variables.less +122 -114
  21. package/src/components/ActionAlertIframe.vue +178 -178
  22. package/src/components/AiGuide.vue +435 -435
  23. package/src/components/AnswerDocknowledge.vue +1205 -1205
  24. package/src/components/AnswerVoice.vue +286 -286
  25. package/src/components/AskIFrame.vue +15 -15
  26. package/src/components/ConversationContainer.vue +10684 -10684
  27. package/src/components/FileType.vue +86 -86
  28. package/src/components/Message.vue +27 -27
  29. package/src/components/MyEditor.vue +344 -344
  30. package/src/components/QwFeedback.vue +303 -303
  31. package/src/components/actionSatisfaction.vue +109 -109
  32. package/src/components/actionSendToBot.vue +64 -64
  33. package/src/components/answerDissatisfaction.vue +64 -64
  34. package/src/components/answerRadio.vue +261 -261
  35. package/src/components/ask-components/DissatisfactionOptions.vue +58 -58
  36. package/src/components/ask-components/Msgloading.vue +38 -38
  37. package/src/components/ask-components/SatisfactionV2.vue +15 -15
  38. package/src/components/askVideo.vue +264 -264
  39. package/src/components/assetDetails.vue +379 -379
  40. package/src/components/assetMessage.vue +231 -231
  41. package/src/components/associationIntention.vue +418 -418
  42. package/src/components/attachmentPreview.vue +92 -92
  43. package/src/components/botActionSatisfactor.vue +70 -70
  44. package/src/components/chatContent.vue +514 -514
  45. package/src/components/feedBack.vue +138 -138
  46. package/src/components/fielListView.vue +352 -352
  47. package/src/components/file/AliyunOssComponents.vue +108 -108
  48. package/src/components/formTemplate.vue +3522 -3522
  49. package/src/components/imgView.vue +31 -31
  50. package/src/components/intelligentSummary.vue +236 -236
  51. package/src/components/interruptComponents/imageSelectionAnswer.vue +202 -202
  52. package/src/components/interruptComponents/multipleChoiceAnswer.vue +133 -133
  53. package/src/components/interruptComponents/singleChoiceAnswer.vue +81 -81
  54. package/src/components/kkview.vue +1130 -1130
  55. package/src/components/loadingProcess.vue +164 -164
  56. package/src/components/markDownText.vue +961 -961
  57. package/src/components/message/ActionAlertIframe.vue +112 -112
  58. package/src/components/message/ShopMessage.vue +164 -164
  59. package/src/components/message/TextMessage.vue +930 -930
  60. package/src/components/message/TicketMessage.vue +201 -201
  61. package/src/components/message/swiper/index.js +4 -4
  62. package/src/components/message/swiper/ticketSwiper.vue +503 -503
  63. package/src/components/message/swiper/ticketSwiperItem.vue +61 -61
  64. package/src/components/msgLoading.vue +231 -231
  65. package/src/components/myPopup.vue +75 -75
  66. package/src/components/newPdfPosition.vue +877 -877
  67. package/src/components/outputComponents/outputCom.vue +148 -148
  68. package/src/components/pagination.vue +129 -129
  69. package/src/components/pdfPosition.vue +1514 -1514
  70. package/src/components/popup.vue +230 -230
  71. package/src/components/preview/docView.vue +132 -132
  72. package/src/components/preview/excelView.vue +213 -213
  73. package/src/components/preview/newPositionPreview.vue +392 -392
  74. package/src/components/preview/pdfView.vue +833 -833
  75. package/src/components/previewDoc.vue +257 -257
  76. package/src/components/previewPdf.vue +1123 -1123
  77. package/src/components/previewWisdom.vue +251 -251
  78. package/src/components/receiverMessagePlatform.vue +71 -71
  79. package/src/components/recommend.vue +82 -82
  80. package/src/components/selector/hOption.vue +20 -20
  81. package/src/components/selector/hSelector.vue +199 -199
  82. package/src/components/selector/hWrapper.vue +216 -216
  83. package/src/components/senderMessagePlatform.vue +60 -60
  84. package/src/components/source/BotMessage.vue +24 -24
  85. package/src/components/source/CustomMessage.vue +24 -24
  86. package/src/components/test.vue +260 -260
  87. package/src/components/tree.vue +309 -309
  88. package/src/components/utils/AliyunIssUtil.js +103 -103
  89. package/src/components/utils/ckeditor.js +185 -185
  90. package/src/components/utils/format_date.js +25 -25
  91. package/src/components/utils/index.js +6 -6
  92. package/src/components/utils/math_utils.js +29 -29
  93. package/src/components/voiceComponent.vue +122 -122
  94. package/src/components/welcomeKnowledgeFile.vue +350 -350
  95. package/src/components/welcomeLlmCard.vue +146 -146
  96. package/src/components/welcomeSuggest.vue +99 -99
  97. package/src/locales/cn.json +99 -99
  98. package/src/locales/en.json +98 -98
  99. package/src/locales/jp.json +72 -72
  100. package/src/main.js +76 -76
  101. package/vue.config.js +54 -54
@@ -1,149 +1,149 @@
1
- <template>
2
- <div class="outputComponents">
3
- <div class="outputText" v-if="msg.content.prompt">
4
- {{ msg.content.prompt }}
5
- </div>
6
- <el-table
7
- :data="tableData"
8
- style="width: 100%"
9
- height="250"
10
- @selection-change="handleSelectionChange"
11
- v-if="msg.content.tableTemplate &&
12
- (msg.content.tableTemplate == 1 || msg.content.tableTemplate == 2 || msg.content.tableTemplate == 3)"
13
- :header-cell-style="{ backgroundColor: '#F6F8FD', height: '40px', color: '#000000', fontWeight: 400 }"
14
- :row-style="{ height: '40px', color: '#000000' }"
15
- >
16
- <el-table-column
17
- type="selection"
18
- v-if="msg.content.tableTemplate == 2 || msg.content.tableTemplate == 3"
19
- align="center"
20
- :selectable="checkSelectable"
21
- width="55">
22
- </el-table-column>
23
- <el-table-column
24
- fixed
25
- prop="name"
26
- label="产品名称"
27
- width="150">
28
- </el-table-column>
29
- <el-table-column
30
- prop="number"
31
- label="产品编号"
32
- align="center"
33
- width="120"
34
- >
35
- </el-table-column>
36
- <el-table-column
37
- prop="inventory"
38
- label="产品库存"
39
- align="center"
40
- width="80">
41
- </el-table-column>
42
- <el-table-column
43
- prop="consumption"
44
- label="今日平均消耗量"
45
- align="center"
46
- width="120">
47
- </el-table-column>
48
- </el-table>
49
- <div class="handleButton" v-if="msg.content.handleSettings && msg.content.handleSettings.length > 0" :class="disabled || isDisabled || selection.length === 0 ? 'disabledButton' : ''">
50
- <div class="buttonText"
51
- v-for="(item,index) in msg.content.handleSettings"
52
- :key="index"
53
- @click="confirmFun(item)"
54
- >
55
- {{ item }}
56
- </div>
57
- </div>
58
- </div>
59
- </template>
60
-
61
- <script>
62
- export default {
63
- name: "outputCom",
64
- data(){
65
- return{
66
- isDisabled:false,
67
- selection:[],
68
- tableData:[
69
- {
70
- name:"正新香辣大鸡排",
71
- number:"ZX78OIJ867",
72
- inventory:"88",
73
- consumption:"24"
74
- },
75
- {
76
- name:"正新香辣大鸡排",
77
- number:"ZX78OIJ867",
78
- inventory:"88",
79
- consumption:"24"
80
- },{
81
- name:"正新香辣大鸡排",
82
- number:"ZX78OIJ867",
83
- inventory:"88",
84
- consumption:"24"
85
- }
86
- ,{
87
- name:"正新香辣大鸡排",
88
- number:"ZX78OIJ867",
89
- inventory:"88",
90
- consumption:"24"
91
- }
92
- ]
93
- }
94
- },
95
- props:{
96
- msg:{
97
- type:Object,
98
- default(){
99
- return {}
100
- }
101
- },
102
- disabled:{
103
- type:Boolean,
104
- default:false
105
- }
106
- },
107
- methods:{
108
- checkSelectable(){
109
- return !this.disabled && !this.isDisabled
110
- },
111
- handleSelectionChange(val){
112
- this.selection = val;
113
- },
114
- confirmFun(item){
115
- if (this.disabled || this.isDisabled || this.selection.length == 0){
116
- return
117
- }
118
- this.isDisabled = true;
119
- this.$emit('confirmFun',item,this.selection,this.msg)
120
- }
121
- }
122
- };
123
- </script>
124
-
125
- <style scoped lang="less">
126
- .outputComponents{
127
- .outputText{
128
- padding-bottom: 10px;
129
- }
130
- .handleButton{
131
- padding-top: 10px;
132
- width: 100%;
133
- display: flex;
134
- align-items: center;
135
- justify-content: center;
136
- border-top: 1px solid #EEEEEE;
137
- .buttonText{
138
- padding: 0 4px;
139
- cursor: pointer;
140
- color: @font-primary-accent-color;
141
- }
142
- }
143
- .disabledButton {
144
- .buttonText {
145
- color: @font-primary-color-r4 !important;
146
- }
147
- }
148
- }
1
+ <template>
2
+ <div class="outputComponents">
3
+ <div class="outputText" v-if="msg.content.prompt">
4
+ {{ msg.content.prompt }}
5
+ </div>
6
+ <el-table
7
+ :data="tableData"
8
+ style="width: 100%"
9
+ height="250"
10
+ @selection-change="handleSelectionChange"
11
+ v-if="msg.content.tableTemplate &&
12
+ (msg.content.tableTemplate == 1 || msg.content.tableTemplate == 2 || msg.content.tableTemplate == 3)"
13
+ :header-cell-style="{ backgroundColor: '#F6F8FD', height: '40px', color: '#000000', fontWeight: 400 }"
14
+ :row-style="{ height: '40px', color: '#000000' }"
15
+ >
16
+ <el-table-column
17
+ type="selection"
18
+ v-if="msg.content.tableTemplate == 2 || msg.content.tableTemplate == 3"
19
+ align="center"
20
+ :selectable="checkSelectable"
21
+ width="55">
22
+ </el-table-column>
23
+ <el-table-column
24
+ fixed
25
+ prop="name"
26
+ label="产品名称"
27
+ width="150">
28
+ </el-table-column>
29
+ <el-table-column
30
+ prop="number"
31
+ label="产品编号"
32
+ align="center"
33
+ width="120"
34
+ >
35
+ </el-table-column>
36
+ <el-table-column
37
+ prop="inventory"
38
+ label="产品库存"
39
+ align="center"
40
+ width="80">
41
+ </el-table-column>
42
+ <el-table-column
43
+ prop="consumption"
44
+ label="今日平均消耗量"
45
+ align="center"
46
+ width="120">
47
+ </el-table-column>
48
+ </el-table>
49
+ <div class="handleButton" v-if="msg.content.handleSettings && msg.content.handleSettings.length > 0" :class="disabled || isDisabled || selection.length === 0 ? 'disabledButton' : ''">
50
+ <div class="buttonText"
51
+ v-for="(item,index) in msg.content.handleSettings"
52
+ :key="index"
53
+ @click="confirmFun(item)"
54
+ >
55
+ {{ item }}
56
+ </div>
57
+ </div>
58
+ </div>
59
+ </template>
60
+
61
+ <script>
62
+ export default {
63
+ name: "outputCom",
64
+ data(){
65
+ return{
66
+ isDisabled:false,
67
+ selection:[],
68
+ tableData:[
69
+ {
70
+ name:"正新香辣大鸡排",
71
+ number:"ZX78OIJ867",
72
+ inventory:"88",
73
+ consumption:"24"
74
+ },
75
+ {
76
+ name:"正新香辣大鸡排",
77
+ number:"ZX78OIJ867",
78
+ inventory:"88",
79
+ consumption:"24"
80
+ },{
81
+ name:"正新香辣大鸡排",
82
+ number:"ZX78OIJ867",
83
+ inventory:"88",
84
+ consumption:"24"
85
+ }
86
+ ,{
87
+ name:"正新香辣大鸡排",
88
+ number:"ZX78OIJ867",
89
+ inventory:"88",
90
+ consumption:"24"
91
+ }
92
+ ]
93
+ }
94
+ },
95
+ props:{
96
+ msg:{
97
+ type:Object,
98
+ default(){
99
+ return {}
100
+ }
101
+ },
102
+ disabled:{
103
+ type:Boolean,
104
+ default:false
105
+ }
106
+ },
107
+ methods:{
108
+ checkSelectable(){
109
+ return !this.disabled && !this.isDisabled
110
+ },
111
+ handleSelectionChange(val){
112
+ this.selection = val;
113
+ },
114
+ confirmFun(item){
115
+ if (this.disabled || this.isDisabled || this.selection.length == 0){
116
+ return
117
+ }
118
+ this.isDisabled = true;
119
+ this.$emit('confirmFun',item,this.selection,this.msg)
120
+ }
121
+ }
122
+ };
123
+ </script>
124
+
125
+ <style scoped lang="less">
126
+ .outputComponents{
127
+ .outputText{
128
+ padding-bottom: 10px;
129
+ }
130
+ .handleButton{
131
+ padding-top: 10px;
132
+ width: 100%;
133
+ display: flex;
134
+ align-items: center;
135
+ justify-content: center;
136
+ border-top: 1px solid #EEEEEE;
137
+ .buttonText{
138
+ padding: 0 4px;
139
+ cursor: pointer;
140
+ color: @font-primary-accent-color;
141
+ }
142
+ }
143
+ .disabledButton {
144
+ .buttonText {
145
+ color: @font-primary-color-r4 !important;
146
+ }
147
+ }
148
+ }
149
149
  </style>
@@ -1,130 +1,130 @@
1
- <template>
2
- <div id="pagination">
3
- <el-pagination
4
- @size-change="handleSizeChange"
5
- @current-change="currentChange"
6
- :current-page.sync="currentPages"
7
- :page-size="pageSize"
8
- layout="slot, prev, pager, next"
9
- :total="total">
10
- <span class="total-class">共 {{total}} 条数据</span>
11
- </el-pagination>
12
- </div>
13
- </template>
14
-
15
- <script>
16
- export default {
17
- name: "paginationPage",
18
- data(){
19
- return{
20
- currentPages:1
21
- }
22
- },
23
- props:['pageSize','currentPage','total',"isReportForm"],
24
- watch:{
25
- currentPage: {
26
- handler(val){
27
- this.currentPages = val
28
- },
29
- },
30
-
31
- },
32
- mounted() {
33
- this.currentPages = this.currentPage
34
- },
35
- methods:{
36
- handleSizeChange(value){
37
- this.$emit('handleSizeChange',value)
38
- },
39
- currentChange(value){
40
- this.$emit('currentChange',value)
41
- },
42
- }
43
- }
44
- </script>
45
-
46
- <style scoped lang="less">
47
- @import "../assets/less/variables.less";
48
-
49
- #pagination{
50
- .total-class{
51
- margin-right: 13px;
52
- font-weight: 400;
53
- }
54
- position: absolute;
55
- bottom: 0px;
56
- right: 0;
57
- width: 100%;
58
- display: flex;
59
- align-items: center;
60
- justify-content: center;
61
- height: 50px;
62
- background-color: @background-color-light;
63
- box-shadow: 0px 0px 18px 0px rgba(29, 55, 129, 0.07);
64
- border-radius: 5px;
65
- /deep/.el-pager{
66
- background: @background-color-pagination;
67
- border-radius: 15px;
68
- }
69
- /deep/.el-pagination.is-background .btn-next{
70
- width: 30px;
71
- height: 30px;
72
- background: @background-color-pagination;
73
- border-radius: 50%;
74
- }
75
- /deep/.el-pagination .btn-next{
76
- width: 30px;
77
- height: 30px;
78
- background: @background-color-pagination;
79
- border-radius: 50%;
80
- padding-left: 0;
81
- margin-left:5px ;
82
- }
83
- /deep/.el-pagination .btn-prev{
84
- width: 30px;
85
- height: 30px;
86
- background: @background-color-pagination;
87
- border-radius: 50%;
88
- padding-right: 0;
89
- margin-right:5px ;
90
- }
91
- /deep/.el-pagination button{
92
- padding: 0;
93
- min-width: 30px;
94
- }
95
- /deep/.el-pager li{
96
- background: @background-color-pagination;
97
- height: 30px;
98
- min-width: 30px;
99
- line-height: 30px;
100
- font-size: 12px;
101
- color: @font-pagination-color;
102
- }
103
- /deep/.el-pager li:first-child{
104
- border-bottom-left-radius: 15px!important;
105
- border-top-left-radius: 15px!important;
106
- }
107
- /deep/.el-pager li:last-child{
108
- border-top-right-radius: 15px!important;
109
- border-bottom-right-radius: 15px!important;
110
- }
111
- /deep/.el-pager li.active{
112
- width: 30px;
113
- height: 30px;
114
- min-width: 30px;
115
- background: @primary-color;
116
- border: 3px solid @border-color-copy;
117
- border-radius: 50%;
118
- line-height: 24px;
119
- color: @font-primary-light-color;
120
- }
121
- /deep/.el-pagination.is-background .el-pager li:not(.disabled).active{
122
- background: @primary-color;
123
- }
124
- /deep/.el-pagination button:disabled{
125
- i{
126
- cursor: no-drop;
127
- }
128
- }
129
- }
1
+ <template>
2
+ <div id="pagination">
3
+ <el-pagination
4
+ @size-change="handleSizeChange"
5
+ @current-change="currentChange"
6
+ :current-page.sync="currentPages"
7
+ :page-size="pageSize"
8
+ layout="slot, prev, pager, next"
9
+ :total="total">
10
+ <span class="total-class">共 {{total}} 条数据</span>
11
+ </el-pagination>
12
+ </div>
13
+ </template>
14
+
15
+ <script>
16
+ export default {
17
+ name: "paginationPage",
18
+ data(){
19
+ return{
20
+ currentPages:1
21
+ }
22
+ },
23
+ props:['pageSize','currentPage','total',"isReportForm"],
24
+ watch:{
25
+ currentPage: {
26
+ handler(val){
27
+ this.currentPages = val
28
+ },
29
+ },
30
+
31
+ },
32
+ mounted() {
33
+ this.currentPages = this.currentPage
34
+ },
35
+ methods:{
36
+ handleSizeChange(value){
37
+ this.$emit('handleSizeChange',value)
38
+ },
39
+ currentChange(value){
40
+ this.$emit('currentChange',value)
41
+ },
42
+ }
43
+ }
44
+ </script>
45
+
46
+ <style scoped lang="less">
47
+ @import "../assets/less/variables.less";
48
+
49
+ #pagination{
50
+ .total-class{
51
+ margin-right: 13px;
52
+ font-weight: 400;
53
+ }
54
+ position: absolute;
55
+ bottom: 0px;
56
+ right: 0;
57
+ width: 100%;
58
+ display: flex;
59
+ align-items: center;
60
+ justify-content: center;
61
+ height: 50px;
62
+ background-color: @background-color-light;
63
+ box-shadow: 0px 0px 18px 0px rgba(29, 55, 129, 0.07);
64
+ border-radius: 5px;
65
+ /deep/.el-pager{
66
+ background: @background-color-pagination;
67
+ border-radius: 15px;
68
+ }
69
+ /deep/.el-pagination.is-background .btn-next{
70
+ width: 30px;
71
+ height: 30px;
72
+ background: @background-color-pagination;
73
+ border-radius: 50%;
74
+ }
75
+ /deep/.el-pagination .btn-next{
76
+ width: 30px;
77
+ height: 30px;
78
+ background: @background-color-pagination;
79
+ border-radius: 50%;
80
+ padding-left: 0;
81
+ margin-left:5px ;
82
+ }
83
+ /deep/.el-pagination .btn-prev{
84
+ width: 30px;
85
+ height: 30px;
86
+ background: @background-color-pagination;
87
+ border-radius: 50%;
88
+ padding-right: 0;
89
+ margin-right:5px ;
90
+ }
91
+ /deep/.el-pagination button{
92
+ padding: 0;
93
+ min-width: 30px;
94
+ }
95
+ /deep/.el-pager li{
96
+ background: @background-color-pagination;
97
+ height: 30px;
98
+ min-width: 30px;
99
+ line-height: 30px;
100
+ font-size: 12px;
101
+ color: @font-pagination-color;
102
+ }
103
+ /deep/.el-pager li:first-child{
104
+ border-bottom-left-radius: 15px!important;
105
+ border-top-left-radius: 15px!important;
106
+ }
107
+ /deep/.el-pager li:last-child{
108
+ border-top-right-radius: 15px!important;
109
+ border-bottom-right-radius: 15px!important;
110
+ }
111
+ /deep/.el-pager li.active{
112
+ width: 30px;
113
+ height: 30px;
114
+ min-width: 30px;
115
+ background: @primary-color;
116
+ border: 3px solid @border-color-copy;
117
+ border-radius: 50%;
118
+ line-height: 24px;
119
+ color: @font-primary-light-color;
120
+ }
121
+ /deep/.el-pagination.is-background .el-pager li:not(.disabled).active{
122
+ background: @primary-color;
123
+ }
124
+ /deep/.el-pagination button:disabled{
125
+ i{
126
+ cursor: no-drop;
127
+ }
128
+ }
129
+ }
130
130
  </style>