hd 5 dagen geleden
bovenliggende
commit
6ed7308ad3
1 gewijzigde bestanden met toevoegingen van 14 en 8 verwijderingen
  1. 14 8
      component/statistics/TurndownDetail/index.js

+ 14 - 8
component/statistics/TurndownDetail/index.js

@ -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) {