mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-18 15:26:48 +08:00
项目学员列表
This commit is contained in:
@@ -23,7 +23,7 @@
|
||||
v-if="datasource.type !== 6 && datasource.type !== 9"
|
||||
class="endtime"
|
||||
>
|
||||
|
||||
|
||||
<!-- 起止时间:—-->
|
||||
</div>
|
||||
<div v-else class="endtime">
|
||||
@@ -48,7 +48,7 @@
|
||||
placeholder="请选择"
|
||||
:options="projectNameList"
|
||||
@change="selectProjectName"
|
||||
|
||||
|
||||
></a-select>
|
||||
</div>
|
||||
</div>
|
||||
@@ -160,7 +160,7 @@
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
|
||||
setup(props, ctx) {
|
||||
const state = reactive({
|
||||
visible: props.PjModelVisible,
|
||||
@@ -171,7 +171,7 @@
|
||||
tableDataTotal: 0,
|
||||
projectName: undefined,
|
||||
projectNameList: [
|
||||
|
||||
|
||||
{
|
||||
id: 1,
|
||||
value: "1",
|
||||
@@ -195,9 +195,9 @@
|
||||
courseID: "",
|
||||
|
||||
|
||||
routerId: '',
|
||||
studentId: '',
|
||||
CheckStuvisible: false,
|
||||
routerId: '',
|
||||
studentId: '',
|
||||
CheckStuvisible: false,
|
||||
});
|
||||
const tableDataFunc = () => {
|
||||
const columns = [
|
||||
@@ -239,7 +239,7 @@
|
||||
key: "studentDepartName",
|
||||
width: "20%",
|
||||
align: "center",
|
||||
|
||||
|
||||
className: "h",
|
||||
ellipsis: true,
|
||||
customRender: (text) => {
|
||||
@@ -378,7 +378,7 @@
|
||||
() => {
|
||||
{/* 当前学员 用来查看学员详情 */}
|
||||
state.routerId = value.record.routerId;
|
||||
state.studentId = value.record.studentId;
|
||||
state.studentId = value.record.studentId;
|
||||
state.CheckStuvisible = true;
|
||||
console.log(value);
|
||||
}}>
|
||||
@@ -390,7 +390,7 @@
|
||||
];
|
||||
return columns;
|
||||
};
|
||||
|
||||
|
||||
const closeDrawer = () => {
|
||||
ctx.emit("update:PjModelVisible", false);
|
||||
state.currentPage = 1;
|
||||
@@ -417,7 +417,7 @@
|
||||
const onChange = (pageNumber) => {
|
||||
console.log("Page: ", pageNumber);
|
||||
};
|
||||
|
||||
|
||||
// 获取数据
|
||||
function getData() {
|
||||
if(props.datasource.type === 13){
|
||||
@@ -428,7 +428,7 @@
|
||||
currentStageId: props.datasource.chapterId,
|
||||
type: 2,
|
||||
pid: props.datasource.routerId,
|
||||
taskId: props.datasource.routerTaskId,
|
||||
taskId: props.datasource.id,
|
||||
taskType: props.datasource.type,
|
||||
status: state.projectName,
|
||||
studentName: state.name,
|
||||
@@ -449,7 +449,7 @@
|
||||
state.tabledata = [];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// 搜索按钮
|
||||
function searchTaskList() {
|
||||
state.currentPage = 1;
|
||||
@@ -464,20 +464,20 @@
|
||||
state.projectName = undefined;
|
||||
getData();
|
||||
}
|
||||
|
||||
|
||||
//分页
|
||||
const changePaginationStu = (page) => {
|
||||
state.tableDataTotalLoading = true;
|
||||
state.currentPage = page;
|
||||
getData();
|
||||
};
|
||||
|
||||
|
||||
// 导出数据
|
||||
function exportTaskStu() {
|
||||
console.log(`${process.env.VUE_APP_BASE_API}/project/management/exportProjectManage?courseId=${props.datasource.courseId}`)
|
||||
window.open(`${process.env.VUE_APP_BASE_API}/project/management/exportProjectManage?courseId=${props.datasource.courseId}`)
|
||||
}
|
||||
|
||||
|
||||
return {
|
||||
...toRefs(state),
|
||||
selectProjectName,
|
||||
@@ -496,7 +496,7 @@
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
|
||||
<style lang="scss">
|
||||
.ant-drawer-content-wrapper {
|
||||
max-width: 80% !important;
|
||||
@@ -562,7 +562,7 @@
|
||||
flex-wrap: wrap;
|
||||
margin-top: 20px;
|
||||
justify-content: space-between;
|
||||
|
||||
|
||||
.sealeft {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
@@ -579,7 +579,7 @@
|
||||
.btns {
|
||||
display: flex;
|
||||
flex-wrap: nowrap;
|
||||
|
||||
|
||||
.btn {
|
||||
cursor: pointer;
|
||||
width: 100px;
|
||||
@@ -603,15 +603,15 @@
|
||||
margin-right: 7px;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.btn1 {
|
||||
background: #4ea6ff;
|
||||
|
||||
|
||||
color: #ffffff;
|
||||
}
|
||||
.btn2 {
|
||||
background: #ffffff;
|
||||
|
||||
|
||||
color: #4ea6ff;
|
||||
border: 1px solid #4ea6ff;
|
||||
}
|
||||
@@ -620,7 +620,7 @@
|
||||
.btnss {
|
||||
display: flex;
|
||||
flex-wrap: nowrap;
|
||||
|
||||
|
||||
.btn {
|
||||
cursor: pointer;
|
||||
width: 130px;
|
||||
@@ -644,15 +644,15 @@
|
||||
margin-right: 7px;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.btn1 {
|
||||
background: #4ea6ff;
|
||||
|
||||
|
||||
color: #ffffff;
|
||||
}
|
||||
.btn2 {
|
||||
background: #ffffff;
|
||||
|
||||
|
||||
color: #4ea6ff;
|
||||
border: 1px solid #4ea6ff;
|
||||
}
|
||||
@@ -661,7 +661,7 @@
|
||||
th.h {
|
||||
background-color: #eff4fc !important;
|
||||
}
|
||||
|
||||
|
||||
.ant-table-tbody
|
||||
> tr:hover:not(.ant-table-expanded-row):not(.ant-table-row-selected)
|
||||
> td {
|
||||
@@ -688,7 +688,7 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.btnn {
|
||||
height: 72px;
|
||||
width: 100%;
|
||||
@@ -723,4 +723,3 @@
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user