定时控制渲染可控设备列表

master
wj 2 years ago
parent 3da9c076ed
commit bce71ea39b
  1. 8
      psdc-ui/src/views/control/timer/index.vue
  2. 55
      psdc-ui/src/views/emonitor/db/index.vue
  3. 6
      psdc-ui/src/views/system/cl/index.vue
  4. 2
      psdc-ui/src/views/system/user/profile/index.vue

@ -165,7 +165,7 @@ import {Delete,SwitchButton} from '@element-plus/icons-vue'
import {ElMessage, ElMessageBox} from "element-plus"; import {ElMessage, ElMessageBox} from "element-plus";
import {ref, reactive, watch, onMounted, watchEffect} from "vue"; import {ref, reactive, watch, onMounted, watchEffect} from "vue";
import {getList, getAddTimer, getDeleteTimer, getUpDateStatus} from '@/api/control/timer' import {getList, getAddTimer, getDeleteTimer, getUpDateStatus} from '@/api/control/timer'
import { getDevice } from '@/api/control/manual' import { getDevice,getControlDeviceList } from '@/api/control/manual'
/** 页面加载时*/ /** 页面加载时*/
@ -267,7 +267,7 @@ function getListFun(){
timingList.value = res.rows timingList.value = res.rows
for(let i = 0;i < timingList.value.length;i++){ for(let i = 0;i < timingList.value.length;i++){
if(timingList.value[i].runday.length != 10){ if(timingList.value[i].runday.length != 10){ //
let rundayArr = timingList.value[i].runday.split(','); // let rundayArr = timingList.value[i].runday.split(','); //
let rundayStr = ''; let rundayStr = '';
for(let j = 0;j < rundayArr.length;j++){ for(let j = 0;j < rundayArr.length;j++){
@ -491,9 +491,9 @@ const watchTime = watch(()=> timingForm.executeTime, (val) => {
selectTimer.value = `${hours}:${minutes}:${seconds}` selectTimer.value = `${hours}:${minutes}:${seconds}`
console.log('选择时间:',selectTimer.value) console.log('选择时间:',selectTimer.value)
}) })
// //
function getAllDev(){ function getAllDev(){
getDevice().then((res)=>{ getControlDeviceList().then((res)=>{
devArr.value = res.data devArr.value = res.data
}) })
} }

@ -275,12 +275,31 @@ export default {
textStyle:{ textStyle:{
color:'#BEC3DA' color:'#BEC3DA'
}, },
grid:{
show: true,
top: '20%',
bottom:'15%',
left:'5%',
right:'3%',
borderWidth: 1,
borderColor: '#767da1',
},
xAxis: { xAxis: {
data:data.glXz, data:data.glXz,
axisLine:{ axisLine:{
lineStyle:{ lineStyle:{
color:'#BEC3DA', color:'#767da1'
type:'dashed' }
},
axisTick: {
show: false // x
},
splitArea: {
show: true,
interval:0,
areaStyle: {
color: ['rgb(54,68,148,.8)', 'rgb(37,51,133,.8)'] //
//
} }
} }
}, },
@ -295,7 +314,7 @@ export default {
} }
}, },
axisLine: { axisLine: {
show: true, show: false,
lineStyle:{ lineStyle:{
type:'dashed', type:'dashed',
color:'#BEC3DA' color:'#BEC3DA'
@ -337,6 +356,15 @@ export default {
myChart3.setOption({ myChart3.setOption({
title: {}, title: {},
tooltip: {}, tooltip: {},
grid:{
show: true,
top: '20%',
bottom:'15%',
left:'5%',
right:'3%',
borderWidth: 1,
borderColor: '#767da1',
},
textStyle:{ textStyle:{
color:'#BEC3DA' color:'#BEC3DA'
}, },
@ -345,8 +373,19 @@ export default {
data:data.fdlXz, data:data.fdlXz,
axisLine:{ axisLine:{
lineStyle:{ lineStyle:{
color:'#BEC3DA', color:'#767da1',
type:'dashed' // type:'dashed'
}
},
axisTick: {
show: false // x
},
splitArea: {
show: true,
interval:0,
areaStyle: {
color: ['rgb(54,68,148,.8)', 'rgb(37,51,133,.8)'] //
//
} }
} }
}, },
@ -356,12 +395,12 @@ export default {
splitLine:{ splitLine:{
show:true, show:true,
lineStyle:{ lineStyle:{
type:'dashed', type:'solid',
color:'#BEC3DA' color:'#f3ffff'
} }
}, },
axisLine: { axisLine: {
show: true, show: false,
lineStyle:{ lineStyle:{
type:'dashed', type:'dashed',
color:'#BEC3DA' color:'#BEC3DA'

@ -52,7 +52,7 @@
<!-- 新增对话框 --> <!-- 新增对话框 -->
<el-dialog :title="title" v-model="open" width="600px" append-to-body> <el-dialog :title="title" v-model="open" width="600" append-to-body>
<el-form :model="timingForm" ref="userRef" label-width="88px"> <el-form :model="timingForm" ref="userRef" label-width="88px">
<el-row> <el-row>
<el-col :span="24"> <el-col :span="24">
@ -457,6 +457,7 @@ function handleXg(dat) {
var deviceId = data.sblb[i].deviceId var deviceId = data.sblb[i].deviceId
for (let j = 0;j < dat.deviceVos.length ;j++ ) { for (let j = 0;j < dat.deviceVos.length ;j++ ) {
if ( deviceId === dat.deviceVos[j].deviceId){ if ( deviceId === dat.deviceVos[j].deviceId){
console.log(dat.deviceVos[j].tempValue)
data.sblb[i].controlKey = dat.deviceVos[j].tempValue; data.sblb[i].controlKey = dat.deviceVos[j].tempValue;
} }
} }
@ -622,5 +623,8 @@ const { queryParams } = toRefs(data);
::v-deep .el-checkbox { ::v-deep .el-checkbox {
width: 560px; width: 560px;
} }
//::v-deep .el-dialog:not(.is-fullscreen){
// width: auto;
//}
</style> </style>

@ -37,7 +37,7 @@
</div> </div>
</el-card> </el-card>
</el-col> </el-col>
<el-col :span="18" :xs="24"> <el-col :span="6" :xs="24">
<el-card> <el-card>
<template v-slot:header> <template v-slot:header>
<div class="clearfix"> <div class="clearfix">

Loading…
Cancel
Save