zydx-plus 1.35.577 → 1.35.579
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/chat/src/chat.vue +4 -4
- package/src/components/choice/src/choice.vue +9 -3
- package/src/components/data_table/src/data_table.vue +3 -0
- package/src/components/editor2/src/editor.vue +4 -0
- package/src/components/preface/src/preface.vue +10 -5
- package/src/index.js +1 -1
package/package.json
CHANGED
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
<div class="line"></div>
|
|
26
26
|
<div :class="{'disabled': disabled}" @click="speak">
|
|
27
27
|
<i :class="{'speak': microphone, 'theme-text': true}" class="iconfont zydx-a-yuyinshuruAi"></i>
|
|
28
|
-
<span class="theme-text">语音输入</span>
|
|
28
|
+
<span :class="{'speak': microphone, 'theme-text': true}">语音输入</span>
|
|
29
29
|
</div>
|
|
30
30
|
<div class="line"></div>
|
|
31
31
|
<div @click="send('')">
|
|
@@ -609,9 +609,9 @@ export default {
|
|
|
609
609
|
height: 100%;
|
|
610
610
|
}
|
|
611
611
|
.speak{
|
|
612
|
-
background: #43cf7c !important;
|
|
613
|
-
color: #
|
|
614
|
-
border: 1px solid #43cf7c !important;
|
|
612
|
+
/* background: #43cf7c !important; */
|
|
613
|
+
color: #43cf7c !important;
|
|
614
|
+
/* border: 1px solid #43cf7c !important; */
|
|
615
615
|
}
|
|
616
616
|
.microphone{
|
|
617
617
|
position: absolute;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<div class="choice-title">
|
|
4
4
|
<div class="choice-title-left">
|
|
5
5
|
<!-- <span><i>*</i>{{ title }}:</span>-->
|
|
6
|
-
<span>{{ title }}:</span>
|
|
6
|
+
<span>{{ isHasOption ? title : '创建选项' }}:</span>
|
|
7
7
|
<em>({{ text }})</em>
|
|
8
8
|
</div>
|
|
9
9
|
<div class="choice-title-right">
|
|
@@ -37,8 +37,14 @@
|
|
|
37
37
|
<div v-else>
|
|
38
38
|
<div class="choice-list">
|
|
39
39
|
<div class="list-title">
|
|
40
|
-
<span
|
|
41
|
-
<
|
|
40
|
+
<span>{{ isHasOption ? title : '创建选项' }}:<em>(必填项)</em></span>
|
|
41
|
+
<template v-if="isHasOption">
|
|
42
|
+
<button class="sees-but" v-html="'修改选项'" @click="modifyOption()"></button>
|
|
43
|
+
</template>
|
|
44
|
+
<template v-else>
|
|
45
|
+
<button class="sees-but" @click="addOption">增加选项</button>
|
|
46
|
+
<button class="sees-but" v-html="'完  成'" @click="complete()"></button>
|
|
47
|
+
</template>
|
|
42
48
|
</div>
|
|
43
49
|
<div class="list-cont">
|
|
44
50
|
<div class="list-cont-li" v-for="(item,index) in list">
|
|
@@ -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)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="preface">
|
|
3
|
-
<div class="preface-left">
|
|
4
|
-
<span
|
|
3
|
+
<div :class="[radioValue ? 'preface-left' : 'preface-left1']">
|
|
4
|
+
<span>{{radioValue ? '题序设置:' : '输入题序:'}}</span>
|
|
5
5
|
<div class="preface-input">
|
|
6
6
|
<input type="number" :value="inputValue" @input="numbers" @keypress="isNumberKey($event)" />
|
|
7
7
|
</div>
|
|
@@ -94,16 +94,21 @@ export default {
|
|
|
94
94
|
<style scoped>
|
|
95
95
|
.preface{
|
|
96
96
|
display: flex;
|
|
97
|
-
justify-content: center;
|
|
97
|
+
/* justify-content: center; */
|
|
98
98
|
}
|
|
99
99
|
.preface-left{
|
|
100
|
+
/* flex: 1; */
|
|
101
|
+
display: flex;
|
|
102
|
+
margin-right: 124px;
|
|
103
|
+
}
|
|
104
|
+
.preface-left1{
|
|
100
105
|
flex: 1;
|
|
101
106
|
display: flex;
|
|
102
107
|
}
|
|
103
|
-
.preface-left>span,.preface-right>span{
|
|
108
|
+
.preface-left>span,.preface-left1>span,.preface-right>span{
|
|
104
109
|
font-size: 14px;
|
|
105
110
|
color: #000;
|
|
106
|
-
font-weight: 700;
|
|
111
|
+
/* font-weight: 700; */
|
|
107
112
|
line-height: 15px;
|
|
108
113
|
}
|
|
109
114
|
.preface-input{
|