hd 5 päivää sitten
vanhempi
commit
a13e27d978

+ 2 - 2
component/statistics/GxbEvaluation/index.js

@ -110,9 +110,9 @@ Vue.component('gxb-evaluation', {
      var vm = this
      var now = new Date()
      vm.nowyear = vm.chooseYear = now.getFullYear()
      var nowyear = vm.chooseYear = now.getFullYear()
      vm.years = []
      for (i = vm.nowyear; i >= 2013; i--) {
      for (i = nowyear; i >= 2013; i--) {
        vm.years.push(i)
      }
    },

+ 20 - 0
component/statistics/reservationSituation/index.html

@ -2,6 +2,26 @@
<div id="app" class="jtbc">
  <div class="copd-filter-group ui-col-1 bgc-fff" style="min-width: 900px">
    <div class="searchDiv pb20 pr20">
      <label class="c-333 c-f14">
        <el-radio v-model="yearType" label="1">按预约年份:</el-radio>
        <el-select v-model="chooseYear" class="formWidth wd160">
          <el-option v-for="(item , index) in years" :key="index" :label="item" :value="item"></el-option>
        </el-select>
      </label>
    </div>
    <div class="searchDiv pb20 pr20">
      <label class="c-333 c-f14" style="display: flex; align-items: center">
        <el-radio v-model="yearType" label="2">自定义预约时间:</el-radio>
        <el-date-picker
          v-model="chooseTime"
          type="daterange"
          range-separator="至"
          start-placeholder="开始日期"
          end-placeholder="结束日期"
          value-format="yyyy-MM-dd"></el-date-picker>
      </label>
    </div>
    <div class="searchDiv pb20 pr20">
      <label class="c-333 c-f14">居民姓名:</label>
      <el-input v-model="form.name" placeholder="请输入居民姓名查询"></el-input>

+ 9 - 3
component/statistics/reservationSituation/index.js

@ -16,6 +16,10 @@ Vue.component('reservation-situation', {
  props: [],
  data: function () {
    return {
      yearType: "1",
      years: [],
      chooseYear: null,
      chooseTime: null,
      rangeOptions: [
        { label: '区', value: 'town' },
        { label: '社区', value: 'hospital' },
@ -100,9 +104,9 @@ Vue.component('reservation-situation', {
      var vm = this
      var now = new Date()
      vm.nowyear = vm.chooseYear = now.getFullYear()
      var nowyear = vm.chooseYear = now.getFullYear()
      vm.years = []
      for (i = vm.nowyear; i >= 2013; i--) {
      for (i = nowyear; i >= 2013; i--) {
        vm.years.push(i)
      }
    },
@ -174,10 +178,12 @@ Vue.component('reservation-situation', {
    },
    eliminateClick() {
      this.resetArea()
      this.yearType = '1'
      this.chooseYear = new Date().getFullYear()
      this.chooseTime = null
      delete this.form.name
      delete this.form.doctorName
      this.age = []
      this.$forceUpdate()
    },
    getHospital(code) {