| | |
| | | align="center" |
| | | min-width="150" |
| | | /> |
| | | <el-table-column label="快照" align="center" min-width="100" fixed="right"> |
| | | <template #default="scope"> |
| | | <el-button |
| | | link |
| | | type="primary" |
| | | @click="openSnapshot(scope.row.id)" |
| | | v-if="scope.row.operate=='采纳建议'" |
| | | > |
| | | 快照 |
| | | </el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | <!-- 分页 --> |
| | | <Pagination |
| | |
| | | /> |
| | | </ContentWrap> |
| | | </el-drawer> |
| | | <!-- 快照弹窗 --> |
| | | <SuggestSnapshot ref="suggestSnapshotRef" @success="getList" /> |
| | | </template> |
| | | <script lang="ts" setup> |
| | | import type {DrawerProps} from 'element-plus' |
| | | import { getSuggestOperationRecordPage } from '@/api/model/sche/suggest/suggestOperationRecord'; |
| | | import SuggestSnapshot from './suggestSnapshot.vue' |
| | | import {ref} from "vue"; |
| | | |
| | | defineOptions({name: 'SuggestOperationRecord'}) |
| | |
| | | getList() |
| | | } |
| | | |
| | | /** 快照 */ |
| | | const suggestSnapshotRef = ref() |
| | | const openSnapshot = (id?: string) => { |
| | | suggestSnapshotRef.value.openSnapshot(id) |
| | | } |
| | | |
| | | /** 打开弹窗 */ |
| | | const open = async (modelId?: string, scheduleTime?: string) => { |
| | | drawer.value = true |