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