| | |
| | | <script setup> |
| | | import {ref, computed} from "vue"; |
| | | import {Connection} from "@element-plus/icons-vue"; |
| | | import {useRoute} from "vue-router"; |
| | | |
| | | |
| | | const props = defineProps({ |
| | | quantity : null, |
| | | area:null |
| | | }); |
| | | //计时器 |
| | | let seconds = ref(0); |
| | | let isRunning = ref(false); |
| | |
| | | return `${minutes.toString().padStart(2, '0')}:${remainingSeconds.toString().padStart(2, '0')}`; |
| | | }); |
| | | const startTimer = () => { |
| | | console.log(props) |
| | | if (!isRunning.value) { |
| | | intervalId = setInterval(() => { |
| | | seconds.value++; |
| | |
| | | <div> |
| | | <span>总面积(m2):</span> |
| | | <vxe-input class="input" disabled placeholder=""></vxe-input> |
| | | <span>总数量(片):</span> |
| | | <span>总数量(片):{{props.quantity}}</span> |
| | | <vxe-input class="input" disabled placeholder=""></vxe-input> |
| | | <span>优化时长(秒):</span> |
| | | <span class="time-display">{{ formattedTime }}</span> |