|
@@ -9,7 +9,7 @@
|
|
|
<el-form-item label="名称或编码">
|
|
|
<el-input
|
|
|
v-model="searchInfo.keyword"
|
|
|
- placeholder="搜索名称或编码"
|
|
|
+ placeholder="搜索名称或SN"
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="所属分路">
|
|
@@ -238,6 +238,11 @@
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="时控开关Sn:" :inline="false">
|
|
|
+ <el-input v-model="screensInfo.switchSn"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
</el-row>
|
|
|
</el-form>
|
|
|
<template #footer>
|
|
@@ -447,9 +452,10 @@
|
|
|
</template>
|
|
|
</el-dialog>
|
|
|
|
|
|
-<!--设置亮度弹窗-->
|
|
|
+<!--设置亮度和时控弹窗-->
|
|
|
<el-dialog v-model="setBrightDialog" title="设置" width="500">
|
|
|
<el-form ref="dataForm" :model="setBrightForm" style="padding: 15px">
|
|
|
+ <el-divider content-position="left">亮度</el-divider>
|
|
|
<el-row>
|
|
|
<el-col :span="21">
|
|
|
<el-form-item label="白天:" :inline="false" prop="broadContent">
|
|
@@ -464,6 +470,29 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
+ <el-divider content-position="left">声音</el-divider>
|
|
|
+ <el-row :gutter="25">
|
|
|
+ <el-col :span="11">
|
|
|
+ <el-form-item label="开:" :inline="false">
|
|
|
+ <el-select v-model="setBrightForm.audioOn" 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.audioOff" 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">
|
|
@@ -485,7 +514,7 @@ import {
|
|
|
setScreensInfo,
|
|
|
addScreens,
|
|
|
switchScreens,
|
|
|
- sendInternalCode, voiceBroad, setBright
|
|
|
+ sendInternalCode, voiceBroad, setBrightAudio
|
|
|
} from "@/api/screens";
|
|
|
import { ref,reactive} from 'vue'
|
|
|
import {ElMessage, ElMessageBox} from "element-plus";
|
|
@@ -497,6 +526,31 @@ const tableData = ref([])
|
|
|
const searchInfo = ref({})
|
|
|
const screensInfo = ref({})
|
|
|
const nowSn = ref("")
|
|
|
+const timeArr = ref([
|
|
|
+ '00:00', '00:10', '00:20', '00:30', '00:40', '00:50',
|
|
|
+ '01:00', '01:10', '01:20', '01:30', '01:40', '01:50',
|
|
|
+ '02:00', '02:10', '02:20', '02:30', '02:40', '02:50',
|
|
|
+ '03:00', '03:10', '03:20', '03:30', '03:40', '03:50',
|
|
|
+ '04:00', '04:10', '04:20', '04:30', '04:40', '04:50',
|
|
|
+ '05:00', '05:10', '05:20', '05:30', '05:40', '05:50',
|
|
|
+ '06:00', '06:10', '06:20', '06:30', '06:40', '06:50',
|
|
|
+ '07:00', '07:10', '07:20', '07:30', '07:40', '07:50',
|
|
|
+ '08:00', '08:10', '08:20', '08:30', '08:40', '08:50',
|
|
|
+ '09:00', '09:10', '09:20', '09:30', '09:40', '09:50',
|
|
|
+ '10:00', '10:10', '10:20', '10:30', '10:40', '10:50',
|
|
|
+ '11:00', '11:10', '11:20', '11:30', '11:40', '11:50',
|
|
|
+ '12:00', '12:10', '12:20', '12:30', '12:40', '12:50',
|
|
|
+ '13:00', '13:10', '13:20', '13:30', '13:40', '13:50',
|
|
|
+ '14:00', '14:10', '14:20', '14:30', '14:40', '14:50',
|
|
|
+ '15:00', '15:10', '15:20', '15:30', '15:40', '15:50',
|
|
|
+ '16:00', '16:10', '16:20', '16:30', '16:40', '16:50',
|
|
|
+ '17:00', '17:10', '17:20', '17:30', '17:40', '17:50',
|
|
|
+ '18:00', '18:10', '18:20', '18:30', '18:40', '18:50',
|
|
|
+ '19:00', '19:10', '19:20', '19:30', '19:40', '19:50',
|
|
|
+ '20:00', '20:10', '20:20', '20:30', '20:40', '20:50',
|
|
|
+ '21:00', '21:10', '21:20', '21:30', '21:40', '21:50',
|
|
|
+ '22:00', '22:10', '22:20', '22:30', '22:40', '22:50',
|
|
|
+ '23:00', '23:10', '23:20', '23:30', '23:40', '23:50'])
|
|
|
const dataForms = ref([
|
|
|
{
|
|
|
text:'',
|
|
@@ -711,7 +765,6 @@ const deleteScreens = (obj) => {
|
|
|
type: 'warning',
|
|
|
})
|
|
|
.then(async() => {
|
|
|
- console.log(obj)
|
|
|
const res = await deleteBaseScreens({ ID:obj.ID })
|
|
|
if (res.code === 0) {
|
|
|
ElMessage({
|
|
@@ -842,7 +895,8 @@ const openSetBrightDialog = async (obj)=>{
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
- setBrightForm.value = {dayBright:obj.dayBright,nightBright:obj.nightBright}
|
|
|
+ console.log("=====",obj)
|
|
|
+ setBrightForm.value = {dayBright:obj.dayBright,nightBright:obj.nightBright,audioOn:obj.audioOn,audioOff:obj.audioOff,switchSn:obj.switchSn}
|
|
|
setBrightDialog.value = true
|
|
|
nowSn.value = obj.sn
|
|
|
}
|
|
@@ -850,13 +904,17 @@ const openSetBrightDialog = async (obj)=>{
|
|
|
const closeSetBrightDialog = ()=>{
|
|
|
setBrightDialog.value = false
|
|
|
nowSn.value = ""
|
|
|
+ getTableData()
|
|
|
}
|
|
|
|
|
|
const enterSetBrightDialog = async () => {
|
|
|
- var res = await setBright({
|
|
|
+ var res = await setBrightAudio({
|
|
|
sn: nowSn.value,
|
|
|
dayBright: setBrightForm.value.dayBright,
|
|
|
- nightBright: setBrightForm.value.nightBright
|
|
|
+ nightBright: setBrightForm.value.nightBright,
|
|
|
+ audioOn: setBrightForm.value.audioOn,
|
|
|
+ audioOff: setBrightForm.value.audioOff,
|
|
|
+ switchSn: setBrightForm.value.switchSn
|
|
|
});
|
|
|
if (res.code === 0) {
|
|
|
ElMessage({
|
|
@@ -864,6 +922,7 @@ const enterSetBrightDialog = async () => {
|
|
|
message: '操作成功!',
|
|
|
})
|
|
|
}
|
|
|
+ closeSetBrightDialog()
|
|
|
}
|
|
|
|
|
|
|