| | |
| | | }; |
| | | const handleCurrentChange = async(val: number) => { |
| | | currentPage.value = val; |
| | | console.log(currentPage.value); |
| | | |
| | | const response = await request.post('/temperingGlass/temperingGlassInfo/selectTemperingGlass', { |
| | | engineerId: engineerId.value, |
| | | temperingLayoutId: currentPage.value |
| | |
| | | } |
| | | }); |
| | | adjustedRects.value = adjustedRectsData; |
| | | currentPage.value = 1; |
| | | } |
| | | }; |
| | | function getRectColor(state: number): string { |
| | | switch (state) { |
| | | case -1: |
| | | return '#CDAF95'; |
| | | case 0: |
| | | return '#e1f3d8'; |
| | | case 100: |
| | | return '#c8c9cc'; |
| | | case 110: |
| | | return '#b3e19d'; |
| | | case 120: |
| | | return '#f89898'; |
| | | return '#7AC5CD'; |
| | | case 1: |
| | | return '#95d475'; |
| | | case 2: |
| | | return 'lightblue'; |
| | | case 3: |
| | | return '#eebe77'; |
| | | case 4: |
| | | return '#CD6090'; |
| | | case 8: |
| | | return '#911005'; |
| | | case 9: |
| | | return '#f3d19e'; |
| | | return '#4682B4'; |
| | | } |
| | | } |
| | | // 更新矩形状态 |