| | |
| | | </el-button> |
| | | <el-button |
| | | link |
| | | type="primary" |
| | | @click="openRecordList(scope.row.id)" |
| | | v-hasPermi="['sche:record:query']" |
| | | > |
| | | 日志 |
| | | </el-button> |
| | | <el-button |
| | | link |
| | | type="danger" |
| | | @click="handleDelete(scope.row.id)" |
| | | v-hasPermi="['sche:scheme:delete']" |
| | |
| | | <!-- 表单弹窗:添加/修改 --> |
| | | <ScheduleSchemeForm ref="formRef" @success="getList" /> |
| | | |
| | | <!-- 表单弹窗:添加/修改 --> |
| | | <RecordList ref="recordRef" /> |
| | | </template> |
| | | <script lang="ts" setup> |
| | | import {DICT_TYPE, getIntDictOptions} from '@/utils/dict' |
| | | import {dateFormatter} from '@/utils/formatTime' |
| | | import download from '@/utils/download' |
| | | import * as ScheduleSchemeApi from '@/api/model/sche/scheme' |
| | | import ScheduleSchemeForm from './ScheduleSchemeForm.vue' |
| | | import RecordList from './record/index.vue' |
| | | |
| | | defineOptions({name: 'ScheduleScheme'}) |
| | | |
| | |
| | | } |
| | | } |
| | | |
| | | /** 调用日志查看 */ |
| | | const recordRef = ref() |
| | | const openRecordList = (id?: string) => { |
| | | recordRef.value.open(id) |
| | | } |
| | | |
| | | /** 初始化 **/ |
| | | onMounted(async () => { |
| | | await getList() |