Commit a379a142 by 李君

优化

1 parent abbbcf2d
...@@ -375,6 +375,10 @@ ...@@ -375,6 +375,10 @@
}, },
transferEditXy() { transferEditXy() {
if (this.editGateC.cval && this.editGateC.cval.length > 3 && this.editGateXY.cval && this.editGateXY.cval.length > 3) { if (this.editGateC.cval && this.editGateC.cval.length > 3 && this.editGateXY.cval && this.editGateXY.cval.length > 3) {
this.editGateC.cval.forEach(item=>{
item.x = item.x.toFixed(0)
item.y = item.y.toFixed(0)
})
let coordinate = JSON.stringify({ let coordinate = JSON.stringify({
centerPoint: { centerPoint: {
x: 0, x: 0,
...@@ -393,7 +397,6 @@ ...@@ -393,7 +397,6 @@
coordinate:coordinate, coordinate:coordinate,
} }
this.$api.queueManagementApi.demarcateFun(parmas).then(res => { this.$api.queueManagementApi.demarcateFun(parmas).then(res => {
console.log(res)
let result = res.data; let result = res.data;
if(result.code==200){ if(result.code==200){
this.$message({ this.$message({
......
...@@ -240,6 +240,8 @@ ...@@ -240,6 +240,8 @@
this.timeInterval = setInterval(() => { this.timeInterval = setInterval(() => {
openT = openT + 1000 * 60 * this.searchForm.granularity openT = openT + 1000 * 60 * this.searchForm.granularity
if(openT > closeT){ if(openT > closeT){
this.pauseBtn = false;
this.playBtnShow = false
clearInterval(this.timeInterval); clearInterval(this.timeInterval);
return false return false
}else{ }else{
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!