修改bug

This commit is contained in:
2022-03-10 14:30:33 +08:00
parent 77f1831fc2
commit 0adf1dad1e
4 changed files with 45 additions and 23 deletions

View File

@@ -2,7 +2,7 @@
* @Author: zwq
* @Date: 2020-12-29 16:37:56
* @LastEditors: zwq
* @LastEditTime: 2022-03-09 15:14:20
* @LastEditTime: 2022-03-10 14:27:47
* @Description:
-->
<template>
@@ -14,6 +14,7 @@
ref="dataForm"
:model="dataForm"
size="medium"
:rules="dataRule"
label-width="110px"
label-position="left"
>
@@ -52,6 +53,14 @@ export default {
storageType: 1,
storageBoxName: ''
},
dataRule: {
storageBoxName: [
{
required: true,
message: this.$i18nForm(['placeholder.input', this.$t('module.basicData.storageBox.name')]),
trigger: 'change' }
]
},
storageBoxArr: []
}
},
@@ -73,8 +82,12 @@ export default {
},
// 表单提交
dataFormSubmit() {
this.visible = false
this.$emit('refreshDataList', this.storageId, this.dataForm)
this.$refs['dataForm'].validate((valid) => {
if (valid) {
this.visible = false
this.$emit('refreshDataList', this.storageId, this.dataForm)
}
})
}
}
}