commit
This commit is contained in:
@@ -42,14 +42,16 @@ layout("/layouts/platform_1.html"){
|
|||||||
<el-button type="primary" size="small" @click="openBigScreen">打开成绩大屏</el-button>
|
<el-button type="primary" size="small" @click="openBigScreen">打开成绩大屏</el-button>
|
||||||
<el-button type="primary" size="small" @click="doExport">导出</el-button>
|
<el-button type="primary" size="small" @click="doExport">导出</el-button>
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-table v-loading="tableLoading" show-overflow-tooltip :data="tableData" @cell-click="cellClick" style="width: 100%">
|
<el-table v-loading="tableLoading" show-overflow-tooltip :data="tableData" @cell-click="cellClick"
|
||||||
|
style="width: 100%">
|
||||||
<el-table-column label="队伍" prop="groupName" fixed="left" width="100px"></el-table-column>
|
<el-table-column label="队伍" prop="groupName" fixed="left" width="100px"></el-table-column>
|
||||||
|
|
||||||
<el-table-column v-for="item in itemOptions" :key="item.id" :label="item.name" >
|
<el-table-column v-for="item in itemOptions" :key="item.id" :label="item.name">
|
||||||
<template slot="header" slot-scope="scope">
|
<template slot="header" slot-scope="scope">
|
||||||
<span v-html="formatName(item.name)"></span>
|
<span v-html="formatName(item.name)"></span>
|
||||||
</template>
|
</template>
|
||||||
<el-table-column label="成绩" :prop="item.id+item.name" min-width="50px" v-if="item.id!=='all'">
|
<el-table-column label="成绩" :prop="item.id+item.name" min-width="50px" v-if="item.id!=='all'"
|
||||||
|
sortable>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{scope.row[item.id]['totalCj']}}
|
{{scope.row[item.id]['totalCj']}}
|
||||||
</template>
|
</template>
|
||||||
@@ -59,7 +61,7 @@ layout("/layouts/platform_1.html"){
|
|||||||
{{scope.row[item.id]['totalRank']}}
|
{{scope.row[item.id]['totalRank']}}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="积分" :prop="item.id+item.name" min-width="50px">
|
<el-table-column label="积分" :prop="item.id+item.name" min-width="50px" sortable>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{scope.row[item.id]['totalScore']}}
|
{{scope.row[item.id]['totalScore']}}
|
||||||
</template>
|
</template>
|
||||||
@@ -94,7 +96,7 @@ layout("/layouts/platform_1.html"){
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
doExport() {
|
doExport() {
|
||||||
window.open("/platform/activity/scoreEnter/doExport?activityId=" + this.pageForm.activityId )
|
window.open("/platform/activity/scoreEnter/doExport?activityId=" + this.pageForm.activityId)
|
||||||
},
|
},
|
||||||
// 格式化名称
|
// 格式化名称
|
||||||
formatName(name) {
|
formatName(name) {
|
||||||
@@ -222,7 +224,7 @@ layout("/layouts/platform_1.html"){
|
|||||||
}
|
}
|
||||||
console.log(this.tableData)
|
console.log(this.tableData)
|
||||||
},
|
},
|
||||||
openBigScreen(){
|
openBigScreen() {
|
||||||
window.open("/platform/activity/bigScreen?activityId=" + this.pageForm.activityId)
|
window.open("/platform/activity/bigScreen?activityId=" + this.pageForm.activityId)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user