图片组件跟患者列表

This commit is contained in:
XiuYun CHEN
2025-07-21 16:23:36 +08:00
parent 1cdb5a3311
commit 75277f5bb5
12 changed files with 275 additions and 144 deletions
@@ -147,6 +147,7 @@ export struct PreviewPhotos {
}
.index(this.previewIndex)
.indicator(false)
.loop(false) // 禁用循环滑动
.onChange((index: number) => {
@@ -41,9 +41,9 @@ export struct ChangePhotoGrids {
.width(20).height(20)
.position({ x: 55, y: 5 })
.onClick(() => {
this.removeImg=!this.removeImg
this.removeIndex=index
this.removeImg=!this.removeImg
})
}
@@ -0,0 +1,56 @@
export interface applyListCallBacl {
code:number,
msg:string,
data:applyListModel[],
message:string,
}
export interface applyHistoryCallBacl {
code:number,
msg:string,
data:historyObjectModel,
message:string,
}
export class applyListModel {
mobile?:string;
photo?:string;
birthDate?:string;
sex?:number;
realName?:string;
checkDate?:string;
uuid?:string;
createDate?:string;
patientUuid?:string;
expertUuid?:string;
status?:number;
content?:string;
nationName?:string;
provName?:string;
cityName?:string;
countyName?:string;
nation?:string;
note?:string
nickname?:string
groupType?:string
groupUuid?:string
}
export interface historyObjectModel {
list:historyModel[];
isFirstPage?:string;
isLastPage?:string;
pageNum?:string;
pages?:string;
pageSize?:string;
total?:string;
}
export class historyModel {
status?:string;//审核状态(1.待审核2.审核通过3.拒绝4.已过期 5.患者取消 6专家解除)
patient_photo?:string;
create_date?:string;
content?:string;
nickname?:string;
patient_name?:string;
}
@@ -233,5 +233,15 @@ export class ChangeUtil {
}
return "";
}
//将第一位移动到最后一位
static moveFirstToEnd(arr: string[]): string[] {
if (arr.length <= 1) return arr;
const first = arr[0];
// 前移后续元素(从索引1开始)
for (let i = 1; i < arr.length; i++) {
arr[i - 1] = arr[i];
}
arr[arr.length - 1] = first; // 首位移至末尾
return arr;
}
}
@@ -14,6 +14,10 @@ class PreferenceStore {
this.getStore().putSync(keyword, value)
this.getStore().flush()
}
setItemNumber(keyword: string,value:number) {
this.getStore().putSync(keyword, value)
this.getStore().flush()
}
setItemBoolean(keyword: string,value:boolean) {
this.getStore().putSync(keyword, value)
this.getStore().flush()
@@ -25,6 +29,9 @@ class PreferenceStore {
getItemString(keyword: string) {
return this.getStore().getSync(keyword,'') as string
}
getItemNumber(keyword: string) {
return this.getStore().getSync(keyword,0) as number
}
getItemBooleanT(keyword: string):boolean {
return this.getStore().getSync(keyword,true) as boolean
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 78 KiB