提交 fa6ed052 编写于 作者: chengxiang.li's avatar chengxiang.li

学分发放管理列表项目状态字段变更及导出添加传参

上级 30c05af6
......@@ -251,6 +251,8 @@
return;
}
req = {
name: this.searchForm.name,
creditStatus: this.searchForm.status,
cmeId: this.$route.query.id,
idList: [],
selectedStatus: 1, // 1 全选 2 非全选
......@@ -266,6 +268,8 @@
list.push(selectList[i].id)
}
req = {
name: this.searchForm.name,
creditStatus: this.searchForm.status,
cmeId: this.$route.query.id,
idList: list,
selectedStatus: 2, // 1 全选 2 非全选
......
......@@ -47,7 +47,11 @@
<el-table-column align="center" prop="name" label="项目名称" show-overflow-tooltip></el-table-column>
<el-table-column align="center" prop="beginTime" label="项目开始时间" show-overflow-tooltip></el-table-column>
<el-table-column align="center" prop="endTime" label="项目结束时间" show-overflow-tooltip></el-table-column>
<el-table-column align="center" prop="status" label="项目状态" show-overflow-tooltip></el-table-column>
<el-table-column align="center" prop="status" label="项目状态" show-overflow-tooltip>
<template slot-scope="scope">
{{ returnStatusText(scope.row.timeStatus ) }}
</template>
</el-table-column>
<el-table-column align="center" label="操作">
<template slot-scope="scope">
<el-button @click="goToApplyDetail(scope.row)" type="text" size="small">查看申请明细</el-button>
......@@ -102,7 +106,10 @@
pageNo: 1,
pageSize: 15,
},
projectStatus: {
1: '进行中',
2: '已结束',
},
tableData: [],
multipleSelection: [],
......@@ -157,6 +164,10 @@
handleSelectionChange(val) {
this.multipleSelection = val;
},
returnStatusText(status) {
let statusVal = this.projectStatus[status];
return statusVal ? statusVal : '-';
},
goToApplyDetail(row) {
// console.log('去申请明细页面 ', row);
this.$router.push({
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册