zydx-plus 1.35.576 → 1.35.578

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.576",
3
+ "version": "1.35.578",
4
4
  "description": "Vue.js",
5
5
  "main": "src/index.js",
6
6
  "files": [
@@ -2740,7 +2740,7 @@ let buttonNames = {
2740
2740
  }
2741
2741
  },
2742
2742
  resource_lesson_homework: {
2743
- actionName: '作业资源',
2743
+ actionName: '学习思考',
2744
2744
  buttonList: {
2745
2745
  0: {
2746
2746
  // headLevel: {
@@ -2752,7 +2752,7 @@ let buttonNames = {
2752
2752
  // },
2753
2753
  headLevel: {
2754
2754
  default: "resourceIndex",
2755
- resourceIndex: '作业题目',
2755
+ resourceIndex: '思考题目',
2756
2756
  pipeGuideAnalysis: '管导评析'
2757
2757
  },
2758
2758
  otherLevel: {
@@ -247,6 +247,9 @@ export default defineComponent({
247
247
  handler: async function (v) {
248
248
  await this.$nextTick();
249
249
  if (Array.isArray(v)) {
250
+ this.checkbox_state = Array.from({ length: this.data.length + 1 }, () => {
251
+ return false;
252
+ });
250
253
  for (const idx of v) {
251
254
  this.checkbox_state[idx] = true;
252
255
  }
@@ -818,6 +818,10 @@ export default {
818
818
  r.data.annex.active = true
819
819
  this.uploadAttData.push(r.data.annex)
820
820
  this.$emit('enclosureSuccess', r.data.annex, html2json(this.editor.getHTML()).child)
821
+ } else if (r.data) { // 学生端-生问生答-问答=提问详情及回答-实施回答的上传附件返回r.data
822
+ r.data.active = true
823
+ this.uploadAttData.push(r.data)
824
+ this.$emit('enclosureSuccess', r.data, html2json(this.editor.getHTML()).child)
821
825
  } else {
822
826
  file.active = true
823
827
  this.uploadAttData.push(file)
@@ -6,14 +6,22 @@
6
6
  <div class="subject-title" :class="{'padd': item.top !== 0}" v-if="item.subject">
7
7
  <input v-if="multipleShow" type="checkbox" :checked="item.checked" @change="checkboxChange($event,index)"
8
8
  name="check"/>
9
- <span :style="{'font-weight': titleCrude?700:'normal'}">{{ item.order ? item.order : index + 1 }}{{ item.order === ' ' ? '' : '.' }}<em
9
+ <span v-if="item.quesNumber" :style="{'font-weight': titleCrude?700:'normal'}">{{ item.quesNumber }}<em
10
10
  v-html="item.title"></em><em v-if="scoreShow">({{ item.score }}分)</em>
11
- <i class="subject-but" ref="subject">
12
- <!-- <b :style="{right: -item.right + 'px', top: item.top + 'px'}" ref="b"> -->
13
- <button class="sees-but" :disabled="it.disabled" v-for="(it) in item.customBut" :class="{'buts-actives theme-text': it.active&&it.butStart,'buts-disabled': it.disabled}" @click="customButTap(it,item)">{{ it.active? it.nameActive: it.name }}</button>
14
- <!-- </b> -->
15
- </i>
16
- </span>
11
+ <i class="subject-but" ref="subject">
12
+ <!-- <b :style="{right: -item.right + 'px', top: item.top + 'px'}" ref="b"> -->
13
+ <button class="sees-but" :disabled="it.disabled" v-for="(it) in item.customBut" :class="{'buts-actives theme-text': it.active&&it.butStart,'buts-disabled': it.disabled}" @click="customButTap(it,item)">{{ it.active? it.nameActive: it.name }}</button>
14
+ <!-- </b> -->
15
+ </i>
16
+ </span>
17
+ <span v-else :style="{'font-weight': titleCrude?700:'normal'}">{{ item.order ? item.order : index + 1 }}{{ item.order === ' ' ? '' : '.' }}<em
18
+ v-html="item.title"></em><em v-if="scoreShow">({{ item.score }}分)</em>
19
+ <i class="subject-but" ref="subject">
20
+ <!-- <b :style="{right: -item.right + 'px', top: item.top + 'px'}" ref="b"> -->
21
+ <button class="sees-but" :disabled="it.disabled" v-for="(it) in item.customBut" :class="{'buts-actives theme-text': it.active&&it.butStart,'buts-disabled': it.disabled}" @click="customButTap(it,item)">{{ it.active? it.nameActive: it.name }}</button>
22
+ <!-- </b> -->
23
+ </i>
24
+ </span>
17
25
  </div>
18
26
  </div>
19
27
  <div v-if="item.alist" class="subject-html" v-show="item.open">
package/src/index.js CHANGED
@@ -89,7 +89,7 @@ function install(app) {
89
89
  }
90
90
 
91
91
  export default {
92
- version: '1.35.576',
92
+ version: '1.35.578',
93
93
  install,
94
94
  Calendar,
95
95
  Message,