|
|
|
@ -165,7 +165,7 @@ import {Delete,SwitchButton} from '@element-plus/icons-vue' |
|
|
|
|
import {ElMessage, ElMessageBox} from "element-plus"; |
|
|
|
|
import {ref, reactive, watch, onMounted, watchEffect} from "vue"; |
|
|
|
|
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 |
|
|
|
|
|
|
|
|
|
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 rundayStr = ''; |
|
|
|
|
for(let j = 0;j < rundayArr.length;j++){ |
|
|
|
@ -491,9 +491,9 @@ const watchTime = watch(()=> timingForm.executeTime, (val) => { |
|
|
|
|
selectTimer.value = `${hours}:${minutes}:${seconds}` |
|
|
|
|
console.log('选择时间:',selectTimer.value) |
|
|
|
|
}) |
|
|
|
|
//获取所有设备 |
|
|
|
|
//获取可控所有设备 |
|
|
|
|
function getAllDev(){ |
|
|
|
|
getDevice().then((res)=>{ |
|
|
|
|
getControlDeviceList().then((res)=>{ |
|
|
|
|
devArr.value = res.data |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|