|
@ -150,20 +150,26 @@ Vue.component('turndown-detail', {
|
|
var vm = this
|
|
var vm = this
|
|
// var code
|
|
// var code
|
|
var selectedRole = JSON.parse(sessionStorage.getItem('selectedRole'))
|
|
var selectedRole = JSON.parse(sessionStorage.getItem('selectedRole'))
|
|
// if (selectedRole.code.indexOf('350200') > -1) {
|
|
|
|
// code = '350200' // 市卫健委
|
|
|
|
// } else if (selectedRole.code.length == 6) {
|
|
|
|
// code = selectedRole.code
|
|
|
|
// } else {
|
|
|
|
// this.level = 3 // 社区管理
|
|
|
|
// }
|
|
|
|
|
|
if (selectedRole.code.indexOf('350200') > -1) {
|
|
|
|
code = '350200' // 市卫健委
|
|
|
|
} else if (selectedRole.code.length == 6) {
|
|
|
|
code = selectedRole.code
|
|
|
|
} else {
|
|
|
|
this.level = 3 // 社区管理
|
|
|
|
}
|
|
if (selectedRole.code.length > 6) {
|
|
if (selectedRole.code.length > 6) {
|
|
this.communityHospitals = [{ label: selectedRole.name, value: selectedRole.code }]
|
|
this.communityHospitals = [{ label: selectedRole.name, value: selectedRole.code }]
|
|
this.form.orgCode = selectedRole.code
|
|
this.form.orgCode = selectedRole.code
|
|
} else {
|
|
} else {
|
|
|
|
var type = 1
|
|
|
|
if (selectedRole.code.indexOf('350200') > -1) {
|
|
|
|
type = 1 // 市卫健委
|
|
|
|
} else if (selectedRole.code.length == 6) {
|
|
|
|
type = 2
|
|
|
|
}
|
|
statisticAPI
|
|
statisticAPI
|
|
.hospitalsByType({
|
|
.hospitalsByType({
|
|
type: 1,
|
|
|
|
|
|
type: type,
|
|
code: selectedRole.code
|
|
code: selectedRole.code
|
|
})
|
|
})
|
|
.then(function (res) {
|
|
.then(function (res) {
|