zydx-plus 1.32.255 → 1.32.257
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/biz_header/src/button_name.js +9 -9
- package/src/components/editor2/src/editor.vue +8 -2
- package/src/components/editor2/src/microphone.vue +1 -1
- package/src/components/tipBox/src/main.vue +3 -3
- package/src/components/tipBox/src/zydxStyle.css +10 -7
- package/src/index.js +1 -1
package/package.json
CHANGED
|
@@ -235,17 +235,17 @@ let buttonNames = {
|
|
|
235
235
|
headLevel: {
|
|
236
236
|
default: "demand",
|
|
237
237
|
demand: '回答要求',
|
|
238
|
-
singletonClass: this.getCurrentPrefix(item) + '
|
|
238
|
+
singletonClass: this.getCurrentPrefix(item) + '追问',
|
|
239
239
|
allClass: this.getPrefix(item) + '情况',
|
|
240
240
|
},
|
|
241
241
|
otherLevel: {
|
|
242
242
|
default: "singletonClass",
|
|
243
|
-
singletonClass: this.getCurrentPrefix(item) + '
|
|
243
|
+
singletonClass: this.getCurrentPrefix(item) + '追问',
|
|
244
244
|
allClass: this.getPrefix(item) + '情况',
|
|
245
245
|
},
|
|
246
246
|
lowLevel: {
|
|
247
247
|
default: "singletonClass",
|
|
248
|
-
singletonClass: this.getCurrentPrefix(item) + '
|
|
248
|
+
singletonClass: this.getCurrentPrefix(item) + '追问',
|
|
249
249
|
score: '回答成绩',
|
|
250
250
|
analysis: '统计分析',
|
|
251
251
|
power: '学习动力'
|
|
@@ -254,17 +254,17 @@ let buttonNames = {
|
|
|
254
254
|
2: {
|
|
255
255
|
headLevel: {
|
|
256
256
|
default: "singletonClass",
|
|
257
|
-
singletonClass: this.getCurrentPrefix(item) + '
|
|
257
|
+
singletonClass: this.getCurrentPrefix(item) + '追问',
|
|
258
258
|
allClass: this.getPrefix(item) + '情况',
|
|
259
259
|
},
|
|
260
260
|
otherLevel: {
|
|
261
261
|
default: "singletonClass",
|
|
262
|
-
singletonClass: this.getCurrentPrefix(item) + '
|
|
262
|
+
singletonClass: this.getCurrentPrefix(item) + '追问',
|
|
263
263
|
allClass: this.getPrefix(item) + '情况',
|
|
264
264
|
},
|
|
265
265
|
lowLevel: {
|
|
266
266
|
default: "singletonClass",
|
|
267
|
-
singletonClass: this.getCurrentPrefix(item) + '
|
|
267
|
+
singletonClass: this.getCurrentPrefix(item) + '追问',
|
|
268
268
|
score: '回答成绩',
|
|
269
269
|
analysis: '统计分析',
|
|
270
270
|
power: '学习动力'
|
|
@@ -1333,17 +1333,17 @@ let buttonNames = {
|
|
|
1333
1333
|
headLevel: {
|
|
1334
1334
|
default: "demand",
|
|
1335
1335
|
demand: '回答要求',
|
|
1336
|
-
singletonClass: this.getCurrentPrefix(item) + '
|
|
1336
|
+
singletonClass: this.getCurrentPrefix(item) + '追问',
|
|
1337
1337
|
allClass: this.getPrefix(item) + '情况',
|
|
1338
1338
|
},
|
|
1339
1339
|
otherLevel: {
|
|
1340
1340
|
default: "singletonClass",
|
|
1341
|
-
singletonClass: this.getCurrentPrefix(item) + '
|
|
1341
|
+
singletonClass: this.getCurrentPrefix(item) + '追问',
|
|
1342
1342
|
allClass: this.getPrefix(item) + '情况',
|
|
1343
1343
|
},
|
|
1344
1344
|
lowLevel: {
|
|
1345
1345
|
default: "singletonClass",
|
|
1346
|
-
singletonClass: this.getCurrentPrefix(item) + '
|
|
1346
|
+
singletonClass: this.getCurrentPrefix(item) + '追问',
|
|
1347
1347
|
score: '学习成绩',
|
|
1348
1348
|
analysis: '统计分析',
|
|
1349
1349
|
power: '学习动力'
|
|
@@ -326,7 +326,6 @@ export default {
|
|
|
326
326
|
sampleBits: 16, // 采样位数,支持 8 或 16,默认是16
|
|
327
327
|
sampleRate: 16000, // 采样率,支持 11025、16000、22050、24000、44100、48000,根据浏览器默认值,我的chrome是48000
|
|
328
328
|
numChannels: 1, // 声道,支持 1 或 2, 默认是1
|
|
329
|
-
// compiling: false,(0.x版本中生效,1.x增加中) // 是否边录边转换,默认是false
|
|
330
329
|
})
|
|
331
330
|
this.recorder.onprogress = function (params) {
|
|
332
331
|
if(_this.countdown <= 0) {
|
|
@@ -346,7 +345,7 @@ export default {
|
|
|
346
345
|
for(let i=0; i< html.length; i++) {
|
|
347
346
|
editorHtml += `<p>${html[i]}</p>`
|
|
348
347
|
}
|
|
349
|
-
this.editor.commands.setContent(editorHtml)
|
|
348
|
+
this.editor.commands.setContent(editorHtml.replace(/<p><\/p>/g, ''))
|
|
350
349
|
},
|
|
351
350
|
editingCancel() {
|
|
352
351
|
this.textEditing = false
|
|
@@ -364,6 +363,11 @@ export default {
|
|
|
364
363
|
this.recordingStatus = true
|
|
365
364
|
}, (error) => {
|
|
366
365
|
this.recordingStatus = false
|
|
366
|
+
this.$message({
|
|
367
|
+
type: 'text',
|
|
368
|
+
cancelShow: false,
|
|
369
|
+
promptContent: '录音失败,请检查麦克风是否可用'
|
|
370
|
+
})
|
|
367
371
|
});
|
|
368
372
|
} else {
|
|
369
373
|
this.stopRecording()
|
|
@@ -395,6 +399,7 @@ export default {
|
|
|
395
399
|
const xhr = new XMLHttpRequest()
|
|
396
400
|
// xhr.open('POST', 'http://192.168.15.126:8888/zydx/voice/getBaiduToken')
|
|
397
401
|
xhr.open('POST', '/zydx/voice/getBaiduToken')
|
|
402
|
+
// xhr.setRequestHeader('Authorization', '5c9826f8-da53-44f1-9141-5917df6acab2')
|
|
398
403
|
xhr.setRequestHeader('Authorization', token)
|
|
399
404
|
const params = new URLSearchParams()
|
|
400
405
|
params.append('type', 'voice')
|
|
@@ -765,6 +770,7 @@ export default {
|
|
|
765
770
|
font-size: 18px;
|
|
766
771
|
line-height: 26px;
|
|
767
772
|
font-weight: 700;
|
|
773
|
+
background: rgba(255,255,255,0.8);
|
|
768
774
|
}
|
|
769
775
|
:deep(.imgCont) {
|
|
770
776
|
line-height: 0 !important;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<path id="并集_轮廓_" data-name="并集 (轮廓)" fill="#ccc"
|
|
5
5
|
d="M10,44a3,3,0,0,1-3-3V3a3,3,0,0,1,3-3H28a3,3,0,0,1,3,3V41a3,3,0,0,1-3,3Zm17-4V4H11V40ZM0,47V24a2,2,0,0,1,4,0V45a2,2,0,0,0,2,2H32a2,2,0,0,0,2-2V24a2,2,0,0,1,4,0V47a4,4,0,0,1-4,4H21v9c7.34.26,13,1.93,13,4,0,2.21-6.72,4-15,4S4,66.21,4,64c0-2,5.66-3.7,13-4V51H4A4,4,0,0,1,0,47ZM19,64h.79L19,64l-.79,0Z"/>
|
|
6
6
|
<rect fill="#fff" x="11" y="4" width="16" height="36"/>
|
|
7
|
-
<rect class="volume" :height="volume(vol)" width="12" :y="volume2(vol)" x="13"
|
|
7
|
+
<rect class="volume" :height="volume(vol)" width="12" :y="volume2(vol)" x="13" fill="#43cf7c"/>
|
|
8
8
|
</svg>
|
|
9
9
|
</div>
|
|
10
10
|
</template>
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
</div>
|
|
36
36
|
<div class="tip-img" v-if="type === 'input'">
|
|
37
37
|
<div class="tip-input" v-for="(item,index) in inputArr" :key="index">
|
|
38
|
-
<span v-if="item.name"><em
|
|
38
|
+
<span v-if="item.name"><em>{{ item.name }}</em><i v-if="item.required">*</i></span>
|
|
39
39
|
<div v-if="item.type === 'file'" class="file-cont">
|
|
40
40
|
<em>{{ fileName }}</em>
|
|
41
41
|
<label>
|
|
@@ -54,8 +54,8 @@
|
|
|
54
54
|
v-model="item.value" :disabled="item.disabled"/>
|
|
55
55
|
<b>{{ item.tail }}</b>
|
|
56
56
|
</div>
|
|
57
|
-
<div style="display: inline-block;">
|
|
58
|
-
<Select
|
|
57
|
+
<div v-if="item.type === 'select'" style="display: inline-block;width: 300px;">
|
|
58
|
+
<Select :options="item.option"
|
|
59
59
|
v-model:value="item.selectValue"></Select>
|
|
60
60
|
</div>
|
|
61
61
|
<div class="cal" v-if="item.type === 'calender'">
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
cursor: pointer;
|
|
29
29
|
}
|
|
30
30
|
.tip-box {
|
|
31
|
-
width:
|
|
32
|
-
padding: 40px
|
|
31
|
+
width: 600px;
|
|
32
|
+
padding: 60px 100px 40px 100px;
|
|
33
33
|
background-color: white;
|
|
34
34
|
border-radius: 5px;
|
|
35
35
|
border: 5px rgba(0, 0, 0, .1) solid;
|
|
@@ -140,6 +140,9 @@
|
|
|
140
140
|
|
|
141
141
|
.tip-input > span > em {
|
|
142
142
|
font-style: normal;
|
|
143
|
+
min-width: 65px;
|
|
144
|
+
display: inline-block;
|
|
145
|
+
text-align-last: justify;
|
|
143
146
|
}
|
|
144
147
|
|
|
145
148
|
.tip-input > span > i {
|
|
@@ -153,7 +156,7 @@
|
|
|
153
156
|
}
|
|
154
157
|
|
|
155
158
|
.tip-input input {
|
|
156
|
-
width:
|
|
159
|
+
width: 300px;
|
|
157
160
|
height: 32px;
|
|
158
161
|
box-sizing: border-box;
|
|
159
162
|
font-size: 16px;
|
|
@@ -165,7 +168,7 @@
|
|
|
165
168
|
}
|
|
166
169
|
|
|
167
170
|
.tip-input > select {
|
|
168
|
-
width:
|
|
171
|
+
width: 300px;
|
|
169
172
|
height: 30px;
|
|
170
173
|
box-sizing: border-box;
|
|
171
174
|
font-size: 16px;
|
|
@@ -229,7 +232,7 @@
|
|
|
229
232
|
}
|
|
230
233
|
|
|
231
234
|
.number-input {
|
|
232
|
-
width:
|
|
235
|
+
width: 300px;
|
|
233
236
|
height: 32px;
|
|
234
237
|
box-sizing: border-box;
|
|
235
238
|
font-size: 16px;
|
|
@@ -244,7 +247,7 @@
|
|
|
244
247
|
border: 0 !important;
|
|
245
248
|
box-shadow: none !important;
|
|
246
249
|
height: 30px !important;
|
|
247
|
-
width:
|
|
250
|
+
width: 320px !important;
|
|
248
251
|
}
|
|
249
252
|
|
|
250
253
|
.file-cont {
|
|
@@ -267,7 +270,7 @@
|
|
|
267
270
|
.file-cont > em {
|
|
268
271
|
display: inline-block;
|
|
269
272
|
font-style: normal;
|
|
270
|
-
width:
|
|
273
|
+
width: 300px;
|
|
271
274
|
height: 32px;
|
|
272
275
|
box-sizing: border-box;
|
|
273
276
|
font-size: 16px;
|