| | |
| | | </template> |
| | | </div> |
| | | </div> |
| | | <TaskControlModal v-model="showTaskControlModal" :task="task"></TaskControlModal> |
| | | </template> |
| | | <script setup lang="ts"> |
| | | import type { Task } from '@/api/task' |
| | | import { toRefs } from 'vue' |
| | | import { ref, toRefs } from 'vue' |
| | | import BigButton from '@/views/dashboard/components/BigButton.vue' |
| | | import { useDateFormat } from '@vueuse/core' |
| | | import TaskControlModal from '@/views/dashboard/components/TaskControlModal.vue' |
| | | |
| | | const props = defineProps<{ |
| | | task?: Task |
| | | }>() |
| | | const { task } = toRefs(props) |
| | | |
| | | const showTaskControlModal = ref(false) |
| | | |
| | | /** |
| | | * 开始生产 |
| | | */ |
| | | function startProduce() { |
| | | // TODO: |
| | | // console.log(1) |
| | | showTaskControlModal.value = true |
| | | } |
| | | |
| | | /** |