From 93d5248746860e9c19bedaab8761d480d0ce18b9 Mon Sep 17 00:00:00 2001 From: yz3456 <2753272399@qq.com> Date: 星期日, 11 八月 2024 10:53:19 +0800 Subject: [PATCH] 解决了报错 --- ruoyi-ui/src/views/doctor/index.vue | 19 +++++++++++++------ 1 files changed, 13 insertions(+), 6 deletions(-) diff --git a/ruoyi-ui/src/views/doctor/index.vue b/ruoyi-ui/src/views/doctor/index.vue index a5ff635..1995bb0 100644 --- a/ruoyi-ui/src/views/doctor/index.vue +++ b/ruoyi-ui/src/views/doctor/index.vue @@ -626,10 +626,6 @@ queryParams1: { pageNum: 1, pageSize: 10, - identity:undefined, - nickName:undefined, - sex:undefined, - birth:undefined, }, queryParams2: { pageNo: 1, @@ -639,6 +635,7 @@ single1: true, multiple1: true, dateRange1: [], + userId: undefined, // 閬僵灞� @@ -796,6 +793,8 @@ // 鍏抽棴寮圭獥鍚� handleClose(){ this.user = '' + this.queryParams2.pageNo = 1 + this.total1 = 0 }, handleClose2(){ this.$refs.table1.clearSelection() @@ -861,7 +860,12 @@ const list = {"shareIds": [this.selectWho]} shareToWho(list,this.queryParams2).then(response => { // this.loading2 = true; - this.shareList1 = response.data.data + response.data.data.forEach(res=>{ + if(res){ + this.shareList1.push(res) + } + }) + // this.shareList1 = response.data.data this.total1 = response.data.total; // this.loading2 = false; console.log(response.data,'鍒嗕韩缁欒皝浜嗕粈涔堟暟鎹垎浜粰璋佷簡浠�涔堟暟鎹�') @@ -876,7 +880,9 @@ /** 鍒嗕韩鎿嶄綔 */ handleShare(row) { - this.id1 = [row.id] + if(row.id){ + this.id1 = [row.id] + } this.open1 = true; this.title1 = "鍒嗕韩"; }, @@ -935,6 +941,7 @@ this.getList(); this.$modal.msgSuccess("鍒嗕韩鎴愬姛"); + this.id1 = undefined this.open1 = false; }).catch(() => {}); }, -- Gitblit v1.9.1