zydx-plus 1.32.226 → 1.32.227
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 +1 -1
- package/src/components/word/src/word.css +50 -1
- package/src/components/word/src/word.vue +28 -32
- package/src/index.js +1 -1
package/package.json
CHANGED
|
@@ -221,7 +221,7 @@ input[name='check'] {
|
|
|
221
221
|
}
|
|
222
222
|
.review{
|
|
223
223
|
padding-left: 2em;
|
|
224
|
-
|
|
224
|
+
box-sizing: border-box;
|
|
225
225
|
}
|
|
226
226
|
.review-title{
|
|
227
227
|
padding: 6px 0 4px 0;
|
|
@@ -238,3 +238,52 @@ input[name='check'] {
|
|
|
238
238
|
border: 0;
|
|
239
239
|
text-align: center;
|
|
240
240
|
}
|
|
241
|
+
.enclosure{
|
|
242
|
+
padding-left: 2em;
|
|
243
|
+
box-sizing: border-box;
|
|
244
|
+
}
|
|
245
|
+
.enclosure>p{
|
|
246
|
+
font-size: 16px;
|
|
247
|
+
font-weight: 700;
|
|
248
|
+
}
|
|
249
|
+
.enclosure-list{
|
|
250
|
+
margin: 5px 0 0 0;
|
|
251
|
+
height: 22px;
|
|
252
|
+
line-height: 22px;
|
|
253
|
+
}
|
|
254
|
+
.enclosure-list:after{
|
|
255
|
+
content: "";
|
|
256
|
+
clear: left;
|
|
257
|
+
display: block;
|
|
258
|
+
}
|
|
259
|
+
.enclosure-item:first-child{
|
|
260
|
+
width: calc(100% - 210px);
|
|
261
|
+
}
|
|
262
|
+
.enclosure-item:last-child{
|
|
263
|
+
width: 210px;
|
|
264
|
+
}
|
|
265
|
+
.enclosure-item{
|
|
266
|
+
height: 22px;
|
|
267
|
+
float: left;
|
|
268
|
+
}
|
|
269
|
+
.enclosure-item>span{
|
|
270
|
+
display: inline-block;
|
|
271
|
+
overflow: hidden;
|
|
272
|
+
text-overflow: ellipsis;
|
|
273
|
+
white-space: nowrap;
|
|
274
|
+
max-width: 100%;
|
|
275
|
+
box-sizing: border-box;
|
|
276
|
+
padding-right: 20px;
|
|
277
|
+
}
|
|
278
|
+
.en-but{
|
|
279
|
+
text-align: right;
|
|
280
|
+
}
|
|
281
|
+
.task{
|
|
282
|
+
display: flex;
|
|
283
|
+
justify-content: center;
|
|
284
|
+
font-size: 16px;
|
|
285
|
+
font-weight: 700;
|
|
286
|
+
}
|
|
287
|
+
.task span{
|
|
288
|
+
flex: 1;
|
|
289
|
+
}
|
|
@@ -2,8 +2,16 @@
|
|
|
2
2
|
<div :class="{paper: borderShow}">
|
|
3
3
|
<div class="parer-cont" ref="parer">
|
|
4
4
|
<div class="paper-choice" :class="{'array-ch': !styleText(item.testKey)}" v-for="(item,index) in value">
|
|
5
|
+
<div v-if="task" class="task">
|
|
6
|
+
<span>作业题目1:</span>
|
|
7
|
+
<div class="task-but">
|
|
8
|
+
<button class="but" :class="{'buts-actives': item.subject}" @click="subject(index)">{{ item.subject?'收起题目':'展开题目'}}</button>
|
|
9
|
+
<button class="but" :class="{'buts-actives': item.reasoning}" @click="openReasoning(index)">{{ item.reasoning?'收起回答':'展开回答'}}</button>
|
|
10
|
+
<button class="but" :class="{'buts-actives': item.review}" @click="review(index)">{{ item.review?'收起批阅':'展开批阅'}}</button>
|
|
11
|
+
</div>
|
|
12
|
+
</div>
|
|
5
13
|
<div class="subject">
|
|
6
|
-
<div class="subject-title">
|
|
14
|
+
<div class="subject-title" v-if="item.subject">
|
|
7
15
|
<input v-if="multipleShow" type="checkbox" :checked="item.checked" @change="checkboxChange($event,index)" name="check" />
|
|
8
16
|
<span>{{ item.order? item.order: index + 1 }}.<em v-html="item.title"></em><em v-if="scoreShow">({{ item.score }}分)</em>
|
|
9
17
|
<i class="subject-but" ref="subject">
|
|
@@ -27,8 +35,8 @@
|
|
|
27
35
|
<button class="but" :class="{'buts-actives': item.replace}" @click="statistics(index)">{{ item.replace?'收统计表':'统计表'}}</button>
|
|
28
36
|
</b>
|
|
29
37
|
<b :style="{right: -item.right + 'px', top: item.top + 'px'}" v-if="reasoning" ref="b">
|
|
30
|
-
<button class="but" :class="{'buts-actives': item.reasoning}" @click="openReasoning(index)">{{ item.reasoning?
|
|
31
|
-
<button class="but" :class="{'buts-actives': item.review}" @click="review(index)">{{ item.review?
|
|
38
|
+
<button class="but" :class="{'buts-actives': item.reasoning}" @click="openReasoning(index)">{{ item.reasoning?reasoningBut[0].startName:reasoningBut[0].endName}}</button>
|
|
39
|
+
<button class="but" :class="{'buts-actives': item.review}" @click="review(index)">{{ item.review?reasoningBut[1].startName:reasoningBut[1].endName}}</button>
|
|
32
40
|
</b>
|
|
33
41
|
</i>
|
|
34
42
|
</span>
|
|
@@ -39,10 +47,6 @@
|
|
|
39
47
|
<div class="subject-html-title">{{ titleText }}{{ ind + 1 }}</div>
|
|
40
48
|
<div class="subject-html-cont" v-html="it.annexContent"></div>
|
|
41
49
|
</div>
|
|
42
|
-
<div class="subject-student" v-if="item.reasoning&&item.stuAnswer">
|
|
43
|
-
<div class="reasoning">学生推理:</div>
|
|
44
|
-
<div class="subject-student-edi" v-for="(it,ind) in item.stuAnswer.answer" v-html="it"></div>
|
|
45
|
-
</div>
|
|
46
50
|
</div>
|
|
47
51
|
<div class="choice" v-if="item.testKey" v-show="item.open">
|
|
48
52
|
<div class="choice-box" v-for="(ts,ind) in item.testKey">
|
|
@@ -52,28 +56,6 @@
|
|
|
52
56
|
</label>
|
|
53
57
|
</div>
|
|
54
58
|
</div>
|
|
55
|
-
<div class="table review" v-if="item.review&&item.scoreList">
|
|
56
|
-
<div class="review-title">
|
|
57
|
-
<span>训练批阅:</span>
|
|
58
|
-
<button class="but" @click="completeReview(item.scoreList)">完成批阅</button>
|
|
59
|
-
</div>
|
|
60
|
-
<table border="0" cellspacing="0" cellpadding="0">
|
|
61
|
-
<tr>
|
|
62
|
-
<td class="tab-title">序号</td>
|
|
63
|
-
<td class="tab-title">批阅人</td>
|
|
64
|
-
<td class="tab-title">批阅得分</td>
|
|
65
|
-
<td class="tab-title">矫正得分</td>
|
|
66
|
-
<td class="tab-title">合计得分</td>
|
|
67
|
-
</tr>
|
|
68
|
-
<tr v-for="(it,ind) in item.scoreList">
|
|
69
|
-
<td>{{ ind + 1 }}</td>
|
|
70
|
-
<td>{{ it.stuName }}</td>
|
|
71
|
-
<td>{{ it.studentScore }}</td>
|
|
72
|
-
<td><input type="text" v-model="it.correctScore" placeholder="请输入分值" /> </td>
|
|
73
|
-
<td>{{ it.correctTeacher }}</td>
|
|
74
|
-
</tr>
|
|
75
|
-
</table>
|
|
76
|
-
</div>
|
|
77
59
|
<div class="table" v-if="item.replace&&item.itemList&&collapse&&item.quesType === '102_1'">
|
|
78
60
|
<table border="0" cellspacing="0" cellpadding="0">
|
|
79
61
|
<tr>
|
|
@@ -191,6 +173,17 @@ export default {
|
|
|
191
173
|
reasoning: {
|
|
192
174
|
type: Boolean,
|
|
193
175
|
default: false
|
|
176
|
+
},
|
|
177
|
+
reasoningBut: {
|
|
178
|
+
type: Array,
|
|
179
|
+
default: [
|
|
180
|
+
{startName: '收起推理',endName: '展开推理'},
|
|
181
|
+
{startName: '收起批阅',endName: '展开批阅'}
|
|
182
|
+
]
|
|
183
|
+
},
|
|
184
|
+
task: {
|
|
185
|
+
type: Boolean,
|
|
186
|
+
default: false
|
|
194
187
|
}
|
|
195
188
|
},
|
|
196
189
|
watch: {
|
|
@@ -205,6 +198,7 @@ export default {
|
|
|
205
198
|
item.replace = true
|
|
206
199
|
item.reasoning = true
|
|
207
200
|
item.review = true
|
|
201
|
+
item.subject = true
|
|
208
202
|
if(item.alist) {
|
|
209
203
|
item.alist.map(x => {
|
|
210
204
|
x.annexContent = json2html({node: "root",child: JSON.parse(x.annexContent)})
|
|
@@ -262,10 +256,10 @@ export default {
|
|
|
262
256
|
deep: true
|
|
263
257
|
}
|
|
264
258
|
},
|
|
265
|
-
emits: ['change','modify','del','changeAll','replaceData','choiceData','judgeAnswer','
|
|
259
|
+
emits: ['change','modify','del','changeAll','replaceData','choiceData','judgeAnswer','openReasoning','review','subject'],
|
|
266
260
|
methods: {
|
|
267
|
-
|
|
268
|
-
this
|
|
261
|
+
subject(i) {
|
|
262
|
+
this.data[i].subject = !this.data[i].subject
|
|
269
263
|
},
|
|
270
264
|
diffLeveNum(v) {
|
|
271
265
|
if(v === '1') return '简单'
|
|
@@ -273,9 +267,11 @@ export default {
|
|
|
273
267
|
if(v === '3') return '困难'
|
|
274
268
|
},
|
|
275
269
|
openReasoning(i) {
|
|
270
|
+
this.$emit('openReasoning', this.data[i].reasoning)
|
|
276
271
|
this.data[i].reasoning = !this.data[i].reasoning
|
|
277
272
|
},
|
|
278
273
|
review(i) {
|
|
274
|
+
this.$emit('review', this.data[i].review )
|
|
279
275
|
this.data[i].review = !this.data[i].review
|
|
280
276
|
},
|
|
281
277
|
openOption(i) {
|