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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zydx-plus",
3
- "version": "1.35.589",
3
+ "version": "1.35.591",
4
4
  "description": "Vue.js",
5
5
  "main": "src/index.js",
6
6
  "files": [
@@ -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 {
@@ -2,7 +2,7 @@ li{list-style-type:none;}
2
2
  .cale{
3
3
  position: fixed;
4
4
  width: 300px;
5
- z-index: 100;
5
+ z-index: 20000;
6
6
  background-color: #fff;
7
7
  box-shadow: 0 0 4px 1px #ccc;
8
8
  border-radius: 5px;
@@ -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: '/zydx/voice/getBaiduToken',
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
- },100)
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
- },100)
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: '/zydx/open/function/lessonResource/editOfficeFile',
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: '/zydx/lessonResource/upload/img',
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: '/zydx/fileanex/uploadfile',
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', '/zydx/voice/getVoideKey')
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', '/zydx/voice/getVoideKey')
720
+ xhr.open('GET', `/${this.apiPrefix}/voice/getVoideKey`)
717
721
  xhr.setRequestHeader('Authorization', token)
718
722
  this.error = true
719
723
  xhr.onreadystatechange = () => {
@@ -148,7 +148,7 @@ export default {
148
148
  .year{
149
149
  position: fixed;
150
150
  width: 300px;
151
- z-index: 100;
151
+ z-index: 20000;
152
152
  background-color: #fff;
153
153
  box-shadow: 0 0 4px 1px #ccc;
154
154
  border-radius: 5px;
package/src/index.js CHANGED
@@ -89,7 +89,7 @@ function install(app) {
89
89
  }
90
90
 
91
91
  export default {
92
- version: '1.35.589',
92
+ version: '1.35.591',
93
93
  install,
94
94
  Calendar,
95
95
  Message,