|
@@ -15,7 +15,7 @@
|
15
|
15
|
<!-- S 明细表 detailsTable -->
|
16
|
16
|
<div v-loading="detailLoading">
|
17
|
17
|
<ux-grid class="detailsTable" ref="detailsTable" :border="false" @row-click="() => { return }" :header-cell-style="getHeaderCellStyle" show-footer-overflow="tooltip" show-overflow="tooltip" size="mini" :height="height">
|
18
|
|
- <ux-table-column v-for="(item, idx) in detailsTableCol" :key="item.column + item.name" :resizable="true" :field="item.column" :title="item.name" :min-width="item.min_width ? item.min_width : 160" :fixed="item.fixed ? item.fixed : ''" align="center">
|
|
18
|
+ <ux-table-column v-for="(item, idx) in detailsTableCol" :key="item.column + item.name" :resizable="true" :field="item.column" :title="item.name" :min-width="item.min_width ? item.min_width : 132" :fixed="item.fixed ? item.fixed : ''" align="center">
|
19
|
19
|
<template #header>
|
20
|
20
|
<div class="flex-align-jus-center">
|
21
|
21
|
{{ item.name }}
|
|
@@ -123,8 +123,8 @@ export default {
|
123
|
123
|
res.rst.extra[0].fixed = 'left' // 前1列固定左侧
|
124
|
124
|
const detailsTableCol = []
|
125
|
125
|
res.rst.extra.forEach(item => {
|
126
|
|
- if (item.name && item.name.length > 6) { // 长字符宽度
|
127
|
|
- item['min_width'] = item.name.length * 15
|
|
126
|
+ if (item.name && item.name.length > 5 && item.name.indexOf('(') == -1) { // 长字符宽度
|
|
127
|
+ item['min_width'] = item.name.length * 25
|
128
|
128
|
}
|
129
|
129
|
detailsTableCol.push(item) // 收集普通表头
|
130
|
130
|
})
|