群发bug修复
This commit is contained in:
parent
9f37131022
commit
c016bc889f
@ -83,7 +83,11 @@ export struct GroupMessageSendingComp {
|
|||||||
this.controller.loadSuccess();
|
this.controller.loadSuccess();
|
||||||
this.totalPage = json.data["pages"]
|
this.totalPage = json.data["pages"]
|
||||||
if (Array.isArray(json.data["list"])) {
|
if (Array.isArray(json.data["list"])) {
|
||||||
this.messageList = [...this.messageList, ...json.data["list"]];
|
if (this.pageNumber == 1) {
|
||||||
|
this.messageList = [...json.data["list"]];
|
||||||
|
} else {
|
||||||
|
this.messageList = [...this.messageList,...json.data["list"]];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
console.error('群发消息列表失败:' + json.message)
|
console.error('群发消息列表失败:' + json.message)
|
||||||
@ -273,6 +277,7 @@ export struct GroupMessageSendingComp {
|
|||||||
}
|
}
|
||||||
.backgroundColor('#f4f4f4')
|
.backgroundColor('#f4f4f4')
|
||||||
.width('100%')
|
.width('100%')
|
||||||
|
.height('100%')
|
||||||
.scrollBar(BarState.Off)
|
.scrollBar(BarState.Off)
|
||||||
.layoutWeight(1)
|
.layoutWeight(1)
|
||||||
|
|
||||||
|
|||||||
@ -275,7 +275,8 @@ export struct SendGroupMessageComp {
|
|||||||
.height(3)
|
.height(3)
|
||||||
.backgroundColor($r('app.color.main_color'))
|
.backgroundColor($r('app.color.main_color'))
|
||||||
|
|
||||||
Text('消息将发送给'+this.patientsList.length+'位患者')
|
Text('消息将发送给'+this.patientsName.split(',')
|
||||||
|
.filter(item => item.trim() !== '').length+'位患者')
|
||||||
.fontSize(16)
|
.fontSize(16)
|
||||||
.margin({top:10})
|
.margin({top:10})
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user