| | |
| | | let cusSex = this.formIn.sex; |
| | | deptTreeSelect(cusSex).then((response) => { |
| | | this.newpacName = response.rows; |
| | | this.newpacName.forEach((item3) => { |
| | | this.tableData1.forEach((item4) => { |
| | | item4.list.forEach((item6) => { |
| | | if (item6.pacName === item3.pacName) { |
| | | this.$refs.tb.toggleRowSelection(item3, true); |
| | | throw Error(); |
| | | } |
| | | }); |
| | | }); |
| | | }); |
| | | // this.newpacName.forEach((item3) => { |
| | | // this.tableData1.forEach((item4) => { |
| | | // item4.list.forEach((item6) => { |
| | | // if (item6.pacName === item3.pacName) { |
| | | // this.$refs.tb.toggleRowSelection(item3, true); |
| | | // throw Error(); |
| | | // } |
| | | // }); |
| | | // }); |
| | | // }); |
| | | this.loading = false; |
| | | }); |
| | | } else { |
| | | deptTreeSelect().then((response) => { |
| | | this.newpacName = response.rows; |
| | | this.newpacName.forEach((item3) => { |
| | | this.tableData1.forEach((item4) => { |
| | | item4.list.forEach((item6) => { |
| | | if (item6.pacName === item3.pacName) { |
| | | this.$nextTick(() => { |
| | | this.$refs.tb.toggleRowSelection(item3, true); |
| | | }); |
| | | throw Error(); |
| | | } |
| | | }); |
| | | }); |
| | | }); |
| | | // this.newpacName.forEach((item3) => { |
| | | // this.tableData1.forEach((item4) => { |
| | | // item4.list.forEach((item6) => { |
| | | // if (item6.pacName === item3.pacName) { |
| | | // this.$nextTick(() => { |
| | | // this.$refs.tb.toggleRowSelection(item3, true); |
| | | // }); |
| | | // throw Error(); |
| | | // } |
| | | // }); |
| | | // }); |
| | | // }); |
| | | this.loading = false; |
| | | }); |
| | | } |
| | |
| | | } |
| | | }); |
| | | |
| | | /** 查询部门下拉树结构 */ |
| | | projectGetList().then((response) => { |
| | | this.treedataList = response.data.list; |
| | | this.dXData = response.data.list; |
| | | return; |
| | | }); |
| | | // /** 查询部门下拉树结构 */ |
| | | // projectGetList().then((response) => { |
| | | // this.treedataList = response.data.list; |
| | | // this.dXData = response.data.list; |
| | | // return; |
| | | // }); |
| | | } else { |
| | | this.$message.warning("已过期请重新预约"); |
| | | } |