|
|
@ -203,10 +203,17 @@
|
|
|
|
<el-button
|
|
|
|
<el-button
|
|
|
|
type="primary"
|
|
|
|
type="primary"
|
|
|
|
:disabled="channelsetLoading"
|
|
|
|
:disabled="channelsetLoading"
|
|
|
|
@click="handleConfim(true)"
|
|
|
|
@click="handleConfim(false)"
|
|
|
|
:loading="channelLoading"
|
|
|
|
|
|
|
|
>确 定</el-button
|
|
|
|
>确 定</el-button
|
|
|
|
|
|
|
|
> <el-button
|
|
|
|
|
|
|
|
type="primary"
|
|
|
|
|
|
|
|
:disabled="channelsetLoading"
|
|
|
|
|
|
|
|
@click="handleConfim(true)"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
>保存并关闭</el-button
|
|
|
|
>
|
|
|
|
>
|
|
|
|
|
|
|
|
<!-- :loading="channelLoading" -->
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</el-dialog>
|
|
|
|
</el-dialog>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
@ -532,7 +539,8 @@ export default {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this.searchBtn();
|
|
|
|
this.searchBtn();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
handleConfim() {
|
|
|
|
|
|
|
|
|
|
|
|
handleConfim(flag) {
|
|
|
|
|
|
|
|
|
|
|
|
console.log("点击了确定");
|
|
|
|
console.log("点击了确定");
|
|
|
|
console.log(this.channelForm);
|
|
|
|
console.log(this.channelForm);
|
|
|
@ -727,7 +735,7 @@ export default {
|
|
|
|
{ name: "type21", value: 0 },
|
|
|
|
{ name: "type21", value: 0 },
|
|
|
|
];
|
|
|
|
];
|
|
|
|
console.log(params);
|
|
|
|
console.log(params);
|
|
|
|
this.setTermFn(params);
|
|
|
|
this.setTermFn(params,flag);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
this.$message({
|
|
|
|
this.$message({
|
|
|
|
duration: 1500,
|
|
|
|
duration: 1500,
|
|
|
@ -738,7 +746,7 @@ export default {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
setTermFn(val) {
|
|
|
|
setTermFn(val,flag) {
|
|
|
|
setTermCamera({
|
|
|
|
setTermCamera({
|
|
|
|
termId: this.areaData.id,
|
|
|
|
termId: this.areaData.id,
|
|
|
|
list: val,
|
|
|
|
list: val,
|
|
|
@ -747,16 +755,17 @@ export default {
|
|
|
|
console.log(res);
|
|
|
|
console.log(res);
|
|
|
|
this.requestid = res.data.requestId;
|
|
|
|
this.requestid = res.data.requestId;
|
|
|
|
|
|
|
|
|
|
|
|
this.getTakechannelStatus();
|
|
|
|
this.getTakechannelStatus(flag);
|
|
|
|
clearInterval(this.setTimer);
|
|
|
|
clearInterval(this.setTimer);
|
|
|
|
this.setTimer = window.setInterval(() => {
|
|
|
|
this.setTimer = window.setInterval(() => {
|
|
|
|
this.getTakechannelStatus();
|
|
|
|
this.getTakechannelStatus(flag);
|
|
|
|
this.setNum++;
|
|
|
|
this.setNum++;
|
|
|
|
}, 1000);
|
|
|
|
}, 1000);
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.catch((err) => {});
|
|
|
|
.catch((err) => {});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
getTakechannelStatus() {
|
|
|
|
getTakechannelStatus(flag) {
|
|
|
|
|
|
|
|
console.log("aaaaaaaaaaaaaaaaaaaaaa",flag)
|
|
|
|
getTermCameraRequest({ requestid: this.requestid })
|
|
|
|
getTermCameraRequest({ requestid: this.requestid })
|
|
|
|
.then((res) => {
|
|
|
|
.then((res) => {
|
|
|
|
console.log(res);
|
|
|
|
console.log(res);
|
|
|
@ -764,6 +773,10 @@ export default {
|
|
|
|
window.clearInterval(this.setTimer);
|
|
|
|
window.clearInterval(this.setTimer);
|
|
|
|
this.setTimer = null;
|
|
|
|
this.setTimer = null;
|
|
|
|
this.setNum = 0;
|
|
|
|
this.setNum = 0;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(flag){
|
|
|
|
|
|
|
|
this.isShow = false;
|
|
|
|
|
|
|
|
}
|
|
|
|
//this.isShow = false;
|
|
|
|
//this.isShow = false;
|
|
|
|
this.channelLoading = false;
|
|
|
|
this.channelLoading = false;
|
|
|
|
this.$message({
|
|
|
|
this.$message({
|
|
|
@ -774,6 +787,9 @@ export default {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
} else if (this.setNum > 3) {
|
|
|
|
} else if (this.setNum > 3) {
|
|
|
|
// this.isShow = false;
|
|
|
|
// this.isShow = false;
|
|
|
|
|
|
|
|
if(flag){
|
|
|
|
|
|
|
|
this.isShow = false;
|
|
|
|
|
|
|
|
}
|
|
|
|
window.clearInterval(this.setTimer);
|
|
|
|
window.clearInterval(this.setTimer);
|
|
|
|
this.setTimer = null;
|
|
|
|
this.setTimer = null;
|
|
|
|
this.setNum = 0;
|
|
|
|
this.setNum = 0;
|
|
|
@ -1050,6 +1066,7 @@ export default {
|
|
|
|
.el-slider {
|
|
|
|
.el-slider {
|
|
|
|
width: 200px;
|
|
|
|
width: 200px;
|
|
|
|
margin-right: 12px;
|
|
|
|
margin-right: 12px;
|
|
|
|
|
|
|
|
margin-left: 10px;
|
|
|
|
.el-slider__runway {
|
|
|
|
.el-slider__runway {
|
|
|
|
height: 8px;
|
|
|
|
height: 8px;
|
|
|
|
margin: 12px 0;
|
|
|
|
margin: 12px 0;
|
|
|
|