Merge branch 'xgf-training-dev' of http://47.92.113.182:3000/guoyuepeng/qa-prevention-xgf-app into xgf-training-dev

xgf-training-dev
mengfanliang 2025-02-18 10:55:10 +08:00
commit 23a9a42cbf
2 changed files with 206 additions and 204 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,9 +47,8 @@
</template>
<script>
import { getCertificateInformationList } from "@/api/index.js";
export default {
import { getClassList } from '../../api';
export default {
data() {
return {
pageSize: 10,
@ -68,29 +69,29 @@ export default {
methods: {
async getData() {
let resData = await getCertificateInformationList({
let resData = await getClassList({
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
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
@ -111,32 +112,29 @@ export default {
// scanType: ['qrCode'], //
onlyFromCamera: false, //
hideAlbum: false, // ,,
success: function (res) {
const { id, type } = JSON.parse(res.result); // id ID, type ['0' --> , '1' --> ]
if (type === '0') {
success: function(res) {
if (res.result === '0') {
//
uni.$u.route({
url: '/pages/train_management/realname_info_auth',
params: {
type: 'scan_face',
id
}
})
} else if (type === '1') {
} else if (res.result === '1') {
//
uni.$u.route({
url: '/pages/train_management/face_authentication',
params: {
type: 'learning_certification',
id
type: 'learning_certification'
}
})
}
},
fail: function (error) {
fail: function(error) {
console.log("error :>> ", error)
},
complete: function (result) {
complete: function(result) {
console.log("扫码完成,正在跳转功能页!")
}
});
@ -167,11 +165,11 @@ export default {
})
}
}
}
}
</script>
<style scoped lang="scss">
.container_item {
.container_item {
padding-left: 16rpx;
.container_item_name {
@ -218,5 +216,5 @@ export default {
}
}
}
}
}
</style>