Chensc 9 timmar sedan
förälder
incheckning
754f462a45
1 ändrade filer med 9 tillägg och 0 borttagningar
  1. 9 0
      component/statistics/LascPatient/index.js

+ 9 - 0
component/statistics/LascPatient/index.js

@ -94,6 +94,7 @@ Vue.component('lasc-patient', {
    },
    init() {
      var selectedRole = JSON.parse(sessionStorage.getItem('selectedRole'))
      console.log('selectedRole', selectedRole)
      if (selectedRole.code.indexOf('350200') > -1 || selectedRole.code.indexOf('8d94ce907e4d4356b68f6c5d4d0d6bc9') > -1) {
        this.level = 1 //  市卫健委
        this.areaOptions = [
@ -106,6 +107,7 @@ Vue.component('lasc-patient', {
          { label: '翔安区', value: '350213' }
        ]
      } else if (selectedRole.code.length == 6) {
        // console.log('区管理')
        this.level = 2 // 区管理
        this.areaOptions = [{ label: selectedRole.name.substring(0, 3), value: selectedRole.code }]
        this.form = {
@ -114,6 +116,7 @@ Vue.component('lasc-patient', {
        }
        this.getHospital(selectedRole.code)
      } else {
        // console.log('社区管理')
        this.level = 3 // 社区管理
        this.rangeOptions = [{ label: '机构', value: '2' }]
        this.areaOptions = [{ label: selectedRole.name.substring(0, 3), value: selectedRole.code.substring(0, 6) }]
@ -262,6 +265,12 @@ Vue.component('lasc-patient', {
        type: 5,
        code: code
      }
      if (!code) {
        params = {
          type: 6,
          code: '350200'
        }
      }
      httpRequest.post('common/district', { data: params }).then(function (res) {
        vm.hospitalOptions = [{ code: '', name: '全部' }]
        vm.hospitalOptions = vm.hospitalOptions.concat(res.list)