|
|
|
|
@ -79,22 +79,30 @@
|
|
|
|
|
|
|
|
|
|
<el-table v-loading="loading" :data="voteList" @selection-change="handleSelectionChange">
|
|
|
|
|
<el-table-column type="selection" width="55" align="center" />
|
|
|
|
|
<el-table-column label="主键" align="center" prop="id" />
|
|
|
|
|
<el-table-column label="投票主题" align="center" prop="voteTitle" />
|
|
|
|
|
<el-table-column label="最大投票数" align="center" prop="maxNum" />
|
|
|
|
|
<el-table-column label="开始时间" align="center" prop="sTime" width="180">
|
|
|
|
|
<el-table-column label="主键" align="center" prop="id" width="55" />
|
|
|
|
|
<el-table-column label="评测名称" align="center" prop="pingceName" min-width="120" :show-overflow-tooltip="true"/>
|
|
|
|
|
<el-table-column label="考核名称" align="center" prop="khitemName" min-width="120" :show-overflow-tooltip="true"/>
|
|
|
|
|
<el-table-column label="投票主题" align="center" prop="voteTitle" min-width="120" :show-overflow-tooltip="true"/>
|
|
|
|
|
<el-table-column label="最大投票数" align="center" prop="maxNum" min-width="120" :show-overflow-tooltip="true"/>
|
|
|
|
|
<el-table-column label="评分占比" align="center" prop="percentage" min-width="120" :show-overflow-tooltip="true"/>
|
|
|
|
|
<el-table-column label="开始时间" align="center" prop="sTime" min-width="120" :show-overflow-tooltip="true">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span>{{ parseTime(scope.row.sTime, '{y}-{m}-{d}') }}</span>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="结束时间" align="center" prop="eTime" width="180">
|
|
|
|
|
<el-table-column label="结束时间" align="center" prop="eTime" min-width="120" :show-overflow-tooltip="true">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span>{{ parseTime(scope.row.eTime, '{y}-{m}-{d}') }}</span>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="详情描述" align="center" prop="vDescription" />
|
|
|
|
|
<el-table-column label="备注" align="center" prop="remark" />
|
|
|
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
|
|
|
|
<el-table-column label="评测状态" align="center" prop="state" min-width="100" :show-overflow-tooltip="true">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<dict-tag :options="dict.type.kh_state" :value="scope.row.state"/>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="详情描述" align="center" prop="vDescription" min-width="120" :show-overflow-tooltip="true"/>
|
|
|
|
|
<el-table-column label="备注" align="center" prop="remark" min-width="120" :show-overflow-tooltip="true"/>
|
|
|
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" fixed="right" min-width="200">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-button
|
|
|
|
|
size="mini"
|
|
|
|
|
@ -110,6 +118,12 @@
|
|
|
|
|
@click="handleDelete(scope.row)"
|
|
|
|
|
v-hasPermi="['kaohe:vote:remove']"
|
|
|
|
|
>删除</el-button>
|
|
|
|
|
<el-button
|
|
|
|
|
v-if="scope.row.state === '1'"
|
|
|
|
|
size="mini"
|
|
|
|
|
type="text"
|
|
|
|
|
icon="el-icon-thumb"
|
|
|
|
|
>去投票</el-button>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</el-table>
|
|
|
|
|
@ -167,6 +181,7 @@ import { listVote, getVote, delVote, addVote, updateVote } from "@/api/kaohe/vot
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
name: "Vote",
|
|
|
|
|
dicts: ['kh_state'],
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
// 遮罩层
|
|
|
|
|
|