From 59ef95ae90d3e9815afabc751e92c39d1ccf43cb Mon Sep 17 00:00:00 2001
From: 张诺 <zhang_12370@163.com>
Date: 星期一, 02 二月 2026 09:51:43 +0800
Subject: [PATCH] 表格列自适应宽度
---
src/views/inventoryManagement/procurementManagement/paymentHistory/index.vue | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/src/views/inventoryManagement/procurementManagement/paymentHistory/index.vue b/src/views/inventoryManagement/procurementManagement/paymentHistory/index.vue
index 2fb870d..8adff7f 100644
--- a/src/views/inventoryManagement/procurementManagement/paymentHistory/index.vue
+++ b/src/views/inventoryManagement/procurementManagement/paymentHistory/index.vue
@@ -238,19 +238,19 @@
});
const tableColumn = ref([
- { label: "鍚堝悓缂栧彿", prop: "contractCode", width: 160 },
- { label: "鍚堝悓鍚嶇О", prop: "contractName", width: 200 },
- { label: "鎵胯繍鍟�", prop: "carrierName", width: 200 },
- { label: "鐘舵��", prop: "contractStatus", dataType: "slot", slot: "statusSlot", width: 90 },
- { label: "寮�濮嬫椂闂�", prop: "startTime", width: 170 },
- { label: "缁撴潫鏃堕棿", prop: "endTime", width: 170 },
- { label: "淇敼鏃堕棿", prop: "updateTime", width: 170 },
+ { label: "鍚堝悓缂栧彿", prop: "contractCode", minWidth: 160 },
+ { label: "鍚堝悓鍚嶇О", prop: "contractName", minWidth: 200 },
+ { label: "鎵胯繍鍟�", prop: "carrierName", minWidth: 200 },
+ { label: "鐘舵��", prop: "contractStatus", dataType: "slot", slot: "statusSlot", minWidth: 90 },
+ { label: "寮�濮嬫椂闂�", prop: "startTime", minWidth: 170 },
+ { label: "缁撴潫鏃堕棿", prop: "endTime", minWidth: 170 },
+ { label: "淇敼鏃堕棿", prop: "updateTime", minWidth: 170 },
{
label: "鎿嶄綔",
prop: "action",
dataType: "action",
fixed: "right",
- width: 140,
+ minWidth: 140,
operation: [
{ name: "鏌ョ湅", clickFun: (row) => openView(row) },
{ name: "缂栬緫", clickFun: (row) => openMaintain(row) },
--
Gitblit v1.9.3