feat: 添加ExaminationStuAbsentParams接口,优化缺考请求参数处理
This commit is contained in:
parent
dee00b45cf
commit
0f564b746a
@ -1,6 +1,11 @@
|
||||
import request from '../utils/Request'
|
||||
import http from '@ohos.net.http'
|
||||
import { FaceCompareResp, GetExaminationItemRsp, GetExaminationStudentInfoResponse } from '../model'
|
||||
import {
|
||||
ExaminationStuAbsentParams,
|
||||
FaceCompareResp,
|
||||
GetExaminationItemRsp,
|
||||
GetExaminationStudentInfoResponse
|
||||
} from '../model'
|
||||
|
||||
/**
|
||||
* 照片比对
|
||||
@ -49,10 +54,19 @@ export async function getExaminationStudentInfo(params: ESObject) {
|
||||
}
|
||||
|
||||
//缺考
|
||||
export async function examinationStuAbsent(params: object) {
|
||||
export async function examinationStuAbsent(params: ExaminationStuAbsentParams) {
|
||||
return request({
|
||||
url: '/der2/services/exam/examinationStuAbsent.ws',
|
||||
data: params,
|
||||
data: `<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<examinationStuAbsentReq>
|
||||
<body>
|
||||
<carId>${params.carId}</carId>
|
||||
<cardNo>${params.sfzmhm}</cardNo>
|
||||
<examinationRoomId>${params.examinationRoomId}</examinationRoomId>
|
||||
<examinerName>${params.username}</examinerName>
|
||||
<lsh>${params.lsh}</lsh>
|
||||
</body>
|
||||
</examinationStuAbsentReq>`,
|
||||
method: http.RequestMethod.POST,
|
||||
xml: true
|
||||
})
|
||||
|
||||
@ -177,4 +177,11 @@ interface GetExaminationItemRspBody {
|
||||
ykxx: string;
|
||||
}
|
||||
|
||||
export interface ExaminationStuAbsentParams {
|
||||
carId: string;
|
||||
sfzmhm: string;
|
||||
examinationRoomId: string;
|
||||
username: string;
|
||||
lsh: string;
|
||||
}
|
||||
|
||||
|
||||
@ -12,7 +12,6 @@ import { setliushuiNum, takePhotoFn } from '../common/service/indexService';
|
||||
import promptAction from '@ohos.promptAction';
|
||||
import errorMsgDialog from './compontents/errorMsgDialog';
|
||||
import GetDistance from '../common/utils/GetDistance';
|
||||
import { delPic } from '../service/videoService';
|
||||
import imageBtn from './compontents/imageBtn';
|
||||
import VoiceAnnounce from './judgeSDK/utils/voiceAnnouncements';
|
||||
import { BaseInfoType } from '../model/Common';
|
||||
@ -21,6 +20,7 @@ import { InitializeTheCentralTableType, MASYSSETTableType, TimeInfo } from '../m
|
||||
import { GetCarInfo, GetDeviceInfo, SetCurrentTime, UseAuth } from './Index/utils';
|
||||
import { GetSyncData, InitializeTheCentralTable } from '../utils/table/Operation';
|
||||
import { BusinessError } from '@ohos.base';
|
||||
import { delPic } from '../utils/Video';
|
||||
|
||||
|
||||
@Entry
|
||||
@ -465,7 +465,7 @@ struct Index {
|
||||
// setVideoParam()
|
||||
console.log('diyidiy')
|
||||
this.context.resourceManager.getRawFileContent("welcome.wav")
|
||||
.then(value => {
|
||||
.then(() => {
|
||||
this.avPlayer.playAudio(['welcome.wav'])
|
||||
|
||||
// this.vocObj.playAudio({
|
||||
|
||||
@ -2,7 +2,7 @@ import { examinationStuAbsent, getExaminationItem, getExaminationStudentInfo } f
|
||||
import router from '@ohos.router';
|
||||
import TopLogo from './compontents/TopLogo';
|
||||
import Md5 from '../common/utils/md5';
|
||||
import { dateFormat, getCurrentHourTime, getCurrentTime, string2Bytes } from '../common/utils/tools';
|
||||
import { dateFormat, getCurrentTime, string2Bytes } from '../common/utils/tools';
|
||||
import FaceCompare from './compontents/FaceCompare';
|
||||
import { writeObjectOut } from '../api/judge';
|
||||
import testNapi from '@ohos.idcard';
|
||||
@ -25,6 +25,7 @@ import {
|
||||
BeginExamRequest,
|
||||
CarInfoType,
|
||||
DrvexamType,
|
||||
ExaminationStuAbsentParams,
|
||||
ExaminerLoginInfo,
|
||||
GetExaminationItemRsp,
|
||||
IdCard,
|
||||
@ -788,8 +789,13 @@ struct UserInfo {
|
||||
return
|
||||
}
|
||||
console.log('JsonJson', JSON.stringify(this.currentUser))
|
||||
const param =
|
||||
`<?xml version="1.0" encoding="UTF-8" ?><examinationStuAbsentReq><body><carId>${this.carInfo.carId}</carId><cardNo>${this.currentUser.sfzmhm}</cardNo><examinationRoomId>${this.carInfo.examinationRoomId}</examinationRoomId><examinerName>${this.examinerLoginInfo.username}</examinerName><lsh>${this.lsh}</lsh></body></examinationStuAbsentReq>`
|
||||
const param: ExaminationStuAbsentParams = {
|
||||
carId: this.carInfo.carId,
|
||||
sfzmhm: this.currentUser.sfzmhm,
|
||||
examinationRoomId: this.carInfo.examinationRoomId,
|
||||
username: this.examinerLoginInfo.username,
|
||||
lsh: this.lsh
|
||||
}
|
||||
console.log('carNo1111', param)
|
||||
|
||||
examinationStuAbsent(param).then(res => {
|
||||
|
||||
@ -2,10 +2,10 @@ import TopLogo from './compontents/topLogo';
|
||||
import FileUtil from '../common/utils/File';
|
||||
import common from '@ohos.app.ability.common';
|
||||
import promptAction from '@ohos.promptAction';
|
||||
import { endRecordVideo, startRecordVideo, takePhoto } from '../service/videoService';
|
||||
import { GlobalConfig } from '../config/index';
|
||||
import { VideoConfigData } from '../mock';
|
||||
import { CommonType, RecordHandleType, VideoConfig, VideoItemType } from '../model';
|
||||
import { endRecordVideo, startRecordVideo, takePhoto } from '../utils/Video';
|
||||
|
||||
@Entry
|
||||
@Component
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user