修改放号记录页面

main
jinna 3 years ago
parent 96c37f67d9
commit adca535f6f
  1. 19
      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:{

Loading…
Cancel
Save