| 
					
				 | 
			
			
				@ -41,8 +41,7 @@ Vue.component('gxb-manage', { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      loading: false, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      exportLoading: false, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      tableData: [], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      tableHeader: [ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        { label: '名称', prop: 'name', width: '100' }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      constantHeader: [ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        { label: '已评估人数', prop: 'totalNum', width: '90' }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        { label: '已上转人数', prop: 'turnUpNum', width: '90' }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        { label: '上转转门诊', prop: 'mzNum', width: '110' }, 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -118,13 +117,47 @@ Vue.component('gxb-manage', { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        delete this.form.team 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    load(row, treeNode, resolve) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      var params = {} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      var len = row.code.length 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      if (len == 6) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        params.range = 'hospital' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        params.area = row.code 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      } else if (len == 10) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        params.range = 'team' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        params.hospital = row.code 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      if (this.yearType == '1') { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        params.startDate = this.chooseYear + '-01-01' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        params.endDate = this.chooseYear + '-12-31' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        if (this.chooseTime) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				          params.startDate = this.chooseTime[0] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				          params.endDate = this.chooseTime[1] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      httpRequest.get('statistics/collaborate/gxbScreenClosedLoop', { data: params }).then(function (res) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        if (res.status == 200) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				          var children = res.detailModelList.map(function (item) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            var data = JSON.parse(JSON.stringify(item)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            if (len == 6) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				              data.hospital = item.name 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				              data.hasChildren = true 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            } else if (len == 10) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				              data.team = item.name 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            return data 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				          }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				          resolve(children) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    getList() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      var vm = this 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      this.loading = true 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      var params = { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        ...this.form, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        page: this.page, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        pageSize: this.size 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        ...this.form 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      if (this.yearType == '1') { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        params.startDate = this.chooseYear + '-01-01' 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -132,15 +165,31 @@ Vue.component('gxb-manage', { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        if (this.chooseTime) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				          params.startDate = this.chooseTime[0] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				          params.endDate = this.chooseTime[1]  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				          params.endDate = this.chooseTime[1] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      if (this.form.range == 'town') { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        this.tableHeader = getTownHeader().concat(this.constantHeader) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      } else if (this.form.range == 'hospital') { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        this.tableHeader = getHospitalHeader().concat(this.constantHeader) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        this.tableHeader = getTeamHeader().concat(this.constantHeader) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      httpRequest.get('statistics/collaborate/gxbScreenClosedLoop', { data: params }).then(function (res) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        if (res.status == 200) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				          vm.tableData = res.detailModelList 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				          vm.total = res.totalCount 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        vm.tableData = res.detailModelList.map(function (item) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				          var data = JSON.parse(JSON.stringify(item)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				          if (vm.form.range == 'town') { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            data.town = item.name 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            data.hasChildren = true 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				          } else if (vm.form.range == 'hospital') { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            data.hospital = item.name 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            data.hasChildren = true 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				          } else if (vm.form.range == 'team') { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            data.team = item.name 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				          } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				          return data 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        console.log('1111111111111111', vm.tableData) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        vm.loading = false 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    }, 
			 |