|
|
|
@ -355,10 +355,6 @@ const SenceControlArr = ref([]) |
|
|
|
|
let celueItem; |
|
|
|
|
function selectCeLue(item){ |
|
|
|
|
celueItem = item |
|
|
|
|
// for(let i = 0;i < item.flow.length;i++){ |
|
|
|
|
// item.flow[i].type = 'primary' |
|
|
|
|
// } |
|
|
|
|
|
|
|
|
|
// //拼数组对象 |
|
|
|
|
// //1、 |
|
|
|
|
// let dataArr = []; |
|
|
|
@ -388,6 +384,24 @@ function selectCeLue(item){ |
|
|
|
|
// // console.log(JSON.stringify(dataArr, null, 4)); |
|
|
|
|
// SenceControlArr.value = JSON.stringify(dataArr, null, 4) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//执行另一个策略将所有策略的icon和type清空 |
|
|
|
|
function clearLastCelue(){ |
|
|
|
|
celueList.value.forEach((celue) => { |
|
|
|
|
celue.flow.forEach((flow) => { |
|
|
|
|
flow.icon = '' |
|
|
|
|
flow.type = '' |
|
|
|
|
}) |
|
|
|
|
}) |
|
|
|
|
celueItem.flow.forEach((flow) => { |
|
|
|
|
flow.icon = flow.icon || '' |
|
|
|
|
flow.type = flow.type || '' |
|
|
|
|
}) |
|
|
|
|
console.log('qqqqqq',celueItem) |
|
|
|
|
} |
|
|
|
|
// const getIcon = (item) => { return item.icon || '' } |
|
|
|
|
// const getType = (item) => { return item.type || '' } |
|
|
|
|
|
|
|
|
|
//执行 |
|
|
|
|
function confirmClick() { |
|
|
|
|
if(SenceControlArr.value.length != 0){ |
|
|
|
@ -408,6 +422,7 @@ function confirmClick() { |
|
|
|
|
|
|
|
|
|
getSenceControl(SenceControlArr.value).then((res)=>{ |
|
|
|
|
if(res.code == 200){ |
|
|
|
|
clearLastCelue() |
|
|
|
|
//执行过程 |
|
|
|
|
function setFlowItem(i) { |
|
|
|
|
if (i >= celueItem.flow.length) { |
|
|
|
@ -702,6 +717,11 @@ function getSetTemperatureFun(item){ |
|
|
|
|
} |
|
|
|
|
::v-deep .el-radio{ |
|
|
|
|
display: inline-block; |
|
|
|
|
transition: all .1s; |
|
|
|
|
&:hover{ |
|
|
|
|
box-shadow: 1px 1px 10px rgba(0,0,0,.3); |
|
|
|
|
transform: scale(1.005); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
::v-deep .el-drawer__body{ |
|
|
|
|
overflow-x: hidden; |
|
|
|
|