| | |
| | | </el-table-column> |
| | | </el-table> |
| | | |
| | | <pagination |
| | | v-show="total1>0" |
| | | :total="total1" |
| | | :page.sync="queryParams2.pageNo" |
| | | :limit.sync="queryParams2.pageSize" |
| | | @pagination='fenYe' |
| | | style="background: #FEF7FC;" |
| | | /> |
| | | |
| | | </el-dialog> |
| | | |
| | | |
| | |
| | | sex:undefined, |
| | | birth:undefined, |
| | | }, |
| | | queryParams2: { |
| | | pageNo: 1, |
| | | pageSize: 10, |
| | | }, |
| | | ids1: [], |
| | | single1: true, |
| | | multiple1: true, |
| | |
| | | showSearch: true, |
| | | // 总条数 |
| | | total: 0, |
| | | total1: 0, |
| | | // 小医生表格数据 |
| | | doctorList: [], |
| | | typeList:[], |
| | |
| | | this.getList1(); |
| | | }, |
| | | methods: { |
| | | // 分页 |
| | | fenYe(){ |
| | | // @pagination='ifNum === 1 ? selectValue : (ifNum === 2 ? whoShare : showData)' |
| | | if(this.ifNum === 1){ |
| | | this.selectValue(this.selectWho) |
| | | }else if(this.ifNum === 2){ |
| | | this.whoShare() |
| | | }else{ |
| | | this.showData() |
| | | } |
| | | }, |
| | | // 关闭弹窗后 |
| | | handleClose(){ |
| | | this.user = '' |
| | |
| | | Message({ message: "收回成功", type: 'success' }) |
| | | |
| | | const list2 = {"shareIds": [this.selectWho]} |
| | | shareToWho(list2).then(response => { |
| | | this.shareList1 = response.data |
| | | shareToWho(list2,this.queryParams2).then(response => { |
| | | this.shareList1 = response.data.data |
| | | this.total1 = response.data.total; |
| | | }) |
| | | }) |
| | | }, |
| | |
| | | this.ifNum = 3 |
| | | this.open2 = true |
| | | this.title2 = "下载的分享数据"; |
| | | showShareData().then(response => { |
| | | this.shareList1 = response |
| | | showShareData(this.queryParams2).then(response => { |
| | | this.shareList1 = response.data.data |
| | | this.total1 = response.data.total; |
| | | // console.log(response,'展示下载的分享数据展示下载的分享数据') |
| | | }) |
| | | }, |
| | | // 展示分享给我的数据 |
| | |
| | | this.title2 = "分享给我的数据"; |
| | | // const list = {"shareId": this.userList} |
| | | const list = {"shareId": 111} |
| | | getWhoShare(list).then(response => { |
| | | const data = response.data |
| | | getWhoShare(list,this.queryParams2).then(response => { |
| | | const data = response.data.data |
| | | console.log(data,'展示分享给我的数据展示分享给我的数据s') |
| | | for(let i in data){ |
| | | console.log(i,'展示分享给我的数据展示分享给我的数据') |
| | |
| | | selectValue(value){ |
| | | this.selectWho = value |
| | | this.shareList1 = [] |
| | | const list = {"shareIds": [value]} |
| | | shareToWho(list).then(response => { |
| | | this.loading2 = true; |
| | | this.shareList1 = response.data |
| | | this.loading2 = false; |
| | | // console.log(this.shareList1,'分享给谁了什么数据分享给谁了什么数据') |
| | | const list = {"shareIds": [this.selectWho]} |
| | | shareToWho(list,this.queryParams2).then(response => { |
| | | // this.loading2 = true; |
| | | this.shareList1 = response.data.data |
| | | this.total1 = response.data.total; |
| | | // this.loading2 = false; |
| | | console.log(response.data,'分享给谁了什么数据分享给谁了什么数据') |
| | | }) |
| | | }, |
| | | handleWho(){ |