From 0d915fa05f1521db346e05180aecc5bab7d2cc22 Mon Sep 17 00:00:00 2001 From: yz3456 <2753272399@qq.com> Date: 星期日, 04 八月 2024 18:16:40 +0800 Subject: [PATCH] 完成了分享模块 --- ruoyi-ui/src/views/doctor/index.vue | 14 ++++++++++++-- 1 files changed, 12 insertions(+), 2 deletions(-) diff --git a/ruoyi-ui/src/views/doctor/index.vue b/ruoyi-ui/src/views/doctor/index.vue index 5eeb696..1995bb0 100644 --- a/ruoyi-ui/src/views/doctor/index.vue +++ b/ruoyi-ui/src/views/doctor/index.vue @@ -636,6 +636,7 @@ multiple1: true, dateRange1: [], + userId: undefined, // 閬僵灞� disabled: false, @@ -793,6 +794,7 @@ handleClose(){ this.user = '' this.queryParams2.pageNo = 1 + this.total1 = 0 }, handleClose2(){ this.$refs.table1.clearSelection() @@ -858,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,'鍒嗕韩缁欒皝浜嗕粈涔堟暟鎹垎浜粰璋佷簡浠�涔堟暟鎹�') @@ -873,7 +880,9 @@ /** 鍒嗕韩鎿嶄綔 */ handleShare(row) { - this.id1 = [row.id] + if(row.id){ + this.id1 = [row.id] + } this.open1 = true; this.title1 = "鍒嗕韩"; }, @@ -932,6 +941,7 @@ this.getList(); this.$modal.msgSuccess("鍒嗕韩鎴愬姛"); + this.id1 = undefined this.open1 = false; }).catch(() => {}); }, -- Gitblit v1.9.1