fix: 78589 配置管理-标准体系-新增时做校验
This commit is contained in:
@@ -58,7 +58,7 @@
|
|||||||
class="common-button-primary"
|
class="common-button-primary"
|
||||||
icon="el-icon-check"
|
icon="el-icon-check"
|
||||||
type="primary"
|
type="primary"
|
||||||
@click="handleSubmit('productModelAdd')">提交</el-button>
|
@click="handleSubmit">提交</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
class="common-button-default"
|
class="common-button-default"
|
||||||
icon="el-icon-close"
|
icon="el-icon-close"
|
||||||
@@ -221,6 +221,13 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
async handleSubmit () {
|
async handleSubmit () {
|
||||||
|
let flag = true
|
||||||
|
await this.$refs.addModelRef.validate((valid) => {
|
||||||
|
if (!valid) {
|
||||||
|
flag = false
|
||||||
|
}
|
||||||
|
})
|
||||||
|
if (!flag) return;
|
||||||
let res = {}
|
let res = {}
|
||||||
switch (this.drawerTitle) {
|
switch (this.drawerTitle) {
|
||||||
case '新增体系':
|
case '新增体系':
|
||||||
|
|||||||
Reference in New Issue
Block a user