| | |
| | | <!-- <el-table-column label="持续时长" align="center" min-width="100" fixed="right">--> |
| | | <!-- <el-table-column label="调整开始时间" align="center" min-width="100" fixed="right">--> |
| | | <!-- <el-table-column label="调整结束时间" align="center" min-width="100" fixed="right">--> |
| | | <el-table-column label="调度时间" align="center" prop="scheduleTime" min-width="100" fixed="right"/> |
| | | <el-table-column label="调度时间" align="center" prop="scheduleTime" min-width="100"/> |
| | | <el-table-column label="状态" align="center" prop="status" min-width="100"> |
| | | <template #default="scope"> |
| | | <span v-if="scope.row.status === 0">未处理</span> |
| | |
| | | <!-- <el-table-column label="处理人" align="center" min-width="100" fixed="right">--> |
| | | <!-- <el-table-column label="处理时间" align="center" min-width="100" fixed="right">--> |
| | | <!-- <el-table-column label="创建时间" align="center" min-width="100" fixed="right">--> |
| | | <el-table-column label="详情" align="center" min-width="100" fixed="right"> |
| | | <el-table-column label="操作" align="center" min-width="100"> |
| | | <template #default="scope"> |
| | | <el-button |
| | | link |
| | | type="primary" |
| | | @click="openForm(scope.row.modelId ,scope.row.scheduleTime)" |
| | | > |
| | | 调度历史 |
| | | </el-button> |
| | | <div class="flex items-center justify-center"> |
| | | <el-button |
| | | link |
| | | type="primary" |
| | | @click="openForm(scope.row.modelId ,scope.row.scheduleTime)" |
| | | > |
| | | 操作历史 |
| | | </el-button> |
| | | <el-button |
| | | link |
| | | type="primary" |
| | | @click="openSnapshot(scope.row.id)" |
| | | > |
| | | 快照 |
| | | </el-button> |
| | | </div> |
| | | </template> |
| | | <!-- <el-table-column label="快照" align="center" min-width="100" fixed="right">--> |
| | | <!-- <template #default="scope">--> |
| | | <!-- --> |
| | | <!-- </template>--> |
| | | <!-- </el-table-column>--> |
| | | </el-table-column> |
| | | </el-table> |
| | | <!-- 分页 --> |
| | |
| | | |
| | | <!-- 表单弹窗:添加/修改 --> |
| | | <SuggestOperationRecord ref="formRef" @success="getList" /> |
| | | <!-- 快照弹窗 --> |
| | | <SuggestSnapshot ref="suggestSnapshotRef" /> |
| | | |
| | | </template> |
| | | <script lang="ts" setup> |
| | | import * as ScheduleSuggestApi from '@/api/model/sche/suggest' |
| | | import SuggestOperationRecord from './suggestOperationRecord.vue' |
| | | import SuggestSnapshot from './suggestSnapshot.vue' |
| | | import {ref} from "vue"; |
| | | |
| | | defineOptions({name: 'ScheduleSuggest'}) |
| | | |
| | |
| | | onMounted(async () => { |
| | | await getList() |
| | | }) |
| | | |
| | | /** 快照 */ |
| | | const suggestSnapshotRef = ref() |
| | | const openSnapshot = (suggestId?: string) => { |
| | | console.log(suggestId) |
| | | suggestSnapshotRef.value.open(suggestId) |
| | | } |
| | | </script> |