提交 9c3630dc 编写于 作者: qian.jie's avatar qian.jie

排班人数限制提醒

上级 2387ed55
......@@ -126,6 +126,9 @@
}
.maxNum-first-show {
padding: 20px 15px 5px 15px;
.show-sep-num {
color: red;
}
}
.reset-doctor-schedu {
padding: 10px 15px 5px 15px;
......
......@@ -51,8 +51,12 @@
</div>
</div>
<div class="maxNum-first-show">
<span>每小时接诊上限人数: {{ showMaxNum }} </span>
<p>优先级 {{ showFirNum }}</p>
<span>每小时接诊上限人数:
<span :class="showMaxNum <= 0 ? 'show-sep-num' : ''">{{
showMaxNum > 0 ? showMaxNum : 0
}}</span>
</span>
<p>优先级: {{ showFirNum }}</p>
</div>
<div
v-if="this.schedulingType != 3"
......@@ -259,8 +263,8 @@
copyArr: [],
centerDialogVisible: false,
maxNumValue: '',
showFirNum:'',
showMaxNum:''
showFirNum: '',
showMaxNum: '',
};
},
computed: {},
......@@ -330,8 +334,8 @@
console.log(res, 'res');
this.currentIndex = res.data.level;
this.maxNumValue = res.data.preNum;
this.showFirNum = res.data.level,
this.showMaxNum = res.data.preNum;
(this.showFirNum = res.data.level),
(this.showMaxNum = res.data.preNum);
}
});
},
......@@ -709,6 +713,12 @@
this.$message.error(res.message || '排班保存失败');
}
});
if (!this.maxNumValue && this.maxNumValue != 0) {
return this.$message({
message: '请设置优先级和接诊上限设置',
type: 'warning',
});
}
}
},
dateFormat(fmt, date2) {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册