Compare commits
	
		
			No commits in common. "4380fce2cacaeb5535d7236c1e4e4ac3c37bc216" and "bbd5edd1eaab7abd2d57e6f328af0f3266182c31" have entirely different histories.
		
	
	
		
			4380fce2ca
			...
			bbd5edd1ea
		
	
		
@ -41,16 +41,16 @@ export async function getliushuiNum(context) {
 | 
				
			|||||||
    // return str
 | 
					    // return str
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
export async function deleteAllFIleLog(path){
 | 
					export async function deleteAllFIleLog(){
 | 
				
			||||||
  let options = {
 | 
					  let options = {
 | 
				
			||||||
    "recursion": false,
 | 
					    "recursion": false,
 | 
				
			||||||
    "listNum": 0,
 | 
					    "listNum": 0,
 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
  let filenames = fs.listFileSync(path, options);
 | 
					  let filenames = fs.listFileSync(GlobalConfig.comoonfileWriteAddress+'/PLC/', options);
 | 
				
			||||||
  console.info("listFile succeed",JSON.stringify(filenames));
 | 
					  console.info("listFile succeed",JSON.stringify(filenames));
 | 
				
			||||||
  for (let i = 0; i < filenames.length; i++) {
 | 
					  for (let i = 0; i < filenames.length; i++) {
 | 
				
			||||||
    if(isSevenDaysAgo(filenames[i])){
 | 
					    if(isSevenDaysAgo(filenames[i])){
 | 
				
			||||||
      fs.rmdir(path+filenames[i], (err) => {
 | 
					      fs.rmdir(GlobalConfig.comoonfileWriteAddress+'/PLC/'+filenames[i], (err) => {
 | 
				
			||||||
        if (err) {
 | 
					        if (err) {
 | 
				
			||||||
          console.error("rmdir failed with error message: " + err.message + ", error code: " + err.code);
 | 
					          console.error("rmdir failed with error message: " + err.message + ", error code: " + err.code);
 | 
				
			||||||
        } else {
 | 
					        } else {
 | 
				
			||||||
@ -157,47 +157,44 @@ export async function getDoubleCeneterTable(param) {
 | 
				
			|||||||
//单中心存表
 | 
					//单中心存表
 | 
				
			||||||
export async function getSingleCenterTable(param) {
 | 
					export async function getSingleCenterTable(param) {
 | 
				
			||||||
  return new Promise((reslove, reject) => {
 | 
					  return new Promise((reslove, reject) => {
 | 
				
			||||||
    try{
 | 
					    upDataZhongxinginitialization(param).then((result) => {
 | 
				
			||||||
      upDataZhongxinginitialization(param).then((result) => {
 | 
					      console.log('teststetfinsh01')
 | 
				
			||||||
        console.log('teststetfinsh01',result)
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if (result) {
 | 
					      if (result) {
 | 
				
			||||||
          reslove(true)
 | 
					        reslove(true)
 | 
				
			||||||
        } else {
 | 
					      } else {
 | 
				
			||||||
          // promptAction.showToast({
 | 
					        // promptAction.showToast({
 | 
				
			||||||
          //   title: '提示',
 | 
					        //   title: '提示',
 | 
				
			||||||
          //   message: '联网更新失败,请检查网络后重新更新',
 | 
					        //   message: '联网更新失败,请检查网络后重新更新',
 | 
				
			||||||
          //   buttons: [
 | 
					        //   buttons: [
 | 
				
			||||||
          //     {
 | 
					        //     {
 | 
				
			||||||
          //       text: '确认',
 | 
					        //       text: '确认',
 | 
				
			||||||
          //       color: '#000000',
 | 
					        //       color: '#000000',
 | 
				
			||||||
          //     },
 | 
					        //     },
 | 
				
			||||||
          //     {
 | 
					        //     {
 | 
				
			||||||
          //       text: '取消',
 | 
					        //       text: '取消',
 | 
				
			||||||
          //       color: '#000000',
 | 
					        //       color: '#000000',
 | 
				
			||||||
          //     }
 | 
					        //     }
 | 
				
			||||||
          //   ],
 | 
					        //   ],
 | 
				
			||||||
          // })
 | 
					        // })
 | 
				
			||||||
          //   .then(data => {
 | 
					        //   .then(data => {
 | 
				
			||||||
          //     reslove(false)
 | 
					        //     reslove(false)
 | 
				
			||||||
          //   })
 | 
					        //   })
 | 
				
			||||||
          //   .catch(err => {
 | 
					        //   .catch(err => {
 | 
				
			||||||
          //     reslove(false)
 | 
					        //     reslove(false)
 | 
				
			||||||
          //   })
 | 
					        //   })
 | 
				
			||||||
          console.log('联网更新失败,请检查网络后重新更新')
 | 
					        console.log('联网更新失败,请检查网络后重新更新')
 | 
				
			||||||
          // promptAction.showToast({
 | 
					        // promptAction.showToast({
 | 
				
			||||||
          //   message: `联网更新表数据失败,请重新更新`,
 | 
					        //   message: `联网更新表数据失败,请重新更新`,
 | 
				
			||||||
          //   duration: 3000
 | 
					        //   duration: 3000
 | 
				
			||||||
          // });
 | 
					        // });
 | 
				
			||||||
          reslove(false)
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
      }).catch((error) => {
 | 
					 | 
				
			||||||
        reslove(false)
 | 
					        reslove(false)
 | 
				
			||||||
        console.log(error)
 | 
					      }
 | 
				
			||||||
      })
 | 
					    }).catch((error) => {
 | 
				
			||||||
    }catch (e){
 | 
					 | 
				
			||||||
      reslove(false)
 | 
					      reslove(false)
 | 
				
			||||||
    }
 | 
					      console.log(error)
 | 
				
			||||||
 | 
					    })
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  })
 | 
					  })
 | 
				
			||||||
 | 
					
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
				
			|||||||
@ -360,47 +360,42 @@ export async function upDataZhongxinginitialization(param) {
 | 
				
			|||||||
      resolve(flag)
 | 
					      resolve(flag)
 | 
				
			||||||
      return
 | 
					      return
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    try{
 | 
					    const str = {
 | 
				
			||||||
      const str = {
 | 
					      "carId": param.carId, // 表名
 | 
				
			||||||
        "carId": param.carId, // 表名
 | 
					      "examinationRoomId": param.examinationRoomId, //考试平台kdid
 | 
				
			||||||
        "examinationRoomId": param.examinationRoomId, //考试平台kdid
 | 
					      videoVersion: '1.0',
 | 
				
			||||||
        videoVersion: '1.0',
 | 
					      judgeVersion: param.judgeVersion,
 | 
				
			||||||
        judgeVersion: param.judgeVersion,
 | 
					      shellVersion: param.shellVersion,
 | 
				
			||||||
        shellVersion: param.shellVersion,
 | 
					      host: param.host
 | 
				
			||||||
        host: param.host
 | 
					 | 
				
			||||||
      }
 | 
					 | 
				
			||||||
      console.log('daihai2', JSON.stringify(str))
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
      initialization(str).then(async (res) => {
 | 
					 | 
				
			||||||
        console.log('daihai3', JSON.stringify(res))
 | 
					 | 
				
			||||||
        if (!res||res.initializationRsp.head.resultCode==1) {
 | 
					 | 
				
			||||||
          console.log('daihai34', JSON.stringify(res))
 | 
					 | 
				
			||||||
          resolve(false)
 | 
					 | 
				
			||||||
          return
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        let flag
 | 
					 | 
				
			||||||
        console.log('resposestart')
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        for (let key in res.initializationRsp.body) {
 | 
					 | 
				
			||||||
          if (!centerToMap[key]) {
 | 
					 | 
				
			||||||
            continue
 | 
					 | 
				
			||||||
          }
 | 
					 | 
				
			||||||
          const data = await setSyncCenterSqlData(key, res, param)
 | 
					 | 
				
			||||||
          if (!data) {
 | 
					 | 
				
			||||||
            resolve(false)
 | 
					 | 
				
			||||||
          }
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        resolve(true)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        console.log('resposestart')
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
      }).catch((Error) => {
 | 
					 | 
				
			||||||
        resolve(false)
 | 
					 | 
				
			||||||
      })
 | 
					 | 
				
			||||||
    }catch (error){
 | 
					 | 
				
			||||||
      resolve(false)
 | 
					 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					    console.log('daihai2', JSON.stringify(str))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    initialization(str).then(async (res) => {
 | 
				
			||||||
 | 
					      console.log('daihai3', JSON.stringify(res))
 | 
				
			||||||
 | 
					      if (!res) {
 | 
				
			||||||
 | 
					        resolve(false)
 | 
				
			||||||
 | 
					        return
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					      let flag
 | 
				
			||||||
 | 
					      console.log('resposestart')
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      for (let key in res.initializationRsp.body) {
 | 
				
			||||||
 | 
					        if (!centerToMap[key]) {
 | 
				
			||||||
 | 
					          continue
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        const data = await setSyncCenterSqlData(key, res, param)
 | 
				
			||||||
 | 
					        if (!data) {
 | 
				
			||||||
 | 
					          resolve(false)
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					      resolve(true)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      console.log('resposestart')
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    }).catch((Error) => {
 | 
				
			||||||
 | 
					      resolve(false)
 | 
				
			||||||
 | 
					    })
 | 
				
			||||||
  })
 | 
					  })
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -103,12 +103,12 @@ export default class TcpClient {
 | 
				
			|||||||
        }, timeout: 6000
 | 
					        }, timeout: 6000
 | 
				
			||||||
      });
 | 
					      });
 | 
				
			||||||
      promise.then(() => {
 | 
					      promise.then(() => {
 | 
				
			||||||
        console.log('testTagtestTag000',)
 | 
					
 | 
				
			||||||
        this.tcp.setExtraOptions({
 | 
					        this.tcp.setExtraOptions({
 | 
				
			||||||
          keepAlive: true,
 | 
					          keepAlive: true,
 | 
				
			||||||
        }, err => {
 | 
					        }, err => {
 | 
				
			||||||
          if (err) {
 | 
					          if (err) {
 | 
				
			||||||
            console.log('testTagtestTag000,error')
 | 
					            console.log('testTagtestTagerrrrr,success')
 | 
				
			||||||
            if(this.num>3){
 | 
					            if(this.num>3){
 | 
				
			||||||
              return
 | 
					              return
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
@ -119,7 +119,7 @@ export default class TcpClient {
 | 
				
			|||||||
            return;
 | 
					            return;
 | 
				
			||||||
          }
 | 
					          }
 | 
				
			||||||
        });
 | 
					        });
 | 
				
			||||||
        console.log('testTagtestTag000,success')
 | 
					        console.log('testTagtestTagconnect,success')
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        globalThis.getCloseTcp = false
 | 
					        globalThis.getCloseTcp = false
 | 
				
			||||||
        resolve(true)
 | 
					        resolve(true)
 | 
				
			||||||
@ -133,7 +133,7 @@ export default class TcpClient {
 | 
				
			|||||||
          getTCP()
 | 
					          getTCP()
 | 
				
			||||||
          resolve(false)
 | 
					          resolve(false)
 | 
				
			||||||
        }, 2000)
 | 
					        }, 2000)
 | 
				
			||||||
        console.log('testTagtestTag000,error')
 | 
					        console.log('testTagtestTagconnect,error')
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      });
 | 
					      });
 | 
				
			||||||
    })
 | 
					    })
 | 
				
			||||||
 | 
				
			|||||||
@ -78,22 +78,19 @@ export default async function request(req: any) {
 | 
				
			|||||||
                    message: decodeURIComponent(resultMessage),
 | 
					                    message: decodeURIComponent(resultMessage),
 | 
				
			||||||
                    duration: 3000
 | 
					                    duration: 3000
 | 
				
			||||||
                });
 | 
					                });
 | 
				
			||||||
                return false
 | 
					                return
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        for( let i in res ) {
 | 
					        for( let i in res ) {
 | 
				
			||||||
            resObj = res[i].head
 | 
					            resObj = res[i].head
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        console.info('jiangsong:res in request' + url + JSON.stringify(resObj))
 | 
					        console.info('jiangsong:res in request' + url + JSON.stringify(res))
 | 
				
			||||||
        if(resObj.resultCode === '0') {
 | 
					        if(resObj.resultCode === '0') {
 | 
				
			||||||
            return res
 | 
					            return res
 | 
				
			||||||
        }else {
 | 
					        }else {
 | 
				
			||||||
            globalThis.type='1'
 | 
					            globalThis.type='1'
 | 
				
			||||||
            if(!host){
 | 
					            AppStorage.SetOrCreate('errorMsg', 1);
 | 
				
			||||||
                AppStorage.SetOrCreate('errorMsg', 1);
 | 
					            globalThis.title=decodeURIComponent(resObj.resultMessage)
 | 
				
			||||||
                globalThis.title=decodeURIComponent(resObj.resultMessage)
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
            prompt.showToast({
 | 
					            prompt.showToast({
 | 
				
			||||||
                message: decodeURIComponent(resObj.resultMessage),
 | 
					                message: decodeURIComponent(resObj.resultMessage),
 | 
				
			||||||
                duration: 3000
 | 
					                duration: 3000
 | 
				
			||||||
 | 
				
			|||||||
@ -30,8 +30,8 @@ export default class EntryAbility extends UIAbility {
 | 
				
			|||||||
        globalThis.hasAuth = false
 | 
					        globalThis.hasAuth = false
 | 
				
			||||||
        // globalThis.version = '2022.08.13.01'
 | 
					        // globalThis.version = '2022.08.13.01'
 | 
				
			||||||
        // globalThis.judgeVersion = '2022.12.05.1'
 | 
					        // globalThis.judgeVersion = '2022.12.05.1'
 | 
				
			||||||
        globalThis.version = '2001.11.22.14'
 | 
					        globalThis.version = '2024.11.22.14'
 | 
				
			||||||
        globalThis.judgeVersion = '2001.11.22.14'
 | 
					        globalThis.judgeVersion = '2024.11.22.14'
 | 
				
			||||||
        globalThis.videoVersion= '1.0'
 | 
					        globalThis.videoVersion= '1.0'
 | 
				
			||||||
        // globalThis.version = '2023.12.13.01'
 | 
					        // globalThis.version = '2023.12.13.01'
 | 
				
			||||||
        // globalThis.judgeVersion = '2023.09.30.1'
 | 
					        // globalThis.judgeVersion = '2023.09.30.1'
 | 
				
			||||||
 | 
				
			|||||||
@ -93,39 +93,30 @@ export default struct Index {
 | 
				
			|||||||
                  this.errorDialog.open()
 | 
					                  this.errorDialog.open()
 | 
				
			||||||
                  this.limit=true
 | 
					                  this.limit=true
 | 
				
			||||||
                  console.log('carInfo', JSON.stringify(globalThis.carInfo))
 | 
					                  console.log('carInfo', JSON.stringify(globalThis.carInfo))
 | 
				
			||||||
                  try{
 | 
					                  examinerLoginService(param).then(res => {
 | 
				
			||||||
                    examinerLoginService(param).then(res => {
 | 
					                    console.log('res?.examinerLoginRsp?.head?.resultCode',res?.examinerLoginRsp?.head?.resultCode,JSON.stringify(res))
 | 
				
			||||||
                      console.log('res?.examinerLoginRsp?.head?.resultCode',res?.examinerLoginRsp?.head?.resultCode,JSON.stringify(res))
 | 
					 | 
				
			||||||
                      this.errorDialog.close()
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
                      this.limit=false
 | 
					 | 
				
			||||||
                      if(res?.examinerLoginRsp?.head?.resultCode=='1'){
 | 
					 | 
				
			||||||
                        // this.type='1'
 | 
					 | 
				
			||||||
                        // this.title=decodeURIComponent(res.examinerLoginRsp.head.resultMessage)
 | 
					 | 
				
			||||||
                        // console.log('this.titlt',this.title)
 | 
					 | 
				
			||||||
                        // this.errorDialog.open()
 | 
					 | 
				
			||||||
                        return
 | 
					 | 
				
			||||||
                      }
 | 
					 | 
				
			||||||
                      router.pushUrl({
 | 
					 | 
				
			||||||
                        url: 'pages/UserInfo',
 | 
					 | 
				
			||||||
                        params:{
 | 
					 | 
				
			||||||
                          type:1
 | 
					 | 
				
			||||||
                        }
 | 
					 | 
				
			||||||
                      }, router.RouterMode.Single);
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
                      console.log('res11', JSON.stringify(res))
 | 
					 | 
				
			||||||
                      globalThis.username = this.inputTextArr[0]
 | 
					 | 
				
			||||||
                    }).catch(err=>{
 | 
					 | 
				
			||||||
                      console.log('jiangsong12',JSON.stringify(err))
 | 
					 | 
				
			||||||
                      this.errorDialog.close()
 | 
					 | 
				
			||||||
                      this.limit=false
 | 
					 | 
				
			||||||
                    })
 | 
					 | 
				
			||||||
                  }catch(eroor){
 | 
					 | 
				
			||||||
                    console.log('erroreee')
 | 
					 | 
				
			||||||
                    this.errorDialog.close()
 | 
					                    this.errorDialog.close()
 | 
				
			||||||
                    this.limit=false
 | 
					 | 
				
			||||||
                  }
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					                    this.limit=false
 | 
				
			||||||
 | 
					                    if(res?.examinerLoginRsp?.head?.resultCode=='1'){
 | 
				
			||||||
 | 
					                      // this.type='1'
 | 
				
			||||||
 | 
					                      // this.title=decodeURIComponent(res.examinerLoginRsp.head.resultMessage)
 | 
				
			||||||
 | 
					                      // console.log('this.titlt',this.title)
 | 
				
			||||||
 | 
					                      // this.errorDialog.open()
 | 
				
			||||||
 | 
					                      return
 | 
				
			||||||
 | 
					                    }
 | 
				
			||||||
 | 
					                    router.pushUrl({
 | 
				
			||||||
 | 
					                      url: 'pages/UserInfo',
 | 
				
			||||||
 | 
					                      params:{
 | 
				
			||||||
 | 
					                        type:1
 | 
				
			||||||
 | 
					                      }
 | 
				
			||||||
 | 
					                    }, router.RouterMode.Single);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					                    console.log('res11', JSON.stringify(res))
 | 
				
			||||||
 | 
					                    globalThis.username = this.inputTextArr[0]
 | 
				
			||||||
 | 
					                  }).catch(err=>{
 | 
				
			||||||
 | 
					                    console.log('jiangsong12',JSON.stringify(err))
 | 
				
			||||||
 | 
					                  })
 | 
				
			||||||
                })
 | 
					                })
 | 
				
			||||||
              } else {
 | 
					              } else {
 | 
				
			||||||
                Image(item).width('18%').height('24%').onClick(() => {
 | 
					                Image(item).width('18%').height('24%').onClick(() => {
 | 
				
			||||||
 | 
				
			|||||||
@ -17,7 +17,6 @@ import promptAction from '@ohos.promptAction'
 | 
				
			|||||||
import { voiceService } from '../common/service/voiceService';
 | 
					import { voiceService } from '../common/service/voiceService';
 | 
				
			||||||
import errorMsgDialog from './compontents/errorMsgDialog'
 | 
					import errorMsgDialog from './compontents/errorMsgDialog'
 | 
				
			||||||
import { getSyncData } from '../common/service/initable';
 | 
					import { getSyncData } from '../common/service/initable';
 | 
				
			||||||
import { GlobalConfig } from '../config/index'
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
@Entry
 | 
					@Entry
 | 
				
			||||||
@Component
 | 
					@Component
 | 
				
			||||||
@ -412,7 +411,7 @@ struct Index {
 | 
				
			|||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  async initParams() {
 | 
					  async initParams() {
 | 
				
			||||||
    deleteAllFIleLog(GlobalConfig.comoonfileWriteAddress+'/PLC/')
 | 
					    deleteAllFIleLog()
 | 
				
			||||||
    //设置plc udp 同步requesthost
 | 
					    //设置plc udp 同步requesthost
 | 
				
			||||||
    await getUDP(this.context, false)
 | 
					    await getUDP(this.context, false)
 | 
				
			||||||
    this.loading = false
 | 
					    this.loading = false
 | 
				
			||||||
 | 
				
			|||||||
@ -79,6 +79,7 @@ struct UserInfo {
 | 
				
			|||||||
  @State Param803Str: string = ''
 | 
					  @State Param803Str: string = ''
 | 
				
			||||||
  private title = ''
 | 
					  private title = ''
 | 
				
			||||||
  private type = '2'
 | 
					  private type = '2'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  // 过程照片拍照
 | 
					  // 过程照片拍照
 | 
				
			||||||
  getPhoto = async (empty?: boolean) => {
 | 
					  getPhoto = async (empty?: boolean) => {
 | 
				
			||||||
    const singlePlay = globalThis.singlePlay
 | 
					    const singlePlay = globalThis.singlePlay
 | 
				
			||||||
@ -117,10 +118,9 @@ struct UserInfo {
 | 
				
			|||||||
    alignment: DialogAlignment.Center,
 | 
					    alignment: DialogAlignment.Center,
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
  )
 | 
					  )
 | 
				
			||||||
 | 
					 | 
				
			||||||
  async onPageShow() {
 | 
					  async onPageShow() {
 | 
				
			||||||
    this.updateTimeLimit = false
 | 
					    this.updateTimeLimit=false
 | 
				
			||||||
    this.ksksLimit = false
 | 
					    this.ksksLimit=false
 | 
				
			||||||
    console.log('响应头地址响应头地址')
 | 
					    console.log('响应头地址响应头地址')
 | 
				
			||||||
    const mediaTest = new FilePhoto(this.context);
 | 
					    const mediaTest = new FilePhoto(this.context);
 | 
				
			||||||
    this.filePhoto = new FilePhoto(this.context);
 | 
					    this.filePhoto = new FilePhoto(this.context);
 | 
				
			||||||
@ -130,42 +130,42 @@ struct UserInfo {
 | 
				
			|||||||
    this.initData()
 | 
					    this.initData()
 | 
				
			||||||
    //身份证读卡器初始化
 | 
					    //身份证读卡器初始化
 | 
				
			||||||
    // this.openDeviceByIDCard()
 | 
					    // this.openDeviceByIDCard()
 | 
				
			||||||
    const routerParam = router.getParams() || { type: 0 };
 | 
					    const routerParam=router.getParams()||{type :0};
 | 
				
			||||||
    console.log('routerParam', JSON.stringify(routerParam))
 | 
					    console.log('routerParam',JSON.stringify(routerParam))
 | 
				
			||||||
    if (!globalThis.singlePlay) {
 | 
					    if(!globalThis.singlePlay){
 | 
				
			||||||
      // @ts-ignore
 | 
					      // @ts-ignore
 | 
				
			||||||
      if (routerParam.type != 1) {
 | 
					      if(routerParam.type!=1){
 | 
				
			||||||
        // @ts-ignore
 | 
					        // @ts-ignore
 | 
				
			||||||
        this.list = await getSyncData('USERLIST')
 | 
					        this.list =await getSyncData('USERLIST')
 | 
				
			||||||
        // @ts-ignore
 | 
					        // @ts-ignore
 | 
				
			||||||
        const data = await getSyncData('USER')
 | 
					        const data=await getSyncData('USER')
 | 
				
			||||||
        const user = data[0]
 | 
					        const user=data[0]
 | 
				
			||||||
        if (user && Number(user.kssycs)) {
 | 
					        if(user&&Number(user.kssycs)){
 | 
				
			||||||
          this.list.forEach(res => {
 | 
					          this.list.forEach(res=>{
 | 
				
			||||||
            if (res.sfzmhm == user.sfzmhm) {
 | 
					            if(res.sfzmhm==user.sfzmhm){
 | 
				
			||||||
              res.kssycs = user.kssycs
 | 
					              res.kssycs=user.kssycs
 | 
				
			||||||
              this.getCurrentStudent(res.sfzmhm)
 | 
					              this.getCurrentStudent(res.sfzmhm)
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
          })
 | 
					          })
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        } else if (user && (user.kssycs == '0' || user.kssycs == '')) {
 | 
					        }else if(user&&(user.kssycs=='0'||user.kssycs=='')){
 | 
				
			||||||
          console.log('datadatadatadata')
 | 
					          console.log('datadatadatadata')
 | 
				
			||||||
          this.list = this.list.filter(res => {
 | 
					          this.list=this.list.filter(res=>{
 | 
				
			||||||
            return res.sfzmhm != user.sfzmhm
 | 
					            return res.sfzmhm!=user.sfzmhm
 | 
				
			||||||
          })
 | 
					          })
 | 
				
			||||||
          this.pageIndex = 0
 | 
					          this.pageIndex=0
 | 
				
			||||||
          this.dataList = this.list.slice(this.pageIndex * 4, this.pageIndex * 4 + 4)
 | 
					          this.dataList = this.list.slice(this.pageIndex * 4, this.pageIndex * 4 + 4)
 | 
				
			||||||
          if (this.dataList.length) {
 | 
					          if(this.dataList.length){
 | 
				
			||||||
            this.currentUser = this.dataList[0]
 | 
					            this.currentUser=this.dataList[0]
 | 
				
			||||||
          } else {
 | 
					          }else{
 | 
				
			||||||
            this.currentUser = EmptyCandidateObject
 | 
					            this.currentUser=EmptyCandidateObject
 | 
				
			||||||
          }
 | 
					          }
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        this.list.forEach((res, index) => {
 | 
					        this.list.forEach((res,index)=>{
 | 
				
			||||||
          res.id = index.toString()
 | 
					          res.id=index.toString()
 | 
				
			||||||
        })
 | 
					        })
 | 
				
			||||||
        await upDateTableByArray('USERLIST', this.list || [])
 | 
					        await upDateTableByArray('USERLIST', this.list||[])
 | 
				
			||||||
      } else {
 | 
					      }else{
 | 
				
			||||||
        this.getExaminationStudentInfoFn()
 | 
					        this.getExaminationStudentInfoFn()
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
@ -226,7 +226,7 @@ struct UserInfo {
 | 
				
			|||||||
          this.stopDeviceById()
 | 
					          this.stopDeviceById()
 | 
				
			||||||
          // globalThis.statue=4
 | 
					          // globalThis.statue=4
 | 
				
			||||||
          router.pushUrl({
 | 
					          router.pushUrl({
 | 
				
			||||||
            url: examSubject == 3 ? 'pages/c' : 'pages/Judge',
 | 
					            url: examSubject == 3 ? 'pages/Roads' : 'pages/Judge',
 | 
				
			||||||
            params: {
 | 
					            params: {
 | 
				
			||||||
              sczb: Number(this.isBoardPrePareSetPopupOpen),
 | 
					              sczb: Number(this.isBoardPrePareSetPopupOpen),
 | 
				
			||||||
              kfdm: this.sczbkf,
 | 
					              kfdm: this.sczbkf,
 | 
				
			||||||
@ -243,7 +243,7 @@ struct UserInfo {
 | 
				
			|||||||
    if (!flag) {
 | 
					    if (!flag) {
 | 
				
			||||||
      globalThis.lsh = '0000000000000'
 | 
					      globalThis.lsh = '0000000000000'
 | 
				
			||||||
      await upDateTableByArray('USER', [])
 | 
					      await upDateTableByArray('USER', [])
 | 
				
			||||||
      this.currentUser = this.list[0]
 | 
					      this.currentUser=this.list[0]
 | 
				
			||||||
      // promptAction.showToast({
 | 
					      // promptAction.showToast({
 | 
				
			||||||
      //   message: '未匹配到对应下载学员',
 | 
					      //   message: '未匹配到对应下载学员',
 | 
				
			||||||
      //   duration: 3000
 | 
					      //   duration: 3000
 | 
				
			||||||
@ -401,7 +401,7 @@ struct UserInfo {
 | 
				
			|||||||
            that.openDeviceByIDCard()
 | 
					            that.openDeviceByIDCard()
 | 
				
			||||||
          }
 | 
					          }
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        if (that.list.length) {
 | 
					        if(that.list.length){
 | 
				
			||||||
          return
 | 
					          return
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        //0不自动更新 1自动更新(不限次数) 2没有考生更新2次
 | 
					        //0不自动更新 1自动更新(不限次数) 2没有考生更新2次
 | 
				
			||||||
@ -460,78 +460,71 @@ struct UserInfo {
 | 
				
			|||||||
      return
 | 
					      return
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    await upDateTableByArray('USER', [])
 | 
					    await upDateTableByArray('USER', [])
 | 
				
			||||||
    this.type = '2'
 | 
					    this.type='2'
 | 
				
			||||||
    this.errorDialog.open()
 | 
					    this.errorDialog.open()
 | 
				
			||||||
    this.updateTimeLimit = true
 | 
					    this.updateTimeLimit = true
 | 
				
			||||||
    const param = `<getExaminationStudentInfoReq><head><checkCode>${Md5.Instance.get_md5(globalThis.carInfo.carId + globalThis.carInfo.examinationRoomId + globalThis.username)}</checkCode></head><body><carId>${globalThis.carInfo.carId}</carId><examinationRoomId>${globalThis.carInfo.examinationRoomId}</examinationRoomId><examinerName>${globalThis.username}</examinerName></body></getExaminationStudentInfoReq>`
 | 
					    const param = `<getExaminationStudentInfoReq><head><checkCode>${Md5.Instance.get_md5(globalThis.carInfo.carId + globalThis.carInfo.examinationRoomId + globalThis.username)}</checkCode></head><body><carId>${globalThis.carInfo.carId}</carId><examinationRoomId>${globalThis.carInfo.examinationRoomId}</examinationRoomId><examinerName>${globalThis.username}</examinerName></body></getExaminationStudentInfoReq>`
 | 
				
			||||||
    try {
 | 
					    getExaminationStudentInfo(param).then(async (res) => {
 | 
				
			||||||
      getExaminationStudentInfo(param).then(async (res) => {
 | 
					 | 
				
			||||||
        this.errorDialog.close()
 | 
					 | 
				
			||||||
        setTimeout(() => {
 | 
					 | 
				
			||||||
          this.updateTimeLimit = false
 | 
					 | 
				
			||||||
        }, 3000)
 | 
					 | 
				
			||||||
        if (!res || res?.getExaminationStudentInfoRsp?.head?.resultCode == '1') {
 | 
					 | 
				
			||||||
          return
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        let dataList = []
 | 
					 | 
				
			||||||
        this.list = []
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        for (let key in res.getExaminationStudentInfoRsp.body) {
 | 
					 | 
				
			||||||
          const a = res.getExaminationStudentInfoRsp.body[key]
 | 
					 | 
				
			||||||
          if (a instanceof Array) {
 | 
					 | 
				
			||||||
            dataList = a
 | 
					 | 
				
			||||||
          } else {
 | 
					 | 
				
			||||||
            dataList = [a]
 | 
					 | 
				
			||||||
          }
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        if (dataList.length) {
 | 
					 | 
				
			||||||
          this.numCount = 0
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        this.list = JSON.parse(JSON.stringify(dataList))
 | 
					 | 
				
			||||||
        this.list.forEach((listData, index) => {
 | 
					 | 
				
			||||||
          listData.id = index.toString()
 | 
					 | 
				
			||||||
          for (let i in listData) {
 | 
					 | 
				
			||||||
            listData[i] = decodeURI(listData[i])
 | 
					 | 
				
			||||||
          }
 | 
					 | 
				
			||||||
          listData.kszp = this.photo + listData.kszp
 | 
					 | 
				
			||||||
          listData.ksmjzp = this.photo + listData.ksmjzp
 | 
					 | 
				
			||||||
        })
 | 
					 | 
				
			||||||
        await upDateTableByArray('USERLIST', this.list || [])
 | 
					 | 
				
			||||||
        dataList = this.list.length > 4 ? this.list.slice(this.pageIndex * 4, this.pageIndex * 4 + 4) : this.list;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        this.dataList = dataList
 | 
					 | 
				
			||||||
        if (this.dataList.length) {
 | 
					 | 
				
			||||||
          this.currentUser = this.dataList[0]
 | 
					 | 
				
			||||||
        } else {
 | 
					 | 
				
			||||||
          this.currentUser = EmptyCandidateObject
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        this.lsh = this.currentUser.lsh
 | 
					 | 
				
			||||||
        globalThis.lsh = this.lsh
 | 
					 | 
				
			||||||
        globalThis.ksyh = this.currentUser.ksy1sfzmhm || this.currentUser.ksy2sfzmhm
 | 
					 | 
				
			||||||
        console.log('this.currentUse3' + JSON.stringify(this.currentUser))
 | 
					 | 
				
			||||||
        this.pageIndex = 0
 | 
					 | 
				
			||||||
        getSyncData('USER').then(data => {
 | 
					 | 
				
			||||||
          if (data?.[0]) {
 | 
					 | 
				
			||||||
            this.getCurrentStudent(data[0].sfzmhm)
 | 
					 | 
				
			||||||
          }
 | 
					 | 
				
			||||||
        })
 | 
					 | 
				
			||||||
      }).catch((error) => {
 | 
					 | 
				
			||||||
        this.updateTimeLimit = false
 | 
					 | 
				
			||||||
        this.errorDialog.close()
 | 
					 | 
				
			||||||
        console.log('error12error' + error)
 | 
					 | 
				
			||||||
      })
 | 
					 | 
				
			||||||
    } catch (error) {
 | 
					 | 
				
			||||||
      this.updateTimeLimit = false
 | 
					 | 
				
			||||||
      this.errorDialog.close()
 | 
					      this.errorDialog.close()
 | 
				
			||||||
      console.log('error14error' + error)
 | 
					      setTimeout(() => {
 | 
				
			||||||
    }
 | 
					        this.updateTimeLimit = false
 | 
				
			||||||
 | 
					      }, 3000)
 | 
				
			||||||
 | 
					      if (!res||res?.getExaminationStudentInfoRsp?.head?.resultCode=='1') {
 | 
				
			||||||
 | 
					        return
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					      let dataList = []
 | 
				
			||||||
 | 
					      this.list = []
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      for (let key in res.getExaminationStudentInfoRsp.body) {
 | 
				
			||||||
 | 
					        const a = res.getExaminationStudentInfoRsp.body[key]
 | 
				
			||||||
 | 
					        if (a instanceof Array) {
 | 
				
			||||||
 | 
					          dataList = a
 | 
				
			||||||
 | 
					        } else {
 | 
				
			||||||
 | 
					          dataList = [a]
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					      if (dataList.length) {
 | 
				
			||||||
 | 
					        this.numCount = 0
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      this.list = JSON.parse(JSON.stringify(dataList))
 | 
				
			||||||
 | 
					      this.list.forEach((listData,index) => {
 | 
				
			||||||
 | 
					        listData.id=index.toString()
 | 
				
			||||||
 | 
					        for (let i in listData) {
 | 
				
			||||||
 | 
					          listData[i] = decodeURI(listData[i])
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        listData.kszp = this.photo + listData.kszp
 | 
				
			||||||
 | 
					        listData.ksmjzp = this.photo + listData.ksmjzp
 | 
				
			||||||
 | 
					      })
 | 
				
			||||||
 | 
					      await upDateTableByArray('USERLIST', this.list||[])
 | 
				
			||||||
 | 
					      dataList = this.list.length > 4 ? this.list.slice(this.pageIndex * 4, this.pageIndex * 4 + 4) : this.list;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      this.dataList = dataList
 | 
				
			||||||
 | 
					      if (this.dataList.length) {
 | 
				
			||||||
 | 
					        this.currentUser = this.dataList[0]
 | 
				
			||||||
 | 
					      } else {
 | 
				
			||||||
 | 
					        this.currentUser = EmptyCandidateObject
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      this.lsh = this.currentUser.lsh
 | 
				
			||||||
 | 
					      globalThis.lsh = this.lsh
 | 
				
			||||||
 | 
					      globalThis.ksyh = this.currentUser.ksy1sfzmhm || this.currentUser.ksy2sfzmhm
 | 
				
			||||||
 | 
					      console.log('this.currentUse3' + JSON.stringify(this.currentUser))
 | 
				
			||||||
 | 
					      this.pageIndex = 0
 | 
				
			||||||
 | 
					      getSyncData('USER').then(data => {
 | 
				
			||||||
 | 
					        if (data?.[0]) {
 | 
				
			||||||
 | 
					          this.getCurrentStudent(data[0].sfzmhm)
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					      })
 | 
				
			||||||
 | 
					    }).catch((error) => {
 | 
				
			||||||
 | 
					      this.updateTimeLimit = false
 | 
				
			||||||
 | 
					      console.log('error12error' + error)
 | 
				
			||||||
 | 
					    })
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  qkFn() {
 | 
					  qkFn() {
 | 
				
			||||||
    this.faceCompareSucess = 0
 | 
					    this.faceCompareSucess = 0
 | 
				
			||||||
    this.ksksLimit = false
 | 
					    this.ksksLimit=false
 | 
				
			||||||
    if (globalThis.singlePlay) {
 | 
					    if (globalThis.singlePlay) {
 | 
				
			||||||
      this.qkFlag = false
 | 
					      this.qkFlag = false
 | 
				
			||||||
      return
 | 
					      return
 | 
				
			||||||
@ -619,7 +612,7 @@ struct UserInfo {
 | 
				
			|||||||
        })
 | 
					        })
 | 
				
			||||||
        return
 | 
					        return
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
      this.currentUser.id = '0'
 | 
					      this.currentUser.id='0'
 | 
				
			||||||
      await upDateTableByArray('USER', [this.currentUser])
 | 
					      await upDateTableByArray('USER', [this.currentUser])
 | 
				
			||||||
      this.stepFlag = false
 | 
					      this.stepFlag = false
 | 
				
			||||||
      this.isLoadingPopupVisible = false
 | 
					      this.isLoadingPopupVisible = false
 | 
				
			||||||
@ -630,10 +623,10 @@ struct UserInfo {
 | 
				
			|||||||
          sczb: Number(this.isBoardPrePareSetPopupOpen),
 | 
					          sczb: Number(this.isBoardPrePareSetPopupOpen),
 | 
				
			||||||
          kfdm: this.sczbkf,
 | 
					          kfdm: this.sczbkf,
 | 
				
			||||||
          //真实监管项目
 | 
					          //真实监管项目
 | 
				
			||||||
          kString: keystr || ''
 | 
					          kString:keystr || ''
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
      }, router.RouterMode.Single);
 | 
					      }, router.RouterMode.Single);
 | 
				
			||||||
      this.updateTimeLimit = false
 | 
					      this.updateTimeLimit=false
 | 
				
			||||||
      this.stopDeviceById()
 | 
					      this.stopDeviceById()
 | 
				
			||||||
      this.stepFlag = false
 | 
					      this.stepFlag = false
 | 
				
			||||||
    })
 | 
					    })
 | 
				
			||||||
@ -825,7 +818,7 @@ struct UserInfo {
 | 
				
			|||||||
            .backgroundImageSize({ width: '100%', height: '100%' })
 | 
					            .backgroundImageSize({ width: '100%', height: '100%' })
 | 
				
			||||||
            .onClick(() => {
 | 
					            .onClick(() => {
 | 
				
			||||||
              globalThis.lsh = item.lsh;
 | 
					              globalThis.lsh = item.lsh;
 | 
				
			||||||
              if (this.isExamStart && !globalThis.singlePlay) {
 | 
					              if (this.isExamStart&&!globalThis.singlePlay) {
 | 
				
			||||||
                return
 | 
					                return
 | 
				
			||||||
              }
 | 
					              }
 | 
				
			||||||
              this.currentUser = item
 | 
					              this.currentUser = item
 | 
				
			||||||
@ -900,10 +893,10 @@ struct UserInfo {
 | 
				
			|||||||
          Image($r('app.media.qk_btn'))
 | 
					          Image($r('app.media.qk_btn'))
 | 
				
			||||||
            .commStyle()
 | 
					            .commStyle()
 | 
				
			||||||
            .onClick(() => {
 | 
					            .onClick(() => {
 | 
				
			||||||
              if (this.ksksLimit) {
 | 
					              if(this.ksksLimit){
 | 
				
			||||||
                return
 | 
					                return
 | 
				
			||||||
              }
 | 
					              }
 | 
				
			||||||
              this.ksksLimit = true
 | 
					              this.ksksLimit=true
 | 
				
			||||||
              this.qkFlag = true
 | 
					              this.qkFlag = true
 | 
				
			||||||
            })
 | 
					            })
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -913,7 +906,7 @@ struct UserInfo {
 | 
				
			|||||||
              try {
 | 
					              try {
 | 
				
			||||||
                await this.checkSignal()
 | 
					                await this.checkSignal()
 | 
				
			||||||
                this.isExamStart = true
 | 
					                this.isExamStart = true
 | 
				
			||||||
                this.currentUser.id = '0'
 | 
					                this.currentUser.id='0'
 | 
				
			||||||
                await upDateTableByArray('USER', [this.currentUser])
 | 
					                await upDateTableByArray('USER', [this.currentUser])
 | 
				
			||||||
                globalThis.statue = 4
 | 
					                globalThis.statue = 4
 | 
				
			||||||
                this.isBoardPrePareSetPopupShow = true;
 | 
					                this.isBoardPrePareSetPopupShow = true;
 | 
				
			||||||
@ -928,7 +921,7 @@ struct UserInfo {
 | 
				
			|||||||
            Image($r('app.media.ksks_btn'))
 | 
					            Image($r('app.media.ksks_btn'))
 | 
				
			||||||
              .commStyle()
 | 
					              .commStyle()
 | 
				
			||||||
              .onClick(async () => {
 | 
					              .onClick(async () => {
 | 
				
			||||||
                if (this.ksksLimit) {
 | 
					                if(this.ksksLimit){
 | 
				
			||||||
                  return
 | 
					                  return
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
                console.log('routerParamrouterParam')
 | 
					                console.log('routerParamrouterParam')
 | 
				
			||||||
@ -939,11 +932,11 @@ struct UserInfo {
 | 
				
			|||||||
                  if (!this.currentUser.xm) {
 | 
					                  if (!this.currentUser.xm) {
 | 
				
			||||||
                    return
 | 
					                    return
 | 
				
			||||||
                  }
 | 
					                  }
 | 
				
			||||||
                  this.ksksLimit = true
 | 
					                  this.ksksLimit=true
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                  if (globalThis.singlePlay) {
 | 
					                  if (globalThis.singlePlay) {
 | 
				
			||||||
                    const {examSubject} = globalThis.carInfo;
 | 
					                    const {examSubject} = globalThis.carInfo;
 | 
				
			||||||
                    this.currentUser.id = '0'
 | 
					                    this.currentUser.id='0'
 | 
				
			||||||
                    await upDateTableByArray('USER', [this.currentUser])
 | 
					                    await upDateTableByArray('USER', [this.currentUser])
 | 
				
			||||||
                    router.pushUrl({
 | 
					                    router.pushUrl({
 | 
				
			||||||
                      url: examSubject == 3 ? 'pages/Roads' : 'pages/Judge',
 | 
					                      url: examSubject == 3 ? 'pages/Roads' : 'pages/Judge',
 | 
				
			||||||
@ -952,7 +945,7 @@ struct UserInfo {
 | 
				
			|||||||
                        kfdm: this.sczbkf,
 | 
					                        kfdm: this.sczbkf,
 | 
				
			||||||
                      }
 | 
					                      }
 | 
				
			||||||
                    }, router.RouterMode.Single);
 | 
					                    }, router.RouterMode.Single);
 | 
				
			||||||
                    this.ksksLimit = false
 | 
					                    this.ksksLimit=false
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                    this.stopDeviceById()
 | 
					                    this.stopDeviceById()
 | 
				
			||||||
                    return
 | 
					                    return
 | 
				
			||||||
@ -993,7 +986,7 @@ struct UserInfo {
 | 
				
			|||||||
            }
 | 
					            }
 | 
				
			||||||
            .commStyle()
 | 
					            .commStyle()
 | 
				
			||||||
            .onClick(() => {
 | 
					            .onClick(() => {
 | 
				
			||||||
              this.ksksLimit = false
 | 
					              this.ksksLimit=false
 | 
				
			||||||
              this.qkFlag = false
 | 
					              this.qkFlag = false
 | 
				
			||||||
            })
 | 
					            })
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -1095,11 +1088,7 @@ struct LabelBlock {
 | 
				
			|||||||
    Row() {
 | 
					    Row() {
 | 
				
			||||||
      Text(this.label).fontSize(20 * this.ratio).fontColor('#99948A')
 | 
					      Text(this.label).fontSize(20 * this.ratio).fontColor('#99948A')
 | 
				
			||||||
      Row() {
 | 
					      Row() {
 | 
				
			||||||
        Text(decodeURIComponent(this.value))
 | 
					        Text(decodeURIComponent(this.value)).fontColor('#fff').textAlign(TextAlign.Center).width('100%').fontSize(18 * this.ratio)
 | 
				
			||||||
          .fontColor('#fff')
 | 
					 | 
				
			||||||
          .textAlign(TextAlign.Center)
 | 
					 | 
				
			||||||
          .width('100%')
 | 
					 | 
				
			||||||
          .fontSize(18 * this.ratio)
 | 
					 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
      .commLabelStyle()
 | 
					      .commLabelStyle()
 | 
				
			||||||
    }.margin({ bottom: 10 * this.ratio })
 | 
					    }.margin({ bottom: 10 * this.ratio })
 | 
				
			||||||
 | 
				
			|||||||
@ -30,20 +30,15 @@ workerPort.onmessage = (e: MessageEvents): void => {
 | 
				
			|||||||
  console.log('baoyihu,onmessage',JSON.stringify(param))
 | 
					  console.log('baoyihu,onmessage',JSON.stringify(param))
 | 
				
			||||||
  if(param.mode=='1'){
 | 
					  if(param.mode=='1'){
 | 
				
			||||||
    //单中心
 | 
					    //单中心
 | 
				
			||||||
    try{
 | 
					    getSingleCenterTable(param).then((ret) => {
 | 
				
			||||||
      getSingleCenterTable(param).then((ret) => {
 | 
					      console.log('teststetfinsh1')
 | 
				
			||||||
        console.log('teststetfinsh1',ret)
 | 
					      if (ret) {
 | 
				
			||||||
        if (ret) {
 | 
					        workerPort.postMessage({ isComplete: true });
 | 
				
			||||||
          workerPort.postMessage({ isComplete: true });
 | 
					      }else{
 | 
				
			||||||
        }else{
 | 
					        workerPort.postMessage({ isComplete: false });
 | 
				
			||||||
          workerPort.postMessage({ isComplete: false });
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
      })
 | 
					 | 
				
			||||||
    }catch(error){
 | 
					 | 
				
			||||||
      workerPort.postMessage({ isComplete: false });
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					    })
 | 
				
			||||||
  }else if(param.mode=='3'){
 | 
					  }else if(param.mode=='3'){
 | 
				
			||||||
    //双中心
 | 
					    //双中心
 | 
				
			||||||
    getDoubleCeneterTable(param).then((ret)=>{
 | 
					    getDoubleCeneterTable(param).then((ret)=>{
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user