diff --git a/src/views/booknumber/index.vue b/src/views/booknumber/index.vue index a4ed60a..35cb18c 100644 --- a/src/views/booknumber/index.vue +++ b/src/views/booknumber/index.vue @@ -234,15 +234,7 @@ export default { }, mounted() { - if(this.userInfo.role_name !== 'hospital'){ - // this.isShowHos = true - this.selectDay = new Date().getTime(); - this.option.column.find(item => item.prop == "hosId").search = true - }else{ - this.selectDay = new Date().getTime() + 3600 * 1000 * 24 * (this.deadline - 1) - // this.isShowHos = false - this.option.column.find(item => item.prop == "hosId").search = false - } + var validateTime = (rule, value, callback)=>{ if (value == this.valTime) { callback(new Error('该放号时段已被设置,请重新选择放号时段')); @@ -373,6 +365,15 @@ export default { getDays().then(res =>{ console.log(res) this.deadline = res.data.data[0].dictValue + if(this.userInfo.role_name !== 'hospital'){ + // this.isShowHos = true + this.selectDay = new Date().getTime(); + this.option.column.find(item => item.prop == "hosId").search = true + }else{ + this.selectDay = new Date().getTime() + 3600 * 1000 * 24 * (this.deadline - 1) + // this.isShowHos = false + this.option.column.find(item => item.prop == "hosId").search = false + } }) }, computed:{