| | |
| | | * @Author: Morpheus |
| | | * @Date: 2021-03-17 15:21:33 |
| | | * @Last Modified by: Morpheus |
| | | * @Last Modified time: 2021-03-19 10:58:01 |
| | | * @Last Modified time: 2021-03-19 11:31:46 |
| | | */ |
| | | <template> |
| | | <basic-container> |
| | |
| | | done(); |
| | | }, |
| | | (error) => { |
| | | window.console.log(error); |
| | | loading(); |
| | | } |
| | | ); |
| | |
| | | done(); |
| | | }, |
| | | (error) => { |
| | | window.console.log(error); |
| | | loading(); |
| | | } |
| | | ); |
| | |
| | | }); |
| | | }, |
| | | handleManage(row) { |
| | | console.log(row); |
| | | this.form = row; |
| | | this.peopleList = [ |
| | | { label: row.oneContacts, value: row.onePhone }, |
| | |
| | | |
| | | // 一键呼叫相关函数 |
| | | if (this.isActive == true) { |
| | | alert(1); |
| | | this.isActive = false; |
| | | |
| | | newCallAxios |
| | | .post( |
| | | `/api_control`, |
| | |
| | | formData.append("file", fileOfBlob); |
| | | |
| | | // var dom = document.getElementById("real_audio"); |
| | | // console.log(dom); |
| | | // dom.setAttribute("src", URL.createObjectURL(blob)); |
| | | |
| | | // this.recorder.play(); |
| | |
| | | .then((result) => {}); |
| | | }); |
| | | } else { |
| | | alert(2); |
| | | this.isActive = true; |
| | | |
| | | Recorder.getPermission().then(() => { |
| | | this.recorder.start().then(() => { |
| | | // 开始录音 |