| | |
| | | class="!w-240px" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="状态" prop="state"> |
| | | <el-form-item label="状态" prop="status"> |
| | | <el-select |
| | | v-model="queryParams.state" |
| | | v-model="queryParams.status" |
| | | placeholder="请选择状态" |
| | | clearable |
| | | class="!w-240px" |
| | | > |
| | | <el-option |
| | | v-for="item in stateOptions" |
| | | v-for="item in statusOptions" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value" |
| | |
| | | <!-- <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'}) |
| | | |
| | |
| | | title: undefined, |
| | | modelId: undefined |
| | | }) |
| | | const stateOptions = [ |
| | | const statusOptions = [ |
| | | { value: 0, label: '未处理' }, |
| | | { value: 1, label: '已采纳' }, |
| | | { value: 2, label: '已忽略' } |
| | |
| | | onMounted(async () => { |
| | | await getList() |
| | | }) |
| | | |
| | | /** 快照 */ |
| | | const suggestSnapshotRef = ref() |
| | | const openSnapshot = (suggestId?: string) => { |
| | | console.log(suggestId) |
| | | suggestSnapshotRef.value.open(suggestId) |
| | | } |
| | | </script> |