askbot-dragon 1.0.21 → 1.0.23

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 (78) 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/AnswerDocknowledge.vue +131 -131
  21. package/src/components/AskIFrame.vue +15 -15
  22. package/src/components/ConversationContainer.vue +4658 -4658
  23. package/src/components/FileType.vue +86 -86
  24. package/src/components/Message.vue +27 -27
  25. package/src/components/actionSatisfaction.vue +107 -107
  26. package/src/components/actionSendToBot.vue +62 -62
  27. package/src/components/answerDissatisfaction.vue +62 -62
  28. package/src/components/answerRadio.vue +76 -76
  29. package/src/components/ask-components/DissatisfactionOptions.vue +57 -57
  30. package/src/components/ask-components/Msgloading.vue +37 -37
  31. package/src/components/ask-components/SatisfactionV2.vue +15 -15
  32. package/src/components/askVideo.vue +138 -138
  33. package/src/components/assetDetails.vue +370 -370
  34. package/src/components/assetMessage.vue +228 -228
  35. package/src/components/associationIntention.vue +269 -269
  36. package/src/components/botActionSatisfactor.vue +68 -68
  37. package/src/components/chatContent.vue +513 -513
  38. package/src/components/feedBack.vue +136 -136
  39. package/src/components/fielListView.vue +346 -346
  40. package/src/components/file/AliyunOssComponents.vue +108 -108
  41. package/src/components/formTemplate.vue +3344 -3344
  42. package/src/components/loadingProcess.vue +164 -164
  43. package/src/components/message/ActionAlertIframe.vue +112 -112
  44. package/src/components/message/ShopMessage.vue +164 -164
  45. package/src/components/message/TextMessage.vue +924 -924
  46. package/src/components/message/TicketMessage.vue +177 -177
  47. package/src/components/message/swiper/index.js +4 -4
  48. package/src/components/message/swiper/ticketSwiper.vue +503 -503
  49. package/src/components/message/swiper/ticketSwiperItem.vue +61 -61
  50. package/src/components/msgLoading.vue +231 -231
  51. package/src/components/myPopup.vue +70 -70
  52. package/src/components/popup.vue +227 -227
  53. package/src/components/receiverMessagePlatform.vue +65 -65
  54. package/src/components/recommend.vue +89 -89
  55. package/src/components/selector/hOption.vue +20 -20
  56. package/src/components/selector/hSelector.vue +199 -199
  57. package/src/components/selector/hWrapper.vue +216 -216
  58. package/src/components/senderMessagePlatform.vue +50 -50
  59. package/src/components/source/BotMessage.vue +24 -24
  60. package/src/components/source/CustomMessage.vue +24 -24
  61. package/src/components/test.vue +260 -260
  62. package/src/components/tree.vue +294 -275
  63. package/src/components/utils/AliyunIssUtil.js +72 -72
  64. package/src/components/utils/ckeditor.js +155 -155
  65. package/src/components/utils/ckeditorImageUpload/command.js +109 -109
  66. package/src/components/utils/ckeditorImageUpload/editing.js +11 -11
  67. package/src/components/utils/ckeditorImageUpload/plugin-image.js +11 -11
  68. package/src/components/utils/ckeditorImageUpload/toolbar-ui.js +40 -40
  69. package/src/components/utils/ckeditorfileUpload/common.js +111 -111
  70. package/src/components/utils/ckeditorfileUpload/editing.js +11 -11
  71. package/src/components/utils/ckeditorfileUpload/plugin_file.js +11 -11
  72. package/src/components/utils/ckeditorfileUpload/toolbar_ui.js +34 -34
  73. package/src/components/utils/format_date.js +25 -25
  74. package/src/components/utils/index.js +6 -6
  75. package/src/components/utils/math_utils.js +29 -29
  76. package/src/components/voiceComponent.vue +119 -119
  77. package/src/main.js +60 -60
  78. package/vue.config.js +47 -47
@@ -1,71 +1,71 @@
1
- <template>
2
- <div class="container">
3
- <div class="top-container">
4
- <div class="close">取消</div>
5
- <div class="sure">确定</div>
6
- </div>
7
- <van-list v-model="loading" :finished="finished" finished-text="没有更多了" :offset="1" @load="onload" class="list-container">
8
- <van-cell v-for="item in list" :key="item.id" :title="item.name" />
9
- <!-- <van-cell title="123" />
10
- <van-cell title="asdasd" />
11
- <van-cell title="adszx" />
12
- <van-cell title="zxc zc" />
13
- <van-cell title="asdasd" />
14
- <van-cell title="wqeqweqwe" />
15
- <van-cell title="icvbncvbn" /> -->
16
- </van-list>
17
- </div>
18
- </template>
19
- <script>
20
- export default {
21
- props: {
22
- finished:{
23
- type: Boolean,
24
- default: false
25
- },
26
- list:{
27
- type:Array,
28
- default:() =>{
29
- return []
30
- }
31
- }
32
- },
33
- data() {
34
- return {
35
- show: false,
36
- loading: false
37
- }
38
- },
39
- methods: {
40
- onload() {
41
- this.$emit('onload')
42
- }
43
- }
44
- }
45
- </script>
46
-
47
- <style lang="less" scoped>
48
- .container {
49
- width: 100%;
50
- height: 100%;
51
- .top-container {
52
- width: 100%;
53
- height: 50px;
54
- display: flex;
55
- align-items: center;
56
- justify-content: space-between;
57
- padding: 0 20px;
58
- box-sizing: border-box;
59
- .sure {
60
- color: #366aff;
61
- }
62
- .close {
63
- color: #cccccc;
64
- }
65
- }
66
- .list-container {
67
- width: 100%;
68
- height: calc(100% - 50px);
69
- }
70
- }
1
+ <template>
2
+ <div class="container">
3
+ <div class="top-container">
4
+ <div class="close">取消</div>
5
+ <div class="sure">确定</div>
6
+ </div>
7
+ <van-list v-model="loading" :finished="finished" finished-text="没有更多了" :offset="1" @load="onload" class="list-container">
8
+ <van-cell v-for="item in list" :key="item.id" :title="item.name" />
9
+ <!-- <van-cell title="123" />
10
+ <van-cell title="asdasd" />
11
+ <van-cell title="adszx" />
12
+ <van-cell title="zxc zc" />
13
+ <van-cell title="asdasd" />
14
+ <van-cell title="wqeqweqwe" />
15
+ <van-cell title="icvbncvbn" /> -->
16
+ </van-list>
17
+ </div>
18
+ </template>
19
+ <script>
20
+ export default {
21
+ props: {
22
+ finished:{
23
+ type: Boolean,
24
+ default: false
25
+ },
26
+ list:{
27
+ type:Array,
28
+ default:() =>{
29
+ return []
30
+ }
31
+ }
32
+ },
33
+ data() {
34
+ return {
35
+ show: false,
36
+ loading: false
37
+ }
38
+ },
39
+ methods: {
40
+ onload() {
41
+ this.$emit('onload')
42
+ }
43
+ }
44
+ }
45
+ </script>
46
+
47
+ <style lang="less" scoped>
48
+ .container {
49
+ width: 100%;
50
+ height: 100%;
51
+ .top-container {
52
+ width: 100%;
53
+ height: 50px;
54
+ display: flex;
55
+ align-items: center;
56
+ justify-content: space-between;
57
+ padding: 0 20px;
58
+ box-sizing: border-box;
59
+ .sure {
60
+ color: #366aff;
61
+ }
62
+ .close {
63
+ color: #cccccc;
64
+ }
65
+ }
66
+ .list-container {
67
+ width: 100%;
68
+ height: calc(100% - 50px);
69
+ }
70
+ }
71
71
  </style>
@@ -1,228 +1,228 @@
1
- <template>
2
- <div class="popUp">
3
- <div class="topBtn">
4
- <span class="cancel" @click="closeBtn">取消</span>
5
- <span class="sure" @click="sure">确定</span>
6
- </div>
7
- <slot name="popup-header" class="popup-header"></slot>
8
- <div class="popup-content">
9
- <div
10
- class="filter-item"
11
- v-for="(item,index) in options"
12
- :key="index"
13
- @click="checked(item,index)"
14
- >
15
- <div :class="[checkIdList.includes(item[props.value]) && 'setColor', 'label']">{{item[props.label]}}</div>
16
- </div>
17
- </div>
18
- <div class="popup-footer">
19
- <slot name="popup-footer"></slot>
20
- </div>
21
- </div>
22
- </template>
23
-
24
- <script>
25
- export default {
26
- data() {
27
- return {
28
- checkOptions: [],
29
- checkIdList:[],
30
- visable:false
31
- }
32
- },
33
- props: {
34
- options: {
35
- type: Array,
36
- default:function() {
37
- return []
38
- }
39
- },
40
- defaultValue: {
41
- type: Array,
42
- default:function() {
43
- return []
44
- }
45
- },
46
- props: {
47
- type: Object,
48
- default(){
49
- return{
50
- label: 'label',
51
- value: 'value'
52
- }
53
- }
54
- },
55
- multiple: {
56
- type: Boolean,
57
- default: false
58
- }
59
- },
60
- methods: {
61
- checked(item) {
62
- if(this.multiple) {
63
- let count = this.checkIdList.findIndex(element => { return element == item[this.props.value] } )
64
- if(count !== -1) {
65
- this.checkIdList.splice(count,1)
66
- this.checkOptions.splice(count,1)
67
- } else {
68
- this.checkIdList.push(item[this.props.value])
69
- this.checkOptions.push(item)
70
- }
71
- } else {
72
- this.checkIdList = []
73
- this.checkOptions = []
74
- this.checkIdList.push(item[this.props.value])
75
- this.checkOptions.push(item)
76
- }
77
- },
78
- sure() {
79
- if(this.checkOptions.length == 0 && this.checkIdList == 0){
80
- this.$emit('onConfim',false,false)
81
- return
82
- }
83
- let option = JSON.parse(JSON.stringify(this.checkOptions))
84
- let list = JSON.parse(JSON.stringify(this.checkIdList))
85
- if(this.multiple) {
86
- this.$emit('onConfim',option, list)
87
- } else {
88
- this.$emit('onConfim',option[0], list[0])
89
- }
90
- },
91
- closeBtn(){
92
- this.$emit('onclose')
93
- }
94
- },
95
- watch: {
96
- defaultValue: {
97
- handler(value) {
98
- console.log(value,'=====');
99
- this.checkOptions = []
100
- if(Array.isArray(this.defaultValue)) {
101
- if (this.multiple){
102
- let val = []
103
- this.defaultValue.forEach(item=>{
104
- item.forEach(items=>{
105
- val.push(items)
106
- })
107
- })
108
- this.checkIdList = [...val]
109
- }
110
- else {
111
- this.checkIdList = [...this.defaultValue]
112
- }
113
-
114
- this.checkIdList.forEach(item =>{
115
- if (Array.isArray(item)){
116
- item.forEach(items=>{
117
-
118
- this.options.forEach(res =>{
119
- console.debug('items',items,res[this.props.value])
120
- if(items == res[this.props.value]) {
121
- this.checkOptions.push(res)
122
- }
123
- })
124
- })
125
- }
126
- else {
127
- this.options.forEach(res =>{
128
- if(item == res[this.props.value]) {
129
- this.checkOptions.push(res)
130
- }
131
- })
132
- }
133
-
134
- })
135
- }
136
- console.debug('checkOptions',this.checkOptions)
137
- },
138
- deep: true,
139
- immediate: true
140
- },
141
- visable(value) {
142
- if(value) {
143
- console.log(this.defaultValue,'=====');
144
- this.checkOptions = []
145
- if(Array.isArray(this.defaultValue)) {
146
- this.checkIdList = [...this.defaultValue]
147
- this.checkIdList.forEach(item =>{
148
- this.options.forEach(res =>{
149
- if(item == res[this.props.value]) {
150
- this.checkOptions.push(res)
151
- }
152
- })
153
- })
154
- }
155
- // else {
156
- // this.checkIdList = this.defaultValue
157
- // let obj = this.options.find(item =>{ return item[this.props.value] == this.defaultValue[0] })
158
- // obj && this.checkOptions.push(obj)
159
- // }
160
- } else {
161
- this.checkOptions = []
162
- this.checkIdList = []
163
- }
164
- },
165
- },
166
- mounted() {
167
- console.debug('options',this.options)
168
-
169
- }
170
- }
171
- </script>
172
-
173
- <style lang="less" scoped>
174
- .popup-content {
175
- /*padding-top: 8px;*/
176
- height: 240px;
177
- overflow-y: scroll;
178
- overflow-x: hidden;
179
- .filter-item {
180
- width: 100%;
181
- display: flex;
182
- align-items: center;
183
- justify-content: center;
184
- height: 48px;
185
- cursor: pointer;
186
- .setColor {
187
- color: #366aff;
188
- }
189
- .label {
190
- display: block;
191
- width: 80%;
192
- overflow: hidden;
193
- text-overflow: ellipsis;
194
- white-space:nowrap;
195
- text-align: center;
196
- }
197
- }
198
- }
199
- .topBtn {
200
- width: 100%;
201
- height: 40px;
202
- display: flex;
203
- align-items: center;
204
- justify-content: space-between;
205
- box-sizing: border-box;
206
- padding: 0 20px;
207
- .cancel {
208
- color: #606266;
209
- cursor:pointer;
210
- }
211
- .sure {
212
- color: #366aff;
213
- cursor: pointer;
214
- }
215
- }
216
- .popup-footer {
217
- position: absolute;
218
- max-height: 50px;
219
- bottom: 0;
220
- display: flex;
221
- justify-content: center;
222
- align-items: center;
223
- width: 100%;
224
- color: #366aff;
225
- background: #eff2f5;
226
- /*border-radius: 28px;*/
227
- }
1
+ <template>
2
+ <div class="popUp">
3
+ <div class="topBtn">
4
+ <span class="cancel" @click="closeBtn">取消</span>
5
+ <span class="sure" @click="sure">确定</span>
6
+ </div>
7
+ <slot name="popup-header" class="popup-header"></slot>
8
+ <div class="popup-content">
9
+ <div
10
+ class="filter-item"
11
+ v-for="(item,index) in options"
12
+ :key="index"
13
+ @click="checked(item,index)"
14
+ >
15
+ <div :class="[checkIdList.includes(item[props.value]) && 'setColor', 'label']">{{item[props.label]}}</div>
16
+ </div>
17
+ </div>
18
+ <div class="popup-footer">
19
+ <slot name="popup-footer"></slot>
20
+ </div>
21
+ </div>
22
+ </template>
23
+
24
+ <script>
25
+ export default {
26
+ data() {
27
+ return {
28
+ checkOptions: [],
29
+ checkIdList:[],
30
+ visable:false
31
+ }
32
+ },
33
+ props: {
34
+ options: {
35
+ type: Array,
36
+ default:function() {
37
+ return []
38
+ }
39
+ },
40
+ defaultValue: {
41
+ type: Array,
42
+ default:function() {
43
+ return []
44
+ }
45
+ },
46
+ props: {
47
+ type: Object,
48
+ default(){
49
+ return{
50
+ label: 'label',
51
+ value: 'value'
52
+ }
53
+ }
54
+ },
55
+ multiple: {
56
+ type: Boolean,
57
+ default: false
58
+ }
59
+ },
60
+ methods: {
61
+ checked(item) {
62
+ if(this.multiple) {
63
+ let count = this.checkIdList.findIndex(element => { return element == item[this.props.value] } )
64
+ if(count !== -1) {
65
+ this.checkIdList.splice(count,1)
66
+ this.checkOptions.splice(count,1)
67
+ } else {
68
+ this.checkIdList.push(item[this.props.value])
69
+ this.checkOptions.push(item)
70
+ }
71
+ } else {
72
+ this.checkIdList = []
73
+ this.checkOptions = []
74
+ this.checkIdList.push(item[this.props.value])
75
+ this.checkOptions.push(item)
76
+ }
77
+ },
78
+ sure() {
79
+ if(this.checkOptions.length == 0 && this.checkIdList == 0){
80
+ this.$emit('onConfim',false,false)
81
+ return
82
+ }
83
+ let option = JSON.parse(JSON.stringify(this.checkOptions))
84
+ let list = JSON.parse(JSON.stringify(this.checkIdList))
85
+ if(this.multiple) {
86
+ this.$emit('onConfim',option, list)
87
+ } else {
88
+ this.$emit('onConfim',option[0], list[0])
89
+ }
90
+ },
91
+ closeBtn(){
92
+ this.$emit('onclose')
93
+ }
94
+ },
95
+ watch: {
96
+ defaultValue: {
97
+ handler(value) {
98
+ console.log(value,'=====');
99
+ this.checkOptions = []
100
+ if(Array.isArray(this.defaultValue)) {
101
+ if (this.multiple){
102
+ let val = []
103
+ this.defaultValue.forEach(item=>{
104
+ item.forEach(items=>{
105
+ val.push(items)
106
+ })
107
+ })
108
+ this.checkIdList = [...val]
109
+ }
110
+ else {
111
+ this.checkIdList = [...this.defaultValue]
112
+ }
113
+
114
+ this.checkIdList.forEach(item =>{
115
+ if (Array.isArray(item)){
116
+ item.forEach(items=>{
117
+
118
+ this.options.forEach(res =>{
119
+ console.debug('items',items,res[this.props.value])
120
+ if(items == res[this.props.value]) {
121
+ this.checkOptions.push(res)
122
+ }
123
+ })
124
+ })
125
+ }
126
+ else {
127
+ this.options.forEach(res =>{
128
+ if(item == res[this.props.value]) {
129
+ this.checkOptions.push(res)
130
+ }
131
+ })
132
+ }
133
+
134
+ })
135
+ }
136
+ console.debug('checkOptions',this.checkOptions)
137
+ },
138
+ deep: true,
139
+ immediate: true
140
+ },
141
+ visable(value) {
142
+ if(value) {
143
+ console.log(this.defaultValue,'=====');
144
+ this.checkOptions = []
145
+ if(Array.isArray(this.defaultValue)) {
146
+ this.checkIdList = [...this.defaultValue]
147
+ this.checkIdList.forEach(item =>{
148
+ this.options.forEach(res =>{
149
+ if(item == res[this.props.value]) {
150
+ this.checkOptions.push(res)
151
+ }
152
+ })
153
+ })
154
+ }
155
+ // else {
156
+ // this.checkIdList = this.defaultValue
157
+ // let obj = this.options.find(item =>{ return item[this.props.value] == this.defaultValue[0] })
158
+ // obj && this.checkOptions.push(obj)
159
+ // }
160
+ } else {
161
+ this.checkOptions = []
162
+ this.checkIdList = []
163
+ }
164
+ },
165
+ },
166
+ mounted() {
167
+ console.debug('options',this.options)
168
+
169
+ }
170
+ }
171
+ </script>
172
+
173
+ <style lang="less" scoped>
174
+ .popup-content {
175
+ /*padding-top: 8px;*/
176
+ height: 240px;
177
+ overflow-y: scroll;
178
+ overflow-x: hidden;
179
+ .filter-item {
180
+ width: 100%;
181
+ display: flex;
182
+ align-items: center;
183
+ justify-content: center;
184
+ height: 48px;
185
+ cursor: pointer;
186
+ .setColor {
187
+ color: #366aff;
188
+ }
189
+ .label {
190
+ display: block;
191
+ width: 80%;
192
+ overflow: hidden;
193
+ text-overflow: ellipsis;
194
+ white-space:nowrap;
195
+ text-align: center;
196
+ }
197
+ }
198
+ }
199
+ .topBtn {
200
+ width: 100%;
201
+ height: 40px;
202
+ display: flex;
203
+ align-items: center;
204
+ justify-content: space-between;
205
+ box-sizing: border-box;
206
+ padding: 0 20px;
207
+ .cancel {
208
+ color: #606266;
209
+ cursor:pointer;
210
+ }
211
+ .sure {
212
+ color: #366aff;
213
+ cursor: pointer;
214
+ }
215
+ }
216
+ .popup-footer {
217
+ position: absolute;
218
+ max-height: 50px;
219
+ bottom: 0;
220
+ display: flex;
221
+ justify-content: center;
222
+ align-items: center;
223
+ width: 100%;
224
+ color: #366aff;
225
+ background: #eff2f5;
226
+ /*border-radius: 28px;*/
227
+ }
228
228
  </style>