接口定义
This commit is contained in:
parent
b3a208e8a6
commit
92ab9ef7b5
@ -28,7 +28,16 @@ export interface Carinfo {
|
||||
isNeedCheck: string;
|
||||
examSubject:number| string;
|
||||
}
|
||||
export interface examinerLoginInfo{
|
||||
export interface ExaminerLoginInfo{
|
||||
carId?: string;
|
||||
examinationRoomId?: string;
|
||||
examinerName?: string;
|
||||
examinerPwd?: string;
|
||||
username?: string;
|
||||
kgxm?:string;
|
||||
ksyh?:string;
|
||||
}
|
||||
export interface Spzd{
|
||||
carId?: string;
|
||||
examinationRoomId?: string;
|
||||
examinerName?: string;
|
||||
|
||||
@ -8,7 +8,7 @@ import { DwMapData, PassData, RealNumData, StackValueData, WarnFlagData, WarnFla
|
||||
import { BaseInfoType } from '../model/Common';
|
||||
import { CarCheckDataType, CarConfigurationParams, CarInfoType } from '../model/CarCheck';
|
||||
import { BusinessError } from '@ohos.base';
|
||||
import { Carinfo } from '../model';
|
||||
import { Carinfo, Spzd } from '../model';
|
||||
|
||||
@Entry
|
||||
@Component
|
||||
@ -314,7 +314,7 @@ struct Index {
|
||||
that.passArray[index] = true
|
||||
if (index == 2) {
|
||||
let flag = false
|
||||
const spzd = AppStorage.get('spzd')
|
||||
const spzd:Spzd = AppStorage.get('spzd')
|
||||
for (let key in pzd) {
|
||||
if (spzd[key]) {
|
||||
that.warnFlag[index] = '1'
|
||||
|
||||
@ -8,7 +8,7 @@ import { UserLoginType } from '../model/ExaminerLogin';
|
||||
import { BusinessError } from '@ohos.base';
|
||||
import { CarCheckDataType } from '../model/CarCheck';
|
||||
import { examinerLogin } from '../api/login';
|
||||
import { examinerLoginInfo,Carinfo } from '../model/index'
|
||||
import { ExaminerLoginInfo,Carinfo } from '../model/index'
|
||||
|
||||
|
||||
@Entry
|
||||
@ -129,7 +129,7 @@ struct Index {
|
||||
}, router.RouterMode.Single);
|
||||
|
||||
console.log('res11', JSON.stringify(res))
|
||||
const examinerLoginInfo: examinerLoginInfo = res.examinerLoginRsp.body
|
||||
const examinerLoginInfo: ExaminerLoginInfo = res.examinerLoginRsp.body
|
||||
examinerLoginInfo.username = this.inputTextArr[0]
|
||||
AppStorage.setOrCreate('examinerLoginInfo', examinerLoginInfo)
|
||||
}).catch((err: BusinessError) => {
|
||||
|
||||
@ -23,7 +23,7 @@ import FileUtil from '../common/utils/File';
|
||||
import DB, { ColumnType } from '../common/database/DbSql';
|
||||
import { LabelBlockType, QKParamType, SckType, SystemParamType, User } from '../model';
|
||||
import { BusinessError } from '@ohos.base';
|
||||
import {Carinfo,examinerLoginInfo} from '../model/index'
|
||||
import {Carinfo,ExaminerLoginInfo} from '../model/index'
|
||||
@Entry
|
||||
@Component
|
||||
struct UserInfo {
|
||||
@ -81,7 +81,7 @@ struct UserInfo {
|
||||
isNeedCheck: '',
|
||||
examSubject:''
|
||||
}
|
||||
@State examinerLoginInfo: examinerLoginInfo = {
|
||||
@State examinerLoginInfo: ExaminerLoginInfo = {
|
||||
carId: '',
|
||||
examinationRoomId: '',
|
||||
plateNo: '',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user