zydx-plus 1.32.279 → 1.32.281

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.32.279",
3
+ "version": "1.32.281",
4
4
  "description": "Vue.js",
5
5
  "main": "src/index.js",
6
6
  "files": [
@@ -165,6 +165,10 @@ export default {
165
165
  this.nodeList = []
166
166
  this.recursionNode(node.catalogId)
167
167
  this.nodeList = this.nodeList.reverse()
168
+ // 资源去掉节级
169
+ if (this .headerType === 0) {
170
+ this.nodeList = this.nodeList.filter(item => item.level !== 2)
171
+ }
168
172
  },
169
173
  // 递归节点
170
174
  recursionNode: function (catalogId) {
@@ -2180,19 +2180,19 @@ let buttonNames = {
2180
2180
  headLevel: {
2181
2181
  default: "demand",
2182
2182
  demand: '学习要求',
2183
- resourceIndex: '虚仿项目',
2183
+ resourceIndex: '学习任务',
2184
2184
  review: '学习点评',
2185
2185
  analyse: '学习分析',
2186
2186
  countermeasure: '教学对策'
2187
2187
  },
2188
2188
  otherLevel: {
2189
2189
  default: "singletonClass",
2190
- singletonClass: this.getCurrentPrefix(item) + '项目',
2191
- allClass: this.getPrefix(item) + '项目'
2190
+ singletonClass: this.getCurrentPrefix(item) + '任务',
2191
+ allClass: this.getPrefix(item) + '任务'
2192
2192
  },
2193
2193
  lowLevel: {
2194
2194
  default: "singletonClass",
2195
- singletonClass: this.getCurrentPrefix(item) + '项目'
2195
+ singletonClass: this.getCurrentPrefix(item) + '任务'
2196
2196
  }
2197
2197
  }
2198
2198
  }
@@ -2394,7 +2394,7 @@ let buttonNames = {
2394
2394
  0: {
2395
2395
  headLevel: {
2396
2396
  default: "demand",
2397
- demand: '考试须知',
2397
+ demand: '考试要求',
2398
2398
  resourceIndex: '考试试题',
2399
2399
  analyse: '考试分析',
2400
2400
  countermeasure: '教学对策'
@@ -42,9 +42,9 @@
42
42
  <p :style="enclosureStyle">{{ enclosureText }}</p>
43
43
  <div class="enclosure-list" v-for="(item,index) in uploadAttData">
44
44
  <div class="enclosure-item">
45
- <span v-if="item.name">{{ numberStyle? `【${index + 1}】`: index + 1 }}. {{ item.name }}</span>
46
- <span v-if="item.annexName">{{ numberStyle? `【${index + 1}】`: index + 1 }}. {{ item.annexName }}</span>
47
- <span v-if="item.fileName">{{ numberStyle? `【${index + 1}】`: index + 1 }}. {{ item.fileName }}</span>
45
+ <span v-if="item.name">{{ numberStyle? `【${index + 1}】`: `${index + 1}.` }} {{ item.name }}</span>
46
+ <span v-if="item.annexName">{{ numberStyle? `【${index + 1}】`: `${index + 1}.` }} {{ item.annexName }}</span>
47
+ <span v-if="item.fileName">{{ numberStyle? `【${index + 1}】`: `${index + 1}.` }} {{ item.fileName }}</span>
48
48
  </div>
49
49
  <div class="enclosure-item en-but">
50
50
  <div style="display: inline-block; height: 21px;">
@@ -253,8 +253,8 @@ export default {
253
253
  // 强制监听data变化
254
254
  data: {
255
255
  handler: function (e, oldVal) {
256
- this.editor?.commands.setContent(json2html({node: "root", child: (e.html === undefined || null) ? [] : e.html}))
257
- this.uploadAttData = (e.enclosure === undefined) ? [] : this.enclosureAction(e.enclosure)
256
+ this.editor?.commands.setContent(json2html({node: "root", child: (e.html === undefined || e.html === null) ? [] : e.html}))
257
+ this.uploadAttData = (e.enclosure === undefined || e.enclosure === null) ? [] : this.enclosureAction(e.enclosure)
258
258
  },
259
259
  deep: true
260
260
  },
@@ -63,7 +63,7 @@ export default {
63
63
  },
64
64
  methods: {
65
65
  splitHtml(v) {
66
- if(v === '') return ''
66
+ if(v === '' || v === null) return ''
67
67
  const arr = v.split('<br>')
68
68
  let html = ''
69
69
  arr.forEach(item => {
package/src/index.js CHANGED
@@ -79,7 +79,7 @@ function install(app) {
79
79
  }
80
80
 
81
81
  export default {
82
- version: '1.32.279',
82
+ version: '1.32.281',
83
83
  install,
84
84
  Calendar,
85
85
  Message,