|
@ -150,20 +150,26 @@ Vue.component('turndown-detail', {
|
|
|
var vm = this
|
|
|
// var code
|
|
|
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) {
|
|
|
this.communityHospitals = [{ label: selectedRole.name, value: selectedRole.code }]
|
|
|
this.form.orgCode = selectedRole.code
|
|
|
} else {
|
|
|
var type = 1
|
|
|
if (selectedRole.code.indexOf('350200') > -1) {
|
|
|
type = 1 // 市卫健委
|
|
|
} else if (selectedRole.code.length == 6) {
|
|
|
type = 2
|
|
|
}
|
|
|
statisticAPI
|
|
|
.hospitalsByType({
|
|
|
type: 1,
|
|
|
type: type,
|
|
|
code: selectedRole.code
|
|
|
})
|
|
|
.then(function (res) {
|