zydx-plus 1.33.371 → 1.33.373

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.371",
3
+ "version": "1.33.373",
4
4
  "description": "Vue.js",
5
5
  "main": "src/index.js",
6
6
  "files": [
@@ -1347,6 +1347,7 @@ let buttonNames = {
1347
1347
  singletonClass: '实施检测',
1348
1348
  score: '检测成绩',
1349
1349
  analysis: '统计分析',
1350
+ assessment: '素养评估',
1350
1351
  power: '学习动力'
1351
1352
  }
1352
1353
  },
@@ -1389,6 +1390,7 @@ let buttonNames = {
1389
1390
  singletonClass: '思政主题',
1390
1391
  score: '思政成绩',
1391
1392
  analysis: '统计分析',
1393
+ assessment: '素养评估',
1392
1394
  power: '学习动力'
1393
1395
  }
1394
1396
  }
@@ -1417,6 +1419,7 @@ let buttonNames = {
1417
1419
  teacherReview: '教师评价',
1418
1420
  studentReview: '同学互评',
1419
1421
  analysis: '统计分析',
1422
+ assessment: '素养评估',
1420
1423
  power: '学习动力',
1421
1424
  review: '评价工作'
1422
1425
  },
@@ -1443,6 +1446,7 @@ let buttonNames = {
1443
1446
  singletonClass: '教师追问',
1444
1447
  score: '学习成绩',
1445
1448
  analysis: '统计分析',
1449
+ assessment: '素养评估',
1446
1450
  power: '学习动力'
1447
1451
  },
1448
1452
  }
@@ -1468,6 +1472,7 @@ let buttonNames = {
1468
1472
  singletonClass: '教师提问',
1469
1473
  score: '回答成绩',
1470
1474
  analysis: '统计分析',
1475
+ assessment: '素养评估',
1471
1476
  power: '学习动力'
1472
1477
  }
1473
1478
  }
@@ -1496,6 +1501,7 @@ let buttonNames = {
1496
1501
  studentReview: '同学互评',
1497
1502
  btnIndex2: '教师答疑',
1498
1503
  analysis: '统计分析',
1504
+ assessment: '素养评估',
1499
1505
  power: '学习动力',
1500
1506
  review: '评价工作'
1501
1507
  },
@@ -1524,6 +1530,7 @@ let buttonNames = {
1524
1530
  teacherReview: '教师评价',
1525
1531
  studentReview: '同学互评',
1526
1532
  analysis: '统计分析',
1533
+ assessment: '素养评估',
1527
1534
  power: '学习动力',
1528
1535
  review: '评价工作'
1529
1536
  },
@@ -1550,6 +1557,7 @@ let buttonNames = {
1550
1557
  singletonClass: '讨论题目',
1551
1558
  score: '讨论成绩',
1552
1559
  analysis: '统计分析',
1560
+ assessment: '素养评估',
1553
1561
  power: '学习动力'
1554
1562
  },
1555
1563
  }
@@ -1575,6 +1583,7 @@ let buttonNames = {
1575
1583
  singletonClass: '风暴题目',
1576
1584
  score: '风暴成绩',
1577
1585
  analysis: '统计分析',
1586
+ assessment: '素养评估',
1578
1587
  power: '学习动力'
1579
1588
  },
1580
1589
  }
@@ -1600,6 +1609,7 @@ let buttonNames = {
1600
1609
  singletonClass: '实施训练',
1601
1610
  score: '训练成绩',
1602
1611
  analysis: '统计分析',
1612
+ assessment: '素养评估',
1603
1613
  power: '学习动力'
1604
1614
  },
1605
1615
  },
@@ -1642,6 +1652,7 @@ let buttonNames = {
1642
1652
  singletonClass: '案析题目',
1643
1653
  score: '案析成绩',
1644
1654
  analysis: '统计分析',
1655
+ assessment: '素养评估',
1645
1656
  power: '学习动力'
1646
1657
  },
1647
1658
  }
@@ -1667,6 +1678,7 @@ let buttonNames = {
1667
1678
  singletonClass: this.getCurrentPrefix(item) + '学习',
1668
1679
  score: '学习成绩',
1669
1680
  analysis: '统计分析',
1681
+ assessment: '素养评估',
1670
1682
  power: '学习动力'
1671
1683
  },
1672
1684
  }
@@ -1692,6 +1704,7 @@ let buttonNames = {
1692
1704
  singletonClass: '学习任务',
1693
1705
  score: '学习成绩',
1694
1706
  analysis: '统计分析',
1707
+ assessment: '素养评估',
1695
1708
  power: '学习动力'
1696
1709
  },
1697
1710
  }
@@ -1720,6 +1733,7 @@ let buttonNames = {
1720
1733
  teacherReview: '教师评价',
1721
1734
  studentReview: '同学互评',
1722
1735
  analysis: '统计分析',
1736
+ assessment: '素养评估',
1723
1737
  power: '学习动力',
1724
1738
  review: '评价工作'
1725
1739
  },
@@ -1746,6 +1760,7 @@ let buttonNames = {
1746
1760
  singletonClass: '作业任务',
1747
1761
  score: '作业成绩',
1748
1762
  analysis: '统计分析',
1763
+ assessment: '素养评估',
1749
1764
  power: '学习动力'
1750
1765
  },
1751
1766
  }
@@ -1771,6 +1786,7 @@ let buttonNames = {
1771
1786
  singletonClass: '聆听题目',
1772
1787
  score: '聆听成绩',
1773
1788
  analysis: '统计分析',
1789
+ assessment: '素养评估',
1774
1790
  power: '学习动力'
1775
1791
  },
1776
1792
  }
@@ -1796,6 +1812,7 @@ let buttonNames = {
1796
1812
  singletonClass: '阅读任务',
1797
1813
  score: '阅读成绩',
1798
1814
  analysis: '统计分析',
1815
+ assessment: '素养评估',
1799
1816
  power: '学习动力'
1800
1817
  },
1801
1818
  }
@@ -1820,6 +1837,7 @@ let buttonNames = {
1820
1837
  singletonClass: '写作任务',
1821
1838
  score: '写作成绩',
1822
1839
  analysis: '统计分析',
1840
+ assessment: '素养评估',
1823
1841
  power: '学习动力'
1824
1842
  },
1825
1843
  }
@@ -1845,6 +1863,7 @@ let buttonNames = {
1845
1863
  singletonClass: '实践项目',
1846
1864
  score: '实践成绩',
1847
1865
  analysis: '统计分析',
1866
+ assessment: '素养评估',
1848
1867
  power: '学习动力'
1849
1868
  },
1850
1869
  }
@@ -1870,6 +1889,7 @@ let buttonNames = {
1870
1889
  singletonClass: '创新主题',
1871
1890
  score: '创新成绩',
1872
1891
  analysis: '统计分析',
1892
+ assessment: '素养评估',
1873
1893
  power: '学习动力'
1874
1894
  },
1875
1895
 
@@ -1990,6 +2010,7 @@ let buttonNames = {
1990
2010
  singletonClass: '学习项目',
1991
2011
  score: '项目成绩',
1992
2012
  analysis: '统计分析',
2013
+ assessment: '素养评估',
1993
2014
  power: '学习动力'
1994
2015
  },
1995
2016
  }
@@ -2015,6 +2036,7 @@ let buttonNames = {
2015
2036
  singletonClass: '实验项目',
2016
2037
  score: '实验成绩',
2017
2038
  analysis: '统计分析',
2039
+ assessment: '素养评估',
2018
2040
  power: '学习动力'
2019
2041
  },
2020
2042
  }
@@ -114,8 +114,10 @@
114
114
  import Select from '../../select/src/select.vue'
115
115
  import Coloring from '../../coloring/src/coloring.vue'
116
116
  import MindMap from "simple-mind-map";
117
+ import TouchEvent from 'simple-mind-map/src/plugins/TouchEvent.js'
117
118
  import AssociativeLine from 'simple-mind-map/src/plugins/AssociativeLine.js'
118
119
  MindMap.usePlugin(AssociativeLine)
120
+ MindMap.usePlugin(TouchEvent)
119
121
 
120
122
  export default {
121
123
  components: {Select, Coloring},
@@ -197,7 +199,8 @@ export default {
197
199
  },
198
200
  "children": []
199
201
  },
200
- fullShow: true
202
+ fullShow: true,
203
+ layoutList: ''
201
204
  }
202
205
  },
203
206
  props: {
@@ -228,11 +231,12 @@ export default {
228
231
  immediate: true
229
232
  },
230
233
  data: {
231
- handler: function (val, oldVal) {
234
+ handler: function (val) {
232
235
  if(Object.keys(val).length === 0) {
233
236
  this.mindMap?.setData(this.defaultData)
234
237
  }else {
235
- this.mindMap?.setData(val)
238
+ this.mindMap?.setData(this.msgFun(val))
239
+ this.mindMap?.setLayout(val.layoutList || 'logicalStructure')
236
240
  }
237
241
  },
238
242
  immediate: true
@@ -281,8 +285,8 @@ export default {
281
285
  mounted() {
282
286
  this.id = this.randomId()
283
287
  setTimeout(() => {
284
- this.init()
285
- }, 0)
288
+ this.init()
289
+ },0)
286
290
  window.onresize = () => {
287
291
  if (!document.fullscreenElement) {
288
292
  this.fullShow = true
@@ -296,13 +300,13 @@ export default {
296
300
  return id.replace(/[0-9]/g, '')
297
301
  },
298
302
  fullScreen(element) {
299
- if (element.requestFullScreen) {
300
- element.requestFullScreen()
301
- } else if (element.webkitRequestFullScreen) {
302
- element.webkitRequestFullScreen()
303
- } else if (element.mozRequestFullScreen) {
304
- element.mozRequestFullScreen()
305
- }
303
+ if (element.requestFullScreen) {
304
+ element.requestFullScreen()
305
+ } else if (element.webkitRequestFullScreen) {
306
+ element.webkitRequestFullScreen()
307
+ } else if (element.mozRequestFullScreen) {
308
+ element.mozRequestFullScreen()
309
+ }
306
310
  },
307
311
  cancelFullscreen() {
308
312
  if (document.exitFullscreen) {
@@ -324,6 +328,13 @@ export default {
324
328
  this.fullShow = false
325
329
  this.fullScreen(this.$refs[this.id])
326
330
  },
331
+ msgFun(e) {
332
+ if(e.msg) {
333
+ return Object.keys(e.msg).length === 0 ? this.defaultData : e.msg
334
+ }else {
335
+ return Object.keys(e).length === 0 ? this.defaultData : e
336
+ }
337
+ },
327
338
  // 初始化
328
339
  init() {
329
340
  const that = this
@@ -331,13 +342,13 @@ export default {
331
342
  el: document.getElementById(that.id),
332
343
  enableFreeDrag: false, // 是否开启自由拖拽
333
344
  enableNodeTransitionMove: false, // 是否开启节点过渡动画
334
- layout: 'logicalStructure', // 节点布局方式
345
+ layout: that.data.layoutList || 'logicalStructure', // 节点布局方式
335
346
  maxHistoryCount: 100, // 最大历史记录数
336
347
  maxNodeCacheCount: 100, // 最大节点缓存数
337
- data: Object.keys(that.data).length === 0 ? that.defaultData : that.data
348
+ data: that.msgFun(that.data)
338
349
  });
339
350
  this.mindMap.setMode(this.readOnly ? 'readonly' : 'edit')
340
- this.mindMap.on('node_active', (node, activeNodeList) => {
351
+ this.mindMap.on('node_active', (node) => {
341
352
  this.mindShow = node === null;
342
353
  })
343
354
  this.mindMap.on('back_forward', (index, len) => {
@@ -393,22 +404,25 @@ export default {
393
404
  this.top = parent
394
405
  },
395
406
  structure() {
396
- let layoutList = 'logicalStructure'
407
+ this.layoutList = 'logicalStructure'
397
408
  const layout = this.mindMap.getLayout()
398
409
  if (layout === 'mindMap') {
399
- layoutList = 'organizationStructure'
410
+ this.layoutList = 'organizationStructure'
400
411
  } else if (layout === 'organizationStructure') {
401
- layoutList = 'logicalStructure'
412
+ this.layoutList = 'logicalStructure'
402
413
  } else {
403
- layoutList = 'mindMap'
414
+ this.layoutList = 'mindMap'
404
415
  }
405
- this.mindMap.setLayout(layoutList)
416
+ this.mindMap.setLayout(this.layoutList)
406
417
  },
407
418
  // 保存
408
419
  preservation() {
409
420
  let that = this
410
421
  that.$emit('preservation', {
411
- data: that.mindMap.getData(),
422
+ data: {
423
+ msg: that.mindMap.getData(),
424
+ layoutList: this.layoutList
425
+ },
412
426
  url: ''
413
427
  })
414
428
  // that.mindMap.doExport.png().then((data) => {
package/src/index.js CHANGED
@@ -83,7 +83,7 @@ function install(app) {
83
83
  }
84
84
 
85
85
  export default {
86
- version: '1.33.371',
86
+ version: '1.33.373',
87
87
  install,
88
88
  Calendar,
89
89
  Message,