|
@@ -445,7 +445,7 @@
|
|
|
<el-row>
|
|
|
<el-col :span="6">
|
|
|
<el-form-item label="舒张血压" prop="bloodPressureLow">
|
|
|
- <el-input v-model.number="ruleForm.bloodPressureLow" maxlength="12" show-word-limit
|
|
|
+ <el-input v-model="ruleForm.bloodPressureLow" maxlength="12" show-word-limit
|
|
|
placeholder="请填写舒张血压">
|
|
|
<template #append>mmHg</template>
|
|
|
</el-input>
|
|
@@ -453,7 +453,7 @@
|
|
|
</el-col>
|
|
|
<el-col :span="6">
|
|
|
<el-form-item label="收缩血压" prop="bloodPressureHigh">
|
|
|
- <el-input v-model.number="ruleForm.bloodPressureHigh" maxlength="12" show-word-limit
|
|
|
+ <el-input v-model="ruleForm.bloodPressureHigh" maxlength="12" show-word-limit
|
|
|
placeholder="请填写收缩血压">
|
|
|
<template #append>mmHg</template>
|
|
|
</el-input>
|
|
@@ -697,7 +697,7 @@ const ruleForm = ref<RuleForm>({
|
|
|
|
|
|
const validateInt = (rule: any, value: any, callback: any) => {
|
|
|
if (value !== '') {
|
|
|
- if (Number.isInteger(value)) {
|
|
|
+ if (!Number.isInteger(value)) {
|
|
|
callback(new Error('请填写数字'))
|
|
|
}
|
|
|
if (!ruleFormRef.value) return
|
|
@@ -829,8 +829,8 @@ const submitForm = async (formEl: FormInstance | undefined) => {
|
|
|
} else {
|
|
|
console.log('error submit!', fields)
|
|
|
ElMessage({
|
|
|
- type: "success",
|
|
|
- message: '未完成必填项或者填写项不符合',
|
|
|
+ type: "info",
|
|
|
+ message: '未完成必填项或者填写项不符合,请检查',
|
|
|
duration: 2500,
|
|
|
showClose: true,
|
|
|
});
|