zydx-plus 1.35.589 → 1.35.591
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 +1 -1
- package/src/components/buttonGroup/src/buttonGroup.vue +0 -7
- package/src/components/calendar/src/Calendar.css +1 -1
- package/src/components/chat/src/chat.vue +5 -1
- package/src/components/dragPopup/src/dragPopup.vue +2 -1
- package/src/components/dragPopup2/src/dragPopup.vue +3 -3
- package/src/components/editor/src/editor.vue +9 -5
- package/src/components/editor2/src/editor.vue +6 -2
- package/src/components/year/src/year.vue +1 -1
- package/src/index.js +1 -1
package/package.json
CHANGED
|
@@ -242,21 +242,14 @@ export default defineComponent({
|
|
|
242
242
|
border: none;
|
|
243
243
|
}
|
|
244
244
|
|
|
245
|
-
<<<<<<< .mine
|
|
246
|
-
.z-button.active {
|
|
247
|
-
/* color: #00ff00 !important; */
|
|
248
|
-
}
|
|
249
|
-
||||||| .r51551
|
|
250
245
|
.z-button.active {
|
|
251
246
|
color: #00ff00 !important;
|
|
252
247
|
}
|
|
253
|
-
=======
|
|
254
248
|
/*
|
|
255
249
|
*/
|
|
256
250
|
/* .z-button.textActivep {
|
|
257
251
|
color: rgba(75, 12, 119, 1) !important;
|
|
258
252
|
} */
|
|
259
|
-
>>>>>>> .r52223
|
|
260
253
|
|
|
261
254
|
|
|
262
255
|
.z-button:disabled {
|
|
@@ -114,6 +114,10 @@ export default {
|
|
|
114
114
|
}
|
|
115
115
|
},
|
|
116
116
|
props: {
|
|
117
|
+
apiPrefix: {
|
|
118
|
+
type: String,
|
|
119
|
+
default: 'zydx'
|
|
120
|
+
},
|
|
117
121
|
title: {
|
|
118
122
|
type: String,
|
|
119
123
|
default: 'AI助手'
|
|
@@ -345,7 +349,7 @@ export default {
|
|
|
345
349
|
},
|
|
346
350
|
async getAccessToken(v) {
|
|
347
351
|
return axios({
|
|
348
|
-
url:
|
|
352
|
+
url: `/${this.apiPrefix}/voice/getBaiduToken`,
|
|
349
353
|
method: 'post',
|
|
350
354
|
headers: {
|
|
351
355
|
'Authorization': localStorage.getItem('sessionId') || sessionStorage.getItem('sessionId'),
|
|
@@ -237,6 +237,7 @@ export default {
|
|
|
237
237
|
this.reducePop()
|
|
238
238
|
this.state = false
|
|
239
239
|
this.$emit('enlarge', this.state)
|
|
240
|
+
this.draggableState.draggable({enabled: true})
|
|
240
241
|
}
|
|
241
242
|
},
|
|
242
243
|
// 全屏
|
|
@@ -427,7 +428,7 @@ export default {
|
|
|
427
428
|
left: this.x,
|
|
428
429
|
top: this.y
|
|
429
430
|
})
|
|
430
|
-
},
|
|
431
|
+
},200)
|
|
431
432
|
}
|
|
432
433
|
this.$emit('enlarge', this.state)
|
|
433
434
|
},
|
|
@@ -244,6 +244,7 @@ export default {
|
|
|
244
244
|
this.reducePop()
|
|
245
245
|
this.state = false
|
|
246
246
|
this.$emit('enlarge', this.state)
|
|
247
|
+
this.draggableState.draggable({enabled: true})
|
|
247
248
|
}
|
|
248
249
|
},
|
|
249
250
|
// 全屏
|
|
@@ -299,13 +300,13 @@ export default {
|
|
|
299
300
|
}
|
|
300
301
|
})
|
|
301
302
|
sessionStorage.setItem('pop', JSON.stringify(pop))
|
|
303
|
+
|
|
302
304
|
},
|
|
303
305
|
disconnect() {
|
|
304
306
|
this.$emit('dragStatus')
|
|
305
307
|
},
|
|
306
308
|
init() {
|
|
307
309
|
let that = this
|
|
308
|
-
console.log(window.devicePixelRatio)
|
|
309
310
|
if(this.fixedStart) {
|
|
310
311
|
if(!this.isInitShowBottomRight) {
|
|
311
312
|
const wid = document.getElementById('app').offsetWidth
|
|
@@ -437,7 +438,7 @@ export default {
|
|
|
437
438
|
left: this.x,
|
|
438
439
|
top: this.y
|
|
439
440
|
})
|
|
440
|
-
},
|
|
441
|
+
},200)
|
|
441
442
|
}
|
|
442
443
|
this.$emit('enlarge', this.state)
|
|
443
444
|
},
|
|
@@ -592,7 +593,6 @@ export default {
|
|
|
592
593
|
opacity: 1;
|
|
593
594
|
}
|
|
594
595
|
}
|
|
595
|
-
|
|
596
596
|
.drag-pop {
|
|
597
597
|
position: fixed;
|
|
598
598
|
/* top: 0;
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
</div>
|
|
66
66
|
</div>
|
|
67
67
|
</div>
|
|
68
|
-
<zydx-chat v-model='isShowAi'></zydx-chat>
|
|
68
|
+
<zydx-chat v-model='isShowAi' :apiPrefix="apiPrefix"></zydx-chat>
|
|
69
69
|
<div :class="[{'editor-content-show': !editableShow}, `editor-content-${refSrc}`]" class="editor-content">
|
|
70
70
|
<div class="editing">
|
|
71
71
|
<div v-if="signMenuShow" class="editing-header">
|
|
@@ -857,6 +857,10 @@ export default {
|
|
|
857
857
|
}
|
|
858
858
|
},
|
|
859
859
|
props: {
|
|
860
|
+
apiPrefix: {
|
|
861
|
+
type: String,
|
|
862
|
+
default: 'zydx'
|
|
863
|
+
},
|
|
860
864
|
isShowAiTool: {
|
|
861
865
|
type: Boolean,
|
|
862
866
|
default: true
|
|
@@ -893,7 +897,7 @@ export default {
|
|
|
893
897
|
headers: {
|
|
894
898
|
Authorization: localStorage.getItem("remember") === "1" ? localStorage.getItem('sessionId') : sessionStorage.getItem('sessionId')
|
|
895
899
|
},
|
|
896
|
-
server:
|
|
900
|
+
server: `/${this.apiPrefix}/open/function/lessonResource/editOfficeFile`,
|
|
897
901
|
// server: '/zydx/lessonResource/editOfficeFile',
|
|
898
902
|
}
|
|
899
903
|
}
|
|
@@ -902,7 +906,7 @@ export default {
|
|
|
902
906
|
type: Object,
|
|
903
907
|
default: () => {
|
|
904
908
|
return {
|
|
905
|
-
server:
|
|
909
|
+
server: `/${this.apiPrefix}/lessonResource/upload/img`,
|
|
906
910
|
headers: {
|
|
907
911
|
Authorization: localStorage.getItem("remember") === "1" ? localStorage.getItem('sessionId') : sessionStorage.getItem('sessionId')
|
|
908
912
|
},
|
|
@@ -921,7 +925,7 @@ export default {
|
|
|
921
925
|
type: Object,
|
|
922
926
|
default: () => {
|
|
923
927
|
return {
|
|
924
|
-
server:
|
|
928
|
+
server: `/${this.apiPrefix}/fileanex/uploadfile`,
|
|
925
929
|
fieldName: 'file',
|
|
926
930
|
maxFileSize: 100 * 1024 * 1024,
|
|
927
931
|
meta: {},
|
|
@@ -4021,7 +4025,7 @@ export default {
|
|
|
4021
4025
|
const xhr = new XMLHttpRequest()
|
|
4022
4026
|
// xhr.open('GET', 'http://192.168.15.124:8888/zydx/voice/getDesKeyId')
|
|
4023
4027
|
// xhr.setRequestHeader('Authorization', '4a7ab02c-11b7-420f-bf85-ac5549b2aa81')
|
|
4024
|
-
xhr.open('GET',
|
|
4028
|
+
xhr.open('GET', `/${this.apiPrefix}/voice/getVoideKey`)
|
|
4025
4029
|
xhr.setRequestHeader('Authorization', token)
|
|
4026
4030
|
this.error = true
|
|
4027
4031
|
xhr.onreadystatechange = () => {
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
<button v-if="butText !== '' && readOnly" class="buts" @click="complete">{{ butText }}</button>
|
|
31
31
|
</div>
|
|
32
32
|
</div>
|
|
33
|
-
<zydx-chat v-model='isShowAi'></zydx-chat>
|
|
33
|
+
<zydx-chat v-model='isShowAi' :apiPrefix="apiPrefix"></zydx-chat>
|
|
34
34
|
<div class="ed-cont" :style="heightStyleCont">
|
|
35
35
|
<div :style="{'border': (borderShow)? '1px solid #ccc': '0'}" v-if="editorShow">
|
|
36
36
|
<editor-content @paste.native.capture.prevent="preventPaste" ref="editorRef" class="editor" :editor="editor"
|
|
@@ -231,6 +231,10 @@ export default {
|
|
|
231
231
|
// document.removeEventListener('mouseup', this.getSelectedText)
|
|
232
232
|
},
|
|
233
233
|
props: {
|
|
234
|
+
apiPrefix: {
|
|
235
|
+
type: String,
|
|
236
|
+
default: 'zydx'
|
|
237
|
+
},
|
|
234
238
|
isShowWhiteboarde: {
|
|
235
239
|
type: Boolean,
|
|
236
240
|
default: true
|
|
@@ -713,7 +717,7 @@ export default {
|
|
|
713
717
|
const xhr = new XMLHttpRequest()
|
|
714
718
|
// xhr.open('GET', 'http://192.168.15.124:8888/zydx/voice/getDesKeyId')
|
|
715
719
|
// xhr.setRequestHeader('Authorization', '7a129186-7e51-431d-b965-735dfed8e459')
|
|
716
|
-
xhr.open('GET',
|
|
720
|
+
xhr.open('GET', `/${this.apiPrefix}/voice/getVoideKey`)
|
|
717
721
|
xhr.setRequestHeader('Authorization', token)
|
|
718
722
|
this.error = true
|
|
719
723
|
xhr.onreadystatechange = () => {
|