diff --git a/README.md b/README.md index a38e96f..e3cce5c 100644 --- a/README.md +++ b/README.md @@ -22,3 +22,8 @@ npm run lint ### Customize configuration See [Configuration Reference](https://cli.vuejs.org/config/). + +###设置自动播放 +``` +chrome://settings/content/sound +``` \ No newline at end of file diff --git a/public/webConfig.js b/public/webConfig.js index 7028e3e..7d55928 100644 --- a/public/webConfig.js +++ b/public/webConfig.js @@ -7,4 +7,8 @@ window.globalMQ = { MQTT_SERVICE: 'ws://192.168.2.104:15674/ws', // mqtt服务地址(https需要用wss协议) MQTT_USERNAME: 'admin', // mqtt连接用户名 MQTT_PASSWORD: 'admin', //mqtt连接密码 -}; \ No newline at end of file +}; + +window.audioUrl = { + baseURL: 'http://192.168.2.104:9090', +} \ No newline at end of file diff --git a/src/api/publishApi.js b/src/api/publishApi.js index b59132a..6b55696 100644 --- a/src/api/publishApi.js +++ b/src/api/publishApi.js @@ -1,28 +1,44 @@ -import _axios from '@/utils/_axios'; +import _axios from "@/utils/_axios"; +import axios from "axios"; // 获取动态表格列头 -export const getDynamicTableHeader = data => { +export const getDynamicTableHeader = (data) => { return _axios({ - url: '/api/DoctorMicroservice/DictReportDataSource/QueryPageList', + url: "/api/DoctorMicroservice/DictReportDataSource/QueryPageList", params: data, }); }; // 获取动态表格数据 -export const getDynamicTableList = data => { +export const getDynamicTableList = (data) => { return _axios({ - method: 'post', - url: '/api/DoctorMicroservice/DictReportDataSource/GetHistoryAllData', + method: "post", + url: "/api/DoctorMicroservice/DictReportDataSource/GetHistoryAllData", data, }); }; - // 获取全局变量 -export const getGlobeConfig = params => { +export const getGlobeConfig = (params) => { return _axios({ - method: 'get', - url: '/api/identity/configs/PageList', + method: "get", + url: "/api/identity/configs/PageList", params, }); }; + +// 获取音频数据 +export const getAudio = (data) => { + return axios.post( + `${window.audioUrl.baseURL}/synthesize`, + { + ...data, + }, + { + headers: { + "Content-Type": "application/json", + }, + responseType: "blob", + } + ); +}; diff --git a/src/views/waitList/index.vue b/src/views/waitList/index.vue index bac946f..d4a5cb2 100644 --- a/src/views/waitList/index.vue +++ b/src/views/waitList/index.vue @@ -92,11 +92,12 @@

请勿吸烟,请照顾好自己随身携带的物品,请耐心等待,我们将竭诚为您服务

+