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