zydx-plus 1.30.173 → 1.30.175
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
|
@@ -5,8 +5,9 @@
|
|
|
5
5
|
<template>
|
|
6
6
|
<div class="lesson_template_main_div">
|
|
7
7
|
<div v-if="topText !== ''" class="title_box display_flex">
|
|
8
|
-
<div class="title_box_text">{{topText}}</div>
|
|
8
|
+
<div class="title_box_text" :style="{'padding-left':readonly ? '0px' : '60px' }">{{topText}}</div>
|
|
9
9
|
<div class="z-button" @click="clearSelectAction" v-if="!readonly">清空已选</div>
|
|
10
|
+
|
|
10
11
|
</div>
|
|
11
12
|
<div class="main_center_div" :class="!readonly?'select_margin':''">
|
|
12
13
|
<template v-if="selectActionSort.length != 0">
|
|
@@ -242,7 +243,7 @@
|
|
|
242
243
|
}
|
|
243
244
|
.title_box_text {
|
|
244
245
|
width: 100%;
|
|
245
|
-
padding-left: 60px;
|
|
246
|
+
/* padding-left: 60px; */
|
|
246
247
|
box-sizing: border-box;
|
|
247
248
|
}
|
|
248
249
|
</style>
|
|
@@ -3,7 +3,7 @@
|
|
|
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 data">
|
|
5
5
|
<div class="subject">
|
|
6
|
-
<div class="subject-title"
|
|
6
|
+
<div class="subject-title">
|
|
7
7
|
<label>
|
|
8
8
|
<input v-if="multipleShow" type="checkbox" :checked="item.checked" @change="checkboxChange($event,index)" name="check" />
|
|
9
9
|
<span>{{ item.order }}.<em v-html="item.title"></em></span>
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
<button class="but" @click="del(item)">删除</button>
|
|
15
15
|
</div>
|
|
16
16
|
</div>
|
|
17
|
-
<div class="choice">
|
|
17
|
+
<div class="choice" v-if="item.testKey">
|
|
18
18
|
<div class="choice-box" v-for="(ts,ind) in JSON.parse(item.testKey)">
|
|
19
19
|
<label>
|
|
20
20
|
<input :disabled="disabled" :type="ques(item.quesType)?'radio':'checkbox'" :name="index" />
|
|
@@ -57,14 +57,6 @@ export default {
|
|
|
57
57
|
borderShow: {
|
|
58
58
|
type: Boolean,
|
|
59
59
|
default: true
|
|
60
|
-
},
|
|
61
|
-
selected: {
|
|
62
|
-
type: Array,
|
|
63
|
-
default: []
|
|
64
|
-
},
|
|
65
|
-
selectedID: {
|
|
66
|
-
type: String,
|
|
67
|
-
default: ''
|
|
68
60
|
}
|
|
69
61
|
},
|
|
70
62
|
watch: {
|
|
@@ -79,28 +71,17 @@ export default {
|
|
|
79
71
|
this.multipleShow = val
|
|
80
72
|
},
|
|
81
73
|
deep: true
|
|
82
|
-
}
|
|
83
|
-
selected: {
|
|
84
|
-
handler: function (val, oldVal) {
|
|
85
|
-
if(val.length > 0) {
|
|
86
|
-
this.value.map(x => {
|
|
87
|
-
val.forEach(v => {
|
|
88
|
-
if(this.selectedID === '') return
|
|
89
|
-
if(x[this.selectedID] === v[this.selectedID]) x.checked = true
|
|
90
|
-
})
|
|
91
|
-
})
|
|
92
|
-
}
|
|
93
|
-
},
|
|
94
|
-
immediate: true
|
|
95
|
-
},
|
|
74
|
+
}
|
|
96
75
|
},
|
|
97
|
-
emits: ['change','modify','del'],
|
|
76
|
+
emits: ['change','modify','del','changeAll'],
|
|
98
77
|
methods: {
|
|
99
78
|
checkboxChange(e,index) {
|
|
79
|
+
this.value[index].checked = e.target.checked
|
|
100
80
|
this.$emit('change', {
|
|
101
81
|
data: this.value[index],
|
|
102
82
|
value: e.target.checked
|
|
103
83
|
})
|
|
84
|
+
this.$emit('changeAll', this.value)
|
|
104
85
|
},
|
|
105
86
|
modify(v) {
|
|
106
87
|
this.$emit('modify',v)
|
|
@@ -112,6 +93,7 @@ export default {
|
|
|
112
93
|
return v.indexOf('101') > -1
|
|
113
94
|
},
|
|
114
95
|
styleText(v) {
|
|
96
|
+
if(!v) return
|
|
115
97
|
const data = JSON.parse(v)
|
|
116
98
|
for(let i=0; i< data.length; i++) {
|
|
117
99
|
if(data[i].content[0].length > 20) {
|