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