From 9e2e0baeff46fb6ecfe21145f7250d67b13ca79e Mon Sep 17 00:00:00 2001
From: 潘志宝 <979469083@qq.com>
Date: 星期一, 30 十二月 2024 17:35:54 +0800
Subject: [PATCH] 去掉空RecordForm

---
 src/views/model/mpk/file/index.vue |   22 ++++++++++++++++------
 1 files changed, 16 insertions(+), 6 deletions(-)

diff --git a/src/views/model/mpk/file/index.vue b/src/views/model/mpk/file/index.vue
index ef9ef10..a3d2bde 100644
--- a/src/views/model/mpk/file/index.vue
+++ b/src/views/model/mpk/file/index.vue
@@ -22,11 +22,20 @@
           ref="queryFormRef"
           :inline="true"
           label-width="68px"
+          @submit.prevent
         >
-          <el-form-item label="模型名称" prop="pyName">
+          <el-form-item label="模型名称" prop="pyChineseName">
+            <el-input
+              v-model="queryParams.pyChineseName"
+              placeholder="请输入模型名称"
+              clearable
+              class="!w-240px"
+            />
+          </el-form-item>
+          <el-form-item label="模型文件" prop="pyName">
             <el-input
               v-model="queryParams.pyName"
-              placeholder="请输入模型名称"
+              placeholder="请输入模型文件名称"
               clearable
               class="!w-240px"
             />
@@ -58,8 +67,8 @@
           :data="list"
           row-key="id"
         >
-          <el-table-column prop="pyChineseName" label="模型名称" header-align="center" align="center" min-width="100" />
-          <el-table-column prop="pyName" label="模型文件" header-align="center" align="center" min-width="300"/>
+          <el-table-column prop="pyChineseName" label="模型名称" header-align="center" align="left" min-width="100" />
+          <el-table-column prop="pyName" label="模型文件" header-align="center" align="left" min-width="300"/>
           <el-table-column prop="pyType" label="模型类型" :formatter="(r,c,v) => getDictLabel(DICT_TYPE.MODEL_TYPE,v)"/>
           <el-table-column prop="menuName" label="所属菜单" min-width="120px"/>
           <el-table-column prop="groupName" label="所属组" min-width="120px"/>
@@ -108,7 +117,7 @@
         </el-table>
         <!-- 分页 -->
         <Pagination
-          v-model:limit="queryParams.pageSize"
+          v-model:limit="queryParams.limit"
           v-model:page="queryParams.page"
           :total="total"
           @pagination="getList"
@@ -146,7 +155,8 @@
   const list = ref([]) // 字典表格数据
   const queryParams = reactive({
     page: 1,
-    pageSize: 10,
+    limit: 10,
+    pyChineseName: '',
     pyName: '',
     label: ''
   })

--
Gitblit v1.9.3