From b8f758793f0a1f3aecc8b3de57fb6de5985f001a Mon Sep 17 00:00:00 2001 From: dongyukun <1208714201@qq.com> Date: 星期一, 26 五月 2025 18:25:28 +0800 Subject: [PATCH] 调度建议快照 --- src/views/model/sche/snapshotConf/det/index.vue | 33 +++++++++++++++++---------------- 1 files changed, 17 insertions(+), 16 deletions(-) diff --git a/src/views/model/sche/snapshotConf/det/index.vue b/src/views/model/sche/snapshotConf/det/index.vue index e74ffc2..36fd064 100644 --- a/src/views/model/sche/snapshotConf/det/index.vue +++ b/src/views/model/sche/snapshotConf/det/index.vue @@ -1,7 +1,7 @@ <template> <el-drawer v-model="drawer" - size="40%" + size="60%" title="参数列表" direction="rtl" :before-close="handleClose" @@ -15,10 +15,10 @@ :inline="true" label-width="68px" > - <el-form-item label="参数名称" prop="paramName"> + <el-form-item label="数据编号" prop="dataNo"> <el-input - v-model="queryParams.paramName" - placeholder="请输入参数名称" + v-model="queryParams.dataNo" + placeholder="请输入数据编号" clearable class="!w-240px" /> @@ -61,6 +61,7 @@ row-key="id" > <el-table-column prop="dataType" label="数据类型"/> + <el-table-column prop="dataName" label="数据名称"/> <el-table-column prop="dataNo" label="数据编号"/> <el-table-column prop="leftLength" label="左侧长度(min)"/> <el-table-column prop="rightLength" label="右侧侧长度(min)"/> @@ -97,17 +98,17 @@ </ContentWrap> <!-- 表单弹窗:添加/修改 --> - <ChartParamForm ref="formRef" @success="getList" /> + <ConfigDetForm ref="formRef" @success="getList" /> </el-drawer> </template> <script lang="ts" setup> import {dateFormatter} from '@/utils/formatTime' -import * as ChartParamApi from '@/api/model/mpk/chartParam' -import ChartParamForm from './ChartParamForm.vue' +import * as configDetApi from '@/api/model/sche/suggest/snapshotConfigDet' +import ConfigDetForm from './configDetForm.vue' import type {DrawerProps} from "element-plus"; -defineOptions({name: 'ChartParam'}) +defineOptions({name: 'ConfigDet'}) const message = useMessage() // 消息弹窗 const {t} = useI18n() // 国际化 @@ -119,13 +120,14 @@ const queryParams = reactive({ page: 1, limit: 10, + confId: '', }) const queryFormRef = ref() // 搜索的表单 const getList = async () => { loading.value = true try { - const data = await ChartParamApi.getPage(queryParams) + const data = await configDetApi.getPage(queryParams) list.value = data.list total.value = data.total } finally { @@ -147,7 +149,7 @@ /** 添加/修改操作 */ const formRef = ref() const openForm = (type: string, id?: string) => { - formRef.value.open(type, id, queryParams.chartId) + formRef.value.open(type, id, queryParams.confId) } /** 删除按钮操作 */ @@ -156,7 +158,7 @@ // 删除的二次确认 await message.delConfirm() // 发起删除 - await ChartParamApi.del(id) + await configDetApi.del(id) message.success(t('common.delSuccess')) // 刷新列表 await getList() @@ -165,11 +167,11 @@ } /** 打开弹窗 */ -const open = async (chartId?: string) => { +const open = async (confId?: string) => { resetForm() drawer.value = true - queryParams.chartId = chartId - if (chartId) { + queryParams.confId = confId + if (confId) { getList() } } @@ -177,8 +179,7 @@ /** 重置表单 */ const resetForm = () => { - queryParams.chartId = '' - queryParams.name = '' + queryParams.confId = '' } const handleClose = (done: () => void) => { -- Gitblit v1.9.3