From b6a18d0441c2d5b35faba8c0f504cbcb239a1ddb Mon Sep 17 00:00:00 2001
From: gaoaoy <1042166043@qq.com>
Date: 星期三, 13 三月 2024 10:07:42 +0800
Subject: [PATCH] 检验下单 功能调整
---
src/components/tool/value-table.vue | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/src/components/tool/value-table.vue b/src/components/tool/value-table.vue
index 8d82289..829f513 100644
--- a/src/components/tool/value-table.vue
+++ b/src/components/tool/value-table.vue
@@ -68,7 +68,7 @@
<span v-else>{{scope.row[a.label]}}</span>
</template>
</el-table-column>
- <el-table-column fixed="right" align="center" label="鎿嶄綔" :width="60 + data.do.length * 40"
+ <el-table-column fixed="right" align="center" label="鎿嶄綔" :width="getWidth()"
v-if="data.do.length > 0">
<template slot-scope="scope">
<el-button v-for="(a, ai) in data.do" :key="ai" :type="a.type"
@@ -471,7 +471,8 @@
}
} else {
delete row.orderBy
- this.$emit(val.method, row)
+ this.$parent[val.method](row)
+ // this.$emit(val.method, row)
}
},
saveUpData() {
@@ -711,6 +712,13 @@
this.$emit(val.method,row)
}
},
+ getWidth(){
+ let count = 0
+ this.data.do.forEach(a=>{
+ count += a.font.length
+ })
+ return count * 15 + 60 + 'px'
+ }
}
}
</script>
--
Gitblit v1.9.3