|
@@ -1,10 +1,11 @@
|
|
|
<template>
|
|
|
<div>
|
|
|
<div>
|
|
|
- <el-button type="primary" @click="startRecorder()">{{
|
|
|
- !isRecord ? "开始录音" : "结束录音"
|
|
|
- }}</el-button>
|
|
|
- <el-button type="primary" @click="playRecorder()">{{
|
|
|
+ <el-button type="primary" :style="{ 'background': isRecord ? '#ee5255' : '', 'borderColor': isRecord ? '#ee5255' : '' }"
|
|
|
+ @click="startRecorder()">{{
|
|
|
+ !isRecord ? "开始录音" : "结束录音"
|
|
|
+ }}</el-button>
|
|
|
+ <el-button type="primary" :style="{ 'background': isPlayerRecord ? '#ee5255' : '', 'borderColor': isPlayerRecord ? '#ee5255' : '' }" @click="playRecorder()">{{
|
|
|
!isPlayerRecord ? "录音播放" : "停止播放"
|
|
|
}}</el-button>
|
|
|
<el-button type="primary" @click="getMp3Data()">上传录音</el-button>
|
|
@@ -206,7 +207,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
addPz(audio) {
|
|
|
- this.$emit("addPz", '2',audio);
|
|
|
+ this.$emit("addPz", '2', audio);
|
|
|
},
|
|
|
},
|
|
|
mounted() { },
|