| | |
| | | <vxe-input class="input" v-model="props.quantity" disabled ></vxe-input> |
| | | <span>优化时长(秒):</span> |
| | | <span class="time-display">{{ formattedTime }}</span> |
| | | <el-button id="start" type="primary" style="margin-left: 20px" @click="startTimer">开始优化</el-button> |
| | | <!-- <el-button class="buttons" type="primary" @click="pauseTimer">暂停</el-button>--> |
| | | <el-button |
| | | id="start" |
| | | type="primary" |
| | | style="margin-left: 20px" |
| | | @click="startTimer" |
| | | :disabled="isRunning" |
| | | :class="{ 'disabled-button': isRunning }" |
| | | > |
| | | 开始优化 |
| | | </el-button> |
| | | <el-button id="complete" class="buttons" type="primary" style="display: none" @click="resetTimer">完成</el-button> |
| | | </div> |
| | | <br> |
| | |
| | | height: 80%; |
| | | } |
| | | |
| | | .disabled-button { |
| | | opacity: 0.6 !important; |
| | | cursor: not-allowed !important; |
| | | } |
| | | |
| | | |
| | | </style> |