Browse Source

fix all

gongyingshang
刘嘉炜 2 years ago
parent
commit
64c8152a5d
  1. 15
      src/subpackage/blacklist/pages/abnormal_list/abnormal_list.vue
  2. 8
      src/subpackage/device/js/device_fun.js
  3. 68
      src/subpackage/device/pages/audio_manage/audio_manage.vue

15
src/subpackage/blacklist/pages/abnormal_list/abnormal_list.vue

@ -14,7 +14,7 @@
<view class="al-date">
<picker mode="date" @change="dateChange">
<view class="ad-content">
<view class="ac-txt">核销日期{{ curDate || '' }}</view>
<view class="ac-txt">抓拍日期{{ curDate || '' }}</view>
<image class="ac-icon" mode="aspectFit" src="/subpackage/blacklist/static/images/triangle.png"></image>
</view>
</picker>
@ -39,6 +39,9 @@
<view class="ai-txt">核销时间{{ e.verify_time || '-' }}</view>
</view>
<view class="ai-line">
<view class="ai-txt">抓拍时间{{ e.img_time || '-' }}</view>
</view>
<view class="ai-line">
<view class="ai-txt">抓拍图片</view>
<view class="ai-img">
<image
@ -64,6 +67,14 @@
import server from '../../js/server';
import util from '../../../../utils/util';
import { BLACKLIST_API } from '../../js/api';
/**
* 20231129
* 接口参数 verify_time -> img_time
* 核销日期 -> 抓拍日期
* 新增 抓拍时间
*
* */
export default {
data(){
return {
@ -112,7 +123,7 @@ export default {
url: BLACKLIST_API.identifyRecords,
data: {
authority, brand_id, page, page_size,
stadium_id: stadium_id || '', verify_time
stadium_id: stadium_id || '', img_time: verify_time
},
failMsg: '加载列表失败!'
})

8
src/subpackage/device/js/device_fun.js

@ -11,12 +11,12 @@ var DEVICE_FUN = {
场景: 目前需求只要求照明(中控状态更新,灯操控) 其它需要再对接
注意: 涉及deviceApi.ouxuanac 接口的,理论上来说都需要做兼容去在逻辑中传入硬件信息判断是否是云中控
*/
AC_filterCloudACData(data,switchInfo){
console.log("云中控参数检测 AC_filterCloudACData",data,switchInfo);
AC_filterCloudACData(data, switchInfo){
console.log("云中控参数检测 AC_filterCloudACData", data, switchInfo);
//处理云中控专用参数
// 这里device是设备名 一旦出现云中控 设备id被 (OUXUANAC_CLOUD_+hardware_net_addr) 串起来的字符串覆盖
if(!!switchInfo&&switchInfo.hardware_connect_method=="YZK"){
data.device = "OUXUANAC_CLOUD_"+switchInfo.hardware_net_addr;
if(switchInfo?.hardware_connect_method=="YZK"){
data.device = "OUXUANAC_CLOUD_" + switchInfo.hardware_net_addr;
}
return data

68
src/subpackage/device/pages/audio_manage/audio_manage.vue

@ -45,18 +45,6 @@
</view>
</view>
</block>
<!-- <block v-else>
<view class="si-bottom" v-if="pageInfo.isOpen || pageInfo.isClose">
<view v-if="pageInfo.isOpen" @click="operateBtn({ switchInfo: e, status: 1 })">
<image mode="aspectFit" :src="pageInfo.openIcon || ''"></image>
<view>{{pageInfo.openName || '-'}}</view>
</view>
<view v-if="pageInfo.isClose" @click="operateBtn({ switchInfo: e, status: 0 })">
<image mode="aspectFit" :src="pageInfo.closeIcon || ''"></image>
<view>{{pageInfo.closeName || '-'}}</view>
</view>
</view>
</block> -->
</view>
</view>
@ -90,6 +78,13 @@
</template>
<script>
/**
* 20231129
* fix 语音发送云中控参数 AC_filterCloudACData
* 新增 value.text
*
*
* */
const recorderManager = uni.getRecorderManager();
const innerAudioContext = uni.createInnerAudioContext();
innerAudioContext.autoplay = true;
@ -97,8 +92,11 @@
import store_name from '../../components/store_name/store_name';
import deviceServer from '../../js/device_server';
import deviceApi from '../../js/device_api';
const showArr = {
import { mapState } from 'vuex';
import util from '../../../../utils/util';
import DEVICE_FUN from '../../js/device_fun.js';
const showArr = {
's14': {
id: 14,
name: '音响管理',
@ -111,15 +109,8 @@
hardware_type: 'AudioPlayer',
tips: "点击对应音响的麦克风可以进行说话,说话内容将通过音响播放。",
},
}
import {
mapState
} from 'vuex';
import util from '../../../../utils/util';
import DEVICE_FUN from '../../js/device_fun.js';
export default {
components: {
'store-name': store_name
@ -148,7 +139,7 @@
hardware_type: this.pageInfo.hardware_type
})
}
},
},
data() {
return {
@ -161,7 +152,10 @@
voicePath: "",
voiceUrl: "",
},
voiceLevel:0
voiceLevel:0,
// 20231129 fix
curSwitch: null,
}
},
onLoad(options) {
@ -305,14 +299,15 @@
"data": {
"name": "audio-player",
"value": {
"url": _url
"url": _url,
"text": this.voicePadConfig?.txt || ''
}
},
// "token": "f0d5c19b-b87e-11eb-bc7d-5254005df464"
}
//
if(_url)this.operateReq({
data: _data
data: DEVICE_FUN.AC_filterCloudACData(_data, that.curSwitch),
})
},
@ -397,33 +392,12 @@
switchInfo,
status
}) {
this.curSwitch = switchInfo || {};
if (switchInfo.hardware_type === "AudioPlayer") return this.HandleVoiceOperate({
switchInfo,
status
}); //0704
let _data = this.getOperateReqData({
switchInfo,
status
})
_data = DEVICE_FUN.AC_filterCloudACData(data,switchInfo);
//->& 20201224 5
if (switchInfo.hardware_type === 'AccessControl' && status == 1) {
this.operateReq({
data: this.getOperateReqData({
switchInfo,
status: 0
}),
isTip: false,
isLoad: false
});
}
this.operateReq({
data: _data
});
}, 300, 300),
@ -519,7 +493,7 @@
// })
//TODO ,
// _data = DEVICE_FUN.AC_filterCloudACData(data,switchInfo);
// ...
util.showLoad();
setTimeout(()=>util.hideLoad(),1000)
}, 300, 300),

Loading…
Cancel
Save