CN-956: 管理下的操作日志模块,自定义列功能异常
This commit is contained in:
@@ -16,8 +16,8 @@
|
|||||||
width="55">
|
width="55">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
v-for="(item, index) in customTableTitles"
|
v-for="item in customTableTitles"
|
||||||
:key="`col-${index}`"
|
:key="item.prop"
|
||||||
:fixed="item.fixed"
|
:fixed="item.fixed"
|
||||||
:label="item.label"
|
:label="item.label"
|
||||||
:min-width="`${item.minWidth}`"
|
:min-width="`${item.minWidth}`"
|
||||||
|
|||||||
@@ -18,8 +18,8 @@
|
|||||||
width="55">
|
width="55">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
v-for="(item, index) in customTableTitles"
|
v-for="item in customTableTitles"
|
||||||
:key="`col-${index}`"
|
:key="item.prop"
|
||||||
:fixed="item.fixed"
|
:fixed="item.fixed"
|
||||||
:label="item.label"
|
:label="item.label"
|
||||||
:min-width="`${item.minWidth}`"
|
:min-width="`${item.minWidth}`"
|
||||||
|
|||||||
@@ -16,8 +16,8 @@
|
|||||||
width="55">
|
width="55">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
v-for="(item, index) in customTableTitles"
|
v-for="item in customTableTitles"
|
||||||
:key="`col-${index}`"
|
:key="item.prop"
|
||||||
:fixed="item.fixed"
|
:fixed="item.fixed"
|
||||||
:label="item.label"
|
:label="item.label"
|
||||||
:min-width="`${item.minWidth}`"
|
:min-width="`${item.minWidth}`"
|
||||||
|
|||||||
@@ -18,8 +18,8 @@
|
|||||||
width="55">
|
width="55">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
v-for="(item, index) in customTableTitles"
|
v-for="item in customTableTitles"
|
||||||
:key="`col-${index}`"
|
:key="item.prop"
|
||||||
:fixed="item.fixed"
|
:fixed="item.fixed"
|
||||||
:label="item.label"
|
:label="item.label"
|
||||||
:min-width="`${item.minWidth}`"
|
:min-width="`${item.minWidth}`"
|
||||||
|
|||||||
@@ -16,8 +16,8 @@
|
|||||||
width="55">
|
width="55">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
v-for="(item, index) in customTableTitles"
|
v-for="item in customTableTitles"
|
||||||
:key="`col-${index}`"
|
:key="item.prop"
|
||||||
:fixed="item.fixed"
|
:fixed="item.fixed"
|
||||||
:label="item.label"
|
:label="item.label"
|
||||||
:min-width="`${item.minWidth}`"
|
:min-width="`${item.minWidth}`"
|
||||||
|
|||||||
@@ -17,8 +17,8 @@
|
|||||||
width="55">
|
width="55">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
v-for="(item, index) in customTableTitles"
|
v-for="item in customTableTitles"
|
||||||
:key="`col-${index}`"
|
:key="item.prop"
|
||||||
:fixed="item.fixed"
|
:fixed="item.fixed"
|
||||||
:label="item.label"
|
:label="item.label"
|
||||||
:min-width="`${item.minWidth}`"
|
:min-width="`${item.minWidth}`"
|
||||||
|
|||||||
@@ -96,8 +96,8 @@
|
|||||||
width="30">
|
width="30">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
v-for="(item, index) in customTableTitles"
|
v-for="item in customTableTitles"
|
||||||
:key="`col-${index}`"
|
:key="item.prop"
|
||||||
:fixed="item.fixed"
|
:fixed="item.fixed"
|
||||||
:label="item.label"
|
:label="item.label"
|
||||||
:min-width="`${item.minWidth}`"
|
:min-width="`${item.minWidth}`"
|
||||||
|
|||||||
@@ -81,7 +81,11 @@ export default {
|
|||||||
|
|
||||||
// 有排序的,额外添加24px的排序图标宽度
|
// 有排序的,额外添加24px的排序图标宽度
|
||||||
if (item.sortable) {
|
if (item.sortable) {
|
||||||
item.minWidth = item.minWidth + 32
|
if (!item.initFlag) {
|
||||||
|
item.minWidth = item.minWidth + 32
|
||||||
|
}
|
||||||
|
// 避免customize多次点击save生成表格,导致width越来越大,保证初始化一次就确定宽度
|
||||||
|
item.initFlag = true
|
||||||
}
|
}
|
||||||
|
|
||||||
if (item.minWidth < newWidth) {
|
if (item.minWidth < newWidth) {
|
||||||
|
|||||||
@@ -25,9 +25,9 @@
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|
||||||
<el-table-column
|
<el-table-column
|
||||||
v-for="(c, i) in table.tableColumns"
|
v-for="c in table.tableColumns"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
:key="i"
|
:key="c"
|
||||||
:label="c"
|
:label="c"
|
||||||
:prop="c"
|
:prop="c"
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -11,8 +11,8 @@
|
|||||||
:size="'mini'"
|
:size="'mini'"
|
||||||
:height="'100%'">
|
:height="'100%'">
|
||||||
<el-table-column
|
<el-table-column
|
||||||
v-for="(item,index) in tableKey"
|
v-for="item in tableKey"
|
||||||
:key="index"
|
:key="item.prop"
|
||||||
:label="item.label"
|
:label="item.label"
|
||||||
:prop="item.prop"
|
:prop="item.prop"
|
||||||
:min-width="item.width"
|
:min-width="item.width"
|
||||||
|
|||||||
@@ -9,17 +9,17 @@
|
|||||||
<el-table-column :width="60" v-if="table.currentPageData.length" type="index" label="#">
|
<el-table-column :width="60" v-if="table.currentPageData.length" type="index" label="#">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
v-for="(c, i) in table.tableColumns.common"
|
v-for="c in table.tableColumns.common"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
:key="i"
|
:key="c"
|
||||||
:label="$t(chartTableColumnMapping[c] || c)"
|
:label="$t(chartTableColumnMapping[c] || c)"
|
||||||
:prop="c"
|
:prop="c"
|
||||||
>
|
>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
v-for="(c, i) in table.tableColumns.order"
|
v-for="c in table.tableColumns.order"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
:key="i"
|
:key="c"
|
||||||
:label="$t(chartTableColumnMapping[c] || c)"
|
:label="$t(chartTableColumnMapping[c] || c)"
|
||||||
:prop="c"
|
:prop="c"
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -27,8 +27,8 @@
|
|||||||
width="48">
|
width="48">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
v-for="(item, index) in tableTitlesOther"
|
v-for="item in tableTitlesOther"
|
||||||
:key="index"
|
:key="item.prop"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
:min-width="item.width"
|
:min-width="item.width"
|
||||||
:label="item.label"
|
:label="item.label"
|
||||||
@@ -55,8 +55,8 @@
|
|||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
v-for="(item, index) in tableTitles"
|
v-for="item in tableTitles"
|
||||||
:key="index"
|
:key="item.prop"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
:min-width="item.width"
|
:min-width="item.width"
|
||||||
:label="(tableNameColumn === 'appName'&& item.prop === 'tableNameColumn')? $t('overall.appName'):item.label"
|
:label="(tableNameColumn === 'appName'&& item.prop === 'tableNameColumn')? $t('overall.appName'):item.label"
|
||||||
|
|||||||
Reference in New Issue
Block a user