From 02bbf25456f3a0165313340be277cfa4a2b3b24f Mon Sep 17 00:00:00 2001 From: 潘志宝 <979469083@qq.com> Date: 星期三, 25 十二月 2024 18:09:51 +0800 Subject: [PATCH] 调度记录查看 --- src/views/model/sche/scheme/index.vue | 19 +++++++++++++++++-- 1 files changed, 17 insertions(+), 2 deletions(-) diff --git a/src/views/model/sche/scheme/index.vue b/src/views/model/sche/scheme/index.vue index 6212a90..53f055a 100644 --- a/src/views/model/sche/scheme/index.vue +++ b/src/views/model/sche/scheme/index.vue @@ -81,6 +81,14 @@ </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']" @@ -102,13 +110,14 @@ <!-- 表单弹窗:添加/修改 --> <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'}) @@ -171,6 +180,12 @@ } } + /** 调用日志查看 */ + const recordRef = ref() + const openRecordList = (id?: string) => { + recordRef.value.open(id) + } + /** 初始化 **/ onMounted(async () => { await getList() -- Gitblit v1.9.3