From e6967a949d7e0332eee1e4ad2fb4ca7aee76b620 Mon Sep 17 00:00:00 2001
From: jiminglei <836545853@qq.com>
Date: Wed, 14 Jun 2023 14:18:16 +0800
Subject: [PATCH] 11
---
psdc-ui/src/views/system/cl/index.vue | 95 +++++++++++++++++++++++++--
1 file changed, 88 insertions(+), 7 deletions(-)
diff --git a/psdc-ui/src/views/system/cl/index.vue b/psdc-ui/src/views/system/cl/index.vue
index 3a5f7aa..6d89ac4 100644
--- a/psdc-ui/src/views/system/cl/index.vue
+++ b/psdc-ui/src/views/system/cl/index.vue
@@ -65,6 +65,27 @@
+ 是否有限制条件
+
+ 是
+ 否
+
+
+
+ 限制设备:
+
+
+
+ 限制属性:
+
+ 温度
+ 进水温度
+ 出水温度
+
+ 温度数值:
+
+
+
全选
@@ -74,7 +95,7 @@
开启
- 关闭
+ 关闭
@@ -137,6 +158,27 @@
+ 是否有限制条件
+
+ 是
+ 否
+
+
+
+ 限制设备:
+
+
+
+ 限制属性:
+
+ 温度
+ 进水温度
+ 出水温度
+
+ 温度数值:
+
+
+
全选
@@ -147,7 +189,7 @@
开启
- 关闭
+ 关闭
@@ -195,9 +237,19 @@
import {ElMessage,ElMessageBox} from 'element-plus'
import {Delete} from '@element-plus/icons-vue'
import {ref,reactive,watch,onMounted} from "vue";
-import {getXl,getTb,postNew,getSb1,postXg,postDel} from '../../../api/emonitor/api'
+import {getXl,getTb,postNew,getSb1,postXg,postDel,getSb} from '../../../api/emonitor/api'
onMounted(()=>{
+ getSb().then((res)=>{
+ console.log('111',res)
+ var arr = []
+ for(var i in res.data){
+ arr=arr.concat(res.data[i].children)
+ }
+ console.log('Allsblb',arr)
+ data.allsblb=arr
+ })
getSb1().then((res)=>{
+ console.log('222',res)
var arr = []
for(var i in res.data){
arr=arr.concat(res.data[i].children)
@@ -232,11 +284,13 @@ onMounted(()=>{
})
/** 筛选处理 */
const data = reactive({
+ activeNames:0,
checkAll: false,
checkedSblb: [],
checkAll1: false,
checkedSblb1: [],
sblb: [],
+ allsblb:[],
AllName:[],
isIndeterminate: false,
isIndeterminate1: false,
@@ -353,13 +407,21 @@ const activeName = ref('1')
const timingForm = reactive({
sceneName:'',
sceneRemark:'',
- deviceVos:[]
+ deviceVos:[],
+ isJudge:null,
+ judgeDevice:null,
+ judgeElement:null,
+ judgeData:null
})
const timingForm1 = reactive({
sceneName:'',
sceneRemark:'',
sceneCode:'',
- deviceVos:[]
+ deviceVos:[],
+ isJudge:null,
+ judgeDevice:null,
+ judgeElement:null,
+ judgeData:null
// deviceId:'',
// temp:'',
// intemp:'',
@@ -414,7 +476,11 @@ function submitForm() {
})
timingForm.sceneName='',
timingForm.sceneRemark='',
- timingForm.deviceVos=[]
+ timingForm.deviceVos=[],
+ timingForm.isJudge=2,
+ timingForm.judgeDevice=null,
+ timingForm.judgeElement=null,
+ timingForm.judgeData=null,
data.checkedSblb=[];
data.isIndeterminate=false
open.value = false;
@@ -429,7 +495,10 @@ function cancel() {
timingForm.sceneName='',
timingForm.sceneRemark='',
timingForm.deviceVos=[];
-
+ timingForm.isJudge=2,
+ timingForm.judgeDevice=null,
+ timingForm.judgeElement=null,
+ timingForm.judgeData=null
data.checkedSblb=[];
data.isIndeterminate=false
open.value = false;
@@ -461,6 +530,10 @@ function handleXg(dat) {
timingForm1.sceneName=dat.sceneName
timingForm1.sceneRemark=dat.sceneRemark
timingForm1.sceneCode = dat.sceneCode
+ timingForm1.isJudge=dat.isJudge
+ timingForm1.judgeDevice=dat.judgeDevice
+ timingForm1.judgeElement=dat.judgeElement
+ timingForm1.judgeData=dat.judgeData
};
function submitForm1() {
let tempCheckedSblb = [];
@@ -497,6 +570,10 @@ function submitForm1() {
timingForm1.sceneRemark=''
timingForm1.sceneCode=''
timingForm1.deviceVos=[]
+ timingForm1.isJudge=2,
+ timingForm1.judgeDevice=null,
+ timingForm1.judgeElement=null,
+ timingForm1.judgeData=null
};
function cancel1() {
open1.value = false;
@@ -504,6 +581,10 @@ function cancel1() {
timingForm1.sceneRemark=''
timingForm1.sceneCode=''
timingForm1.deviceVos=[]
+ timingForm1.isJudge=2,
+ timingForm1.judgeDevice=null,
+ timingForm1.judgeElement=null,
+ timingForm1.judgeData=null
handleQuery()
data.sblb.map(item => {
item.controlKey.map(temp => {