Browse Source

修复bug

hwy 5 days ago
parent
commit
38e92c47cb

+ 15 - 3
component/statistics/GxbCy/index.js

@ -144,6 +144,7 @@ Vue.component('gxb-cy', {
      if (selectedRole.code.indexOf('350200') > -1) {
      if (selectedRole.code.indexOf('350200') > -1) {
        this.level = 1 //  市卫健委
        this.level = 1 //  市卫健委
        this.areaOptions = [
        this.areaOptions = [
          { label: '厦门市', value: '' },
          { label: '思明区', value: '350203' },
          { label: '思明区', value: '350203' },
          { label: '海沧区', value: '350205' },
          { label: '海沧区', value: '350205' },
          { label: '湖里区', value: '350206' },
          { label: '湖里区', value: '350206' },
@ -166,7 +167,7 @@ Vue.component('gxb-cy', {
          { label: '团队', value: 'team' }
          { label: '团队', value: 'team' }
        ]
        ]
        this.areaOptions = [{ label: selectedRole.name.substring(0, 3), value: selectedRole.code }]
        this.areaOptions = [{ label: selectedRole.name.substring(0, 3), value: selectedRole.code }]
        this.hospital = [{ label: selectedRole.name, value: selectedRole.code }]
        this.hospitalOptions = [{ name: selectedRole.name, code: selectedRole.code }]
        this.form = {
        this.form = {
          range: 'hospital',
          range: 'hospital',
          area: selectedRole.code.substring(0, 6),
          area: selectedRole.code.substring(0, 6),
@ -253,11 +254,14 @@ Vue.component('gxb-cy', {
    },
    },
    eliminateClick() {
    eliminateClick() {
      this.resetArea()
      this.resetArea()
      this.form.hospital = ''
      this.hospitalOptions = []
      this.form.team = ''
      this.teamOptions = []
      this.yearType = '1'
      this.yearType = '1'
      this.chooseYear = new Date().getFullYear()
      this.chooseYear = new Date().getFullYear()
      this.chooseTime = null
      this.chooseTime = null
      this.$forceUpdate()
      this.$forceUpdate()
      
    },
    },
    getHospital(code) {
    getHospital(code) {
      var vm = this
      var vm = this
@ -267,6 +271,12 @@ Vue.component('gxb-cy', {
        type: 5,
        type: 5,
        code: code
        code: code
      }
      }
      if (!code) {
        vm.hospitalOptions = [{ name: '全部', value: '' }]
        vm.teamOptions = [{ name: '全部', value: '' }]
        return false
      }
      httpRequest.post('common/district', { data: params }).then(function (res) {
      httpRequest.post('common/district', { data: params }).then(function (res) {
        vm.hospitalOptions = res.list
        vm.hospitalOptions = res.list
      })
      })
@ -302,7 +312,9 @@ Vue.component('gxb-cy', {
            {
            {
              props: {
              props: {
                content: (function () {
                content: (function () {
                  return index == '6' ? '统计查询时间内,出院下转的患者中,在当年已进行ASCVD风险评估的患者人数' : '统计查询时间内,出院下转的患者中,在当年未进行ASCVD风险评估的患者人数'
                  return index == '6'
                    ? '统计查询时间内,出院下转的患者中,在当年已进行ASCVD风险评估的患者人数'
                    : '统计查询时间内,出院下转的患者中,在当年未进行ASCVD风险评估的患者人数'
                })(),
                })(),
                placement: 'top'
                placement: 'top'
              }
              }

+ 13 - 5
component/statistics/GxbEvaluation/index.js

@ -72,6 +72,7 @@ Vue.component('gxb-evaluation', {
      if (selectedRole.code.indexOf('350200') > -1) {
      if (selectedRole.code.indexOf('350200') > -1) {
        this.level = 1 //  市卫健委
        this.level = 1 //  市卫健委
        this.areaOptions = [
        this.areaOptions = [
          { label: '厦门市', value: '' },
          { label: '思明区', value: '350203' },
          { label: '思明区', value: '350203' },
          { label: '海沧区', value: '350205' },
          { label: '海沧区', value: '350205' },
          { label: '湖里区', value: '350206' },
          { label: '湖里区', value: '350206' },
@ -94,7 +95,7 @@ Vue.component('gxb-evaluation', {
          { label: '团队', value: 'team' }
          { label: '团队', value: 'team' }
        ]
        ]
        this.areaOptions = [{ label: selectedRole.name.substring(0, 3), value: selectedRole.code }]
        this.areaOptions = [{ label: selectedRole.name.substring(0, 3), value: selectedRole.code }]
        this.hospital = [{ label: selectedRole.name, value: selectedRole.code }]
        this.hospitalOptions = [{ name: selectedRole.name, code: selectedRole.code }]
        this.form = {
        this.form = {
          range: 'hospital',
          range: 'hospital',
          area: selectedRole.code.substring(0, 6),
          area: selectedRole.code.substring(0, 6),
@ -148,8 +149,8 @@ Vue.component('gxb-evaluation', {
      httpRequest.get('statistics/collaborate/gxbScreenInfoStatistics', { data: params }).then(function (res) {
      httpRequest.get('statistics/collaborate/gxbScreenInfoStatistics', { data: params }).then(function (res) {
        if (res.status == 200) {
        if (res.status == 200) {
          vm.tableData = res.detailModelList
          vm.tableData = res.detailModelList
          console.log(vm.tableData,"tableData");
          
          console.log(vm.tableData, 'tableData')
          vm.total = res.totalCount
          vm.total = res.totalCount
        }
        }
        vm.loading = false
        vm.loading = false
@ -183,11 +184,14 @@ Vue.component('gxb-evaluation', {
    },
    },
    eliminateClick() {
    eliminateClick() {
      this.resetArea()
      this.resetArea()
      this.form.hospital = ''
      this.hospitalOptions = []
      this.form.team = ''
      this.teamOptions = []
      this.yearType = '1'
      this.yearType = '1'
      this.chooseYear = new Date().getFullYear()
      this.chooseYear = new Date().getFullYear()
      this.chooseTime = null
      this.chooseTime = null
      this.$forceUpdate()
      this.$forceUpdate()
      
    },
    },
    getHospital(code) {
    getHospital(code) {
      var vm = this
      var vm = this
@ -197,6 +201,11 @@ Vue.component('gxb-evaluation', {
        type: 5,
        type: 5,
        code: code
        code: code
      }
      }
      if (!code) {
        vm.hospitalOptions = [{ name: '全部', value: '' }]
        vm.teamOptions = [{ name: '全部', value: '' }]
        return false
      }
      httpRequest.post('common/district', { data: params }).then(function (res) {
      httpRequest.post('common/district', { data: params }).then(function (res) {
        vm.hospitalOptions = res.list
        vm.hospitalOptions = res.list
      })
      })
@ -207,7 +216,6 @@ Vue.component('gxb-evaluation', {
      var params = {
      var params = {
        hospital: code
        hospital: code
      }
      }
      httpRequest.get('statisticsExport/teamList', { data: params }).then(function (res) {
      httpRequest.get('statisticsExport/teamList', { data: params }).then(function (res) {
        vm.teamOptions = res.data
        vm.teamOptions = res.data
      })
      })

+ 15 - 4
component/statistics/GxbMz/index.js

@ -48,7 +48,7 @@ Vue.component('gxb-mz', {
        { label: '已下转人数', prop: 'totalNum', width: '110' },
        { label: '已下转人数', prop: 'totalNum', width: '110' },
        { label: '门诊下转人数', prop: 'mzNum', width: '110' },
        { label: '门诊下转人数', prop: 'mzNum', width: '110' },
        { label: '门诊下转已评估', prop: 'screenNum', width: '110' },
        { label: '门诊下转已评估', prop: 'screenNum', width: '110' },
        { label: '门诊下转未评估', prop: 'unScreenNum', width: '110' },
        { label: '门诊下转未评估', prop: 'unScreenNum', width: '110' }
      ],
      ],
      page: 1,
      page: 1,
      size: 10,
      size: 10,
@ -62,6 +62,7 @@ Vue.component('gxb-mz', {
      if (selectedRole.code.indexOf('350200') > -1) {
      if (selectedRole.code.indexOf('350200') > -1) {
        this.level = 1 //  市卫健委
        this.level = 1 //  市卫健委
        this.areaOptions = [
        this.areaOptions = [
          { label: '厦门市', value: '' },
          { label: '思明区', value: '350203' },
          { label: '思明区', value: '350203' },
          { label: '海沧区', value: '350205' },
          { label: '海沧区', value: '350205' },
          { label: '湖里区', value: '350206' },
          { label: '湖里区', value: '350206' },
@ -84,7 +85,7 @@ Vue.component('gxb-mz', {
          { label: '团队', value: 'team' }
          { label: '团队', value: 'team' }
        ]
        ]
        this.areaOptions = [{ label: selectedRole.name.substring(0, 3), value: selectedRole.code }]
        this.areaOptions = [{ label: selectedRole.name.substring(0, 3), value: selectedRole.code }]
        this.hospital = [{ label: selectedRole.name, value: selectedRole.code }]
        this.hospitalOptions = [{ name: selectedRole.name, code: selectedRole.code }]
        this.form = {
        this.form = {
          range: 'hospital',
          range: 'hospital',
          area: selectedRole.code.substring(0, 6),
          area: selectedRole.code.substring(0, 6),
@ -171,11 +172,14 @@ Vue.component('gxb-mz', {
    },
    },
    eliminateClick() {
    eliminateClick() {
      this.resetArea()
      this.resetArea()
      this.form.hospital = ''
      this.hospitalOptions = []
      this.form.team = ''
      this.teamOptions = []
      this.yearType = '1'
      this.yearType = '1'
      this.chooseYear = new Date().getFullYear()
      this.chooseYear = new Date().getFullYear()
      this.chooseTime = null
      this.chooseTime = null
      this.$forceUpdate()
      this.$forceUpdate()
      
    },
    },
    getHospital(code) {
    getHospital(code) {
      var vm = this
      var vm = this
@ -185,6 +189,11 @@ Vue.component('gxb-mz', {
        type: 5,
        type: 5,
        code: code
        code: code
      }
      }
      if (!code) {
        vm.hospitalOptions = [{ name: '全部', value: '' }]
        vm.teamOptions = [{ name: '全部', value: '' }]
        return false
      }
      httpRequest.post('common/district', { data: params }).then(function (res) {
      httpRequest.post('common/district', { data: params }).then(function (res) {
        vm.hospitalOptions = res.list
        vm.hospitalOptions = res.list
      })
      })
@ -220,7 +229,9 @@ Vue.component('gxb-mz', {
            {
            {
              props: {
              props: {
                content: (function () {
                content: (function () {
                  return index == '6' ? '统计查询时间内,门诊下转的患者中,在当年有进行ASCVD风险评估的患者人数' : '统计查询时间内,门诊下转的患者中,在当年未进行ASCVD风险评估的患者人数'
                  return index == '6'
                    ? '统计查询时间内,门诊下转的患者中,在当年有进行ASCVD风险评估的患者人数'
                    : '统计查询时间内,门诊下转的患者中,在当年未进行ASCVD风险评估的患者人数'
                })(),
                })(),
                placement: 'top'
                placement: 'top'
              }
              }

+ 11 - 1
component/statistics/GxbTurnup/index.js

@ -61,6 +61,7 @@ Vue.component('gxb-turnup', {
      if (selectedRole.code.indexOf('350200') > -1) {
      if (selectedRole.code.indexOf('350200') > -1) {
        this.level = 1 //  市卫健委
        this.level = 1 //  市卫健委
        this.areaOptions = [
        this.areaOptions = [
          { label: '厦门市', value: '' },
          { label: '思明区', value: '350203' },
          { label: '思明区', value: '350203' },
          { label: '海沧区', value: '350205' },
          { label: '海沧区', value: '350205' },
          { label: '湖里区', value: '350206' },
          { label: '湖里区', value: '350206' },
@ -83,7 +84,7 @@ Vue.component('gxb-turnup', {
          { label: '团队', value: 'team' }
          { label: '团队', value: 'team' }
        ]
        ]
        this.areaOptions = [{ label: selectedRole.name.substring(0, 3), value: selectedRole.code }]
        this.areaOptions = [{ label: selectedRole.name.substring(0, 3), value: selectedRole.code }]
        this.hospital = [{ label: selectedRole.name, value: selectedRole.code }]
        this.hospitalOptions = [{ name: selectedRole.name, code: selectedRole.code }]
        this.form = {
        this.form = {
          range: 'hospital',
          range: 'hospital',
          area: selectedRole.code.substring(0, 6),
          area: selectedRole.code.substring(0, 6),
@ -170,6 +171,10 @@ Vue.component('gxb-turnup', {
    },
    },
    eliminateClick() {
    eliminateClick() {
      this.resetArea()
      this.resetArea()
      this.form.hospital = ''
      this.hospitalOptions = []
      this.form.team = ''
      this.teamOptions = []
      this.yearType = '1'
      this.yearType = '1'
      this.chooseYear = new Date().getFullYear()
      this.chooseYear = new Date().getFullYear()
      this.chooseTime = null
      this.chooseTime = null
@ -183,6 +188,11 @@ Vue.component('gxb-turnup', {
        type: 5,
        type: 5,
        code: code
        code: code
      }
      }
      if (!code) {
        vm.hospitalOptions = [{ name: '全部', value: '' }]
        vm.teamOptions = [{ name: '全部', value: '' }]
        return false
      }
      httpRequest.post('common/district', { data: params }).then(function (res) {
      httpRequest.post('common/district', { data: params }).then(function (res) {
        vm.hospitalOptions = res.list
        vm.hospitalOptions = res.list
      })
      })