From 1f6893d24ba87313d4114c68813073ead53b2e12 Mon Sep 17 00:00:00 2001 From: zhouwx <1175765986@qq.com> Date: 星期五, 30 八月 2024 09:26:22 +0800 Subject: [PATCH] 群发新通讯录懒加载 --- src/views/Admin/msgRecord.vue | 16 +++++++++++----- 1 files changed, 11 insertions(+), 5 deletions(-) diff --git a/src/views/Admin/msgRecord.vue b/src/views/Admin/msgRecord.vue index 15daf6b..20a1e70 100644 --- a/src/views/Admin/msgRecord.vue +++ b/src/views/Admin/msgRecord.vue @@ -12,7 +12,7 @@ /> </a-col> <a-col :span="4"> - <a-button type="primary" @click="getData">查询</a-button> + <a-button type="primary" @click="searchData()">查询</a-button> <a-button style="margin-left: 12px" @click="resetSearch">重置</a-button> </a-col> </a-row> @@ -25,15 +25,16 @@ </div> <a-divider type="vertical" /> <div class="tit"> - 任务ID:<span>{{item.id}}</span> + 任务ID:<span>{{item.id}}</span> </div> + 发送人数:{{item.recipients?item.recipients.length:0}} </template> <p> {{item.content}} </p> <template #actions> <div> - 接收号码:<span>{{item.recipients.map(i=>i.realName + '(' + i.phone + ')').join('、')}}</span> + 接收号码:<span>{{item.recipients?item.recipients.map(i=>i.realName + '(' + i.phone.replace(/(\d{3})\d{4}(\d+)/, "$1****$2") + ')').join('、'):'暂无'}}</span> </div> <div> <a-button type="primary" @click="viewDetails(item)">查看详情</a-button> @@ -72,9 +73,8 @@ details: {}, riskOptions: [ {name: '地震',value: 1}, - {name: '洪涝',value: 2}, {name: '气象',value: 3}, - {name: '泥石流',value: 4}, + {name: '地质灾害',value: 4}, {name: '水旱',value: 5}, {name: '森林草原火灾',value: 6} ], @@ -100,6 +100,11 @@ }else{ this.$message.error(res.data.msg) } + }, + + searchData(){ + this.search.pageIndex = 1 + this.getData() }, resetSearch(){ @@ -167,6 +172,7 @@ align-items: center !important; .tit{ width: 50%; + color: @base } } /deep/ .ant-card-actions{ -- Gitblit v1.9.2