diff --git a/src/views/work/abnormal_process/index.vue b/src/views/work/abnormal_process/index.vue index 6639bc0..dc143bb 100644 --- a/src/views/work/abnormal_process/index.vue +++ b/src/views/work/abnormal_process/index.vue @@ -557,7 +557,8 @@ export default { startProcess() { let params = { - state: 5 + state: 5, + batchId:this.processBatchId } materialAbnormalStart(params).then(res => { if (res.data !== 0) { @@ -593,7 +594,6 @@ export default { checkFinal() { stepCheckAbnormal(this.processBatchId).then(res => { - console.log(res) if (res.data === 0) { this.finalFlag = 1 this.dialogVisible = true @@ -665,8 +665,18 @@ export default { let nowPass = this.nowPass let temp = nowPass.step % 8 - // 计算circleStart的角度,1~7分别对应0,45,90,135,180,225,270,0对应315 - this.circleStart = temp === 0 ? 315 : (temp - 1) * 45 + const angleMap = { + 0: 315, + 1: 0, + 2: 90, + 3: 45, + 4: 135, + 5: 180, + 6: 270, + 7: 225, + 8: 315, + }; + this.circleStart = angleMap[temp]; }) }, diff --git a/src/views/work/process/index.vue b/src/views/work/process/index.vue index 724d9d8..8df47b2 100644 --- a/src/views/work/process/index.vue +++ b/src/views/work/process/index.vue @@ -668,8 +668,18 @@ export default { this.stepFlag = this.nowPass.state let nowPass = this.nowPass let temp = nowPass.step % 8 - // 计算circleStart的角度,1~7分别对应0,45,90,135,180,225,270,0对应315 - this.circleStart = temp === 0 ? 315 : (temp - 1) * 45 + const angleMap = { + 0: 315, + 1: 0, + 2: 90, + 3: 45, + 4: 135, + 5: 180, + 6: 270, + 7: 225, + 8: 315, + }; + this.circleStart = angleMap[temp]; }) },