zydx-plus 1.35.590 → 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/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'),
|
|
@@ -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 = () => {
|