zydx-plus 1.33.439 → 1.33.441

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.33.439",
3
+ "version": "1.33.441",
4
4
  "description": "Vue.js",
5
5
  "main": "src/index.js",
6
6
  "files": [
@@ -2850,6 +2850,7 @@ let buttonNames = {
2850
2850
  headLevel: {
2851
2851
  default: "demand",
2852
2852
  demand: '阅读要求',
2853
+ readResource: '阅读资源',
2853
2854
  review: '阅读点评',
2854
2855
  analyse: '阅读分析',
2855
2856
  countermeasure: this.getJobType() === 'resource_guidance' ? '指导对策' : '教学对策',
@@ -1002,7 +1002,7 @@ export default {
1002
1002
  html: {
1003
1003
  handler: function (e, oldVal) {
1004
1004
  this.init = false
1005
- if (e.sign?.tag === 'sign') {
1005
+ if (e&&e.sign?.tag === 'sign') {
1006
1006
  this.signMenuShow = true
1007
1007
  // e.shift()
1008
1008
  }
@@ -409,21 +409,44 @@ export default {
409
409
  const xhr = new XMLHttpRequest()
410
410
  let formData = new FormData();
411
411
  formData.append('file', file);
412
- // xhr.open('POST', 'https://192.168.8.81:8081/zydx/latex/get')
413
- // xhr.setRequestHeader('Authorization', '80f6a0c2-eb43-4f4a-8f3e-ab3bf7b447be')
412
+ // xhr.open('POST', 'http://192.168.15.124:8888/zydx/latex/get')
413
+ // xhr.setRequestHeader('Authorization', '35463cf0-bdd6-4884-b9ff-89d8376f0c96')
414
414
  xhr.open('POST', '/zydx/latex/get')
415
415
  xhr.setRequestHeader('Authorization', token)
416
416
  this.error = true
417
417
  xhr.onreadystatechange = () => {
418
418
  if (xhr.readyState === 4) {
419
419
  if (xhr.status === 200) {
420
- if(this.url) {
421
- rl(`${this.url}${JSON.parse(xhr.responseText).data}`)
420
+ const data = JSON.parse(xhr.responseText)
421
+ if(data.code === '200') {
422
+ if(this.url) {
423
+ rl(`${this.url}${data.data}`)
424
+ }else {
425
+ this.uploadImage.customInsert(data, (r) => {
426
+ rl(r)
427
+ })
428
+ }
422
429
  }else {
423
- this.uploadImage.customInsert(JSON.parse(xhr.responseText), (r) => {
424
- rl(r)
430
+ Mess({
431
+ type: 'text',
432
+ cancelShow: false,
433
+ promptContent: '识别失败'
434
+ }).then((res) => {
435
+ console.log('确认')
436
+ }).catch(() => {
437
+ console.log('取消')
425
438
  })
426
439
  }
440
+ }else {
441
+ Mess({
442
+ type: 'text',
443
+ cancelShow: false,
444
+ promptContent: '识别失败'
445
+ }).then((res) => {
446
+ console.log('确认')
447
+ }).catch(() => {
448
+ console.log('取消')
449
+ })
427
450
  }
428
451
  }
429
452
  }
package/src/index.js CHANGED
@@ -83,7 +83,7 @@ function install(app) {
83
83
  }
84
84
 
85
85
  export default {
86
- version: '1.33.439',
86
+ version: '1.33.441',
87
87
  install,
88
88
  Calendar,
89
89
  Message,