Commit a7415cb5 authored by co_dengxiongwen's avatar co_dengxiongwen

页面调整

parent 079df3f1
......@@ -12,10 +12,10 @@
el-input.mywidth(v-model='dataForm.code' placeholder='请填写编码' clearable)
el-col(:span='14' :offset='4')
el-form-item(label='最小值:' prop='minValue')
el-input.mywidth(v-model='dataForm.minValue' placeholder='请填写最小值' clearable)
el-input-number.mywidth(v-model='dataForm.minValue' placeholder='请填写最小值' clearable)
el-col(:span='14' :offset='4')
el-form-item(label='最大值:' prop='maxValue')
el-input.mywidth(v-model='dataForm.maxValue' placeholder='请填写最大值' clearable)
el-input-number.mywidth(v-model='dataForm.maxValue' placeholder='请填写最大值' clearable)
el-col(:span='14' :offset='4')
el-form-item(label='单位:' prop='unit')
el-select.mywidth(style='width:100%;' v-model='dataForm.unit' placeholder="请选择单位" clearable)
......@@ -126,6 +126,11 @@ export default {
},
// 表单提交
dataFormSubmit() {
if (Number(this.dataForm.minValue) > Number(this.dataForm.maxValue)) {
this.$message.warning('最小值不能大于最大值')
return false
}
this.$refs['dataForm'].validate((valid) => {
if (valid) {
this.$http({
......
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