[update] 绑定零部件

This commit is contained in:
lideqin
2024-04-16 10:50:16 +08:00
parent b13c9fe5b8
commit 8db5079439
2 changed files with 3 additions and 7 deletions
@@ -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)