From 185f48c0ff3712937cf211dcaa72d6ddccc996fa Mon Sep 17 00:00:00 2001
From: zouyu <2723363702@qq.com>
Date: 星期二, 06 八月 2024 11:38:41 +0800
Subject: [PATCH] Merge branch 'master' of http://114.132.189.42:9002/r/center-lims-before
---
src/components/tool/value-table.vue | 40 +++++++++++++++++++++-------------------
1 files changed, 21 insertions(+), 19 deletions(-)
diff --git a/src/components/tool/value-table.vue b/src/components/tool/value-table.vue
index 4535d50..d008c02 100644
--- a/src/components/tool/value-table.vue
+++ b/src/components/tool/value-table.vue
@@ -645,25 +645,27 @@
if (this.tableData.length === 0 && this.page.current > 1) {
this.selectList('lastPage')
}
- if (this.isColumnWidth) {
- this.tableHead.forEach(item => {
- if (item.value.length === 4) {
- item.width = 120
- } else if (item.value.length === 3){
- item.width = item.label.includes('Hours') ? 50 : 100
- } else if (item.value.length === 5){
- item.width = 130
- } else if (item.value.length === 7){
- item.width = 160
- } else if (item.value.length === 6){
- item.width = 150
- } else if (item.value.length === 2){
- item.width = item.label.includes('Hours') ? 52 : 86
- } else {
- item.width = item.label.includes('Hours') ? 46 : 86
- }
- })
- }
+ // if (this.isColumnWidth) {
+ // this.tableHead.forEach(item => {
+ // if(!item.width){
+ // if (item.value.length === 4) {
+ // item.width = 120
+ // } else if (item.value.length === 3){
+ // item.width = item.label.includes('Hours') ? 50 : 100
+ // } else if (item.value.length === 5){
+ // item.width = 130
+ // } else if (item.value.length === 7){
+ // item.width = 160
+ // } else if (item.value.length === 6){
+ // item.width = 150
+ // } else if (item.value.length === 2){
+ // item.width = item.label.includes('Hours') ? 52 : 86
+ // } else {
+ // item.width = item.label.includes('Hours') ? 46 : 86
+ // }
+ // }
+ // })
+ // }
// console.log(JSON.stringify(this.tableHead)+"---------"+JSON.stringify(this.tableData))
for (var a in this.data.selectField) {
--
Gitblit v1.9.3