|
@@ -110,7 +110,7 @@
|
|
|
|
|
|
<!-- 添加或修改SAI类别对话框 -->
|
|
|
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
|
|
|
- <el-form ref="form" :model="form" :rules="rules" label-width="100px">
|
|
|
+ <el-form ref="form" :model="form" :rules="rules" label-width="110px">
|
|
|
<el-form-item label="SAI类别名称" prop="saiCategoryName">
|
|
|
<el-input v-model="form.saiCategoryName" placeholder="请输入SAI类别名称" />
|
|
|
</el-form-item>
|
|
@@ -213,6 +213,9 @@ export default {
|
|
|
form: {},
|
|
|
// 表单校验
|
|
|
rules: {
|
|
|
+ saiCategoryName: [
|
|
|
+ { required: true, message: this.$t('SAI类别名称') + this.$t('不能为空'), trigger: "change" }
|
|
|
+ ],
|
|
|
}
|
|
|
};
|
|
|
},
|