From adca535f6f2af95a34540bc62c7f253aabe2ec80 Mon Sep 17 00:00:00 2001 From: jinna Date: Fri, 24 Feb 2023 10:45:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=94=BE=E5=8F=B7=E8=AE=B0?= =?UTF-8?q?=E5=BD=95=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/booknumber/index.vue | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) 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:{