Commit 495b0fb7 authored by 陈明豪's avatar 陈明豪

bug修改

parent 1bdc4280
...@@ -89,7 +89,7 @@ export default { ...@@ -89,7 +89,7 @@ export default {
data() { data() {
const contentNotNull = (rule, value, callback) => { const contentNotNull = (rule, value, callback) => {
const contentValue = html2Text(value) const contentValue = html2Text(value)
if (contentValue.length === 0) { if ((contentValue.length === 0 || contentValue.trim().length === 0) && !value.includes('img')) {
callback(new Error('请输入内容详情')) callback(new Error('请输入内容详情'))
} else { } else {
callback() callback()
......
...@@ -286,6 +286,7 @@ ...@@ -286,6 +286,7 @@
clearable clearable
placeholder="请选择病房类型" placeholder="请选择病房类型"
style="width: 100%" style="width: 100%"
disabled="true"
> >
<el-option <el-option
v-for="(item, index) in dict.type.ward_type" v-for="(item, index) in dict.type.ward_type"
...@@ -492,6 +493,8 @@ export default { ...@@ -492,6 +493,8 @@ export default {
changeWardType(prescribingForm) { changeWardType(prescribingForm) {
if (prescribingForm.diseaseLevel === '1') { if (prescribingForm.diseaseLevel === '1') {
prescribingForm.wardType = '2' prescribingForm.wardType = '2'
} else if (prescribingForm.diseaseLevel === null || prescribingForm.diseaseLevel === '') {
prescribingForm.wardType = null
} else { } else {
prescribingForm.wardType = '1' prescribingForm.wardType = '1'
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment