Browse Source

激光疲劳,语音广播,处置页新加音量,循环次数

develop
王兴琳 2 weeks ago
parent
commit
cfb31f4858
  1. 18
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/FatigueWakesUp/components/DeviceParam.vue
  2. 14
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/utils/map.js
  3. 31
      ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/Cards/DeviceControl/components/ScopeTable.vue
  4. 12
      ruoyi-ui/src/views/JiHeExpressway/pages/control/event/plan/addAndEditDialog/ScopeTable.vue

18
ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/FatigueWakesUp/components/DeviceParam.vue

@ -1,8 +1,5 @@
<template> <template>
<div :style="{ <div class="multi-control">
'max-height': isMultiControl ? '250px' : undefined, 'overflow-y': isMultiControl ? 'auto' : undefined,
'margin-left': isMultiControl ? '14px' : undefined
}">
<ElTabs v-model="activeName" class="tabs" @tab-click="tabClick"> <ElTabs v-model="activeName" class="tabs" @tab-click="tabClick">
<ElTabPane label="一般模式" name="first"> <ElTabPane label="一般模式" name="first">
<Form v-model="formData" class="form" ref="FormConfigRef" :formList="formList1" column="1" labelWidth="120px" /> <Form v-model="formData" class="form" ref="FormConfigRef" :formList="formList1" column="1" labelWidth="120px" />
@ -268,6 +265,11 @@ export default {
methods: { methods: {
async initData() { async initData() {
// //
const options={
"ASK":"7"
}
let ask = await this.requestURL("ASKDF",options);
let result = await this.requestURL("ASKMD"); let result = await this.requestURL("ASKMD");
// if (result.data == 7) { // if (result.data == 7) {
// this.activeName = "second"; // this.activeName = "second";
@ -421,4 +423,10 @@ export default {
}; };
</script> </script>
<style lang="scss" scoped></style> <style lang="scss" scoped>
.multi-control {
max-height: 450px;
overflow-y: auto;
margin-left: 14px;
}
</style>

14
ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/utils/map.js

@ -60,7 +60,7 @@ export class MarkerCluster {
// e.extData.latitude = lnglat[1]; // e.extData.latitude = lnglat[1];
//}); //});
marksAddInGraph(data); marksAddInGraph(data);
if (!data) return; if (!data) return;
if (!Array.isArray(data)) data = [data]; if (!Array.isArray(data)) data = [data];
@ -94,7 +94,7 @@ export class MarkerCluster {
map.setFitView([...this.markerCluster.U], false, [0, 0, 0, 0], 10); //自适应. 覆盖物数组, 动画过渡到指定位置, 周围边距,上、下、左、右, 最大 zoom 级别 map.setFitView([...this.markerCluster.U], false, [0, 0, 0, 0], 10); //自适应. 覆盖物数组, 动画过渡到指定位置, 周围边距,上、下、左、右, 最大 zoom 级别
}, 150); }, 150);
} }
} }
async refreshLayer(){ async refreshLayer(){
@ -135,7 +135,7 @@ export class MarkerCluster {
} else { } else {
_title = `${e.extData.stakeMark} ${e.extData.direction==='1'?'菏泽方向':'济南方向'} ${e.config?.item.title}事件` _title = `${e.extData.stakeMark} ${e.extData.direction==='1'?'菏泽方向':'济南方向'} ${e.config?.item.title}事件`
} }
} }
// const lnglat = [e.extData.longitude, e.extData.latitude];//getLnglat(e.extData) // const lnglat = [e.extData.longitude, e.extData.latitude];//getLnglat(e.extData)
aryPoints.push({ aryPoints.push({
@ -143,9 +143,9 @@ export class MarkerCluster {
longitude: e.extData.longitude, //点坐标经度 【必传字段】 longitude: e.extData.longitude, //点坐标经度 【必传字段】
latitude: e.extData.latitude, //点坐标纬度 【必传字段】 latitude: e.extData.latitude, //点坐标纬度 【必传字段】
iconUrl: getIcon(e,'b'), // 图标 【必传字段】 iconUrl: getIcon(e,'b'), // 图标 【必传字段】
offset: [0,-48], offset: [0,-48],
size: [42,100], size: [42,100],
GGoffsetX: 0, GGoffsetX: 0,
GGoffsetY: -5, GGoffsetY: -5,
GGimgOffset:[0,0], GGimgOffset:[0,0],
GGimgsize:[42,103], GGimgsize:[42,103],
@ -660,4 +660,4 @@ export function getLatAndLng(lnglat) {
else return lnglat; else return lnglat;
} }
export const markerClusterIns = new MarkerCluster(); export const markerClusterIns = new MarkerCluster();

31
ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/Cards/DeviceControl/components/ScopeTable.vue

@ -148,8 +148,21 @@
<i class="el-icon-check"></i> <i class="el-icon-check"></i>
</ButtonGradient> </ButtonGradient>
</div> </div>
</div> </div>
</el-col> </el-col>
<el-col :span="5" >
<span >音量(取1-9)</span>
</el-col>
<el-col :span="6" >
<el-input-number placeholder="" v-model="tableInfo.executeConfig.outVol" :min="1":max="9"></el-input-number>
</el-col>
<el-col :span="6" style="margin-left: 5px;" >
<span >循环次数(1-16)</span>
</el-col>
<el-col :span="6" >
<el-input-number placeholder="" v-model="tableInfo.executeConfig.repeatTimes" :min="1":max="16"></el-input-number>
</el-col>
</el-row> </el-row>
<el-row v-if="tableInfo.deviceType !== 5"> <el-row v-if="tableInfo.deviceType !== 5">
<el-col :span="3"> <el-col :span="3">
@ -187,7 +200,7 @@
</el-select> </el-select>
</el-col> </el-col>
<el-col v-if="tableInfo.deviceType == 12 && tableInfo.hf_controlModel == '01'" :span="8" style="margin-left: 5px;"> <el-col v-if="tableInfo.deviceType == 12 && tableInfo.hf_controlModel == '01'" :span="8" style="margin-left: 5px;">
<el-time-picker v-model="tableInfo.hf_time" is-range range-separator="-" placeholder="选择时间" <el-time-picker v-model="tableInfo.hf_time" is-range range-separator="-" placeholder="选择时间"
value-format="HH:mm" format="HH:mm"> value-format="HH:mm" format="HH:mm">
</el-time-picker> </el-time-picker>
</el-col> </el-col>
@ -264,6 +277,12 @@ export default {
}, },
data() { data() {
return { return {
tableInfo: {
executeConfig: {
repeatTimes: 1, // 1
outVol: 1 // 1
}
},
isShowDialog: false, isShowDialog: false,
deviceOptions: planDeviceOptions, deviceOptions: planDeviceOptions,
zyOptions: [ zyOptions: [
@ -381,7 +400,7 @@ export default {
// } // }
// await this.loadData(newValue); // await this.loadData(newValue);
// this.$emit('check'); // this.$emit('check');
}, },
immediate: true, immediate: true,
} }
@ -448,12 +467,12 @@ export default {
delete this.tableInfo[key] delete this.tableInfo[key]
} }
} }
if(value === 2 || value === 5){ if(value === 2 || value === 5){
this.tableInfo["executeConfig"]= {operationType:2} this.tableInfo["executeConfig"]= {operationType:2}
this.tableInfo["recoverConfig"]= {operationType:2} this.tableInfo["recoverConfig"]= {operationType:2}
} }
this.loadData(value); this.loadData(value);
}, },
gzmsOptions_zx_change(e){ gzmsOptions_zx_change(e){
@ -534,7 +553,7 @@ export default {
} }
.contentBoard{ .contentBoard{
flex:1; flex:1;
background-color: #19425c; background-color: #19425c;
color:#dfdfdf; color:#dfdfdf;
padding: 9px 0px; padding: 9px 0px;
text-align: center; text-align: center;
@ -543,4 +562,4 @@ export default {
.btn{ .btn{
height:40px; height:40px;
} }
</style> </style>

12
ruoyi-ui/src/views/JiHeExpressway/pages/control/event/plan/addAndEditDialog/ScopeTable.vue

@ -48,7 +48,7 @@
</el-select> </el-select>
</el-col> </el-col>
<el-col v-if="tableInfo.deviceType == 2 && tableInfo.zx_operationType == 1" :span="4"> <el-col v-if="tableInfo.deviceType == 2 && tableInfo.zx_operationType == 1" :span="4">
<el-input @click.native="clickQbb('zx_dcInfoBoardTemplate')" placeholder="请选择" <el-input @click.native="clickQbb('zx_dcInfoBoardTemplate')" placeholder="请选择"
:value="tableInfo.zx_dcInfoBoardTemplate?tableInfo.zx_dcInfoBoardTemplate.content:''" :value="tableInfo.zx_dcInfoBoardTemplate?tableInfo.zx_dcInfoBoardTemplate.content:''"
readonly> readonly>
<i slot="suffix" class="el-input__icon el-icon-search"></i> <i slot="suffix" class="el-input__icon el-icon-search"></i>
@ -112,7 +112,7 @@
</el-select> </el-select>
</el-col> </el-col>
<el-col v-if="tableInfo.deviceType == 2 && tableInfo.hf_operationType == 1" :span="4"> <el-col v-if="tableInfo.deviceType == 2 && tableInfo.hf_operationType == 1" :span="4">
<el-input @click.native="clickQbb('hf_dcInfoBoardTemplate')" placeholder="请选择" <el-input @click.native="clickQbb('hf_dcInfoBoardTemplate')" placeholder="请选择"
:value="tableInfo.hf_dcInfoBoardTemplate?tableInfo.hf_dcInfoBoardTemplate.content:''" :value="tableInfo.hf_dcInfoBoardTemplate?tableInfo.hf_dcInfoBoardTemplate.content:''"
readonly> readonly>
<i slot="suffix" class="el-input__icon el-icon-search"></i> <i slot="suffix" class="el-input__icon el-icon-search"></i>
@ -156,7 +156,7 @@
<el-input v-model="tableInfo.hf_content" placeholder="请输入发布内容"></el-input> <el-input v-model="tableInfo.hf_content" placeholder="请输入发布内容"></el-input>
</el-col> </el-col>
</el-row> </el-row>
<!-- 情报板弹窗 --> <!-- 情报板弹窗 -->
<QbbDialog :visible="isShowDialog" :info="qbbData" @close="onCloseDialog" @dialogSubmit="dialogSubmit" /> <QbbDialog :visible="isShowDialog" :info="qbbData" @close="onCloseDialog" @dialogSubmit="dialogSubmit" />
</div> </div>
@ -291,7 +291,7 @@ export default {
} }
}, },
async mounted() { async mounted() {
}, },
methods: { methods: {
initData() { initData() {
@ -322,7 +322,7 @@ export default {
this.isShowDialog = false; this.isShowDialog = false;
}, },
dialogSubmit(data) { dialogSubmit(data) {
this.tableInfo[this.clickQbbName] = { this.tableInfo[this.clickQbbName] = {
"fontType":data.fontType, "fontType":data.fontType,
"screenSize":data.screenSize, "screenSize":data.screenSize,
@ -406,4 +406,4 @@ export default {
border-color: #FFFFFF; border-color: #FFFFFF;
color: #FFFFFF; color: #FFFFFF;
} }
</style> </style>

Loading…
Cancel
Save