|
@ -165,7 +165,8 @@ Vue.component('gxb-mz', {
|
|
var vm = this
|
|
var vm = this
|
|
this.loading = true
|
|
this.loading = true
|
|
var params = {
|
|
var params = {
|
|
...this.form
|
|
|
|
|
|
...this.form,
|
|
|
|
isTotal: 1
|
|
}
|
|
}
|
|
if (this.yearType == '1') {
|
|
if (this.yearType == '1') {
|
|
params.startDate = this.chooseYear + '-01-01'
|
|
params.startDate = this.chooseYear + '-01-01'
|
|
@ -189,10 +190,10 @@ Vue.component('gxb-mz', {
|
|
var data = JSON.parse(JSON.stringify(item))
|
|
var data = JSON.parse(JSON.stringify(item))
|
|
if (vm.form.range == 'town') {
|
|
if (vm.form.range == 'town') {
|
|
data.town = item.name
|
|
data.town = item.name
|
|
data.hasChildren = true
|
|
|
|
|
|
data.hasChildren = data.code && true
|
|
} else if (vm.form.range == 'hospital') {
|
|
} else if (vm.form.range == 'hospital') {
|
|
data.hospital = item.name
|
|
data.hospital = item.name
|
|
data.hasChildren = true
|
|
|
|
|
|
data.hasChildren = data.code && true
|
|
} else if (vm.form.range == 'team') {
|
|
} else if (vm.form.range == 'team') {
|
|
data.team = item.name
|
|
data.team = item.name
|
|
}
|
|
}
|
|
@ -233,10 +234,12 @@ Vue.component('gxb-mz', {
|
|
this.chooseTime = null
|
|
this.chooseTime = null
|
|
this.$forceUpdate()
|
|
this.$forceUpdate()
|
|
},
|
|
},
|
|
getHospital(code) {
|
|
|
|
|
|
getHospital(code, flag = true) {
|
|
var vm = this
|
|
var vm = this
|
|
delete this.form.hospital
|
|
|
|
delete this.form.team
|
|
|
|
|
|
if (flag) {
|
|
|
|
delete this.form.hospital
|
|
|
|
delete this.form.team
|
|
|
|
}
|
|
var params = {
|
|
var params = {
|
|
type: 5,
|
|
type: 5,
|
|
code: code
|
|
code: code
|
|
@ -250,9 +253,11 @@ Vue.component('gxb-mz', {
|
|
vm.hospitalOptions = res.list
|
|
vm.hospitalOptions = res.list
|
|
})
|
|
})
|
|
},
|
|
},
|
|
getTeam(code) {
|
|
|
|
|
|
getTeam(code, flag = true) {
|
|
var vm = this
|
|
var vm = this
|
|
delete this.form.team
|
|
|
|
|
|
if (flag) {
|
|
|
|
delete this.form.team
|
|
|
|
}
|
|
var params = {
|
|
var params = {
|
|
hospital: code
|
|
hospital: code
|
|
}
|
|
}
|
|
@ -559,7 +564,6 @@ Vue.component('gxb-mz', {
|
|
}
|
|
}
|
|
this.loading = true
|
|
this.loading = true
|
|
httpRequest.get('statistics/collaborate/turnDownDataPage', { data: params }).then(function (res) {
|
|
httpRequest.get('statistics/collaborate/turnDownDataPage', { data: params }).then(function (res) {
|
|
console.log('99999999999999999999999999999999999999', res)
|
|
|
|
if (res.status == 200) {
|
|
if (res.status == 200) {
|
|
vm.dialogTableData = res.detailModelList
|
|
vm.dialogTableData = res.detailModelList
|
|
vm.total = res.totalCount
|
|
vm.total = res.totalCount
|
|
@ -574,6 +578,29 @@ Vue.component('gxb-mz', {
|
|
|
|
|
|
closeDialog1() {
|
|
closeDialog1() {
|
|
this.dialogVisible = false
|
|
this.dialogVisible = false
|
|
|
|
},
|
|
|
|
getData(data) {
|
|
|
|
this.yearType = data.yearType
|
|
|
|
this.form.range = data.range
|
|
|
|
this.form.area = data.area
|
|
|
|
|
|
|
|
this.form.hospital = data.hospital
|
|
|
|
this.form.team = data.team
|
|
|
|
|
|
|
|
if (this.yearType == 1) {
|
|
|
|
this.chooseYear = data.time
|
|
|
|
} else {
|
|
|
|
this.chooseTime = data.time
|
|
|
|
}
|
|
|
|
if (this.form.hospital) {
|
|
|
|
// 如果有社区code传过来就调社区医院列表接口
|
|
|
|
this.getHospital(data.area, false)
|
|
|
|
}
|
|
|
|
if (this.form.team) {
|
|
|
|
// 如果有团队code传过来就调团队列表接口
|
|
|
|
this.getTeam(data.hospital, false)
|
|
|
|
}
|
|
|
|
this.searchFn()
|
|
}
|
|
}
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|