班级列表接口

xgf-training-dev
wangyan 2025-02-18 10:49:05 +08:00
parent 9082f528f4
commit 97011935b9
2 changed files with 206 additions and 199 deletions

View File

@ -68,3 +68,7 @@ export const setSecurityMeasuresSave = (params) => post("/app/Task/setQues", par
export const setOtherSecurityMeasuresSave = (params) => post("/app/Task/setOtherQues", params) //其它安全措施提交
export const getHistoricalApprovalRecords = (params) => post("/app/Task/getHis", params); // 历史审批记录
// 结束
// 以下接口培训管理流程使用
export const getClassList = (params) => post("/app/stagestudentrelation/pageTaskByUser", params); // 历史审批记录
// 结束

View File

@ -32,8 +32,10 @@
<text class="content_label">任务状态: </text>{{ handleCalcTaskStatus(item.taskStatus) }}
</view>
<view class="action-row">
<u-button size="mini" type="primary" text="签到信息" @click="signInInformation(item.classId)" />
<u-button size="mini" type="primary" text="考试记录" @click="ExamRecord(item.classId)" />
<u-button size="mini" type="primary" text="签到信息"
@click="signInInformation(item.classId)" />
<u-button size="mini" type="primary" text="考试记录"
@click="ExamRecord(item.classId)" />
</view>
</view>
</view>
@ -45,6 +47,7 @@
</template>
<script>
import { getClassList } from '../../api';
export default {
data() {
return {
@ -66,29 +69,29 @@ export default {
methods: {
async getData() {
// let resData = await getCertificateInformationList({
// showCount: this.pageSize,
// currentPage: this.currentPage,
// });
this.trainList = [
{
classId: 'f34dzfgerg',
className: '班级名称1',
unit: '所属单位1所属单位1所属单位1所属单位1所属单位1',
trainStartTime: '2025-02-14 09: 40',
trainEndTime: '2025-02-14 18: 00',
taskStatus: 0 //
},
{
classId: 'f34dzfger6',
className: '班级名称2',
unit: '所属单位2',
trainStartTime: '2025-02-12 09: 40',
trainEndTime: '2025-02-12 18: 00',
taskStatus: 1 //
}
]
this.totalPage = 2
let resData = await getClassList({
showCount: this.pageSize,
currentPage: this.currentPage,
});
console.log(resData);
// this.trainList = [{
// classId: 'f34dzfgerg',
// className: '1',
// unit: '11111',
// trainStartTime: '2025-02-14 09: 40',
// trainEndTime: '2025-02-14 18: 00',
// taskStatus: 0 //
// },
// {
// classId: 'f34dzfger6',
// className: '2',
// unit: '2',
// trainStartTime: '2025-02-12 09: 40',
// trainEndTime: '2025-02-12 18: 00',
// taskStatus: 1 //
// }
// ]
// this.totalPage = 2
},
resetList() {
this.pageSize = 10