askbot-dragon 1.7.65-beta → 1.7.67-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 (95) 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 +57 -57
  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 +252 -252
  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 +493 -493
  18. package/src/assets/less/iconfont.css +37 -37
  19. package/src/assets/less/ticketMessage.less +294 -294
  20. package/src/components/ActionAlertIframe.vue +178 -178
  21. package/src/components/AiGuide.vue +434 -434
  22. package/src/components/AnswerDocknowledge.vue +1203 -1203
  23. package/src/components/AnswerVoice.vue +285 -285
  24. package/src/components/AskIFrame.vue +15 -15
  25. package/src/components/ConversationContainer.vue +10764 -10764
  26. package/src/components/FileType.vue +86 -86
  27. package/src/components/Message.vue +27 -27
  28. package/src/components/MyEditor.vue +342 -342
  29. package/src/components/QwFeedback.vue +302 -302
  30. package/src/components/actionSatisfaction.vue +107 -107
  31. package/src/components/actionSendToBot.vue +62 -62
  32. package/src/components/answerDissatisfaction.vue +62 -62
  33. package/src/components/answerRadio.vue +259 -259
  34. package/src/components/ask-components/DissatisfactionOptions.vue +57 -57
  35. package/src/components/ask-components/Msgloading.vue +37 -37
  36. package/src/components/ask-components/SatisfactionV2.vue +15 -15
  37. package/src/components/askVideo.vue +162 -162
  38. package/src/components/assetDetails.vue +378 -378
  39. package/src/components/assetMessage.vue +229 -229
  40. package/src/components/associationIntention.vue +378 -378
  41. package/src/components/attachmentPreview.vue +90 -90
  42. package/src/components/botActionSatisfactor.vue +68 -68
  43. package/src/components/chatContent.vue +513 -513
  44. package/src/components/feedBack.vue +136 -136
  45. package/src/components/fielListView.vue +351 -351
  46. package/src/components/file/AliyunOssComponents.vue +108 -108
  47. package/src/components/formTemplate.vue +3512 -3512
  48. package/src/components/imgView.vue +31 -31
  49. package/src/components/intelligentSummary.vue +234 -234
  50. package/src/components/kkview.vue +1138 -1138
  51. package/src/components/loadingProcess.vue +164 -164
  52. package/src/components/markDownText.vue +357 -357
  53. package/src/components/message/ActionAlertIframe.vue +112 -112
  54. package/src/components/message/ShopMessage.vue +164 -164
  55. package/src/components/message/TextMessage.vue +928 -928
  56. package/src/components/message/TicketMessage.vue +201 -201
  57. package/src/components/message/swiper/index.js +4 -4
  58. package/src/components/message/swiper/ticketSwiper.vue +503 -503
  59. package/src/components/message/swiper/ticketSwiperItem.vue +61 -61
  60. package/src/components/msgLoading.vue +231 -231
  61. package/src/components/myPopup.vue +73 -73
  62. package/src/components/newPdfPosition.vue +877 -877
  63. package/src/components/pagination.vue +128 -128
  64. package/src/components/pdfPosition.vue +1523 -1523
  65. package/src/components/popup.vue +228 -228
  66. package/src/components/preview/docView.vue +113 -113
  67. package/src/components/preview/excelView.vue +190 -190
  68. package/src/components/preview/newPositionPreview.vue +384 -369
  69. package/src/components/preview/pdfView.vue +824 -824
  70. package/src/components/previewDoc.vue +252 -252
  71. package/src/components/previewPdf.vue +1087 -1087
  72. package/src/components/receiverMessagePlatform.vue +69 -69
  73. package/src/components/recommend.vue +80 -80
  74. package/src/components/selector/hOption.vue +20 -20
  75. package/src/components/selector/hSelector.vue +199 -199
  76. package/src/components/selector/hWrapper.vue +216 -216
  77. package/src/components/senderMessagePlatform.vue +58 -58
  78. package/src/components/source/BotMessage.vue +24 -24
  79. package/src/components/source/CustomMessage.vue +24 -24
  80. package/src/components/test.vue +260 -260
  81. package/src/components/tree.vue +307 -307
  82. package/src/components/utils/AliyunIssUtil.js +103 -103
  83. package/src/components/utils/ckeditor.js +185 -185
  84. package/src/components/utils/format_date.js +25 -25
  85. package/src/components/utils/index.js +6 -6
  86. package/src/components/utils/math_utils.js +29 -29
  87. package/src/components/voiceComponent.vue +119 -119
  88. package/src/components/welcomeKnowledgeFile.vue +347 -347
  89. package/src/components/welcomeLlmCard.vue +144 -144
  90. package/src/components/welcomeSuggest.vue +97 -97
  91. package/src/locales/cn.json +95 -95
  92. package/src/locales/en.json +95 -95
  93. package/src/locales/jp.json +72 -72
  94. package/src/main.js +76 -76
  95. package/vue.config.js +54 -54
@@ -1,229 +1,229 @@
1
- <template>
2
- <div class="popUp">
3
- <div class="topBtn">
4
- <span class="cancel" @click="closeBtn">{{ $t('dragonCommon.cancel') }}</span>
5
- <span class="sure" @click="sure">{{ $t('dragonCommon.confirm') }}</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
- this.$i18n.locale = sessionStorage.getItem("systemLanguage") || 'cn';
168
- console.debug('options',this.options)
169
-
170
- }
171
- }
172
- </script>
173
-
174
- <style lang="less" scoped>
175
- .popup-content {
176
- /*padding-top: 8px;*/
177
- height: 240px;
178
- overflow-y: scroll;
179
- overflow-x: hidden;
180
- .filter-item {
181
- width: 100%;
182
- display: flex;
183
- align-items: center;
184
- justify-content: center;
185
- height: 48px;
186
- cursor: pointer;
187
- .setColor {
188
- color: #366aff;
189
- }
190
- .label {
191
- display: block;
192
- width: 80%;
193
- overflow: hidden;
194
- text-overflow: ellipsis;
195
- white-space:nowrap;
196
- text-align: center;
197
- }
198
- }
199
- }
200
- .topBtn {
201
- width: 100%;
202
- height: 40px;
203
- display: flex;
204
- align-items: center;
205
- justify-content: space-between;
206
- box-sizing: border-box;
207
- padding: 0 20px;
208
- .cancel {
209
- color: #606266;
210
- cursor:pointer;
211
- }
212
- .sure {
213
- color: #366aff;
214
- cursor: pointer;
215
- }
216
- }
217
- .popup-footer {
218
- position: absolute;
219
- max-height: 50px;
220
- bottom: 0;
221
- display: flex;
222
- justify-content: center;
223
- align-items: center;
224
- width: 100%;
225
- color: #366aff;
226
- background: #eff2f5;
227
- /*border-radius: 28px;*/
228
- }
1
+ <template>
2
+ <div class="popUp">
3
+ <div class="topBtn">
4
+ <span class="cancel" @click="closeBtn">{{ $t('dragonCommon.cancel') }}</span>
5
+ <span class="sure" @click="sure">{{ $t('dragonCommon.confirm') }}</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
+ this.$i18n.locale = sessionStorage.getItem("systemLanguage") || 'cn';
168
+ console.debug('options',this.options)
169
+
170
+ }
171
+ }
172
+ </script>
173
+
174
+ <style lang="less" scoped>
175
+ .popup-content {
176
+ /*padding-top: 8px;*/
177
+ height: 240px;
178
+ overflow-y: scroll;
179
+ overflow-x: hidden;
180
+ .filter-item {
181
+ width: 100%;
182
+ display: flex;
183
+ align-items: center;
184
+ justify-content: center;
185
+ height: 48px;
186
+ cursor: pointer;
187
+ .setColor {
188
+ color: #366aff;
189
+ }
190
+ .label {
191
+ display: block;
192
+ width: 80%;
193
+ overflow: hidden;
194
+ text-overflow: ellipsis;
195
+ white-space:nowrap;
196
+ text-align: center;
197
+ }
198
+ }
199
+ }
200
+ .topBtn {
201
+ width: 100%;
202
+ height: 40px;
203
+ display: flex;
204
+ align-items: center;
205
+ justify-content: space-between;
206
+ box-sizing: border-box;
207
+ padding: 0 20px;
208
+ .cancel {
209
+ color: #606266;
210
+ cursor:pointer;
211
+ }
212
+ .sure {
213
+ color: #366aff;
214
+ cursor: pointer;
215
+ }
216
+ }
217
+ .popup-footer {
218
+ position: absolute;
219
+ max-height: 50px;
220
+ bottom: 0;
221
+ display: flex;
222
+ justify-content: center;
223
+ align-items: center;
224
+ width: 100%;
225
+ color: #366aff;
226
+ background: #eff2f5;
227
+ /*border-radius: 28px;*/
228
+ }
229
229
  </style>
@@ -1,114 +1,114 @@
1
- <template>
2
- <div class="docView">
3
- <div class="docHtml"
4
- ref="docHtml"
5
- v-html="html"
6
- @click="selectDiv"
7
- >
8
- </div>
9
- </div>
10
- </template>
11
-
12
- <script>
13
- export default {
14
- name: "docView",
15
- data(){
16
- return{
17
- colors: ['#E3EBFF', '#FFF5DC', '#FFE8D8','#D6F3EA','#FFF1C3'],
18
- html:"",
19
- }
20
- },
21
- props:{
22
- html_result:{
23
- type:String,
24
- default:""
25
- },
26
- split_paragraphs:{
27
- type:Array,
28
- default(){
29
- return []
30
- }
31
- },
32
- fileSuffix:{
33
- type:String,
34
- default:""
35
- }
36
- },
37
- methods:{
38
- selectDiv(e){
39
- this.$emit('selectDiv',e)
40
- },
41
- getHtml(){
42
- // let url = 'https://guoranwisdom.oss-cn-zhangjiakou.aliyuncs.com/123/2024/12/09/14/18/17/123/%E5%85%AC%E5%8F%B8%E5%91%98%E5%B7%A5%E6%89%8B%E5%86%8C_1733725097.html'
43
- let url = this.html_result
44
- this.$http.get(url).then(res => {
45
- this.html = res.data;
46
- let drawer = document.getElementById('drawer_content_pre')
47
- if (drawer){
48
- drawer.style.backgroundImage = 'none';
49
- drawer.style.overflowX = 'hidden'
50
- }
51
- this.$nextTick(() => {
52
- this.setColor()
53
- })
54
- })
55
- },
56
- setColor(){
57
- this.split_paragraphs.forEach((item,index) => {
58
- const colorIndex = index % this.colors.length;
59
- if (item.original_paragraph){
60
- item.original_paragraph.forEach(items => {
61
- let dom = document.getElementById(items.paragraph_id);
62
- if (this.fileSuffix === 'TXT'){
63
- const paragraphs = this.$el.querySelectorAll(`[paragraph-id="${items.paragraph_id}"]`);
64
- paragraphs.forEach(paragraph => {
65
- paragraph.style.background = this.colors[colorIndex]
66
- })
67
- } else if (dom){
68
- dom.style.background = this.colors[colorIndex];
69
- }
70
- })
71
- let newOriginal = item.original_paragraph.filter(items => !items.type)
72
- let dom = document.getElementById(newOriginal[newOriginal.length - 1].paragraph_id);
73
- if (dom){
74
- dom.style.marginBottom = '8px';
75
- }
76
- }
77
- if (item.tableId){
78
- let dom = document.getElementById(item.tableId);
79
- if (dom){
80
- dom.style.backgroundColor = this.colors[colorIndex]
81
- }
82
- }
83
- })
84
- setTimeout(() => {
85
- this.$parent.scrollToParagraph('first')
86
- },500)
87
- },
88
- },
89
- watch:{
90
- html_result:{
91
- handler(){
92
- if (this.html_result){
93
- this.getHtml();
94
- }
95
- },
96
- immediate:true
97
- }
98
- }
99
- };
100
- </script>
101
-
102
- <style scoped lang="less">
103
- .docView{
104
- width: 100%;
105
- flex: none;
106
- box-sizing: border-box;
107
- div{
108
- position: relative;
109
- }
110
- /deep/img{
111
- max-width: 100%;
112
- }
113
- }
1
+ <template>
2
+ <div class="docView">
3
+ <div class="docHtml"
4
+ ref="docHtml"
5
+ v-html="html"
6
+ @click="selectDiv"
7
+ >
8
+ </div>
9
+ </div>
10
+ </template>
11
+
12
+ <script>
13
+ export default {
14
+ name: "docView",
15
+ data(){
16
+ return{
17
+ colors: ['#E3EBFF', '#FFF5DC', '#FFE8D8','#D6F3EA','#FFF1C3'],
18
+ html:"",
19
+ }
20
+ },
21
+ props:{
22
+ html_result:{
23
+ type:String,
24
+ default:""
25
+ },
26
+ split_paragraphs:{
27
+ type:Array,
28
+ default(){
29
+ return []
30
+ }
31
+ },
32
+ fileSuffix:{
33
+ type:String,
34
+ default:""
35
+ }
36
+ },
37
+ methods:{
38
+ selectDiv(e){
39
+ this.$emit('selectDiv',e)
40
+ },
41
+ getHtml(){
42
+ // let url = 'https://guoranwisdom.oss-cn-zhangjiakou.aliyuncs.com/123/2024/12/09/14/18/17/123/%E5%85%AC%E5%8F%B8%E5%91%98%E5%B7%A5%E6%89%8B%E5%86%8C_1733725097.html'
43
+ let url = this.html_result
44
+ this.$http.get(url).then(res => {
45
+ this.html = res.data;
46
+ let drawer = document.getElementById('drawer_content_pre')
47
+ if (drawer){
48
+ drawer.style.backgroundImage = 'none';
49
+ drawer.style.overflowX = 'hidden'
50
+ }
51
+ this.$nextTick(() => {
52
+ this.setColor()
53
+ })
54
+ })
55
+ },
56
+ setColor(){
57
+ this.split_paragraphs.forEach((item,index) => {
58
+ const colorIndex = index % this.colors.length;
59
+ if (item.original_paragraph){
60
+ item.original_paragraph.forEach(items => {
61
+ let dom = document.getElementById(items.paragraph_id);
62
+ if (this.fileSuffix === 'TXT'){
63
+ const paragraphs = this.$el.querySelectorAll(`[paragraph-id="${items.paragraph_id}"]`);
64
+ paragraphs.forEach(paragraph => {
65
+ paragraph.style.background = this.colors[colorIndex]
66
+ })
67
+ } else if (dom){
68
+ dom.style.background = this.colors[colorIndex];
69
+ }
70
+ })
71
+ let newOriginal = item.original_paragraph.filter(items => !items.type)
72
+ let dom = document.getElementById(newOriginal[newOriginal.length - 1].paragraph_id);
73
+ if (dom){
74
+ dom.style.marginBottom = '8px';
75
+ }
76
+ }
77
+ if (item.tableId){
78
+ let dom = document.getElementById(item.tableId);
79
+ if (dom){
80
+ dom.style.backgroundColor = this.colors[colorIndex]
81
+ }
82
+ }
83
+ })
84
+ setTimeout(() => {
85
+ this.$parent.scrollToParagraph('first')
86
+ },500)
87
+ },
88
+ },
89
+ watch:{
90
+ html_result:{
91
+ handler(){
92
+ if (this.html_result){
93
+ this.getHtml();
94
+ }
95
+ },
96
+ immediate:true
97
+ }
98
+ }
99
+ };
100
+ </script>
101
+
102
+ <style scoped lang="less">
103
+ .docView{
104
+ width: 100%;
105
+ flex: none;
106
+ box-sizing: border-box;
107
+ div{
108
+ position: relative;
109
+ }
110
+ /deep/img{
111
+ max-width: 100%;
112
+ }
113
+ }
114
114
  </style>