From 8ca7ee27830b807fbb20268b4b90c9dfae7648f6 Mon Sep 17 00:00:00 2001
From: 潘志宝 <979469083@qq.com>
Date: 星期三, 11 十二月 2024 18:25:29 +0800
Subject: [PATCH] 模型库页面优化

---
 src/views/model/mpk/file/index.vue |   17 +++++++++++++----
 1 files changed, 13 insertions(+), 4 deletions(-)

diff --git a/src/views/model/mpk/file/index.vue b/src/views/model/mpk/file/index.vue
index 666a1f4..a3d2bde 100644
--- a/src/views/model/mpk/file/index.vue
+++ b/src/views/model/mpk/file/index.vue
@@ -24,10 +24,18 @@
           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"
             />
@@ -59,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"/>
@@ -148,6 +156,7 @@
   const queryParams = reactive({
     page: 1,
     limit: 10,
+    pyChineseName: '',
     pyName: '',
     label: ''
   })

--
Gitblit v1.9.3