Преглед на файлове

fix:产品管理-产品名称增加最小列宽设置

Cheng Jian преди 3 години
родител
ревизия
7f12748fb3
променени са 1 файла, в които са добавени 8 реда и са изтрити 6 реда
  1. 8 6
      src/views/base/product/index.vue

+ 8 - 6
src/views/base/product/index.vue

@@ -40,6 +40,7 @@
         :key="index"
         align="center"
         :label="item.label"
+        :min-width="item.minWidth"
         :prop="item.prop"
         show-overflow-tooltip
         :sortable="item.sortable"
@@ -68,7 +69,7 @@
           </span>
         </template>
       </el-table-column>
-      <el-table-column align="center" label="操作" show-overflow-tooltip width="160">
+      <el-table-column align="center" fixed="right" label="操作" show-overflow-tooltip width="120">
         <template #default="{ row }">
           <el-button type="text" @click="handleEdit(row)">编辑</el-button>
           <el-button type="text" @click="handleDelete(row)">删除</el-button>
@@ -121,12 +122,13 @@
           {
             label: '产品名称',
             prop: 'prodName',
+            minWidth: '280px',
             sortable: false,
             disableCheck: true,
           },
           {
             label: '产品类别',
-            width: '160px',
+            width: '120px',
             prop: 'prodClass',
             sortable: false,
             disableCheck: true,
@@ -134,25 +136,25 @@
 
           {
             label: '签约代理价',
-            width: '160px',
+            width: '120px',
             prop: 'agentPrice',
             sortable: false,
           },
           {
             label: '经销商价',
-            width: '160px',
+            width: '120px',
             prop: 'distPrice',
             sortable: false,
           },
           {
             label: '建议成交价',
-            width: '160px',
+            width: '120px',
             prop: 'guidPrice',
             sortable: false,
           },
           {
             label: '市场报价',
-            width: '160px',
+            width: '120px',
             prop: 'marketPrice',
             sortable: false,
           },