|
@ -84,8 +84,8 @@ Vue.component('gxb-manage', {
|
|
|
{ label: '社区', value: 'hospital' },
|
|
|
{ label: '团队', value: 'team' }
|
|
|
]
|
|
|
this.areaOptions = [{ label: selectedRole.name.substring(0, 3), value: selectedRole.code }]
|
|
|
this.hospital = [{ label: selectedRole.name, value: selectedRole.code }]
|
|
|
this.areaOptions = [{ label: selectedRole.name.substring(0, 3), value: selectedRole.code.substring(0, 6) }]
|
|
|
this.hospitalOptions = [{ name: selectedRole.name, code: selectedRole.code }]
|
|
|
this.form = {
|
|
|
range: 'hospital',
|
|
|
area: selectedRole.code.substring(0, 6),
|
|
@ -127,12 +127,12 @@ Vue.component('gxb-manage', {
|
|
|
pageSize: this.size
|
|
|
}
|
|
|
if (this.yearType == '1') {
|
|
|
params.startDate = this.chooseYear + '-01-01 00:00'
|
|
|
params.endDate = this.chooseYear + '-12-31 23:59'
|
|
|
params.startDate = this.chooseYear + '-01-01'
|
|
|
params.endDate = this.chooseYear + '-12-31'
|
|
|
} else {
|
|
|
if (this.chooseTime) {
|
|
|
params.startDate = this.chooseTime[0] + ' 00:00'
|
|
|
params.endDate = this.chooseTime[1] + ' 23:59'
|
|
|
params.startDate = this.chooseTime[0]
|
|
|
params.endDate = this.chooseTime[1]
|
|
|
}
|
|
|
}
|
|
|
|
|
@ -186,18 +186,20 @@ Vue.component('gxb-manage', {
|
|
|
code: code
|
|
|
}
|
|
|
httpRequest.post('common/district', { data: params }).then(function (res) {
|
|
|
vm.hospitalOptions = res.list
|
|
|
vm.hospitalOptions = [{ code: '', name: '全部' }]
|
|
|
vm.hospitalOptions = vm.hospitalOptions.concat(res.list)
|
|
|
})
|
|
|
},
|
|
|
getTeam(code) {
|
|
|
var vm = this
|
|
|
delete this.form.team
|
|
|
var params = {
|
|
|
hospital: code
|
|
|
hospital: code,
|
|
|
area: this.form.area
|
|
|
}
|
|
|
|
|
|
httpRequest.get('statisticsExport/teamList', { data: params }).then(function (res) {
|
|
|
vm.teamOptions = res.data
|
|
|
vm.teamOptions = [{ id: '', name: '全部' }]
|
|
|
vm.teamOptions = vm.teamOptions.concat(res.data)
|
|
|
})
|
|
|
},
|
|
|
handleCurrentChange(val) {
|