bug修复

This commit is contained in:
xiaoxiao
2025-08-01 10:18:52 +08:00
parent 7618c0337d
commit 0253493285
19 changed files with 1340 additions and 32 deletions
@@ -258,7 +258,7 @@ export struct AddAndEditRecordComp {
}
this.photos.push(...selectedUris);
this.maxSelectNumber = 8 - this.photos.length
ChangeUtil.convertUrisOrUrlsToBase64(selectedUris).then(base64Array => {
ChangeUtil.convertUrisOrUrlsToBase64(this.photos).then(base64Array => {
console.info('转换结果:', base64Array+'转换个数:'+base64Array.length)
this.base64Array = base64Array
}).catch((err:BusinessError) => {
@@ -8,6 +8,7 @@ import { BusinessError } from '@kit.BasicServicesKit';
import { promptAction, router } from '@kit.ArkUI'
import { patientDbManager, PatientData } from '@itcast/basic';
import { PullToRefreshLayout, RefreshController } from 'refreshlib'
import { HMRouter, HMRouterMgr } from '@hadss/hmrouter';
interface extraData {
expertUuid: string,
@@ -16,9 +17,11 @@ interface extraData {
status: string
}
@HMRouter({ pageUrl: 'PatientApplyPage' })
@Component
export struct PatientApplyPage {
public controller:RefreshController = new RefreshController();
private params: ESObject = HMRouterMgr.getCurrentParam()
scroller = new Scroller();
@State applyArray:applyListModel[] = [];
@State historyArray:historyModel[] = [];
@@ -137,7 +140,10 @@ export struct PatientApplyPage {
build() {
Column(){
HdNav({ title: '新的患者', showRightIcon: false, hasBorder: true })
HdNav({ title: '新的患者', showRightIcon: false, hasBorder: true, isLeftAction:this.params?true:false,
leftItemAction:()=>{
HMRouterMgr.pop()
}, })
PullToRefreshLayout({
scroller:this.scroller,
viewKey:"ListPage",
@@ -146,6 +146,7 @@ export struct PatientCommonSettingComp {
Column() {
Row() {
Image(BasicConstant.urlImage + this.itemList.photo)
.alt($r('app.media.userPhoto_default'))
.width(60)
.height(60)
.borderRadius(6)
@@ -5,8 +5,9 @@ import { BasicConstant,hdHttp, HdResponse ,logger} from '@itcast/basic/Index'
import { BusinessError } from '@kit.BasicServicesKit';
import HashMap from '@ohos.util.HashMap';
import { groupRequest,groupRequestCall,groupModel,patientListModel } from '../models/PatientsGroupModel'
import { HMRouterMgr, HMRouterPathInfo, HMRouterPathCallback } from "@hadss/hmrouter"
import { HMRouterMgr, HMRouterPathInfo, HMRouterPathCallback, HMRouter } from "@hadss/hmrouter"
@HMRouter({ pageUrl: 'PatientsGroup' })
@Component
export struct PatientsGroup {
@State groupSort: string = '分组排序'
@@ -20,7 +21,8 @@ export struct PatientsGroup {
@State isMaiLanHidden:boolean = false;//麦兰项目是否显示
@State group_sort:string = '0'
@State list_sort:string = '0'
@State groupListArray: groupModel[] = [];
@State groupListArray: groupModel[] = []
private params: ESObject = HMRouterMgr.getCurrentParam()
dialog: CustomDialogController = new CustomDialogController({
builder: HdLoadingDialog({ message: '加载中...' }),
@@ -88,6 +90,10 @@ export struct PatientsGroup {
hasBorder: true,
rightText: '新建',
showRightText: true,
isLeftAction:this.params?true:false,
leftItemAction:()=>{
HMRouterMgr.pop()
},
rightItemAction: () => {
HMRouterMgr.push({pageUrl:'BuildOrEditGroupPage',param:{"title":"新建分组"}})
// router.pushUrl({