权限、考核

Branch_d40a2540
yujialong 2 years ago
parent cf1bf19289
commit 0698977aef
  1. 33
      src/pages/assessment/list/index.vue
  2. 7
      src/pages/match/manage/matchSignup.vue

@ -115,6 +115,14 @@
<div class="pagination"> <div class="pagination">
<el-pagination background layout="total, prev, pager, next" :total="total" @current-change="handleCurrentChange" :current-page="pageNum"></el-pagination> <el-pagination background layout="total, prev, pager, next" :total="total" @current-change="handleCurrentChange" :current-page="pageNum"></el-pagination>
</div> </div>
<!-- 购买弹框 -->
<el-dialog title="温馨提示" :visible.sync="buyVisible" width="420px" center :close-on-click-modal="false">
<div class="buy">
<p class="tips">该课程订阅期限已到期请联系院校管理员续费</p>
<img src="@/assets/img/wechat-code.jpeg" alt="">
</div>
</el-dialog>
</div> </div>
</template> </template>
@ -187,6 +195,7 @@ export default {
multipleSelection: [], // multipleSelection: [], //
listLoading:false,// listLoading:false,//
ticker: null, // ticker: null, //
buyVisible: false
}; };
}, },
computed: { computed: {
@ -320,22 +329,32 @@ export default {
console.log(err); console.log(err);
}); });
}, },
//
async getStatus(cid) {
const res = await this.$get(this.api.whetherToRenewTheFee, {
cid
})
this.buyVisible = !res.isRenew
// 10
return res.isRenew
},
add() { add() {
this.$router.push("add"); this.$router.push("add");
}, },
edit(row) { edit(row) {
this.$router.push(`add?id=${row.id}`); this.getStatus(row.curriculumId) && this.$router.push(`add?id=${row.id}`);
}, },
show(row) { show(row) {
this.$router.push(`/achievement/teach?id=${row.id}&projectName=${row.projectName}&permissions=1`) this.$router.push(`/achievement/teach?id=${row.id}&projectName=${row.projectName}&permissions=1`)
}, },
start(row) { start(row) {
this.getStatus(row.curriculumId) &&
this.$post(`${this.api.enableAssessment}?id=${row.id}`).then(res => { this.$post(`${this.api.enableAssessment}?id=${row.id}`).then(res => {
util.successMsg("启动成功!"); util.successMsg("启动成功!");
this.getData(1); this.getData(1);
}).catch(err => { }).catch(err => {
console.log(err); console.log(err);
}); })
}, },
finish(row) { finish(row) {
this.$confirm("确定要提前结束吗?", "提示", { this.$confirm("确定要提前结束吗?", "提示", {
@ -415,4 +434,14 @@ export default {
.el-radio.is-bordered + .el-radio.is-bordered { .el-radio.is-bordered + .el-radio.is-bordered {
margin-left: 0; margin-left: 0;
} }
.buy {
text-align: center;
.tips {
margin-bottom: 10px;
font-size: 14px;
}
img {
width: 85%;
}
}
</style> </style>

@ -15,7 +15,7 @@
</li> </li>
</ul> </ul>
<div> <div>
<el-button type="primary" round @click="add">新增</el-button> <el-button type="primary" round @click="add" v-auth="'/match/list:管理:报名人员:新增'">新增</el-button>
<el-button type="primary" round @click="exportAll" v-auth="'/match/list:管理:报名人员:批量导出'">批量导出</el-button> <el-button type="primary" round @click="exportAll" v-auth="'/match/list:管理:报名人员:批量导出'">批量导出</el-button>
</div> </div>
</div> </div>
@ -39,10 +39,11 @@
</el-table-column> </el-table-column>
<el-table-column label="操作" align="center" width="320"> <el-table-column label="操作" align="center" width="320">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button v-if="scope.row.identification" type="text" @click="edit(scope.row)">编辑</el-button> <el-button v-if="scope.row.identification" type="text" @click="edit(scope.row)" v-auth="'/match/list:管理:报名人员:编辑'">编辑</el-button>
<template v-if="info.releaseType"> <template v-if="info.releaseType">
<el-button type="text" @click="toInfo(scope.row)">参赛信息与成绩</el-button> <el-button type="text" @click="toInfo(scope.row)" v-auth="'/match/list:管理:报名人员:参赛信息与成绩'">参赛信息与成绩</el-button>
<el-switch <el-switch
v-auth="'/match/list:管理:报名人员:禁用'"
v-model="scope.row.isDisable" v-model="scope.row.isDisable"
:active-text="scope.row.isDisable ? '关' : '开'" :active-text="scope.row.isDisable ? '关' : '开'"
:active-value="0" :active-value="0"

Loading…
Cancel
Save