布局变化

This commit is contained in:
砂糖
2025-07-10 11:41:08 +08:00
parent ec00532542
commit b4b5ea3994
2 changed files with 10 additions and 36 deletions

View File

@@ -25,6 +25,8 @@
>{{ item.id }}
</td>
<td class="hxjx_table_btnColumn"
style="max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;"
:title="item.specification"
:class="[{table_td_warn: item.operation===1},{table_td_error:item.state===3}]"
>
{{ item.specification }}
@@ -128,7 +130,7 @@
<div style="display: flex;margin-bottom: 15px;">
<img src="../../../assets/img/FlowChart-2-1.png" class="imageCircle"
:style="{transform: 'rotate(-' + circleStart + 'deg)'}"
:style="{transform: 'rotate(-' + circleStart - 45 + 'deg)'}"
/>
<img src="../../../assets/img/FlowChart-2-2.png" class="image-circle-rows">
</div>
@@ -663,23 +665,8 @@ export default {
let nowPass = this.nowPass
let temp = nowPass.step % 8
if (temp === 1) {
this.circleStart = 0
} else if (temp === 2) {
this.circleStart = 45
} else if (temp === 3) {
this.circleStart = 90
} else if (temp === 0) {
this.circleStart = 315
} else if (temp === 4) {
this.circleStart = 135
} else if (temp === 5) {
this.circleStart = 180
} else if (temp === 6) {
this.circleStart = 225
} else if (temp === 7) {
this.circleStart = 270
}
// 计算circleStart的角度1~7分别对应0,45,90,135,180,225,2700对应315
this.circleStart = temp === 0 ? 315 : (temp - 1) * 45
})
},

View File

@@ -25,6 +25,8 @@
</td>
<td class="hxjx_table_btnColumn"
:class="[{table_td_error:item.state===3},{table_td_warn: item.operation===1}]"
style="max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;"
:title="item.specification"
>
{{ item.specification }}
</td>
@@ -127,7 +129,7 @@
<div style="width:100%;height:350px;display: flex;justify-content: space-between">
<div style="display: flex;margin-bottom: 15px;">
<img src="../../../assets/img/FlowChart-2-1.png" class="imageCircle"
:style="{transform: 'rotate(-' + circleStart + 'deg)'}"
:style="{transform: 'rotate(-' + circleStart - 45 + 'deg)'}"
/>
<img src="../../../assets/img/FlowChart-2-2.png" class="image-circle-rows">
</div>
@@ -666,23 +668,8 @@ export default {
this.stepFlag = this.nowPass.state
let nowPass = this.nowPass
let temp = nowPass.step % 8
if (temp === 1) {
this.circleStart = 0
} else if (temp === 2) {
this.circleStart = 45
} else if (temp === 3) {
this.circleStart = 90
} else if (temp === 0) {
this.circleStart = 315
} else if (temp === 4) {
this.circleStart = 135
} else if (temp === 5) {
this.circleStart = 180
} else if (temp === 6) {
this.circleStart = 225
} else if (temp === 7) {
this.circleStart = 270
}
// 计算circleStart的角度1~7分别对应0,45,90,135,180,225,2700对应315
this.circleStart = temp === 0 ? 315 : (temp - 1) * 45
})
},