|
@@ -493,12 +493,35 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
+ <el-divider content-position="left">屏幕<span style="color: red">(默认00:00-00:00表示常亮)</span> </el-divider>
|
|
|
+ <el-row :gutter="25">
|
|
|
+ <el-col :span="11">
|
|
|
+ <el-form-item label="亮:" :inline="false">
|
|
|
+ <el-select v-model="setBrightForm.ledOn" placeholder="请设置时间">
|
|
|
+ <template #prefix>
|
|
|
+ <span style="padding-left: 3px;padding-top: 4px;"><el-icon><Clock /></el-icon></span>
|
|
|
+ </template>
|
|
|
+ <el-option v-for=" x in timeArr" :label="x" :value="x" />
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="11">
|
|
|
+ <el-form-item label="熄:" :inline="false">
|
|
|
+ <el-select v-model="setBrightForm.ledOff" placeholder="请设置时间">
|
|
|
+ <template #prefix>
|
|
|
+ <span style="padding-left: 3px;padding-top: 4px;"><el-icon><Clock /></el-icon></span>
|
|
|
+ </template>
|
|
|
+ <el-option v-for=" x in timeArr" :label="x" :value="x" />
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
</el-form>
|
|
|
<template #footer>
|
|
|
<div class="dialog-footer">
|
|
|
<el-button @click="closeSetBrightDialog">取消</el-button>
|
|
|
<el-button type="primary" @click="enterSetBrightDialog">
|
|
|
- 发送
|
|
|
+ 确定
|
|
|
</el-button>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -514,7 +537,7 @@ import {
|
|
|
setScreensInfo,
|
|
|
addScreens,
|
|
|
switchScreens,
|
|
|
- sendInternalCode, voiceBroad, setBrightAudio
|
|
|
+ sendInternalCode, voiceBroad, setBrightAudioLed
|
|
|
} from "@/api/screens";
|
|
|
import { ref,reactive} from 'vue'
|
|
|
import {ElMessage, ElMessageBox} from "element-plus";
|
|
@@ -896,7 +919,7 @@ const openSetBrightDialog = async (obj)=>{
|
|
|
return
|
|
|
}
|
|
|
console.log("=====",obj)
|
|
|
- setBrightForm.value = {dayBright:obj.dayBright,nightBright:obj.nightBright,audioOn:obj.audioOn,audioOff:obj.audioOff,switchSn:obj.switchSn}
|
|
|
+ setBrightForm.value = {dayBright:obj.dayBright,nightBright:obj.nightBright,audioOn:obj.audioOn,audioOff:obj.audioOff,switchSn:obj.switchSn,ledOn:obj.ledOn,ledOff:obj.ledOff}
|
|
|
setBrightDialog.value = true
|
|
|
nowSn.value = obj.sn
|
|
|
}
|
|
@@ -908,13 +931,15 @@ const closeSetBrightDialog = ()=>{
|
|
|
}
|
|
|
|
|
|
const enterSetBrightDialog = async () => {
|
|
|
- var res = await setBrightAudio({
|
|
|
+ var res = await setBrightAudioLed({
|
|
|
sn: nowSn.value,
|
|
|
dayBright: setBrightForm.value.dayBright,
|
|
|
nightBright: setBrightForm.value.nightBright,
|
|
|
audioOn: setBrightForm.value.audioOn,
|
|
|
audioOff: setBrightForm.value.audioOff,
|
|
|
- switchSn: setBrightForm.value.switchSn
|
|
|
+ switchSn: setBrightForm.value.switchSn,
|
|
|
+ ledOn:setBrightForm.value.ledOn,
|
|
|
+ ledOff:setBrightForm.value.ledOff
|
|
|
});
|
|
|
if (res.code === 0) {
|
|
|
ElMessage({
|