|
@ -272,6 +272,8 @@ Vue.component('copd-record-search', {
|
|
|
if(this.rangeCode == "hospital"){
|
|
|
params.hospital = this.communityCode
|
|
|
}
|
|
|
console.log("tableheader");
|
|
|
|
|
|
statisticAPI
|
|
|
.manageInfo(params)
|
|
|
.then(function (res) {
|
|
@ -280,6 +282,12 @@ Vue.component('copd-record-search', {
|
|
|
vm.datatotal = res.data.total
|
|
|
if (vm.tabledata.length) {
|
|
|
vm.tableHeader = []
|
|
|
|
|
|
if(vm.rangeCode =='town'){
|
|
|
vm.tableHeader.push({prop:'townName',label: '地区',width: '100',align:'center'})
|
|
|
}else{
|
|
|
vm.tableHeader.push({prop:'hospitalName',label: '社区',width: '180',align:'center'})
|
|
|
}
|
|
|
_.each(vm.tabledata[0], function (item, index) {
|
|
|
if (
|
|
|
index != 'town' &&
|
|
@ -291,7 +299,7 @@ Vue.component('copd-record-search', {
|
|
|
index != 'code' &&
|
|
|
index != 'name'
|
|
|
)
|
|
|
vm.tableHeader.push({ prop: index, label: index })
|
|
|
vm.tableHeader.push({ prop: index, label: index,align:'right',headerAlign:'center' })
|
|
|
})
|
|
|
}
|
|
|
} else {
|