From 8f115311af95cb2fe0d7bee2d8a97dcbc059a263 Mon Sep 17 00:00:00 2001 From: feige <791364011@qq.com> Date: 星期四, 22 八月 2024 10:59:03 +0800 Subject: [PATCH] 修改权限相关 --- ruoyi-ui/src/views/doctor/index.vue | 30 +++++++++++++++++------------- 1 files changed, 17 insertions(+), 13 deletions(-) diff --git a/ruoyi-ui/src/views/doctor/index.vue b/ruoyi-ui/src/views/doctor/index.vue index 7699bf1..3ec4f18 100644 --- a/ruoyi-ui/src/views/doctor/index.vue +++ b/ruoyi-ui/src/views/doctor/index.vue @@ -175,10 +175,6 @@ >灞曠ず涓嬭浇鐨勫垎浜暟鎹�</el-button> </el-col> - - - - <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> </el-row> </div> @@ -626,10 +622,6 @@ queryParams1: { pageNum: 1, pageSize: 10, - identity:undefined, - nickName:undefined, - sex:undefined, - birth:undefined, }, queryParams2: { pageNo: 1, @@ -639,6 +631,7 @@ single1: true, multiple1: true, dateRange1: [], + userId: undefined, // 閬僵灞� @@ -796,6 +789,8 @@ // 鍏抽棴寮圭獥鍚� handleClose(){ this.user = '' + this.queryParams2.pageNo = 1 + this.total1 = 0 }, handleClose2(){ this.$refs.table1.clearSelection() @@ -842,10 +837,11 @@ this.open2 = true this.title2 = "鍒嗕韩缁欐垜鐨勬暟鎹�"; // const list = {"shareId": this.userList} - const list = {"shareId": 111} - getWhoShare(list,this.queryParams2).then(response => { + // const list = {"shareId": 111} + getWhoShare(this.queryParams2).then(response => { const data = response.data.data - console.log(data,'灞曠ず鍒嗕韩缁欐垜鐨勬暟鎹睍绀哄垎浜粰鎴戠殑鏁版嵁s') + this.total1 = response.data.total + console.log(response,'灞曠ず鍒嗕韩缁欐垜鐨勬暟鎹睍绀哄垎浜粰鎴戠殑鏁版嵁s') for(let i in data){ console.log(i,'灞曠ず鍒嗕韩缁欐垜鐨勬暟鎹睍绀哄垎浜粰鎴戠殑鏁版嵁') this.shareList1.push(data[i]) @@ -860,7 +856,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,'鍒嗕韩缁欒皝浜嗕粈涔堟暟鎹垎浜粰璋佷簡浠�涔堟暟鎹�') @@ -875,7 +876,9 @@ /** 鍒嗕韩鎿嶄綔 */ handleShare(row) { - this.id1 = row.id + if(row.id){ + this.id1 = [row.id] + } this.open1 = true; this.title1 = "鍒嗕韩"; }, @@ -934,6 +937,7 @@ this.getList(); this.$modal.msgSuccess("鍒嗕韩鎴愬姛"); + this.id1 = undefined this.open1 = false; }).catch(() => {}); }, -- Gitblit v1.9.1