|
@ -41,29 +41,29 @@ Vue.component('gxb-evaluation', {
|
|
|
loading: false,
|
|
|
exportLoading: false,
|
|
|
tableData: [],
|
|
|
tableHeader: [
|
|
|
{ label: '名称', prop: 'name', width: '110' },
|
|
|
tableHeader: [],
|
|
|
constantHeader: [
|
|
|
{ label: '评估人数', prop: 'totalNum', width: '90' },
|
|
|
{ label: '日常评估人数', prop: 'dailyNum', width: '110' },
|
|
|
{ label: '住院补筛人数', prop: 'inScreenNum', width: '110' },
|
|
|
{ label: '低危人数', prop: 'lRiskNum', width: '110' },
|
|
|
{ label: '中危人数', prop: 'mRiskNum', width: '110' },
|
|
|
{ label: '高危人数', prop: 'hRiskNum', width: '110' },
|
|
|
{ label: '极高危人数', prop: 'uhRiskNum', width: '110' },
|
|
|
{ label: '超高危人数', prop: 'ehRiskNum', width: '110' },
|
|
|
{ label: '已筛次数', prop: 'totalTimes', width: '110' },
|
|
|
{ label: '低危次数', prop: 'lRiskTimes', width: '110' },
|
|
|
{ label: '中危次数', prop: 'mRiskTimes', width: '110' },
|
|
|
{ label: '高危次数', prop: 'hRiskTimes', width: '110' },
|
|
|
{ label: '极高危次数', prop: 'uhRiskTimes', width: '110' },
|
|
|
{ label: '超高危次数', prop: 'ehRiskTimes', width: '110' },
|
|
|
{ label: '上转人次', prop: 'turnUpNum', width: '110' },
|
|
|
{ label: '低危人数', prop: 'lRiskNum', width: '90' },
|
|
|
{ label: '中危人数', prop: 'mRiskNum', width: '90' },
|
|
|
{ label: '高危人数', prop: 'hRiskNum', width: '90' },
|
|
|
{ label: '极高危人数', prop: 'uhRiskNum', width: '90' },
|
|
|
{ label: '超高危人数', prop: 'ehRiskNum', width: '90' },
|
|
|
{ label: '已筛次数', prop: 'totalTimes', width: '90' },
|
|
|
{ label: '低危次数', prop: 'lRiskTimes', width: '90' },
|
|
|
{ label: '中危次数', prop: 'mRiskTimes', width: '90' },
|
|
|
{ label: '高危次数', prop: 'hRiskTimes', width: '90' },
|
|
|
{ label: '极高危次数', prop: 'uhRiskTimes', width: '90' },
|
|
|
{ label: '超高危次数', prop: 'ehRiskTimes', width: '90' },
|
|
|
{ label: '上转人次', prop: 'turnUpNum', width: '90' },
|
|
|
{ label: '消息提醒人次', prop: 'messageTimes', width: '110' },
|
|
|
{ label: '社区随访人次', prop: 'hosFollowNum', width: '110' }
|
|
|
],
|
|
|
page: 1,
|
|
|
size: 10,
|
|
|
total: 0,
|
|
|
// page: 1,
|
|
|
// size: 10,
|
|
|
// total: 0,
|
|
|
level: 0
|
|
|
}
|
|
|
},
|
|
@ -105,7 +105,7 @@ Vue.component('gxb-evaluation', {
|
|
|
this.getTeam(selectedRole.code)
|
|
|
}
|
|
|
this.initTime()
|
|
|
this.getList()
|
|
|
this.search()
|
|
|
},
|
|
|
initTime() {
|
|
|
var vm = this
|
|
@ -129,13 +129,11 @@ Vue.component('gxb-evaluation', {
|
|
|
delete this.form.team
|
|
|
}
|
|
|
},
|
|
|
getList() {
|
|
|
search() {
|
|
|
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'
|
|
@ -146,26 +144,38 @@ Vue.component('gxb-evaluation', {
|
|
|
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)
|
|
|
}
|
|
|
// constantHeader
|
|
|
|
|
|
httpRequest.get('statistics/collaborate/gxbScreenInfoStatistics', { 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
|
|
|
})
|
|
|
}
|
|
|
vm.loading = false
|
|
|
})
|
|
|
},
|
|
|
queryDate() {
|
|
|
this.page = 1
|
|
|
this.getList()
|
|
|
},
|
|
|
exportTable() {
|
|
|
var vm = this
|
|
|
var params = {
|
|
|
...this.form,
|
|
|
page: this.page,
|
|
|
pageSize: this.size
|
|
|
...this.form
|
|
|
}
|
|
|
if (this.yearType == '1') {
|
|
|
params.startDate = this.chooseYear + '-01-01'
|
|
@ -214,13 +224,41 @@ Vue.component('gxb-evaluation', {
|
|
|
vm.teamOptions = vm.teamOptions.concat(res.data)
|
|
|
})
|
|
|
},
|
|
|
handleCurrentChange(val) {
|
|
|
this.page = val
|
|
|
this.getList()
|
|
|
},
|
|
|
handleSizeChange(val) {
|
|
|
this.size = val
|
|
|
this.getList()
|
|
|
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/gxbScreenInfoStatistics', { 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)
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|