Browse Source

refactor:数据统计显示

old
wangqing 5 years ago
parent
commit
9a96454859
  1. 16
      src/views/form/statistics.vue

16
src/views/form/statistics.vue

@ -26,18 +26,22 @@
<div class="result-table-view">
<el-table
stripe
header-cell-class-name="data-table-header"
:data="projectResultList">
<el-table-column
type="selection"
width="55">
</el-table-column>
<el-table-column v-for="col in fixedCustomColumns" :key="`t${col}`"
<el-table-column
v-for="col in fixedCustomColumns" :key="`t${col}`"
:label="fixedDefaultLabelFormColumn[col]">
<template slot-scope="scope">
{{ scope.row[col] }}
</template>
</el-table-column>
<el-table-column v-for="col in otherCustomColumns" :key="col"
<el-table-column
show-overflow-tooltip
v-for="col in otherCustomColumns" :key="col"
:label="projectItemColumns[col]">
<template slot-scope="scope">
{{ scope.row['processData'][col] }}
@ -139,7 +143,8 @@ export default {
}, methods: {
renderHeader(h) {
return (
<i class="el-icon-setting" style="color:currentColor" onClick={() => this.customColumnDialogVisible = true}></i>
<i class="el-icon-setting" style="color:currentColor"
onClick={() => this.customColumnDialogVisible = true}></i>
)
},
queryProjectResult() {
@ -226,4 +231,9 @@ export default {
line-height: 25px;
color: white;
}
/deep/ .data-table-header .cell {
text-overflow: ellipsis !important;
white-space: nowrap !important;
}
</style>

Loading…
Cancel
Save