hwy 3 miesięcy temu
rodzic
commit
34af4a48c8

+ 2 - 2
component/statistics/CopdServeNum/index.html

@ -35,8 +35,8 @@
    <!--=======================================================-->
    <!--=======================================================-->
    <div class="searchDiv pb20">
    <div class="searchDiv pb20">
      <el-button type="primary" size="mini" @click="search">查询</el-button>
      <el-button type="primary" size="mini" @click="search">查询</el-button>
      <el-button type="success" size="mini" @click="toggle(true)">导入</el-button>
      <el-button type="ff9526" size="mini" @click="exportTable" v-if="isShowBtn">导出</el-button>
      <el-button type="success" size="mini" @click="toggle(true)" v-if="isShowBtn">导入</el-button>
      <el-button type="ff9526" size="mini" @click="exportTable">导出</el-button>
      <span class="eliminate" @click="resetDate">清除筛选条件</span>
      <span class="eliminate" @click="resetDate">清除筛选条件</span>
    </div>
    </div>
    <!--=======================================================-->
    <!--=======================================================-->

+ 13 - 3
component/statistics/CopdServeNum/index.js

@ -119,7 +119,11 @@ Vue.component('copd-serve-num', {
      homeAPI.getDistrict(params).then(function (res) {
      homeAPI.getDistrict(params).then(function (res) {
        if (res.status == 200) {
        if (res.status == 200) {
          vm[param + 'List'] = list.concat(res.list)
          vm[param + 'List'] = list.concat(res.list)
          // vm[param + 'Code'] = vm[param + 'List'][0].code
          if (type == 3) {
            vm[param + 'Code'] = vm[param + 'List'][0].code
            vm.selChange(3)
            vm.search()
          }
        } else {
        } else {
          vm.$message.error(res.msg)
          vm.$message.error(res.msg)
        }
        }
@ -245,7 +249,10 @@ Vue.component('copd-serve-num', {
      var params = {
      var params = {
        year: this.chooseYear,
        year: this.chooseYear,
        range: this.rangeCode,
        range: this.rangeCode,
        area: this.areaCode == '350200' ? '' : this.areaCode
        area: this.areaCode == '350200' ? '' : this.areaCode === null ? '' : this.areaCode
      }
      if (this.rangeCode == 'hospital') {
        params.hospital = this.communityCode
      }
      }
      statisticAPI.exportServiceProgress(params, '服务人数配置及进度查询.xls').then(function (res) {
      statisticAPI.exportServiceProgress(params, '服务人数配置及进度查询.xls').then(function (res) {
        vm.daLoading = false
        vm.daLoading = false
@ -316,7 +323,10 @@ Vue.component('copd-serve-num', {
      var params = {
      var params = {
        year: this.chooseYear,
        year: this.chooseYear,
        range: this.rangeCode,
        range: this.rangeCode,
        area: this.areaCode == '350200' ? '' : this.areaCode
        area: this.areaCode == '350200' ? '' : this.areaCode === null ? '' : this.areaCode
      }
      if (this.rangeCode == 'hospital') {
        params.hospital = this.communityCode
      }
      }
      statisticAPI.getServiceProgress(params).then(function (res) {
      statisticAPI.getServiceProgress(params).then(function (res) {
        vm.daLoading = false
        vm.daLoading = false