zydx-plus 1.32.218 → 1.32.219
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
|
@@ -8,7 +8,7 @@ render(divNode, document.body)
|
|
|
8
8
|
const container = divNode.el
|
|
9
9
|
|
|
10
10
|
// 导出函数可通过调用 Confirm() 函数动态创建 XtxConfirm 组件
|
|
11
|
-
const Confirm = ({ type, url ,title,radioArr,checkboxArr,submitText, promptContent, middle, cancelShow, inputArr }) => {
|
|
11
|
+
const Confirm = ({ type, url ,title,radioArr,checkboxArr,submitText,cancelText, promptContent, middle, cancelShow, inputArr }) => {
|
|
12
12
|
// 返回 Promise 对象
|
|
13
13
|
return new Promise((resolve, reject) => {
|
|
14
14
|
// 2. 点击确认按钮,触发resolve同时销毁组件
|
|
@@ -46,7 +46,7 @@ const Confirm = ({ type, url ,title,radioArr,checkboxArr,submitText, promptConte
|
|
|
46
46
|
reject('点击取消')
|
|
47
47
|
}
|
|
48
48
|
// 1. 创建 XtxConfirm 组件
|
|
49
|
-
const VNode = createVNode(XtxConfirm, { type, url ,title, submitText, promptContent,radioArr,checkboxArr, middle, cancelShow, inputArr, submit, cancel })
|
|
49
|
+
const VNode = createVNode(XtxConfirm, { type, url ,title, submitText, cancelText, promptContent,radioArr,checkboxArr, middle, cancelShow, inputArr, submit, cancel })
|
|
50
50
|
render(VNode, container)
|
|
51
51
|
})
|
|
52
52
|
}
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
</div>
|
|
82
82
|
<div class="tip-btnBox">
|
|
83
83
|
<div @click="submit" v-html="submitText"></div>
|
|
84
|
-
<div v-if="cancelShow" @click="cancel"
|
|
84
|
+
<div v-if="cancelShow" @click="cancel" v-html="cancelText"></div>
|
|
85
85
|
</div>
|
|
86
86
|
</div>
|
|
87
87
|
</div>
|
|
@@ -144,6 +144,10 @@ export default {
|
|
|
144
144
|
type: String,
|
|
145
145
|
default: '确  认'
|
|
146
146
|
},
|
|
147
|
+
cancelText: {
|
|
148
|
+
type: String,
|
|
149
|
+
default: '取  消'
|
|
150
|
+
},
|
|
147
151
|
// 确认按钮
|
|
148
152
|
submit: {
|
|
149
153
|
type: Function,
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
<button class="but" @click="del(item)">删除</button>
|
|
13
13
|
</b>
|
|
14
14
|
<b :style="{right: -item.right + 'px', top: item.top + 'px'}" v-if="replace" ref="b">
|
|
15
|
-
<button class="but" @click="replaceTap(item,index)"
|
|
15
|
+
<button class="but" @click="replaceTap(item,index)">{{ replaceText }}</button>
|
|
16
16
|
</b>
|
|
17
17
|
<b :style="{right: -item.right + 'px', top: item.top + 'px'}" v-if="choice" ref="b">
|
|
18
18
|
<button class="but"
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
</label>
|
|
45
45
|
</div>
|
|
46
46
|
</div>
|
|
47
|
-
<div class="table" v-if="item.replace&&item.itemList&&collapse">
|
|
47
|
+
<div class="table" v-if="item.replace&&item.itemList&&collapse&&item.quesType.split('_')[1] === undefined">
|
|
48
48
|
<table border="0" cellspacing="0" cellpadding="0">
|
|
49
49
|
<tr>
|
|
50
50
|
<td :colspan="item.itemList.length + 1" class="tab-title">选项分布情况统计表</td>
|
|
@@ -63,6 +63,27 @@
|
|
|
63
63
|
</tr>
|
|
64
64
|
</table>
|
|
65
65
|
</div>
|
|
66
|
+
<div class="table" v-if="item.replace&&item.itemList&&collapse&&item.quesType.split('_')[1] === '1'">
|
|
67
|
+
<table border="0" cellspacing="0" cellpadding="0">
|
|
68
|
+
<tr>
|
|
69
|
+
<td :colspan="5" class="tab-title">答题情况统计表</td>
|
|
70
|
+
</tr>
|
|
71
|
+
<tr>
|
|
72
|
+
<td>难易程度</td>
|
|
73
|
+
<td>答题人数</td>
|
|
74
|
+
<td>正答人数</td>
|
|
75
|
+
<td>错答人数</td>
|
|
76
|
+
<td>正确率</td>
|
|
77
|
+
</tr>
|
|
78
|
+
<tr>
|
|
79
|
+
<td>{{ diffLeveNum(item.diffLeve) }}</td>
|
|
80
|
+
<td>{{ item.answerCount? item.answerCount: 0 }}</td>
|
|
81
|
+
<td>{{ item.rightCount? item.rightCount: '-' }}</td>
|
|
82
|
+
<td>{{ item.wrongCount? item.wrongCount: '-' }}</td>
|
|
83
|
+
<td>{{ item.accuracy? item.accuracy: '-' }}</td>
|
|
84
|
+
</tr>
|
|
85
|
+
</table>
|
|
86
|
+
</div>
|
|
66
87
|
</div>
|
|
67
88
|
</div>
|
|
68
89
|
</div>
|
|
@@ -194,6 +215,11 @@ export default {
|
|
|
194
215
|
},
|
|
195
216
|
emits: ['change','modify','del','changeAll','replaceData','choiceData','judgeAnswer'],
|
|
196
217
|
methods: {
|
|
218
|
+
diffLeveNum(v) {
|
|
219
|
+
if(v === '1') return '简单'
|
|
220
|
+
if(v === '2') return '中等'
|
|
221
|
+
if(v === '3') return '困难'
|
|
222
|
+
},
|
|
197
223
|
openOption(i) {
|
|
198
224
|
this.data[i].open = !this.data[i].open
|
|
199
225
|
},
|