[update] 绑定零部件
This commit is contained in:
@@ -417,7 +417,9 @@ export default {
|
|||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
}
|
}
|
||||||
}).finally(() => {
|
}).finally(() => {
|
||||||
this.loading = false
|
setTimeout(() => {
|
||||||
|
this.loading = false
|
||||||
|
}, 1000)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
switchChange (value) {
|
switchChange (value) {
|
||||||
|
|||||||
@@ -459,9 +459,6 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
getData () {
|
getData () {
|
||||||
if (this.isEditSetData) {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
const formInline = Object.assign({}, this.formInline)
|
const formInline = Object.assign({}, this.formInline)
|
||||||
Object.keys(formInline).forEach(res => {
|
Object.keys(formInline).forEach(res => {
|
||||||
if (formInline[res] instanceof Array) {
|
if (formInline[res] instanceof Array) {
|
||||||
@@ -478,9 +475,6 @@ export default {
|
|||||||
},
|
},
|
||||||
// 外层获取数据要过校验,返回false表示没有通过校验
|
// 外层获取数据要过校验,返回false表示没有通过校验
|
||||||
async getDataValidate () {
|
async getDataValidate () {
|
||||||
if (this.isEditSetData) {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
let data = {}
|
let data = {}
|
||||||
await this.$refs.ruleForm.validate(valid => {
|
await this.$refs.ruleForm.validate(valid => {
|
||||||
console.log(valid)
|
console.log(valid)
|
||||||
|
|||||||
Reference in New Issue
Block a user