班级列表接口
parent
9082f528f4
commit
97011935b9
|
@ -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); // 历史审批记录
|
||||
// 结束
|
||||
|
|
|
@ -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: '所属单位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
|
||||
},
|
||||
resetList() {
|
||||
this.pageSize = 10
|
||||
|
|
Loading…
Reference in New Issue