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 setOtherSecurityMeasuresSave = (params) => post("/app/Task/setOtherQues", params) //其它安全措施提交
export const getHistoricalApprovalRecords = (params) => post("/app/Task/getHis", 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) }} <text class="content_label">任务状态: </text>{{ handleCalcTaskStatus(item.taskStatus) }}
</view> </view>
<view class="action-row"> <view class="action-row">
<u-button size="mini" type="primary" text="签到信息" @click="signInInformation(item.classId)" /> <u-button size="mini" type="primary" text="签到信息"
<u-button size="mini" type="primary" text="考试记录" @click="ExamRecord(item.classId)" /> @click="signInInformation(item.classId)" />
<u-button size="mini" type="primary" text="考试记录"
@click="ExamRecord(item.classId)" />
</view> </view>
</view> </view>
</view> </view>
@ -45,8 +47,7 @@
</template> </template>
<script> <script>
import { getCertificateInformationList } from "@/api/index.js"; import { getClassList } from '../../api';
export default { export default {
data() { data() {
return { return {
@ -68,29 +69,29 @@ export default {
methods: { methods: {
async getData() { async getData() {
let resData = await getCertificateInformationList({ let resData = await getClassList({
showCount: this.pageSize, showCount: this.pageSize,
currentPage: this.currentPage, currentPage: this.currentPage,
}); });
this.trainList = [ console.log(resData);
{ // this.trainList = [{
classId: 'f34dzfgerg', // classId: 'f34dzfgerg',
className: '班级名称1', // className: '1',
unit: '所属单位1所属单位1所属单位1所属单位1所属单位1', // unit: '11111',
trainStartTime: '2025-02-14 09: 40', // trainStartTime: '2025-02-14 09: 40',
trainEndTime: '2025-02-14 18: 00', // trainEndTime: '2025-02-14 18: 00',
taskStatus: 0 // // taskStatus: 0 //
}, // },
{ // {
classId: 'f34dzfger6', // classId: 'f34dzfger6',
className: '班级名称2', // className: '2',
unit: '所属单位2', // unit: '2',
trainStartTime: '2025-02-12 09: 40', // trainStartTime: '2025-02-12 09: 40',
trainEndTime: '2025-02-12 18: 00', // trainEndTime: '2025-02-12 18: 00',
taskStatus: 1 // // taskStatus: 1 //
} // }
] // ]
this.totalPage = 2 // this.totalPage = 2
}, },
resetList() { resetList() {
this.pageSize = 10 this.pageSize = 10
@ -112,23 +113,20 @@ export default {
onlyFromCamera: false, // onlyFromCamera: false, //
hideAlbum: false, // ,, hideAlbum: false, // ,,
success: function(res) { success: function(res) {
const { id, type } = JSON.parse(res.result); // id ID, type ['0' --> , '1' --> ] if (res.result === '0') {
if (type === '0') {
// //
uni.$u.route({ uni.$u.route({
url: '/pages/train_management/realname_info_auth', url: '/pages/train_management/realname_info_auth',
params: { params: {
type: 'scan_face', type: 'scan_face',
id
} }
}) })
} else if (type === '1') { } else if (res.result === '1') {
// //
uni.$u.route({ uni.$u.route({
url: '/pages/train_management/face_authentication', url: '/pages/train_management/face_authentication',
params: { params: {
type: 'learning_certification', type: 'learning_certification'
id
} }
}) })
} }