From 555b01ab4b5f4bcae9b3a75b28b9d2c99fefc9ea Mon Sep 17 00:00:00 2001
From: dongyukun <1208714201@qq.com>
Date: 星期一, 26 五月 2025 15:40:16 +0800
Subject: [PATCH] 调度建议快照配置

---
 src/views/model/sche/snapshotConf/det/index.vue |   30 +++++++++++++++---------------
 1 files changed, 15 insertions(+), 15 deletions(-)

diff --git a/src/views/model/sche/snapshotConf/det/index.vue b/src/views/model/sche/snapshotConf/det/index.vue
index e74ffc2..0fad67a 100644
--- a/src/views/model/sche/snapshotConf/det/index.vue
+++ b/src/views/model/sche/snapshotConf/det/index.vue
@@ -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"
           />
@@ -97,17 +97,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 +119,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 +148,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 +157,7 @@
     // 删除的二次确认
     await message.delConfirm()
     // 发起删除
-    await ChartParamApi.del(id)
+    await configDetApi.del(id)
     message.success(t('common.delSuccess'))
     // 刷新列表
     await getList()
@@ -165,11 +166,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 +178,7 @@
 
 /** 重置表单 */
 const resetForm = () => {
-  queryParams.chartId = ''
-  queryParams.name = ''
+  queryParams.confId = ''
 }
 
 const handleClose = (done: () => void) => {

--
Gitblit v1.9.3