This commit is contained in:
zds
2022-08-05 08:33:18 +08:00
parent 68ef98fdeb
commit a332e0ac91
3 changed files with 11 additions and 1 deletions

View File

@@ -327,9 +327,12 @@ export default {
this.crud.notify('请勾选需要操作的记录!')
return false
}
this.crud.loading = true
dailyplan.submit({ query: this.crud.query, rows: this.checkrows }).then(res => {
this.crud.notify('操作成功!')
this.querytable()
}).catch(() => {
this.crud.loading = false
})
},
querytable() {

View File

@@ -303,8 +303,9 @@ export default {
this.crud.notify('操作成功!')
this.crud.loading = false
this.querytable()
}).catch(() => {
this.crud.loading = false
})
this.crud.loading = false
},
querytable() {
this.crud.toQuery()

View File

@@ -363,9 +363,12 @@ export default {
this.crud.notify('无可操作的记录!')
return false
}
this.crud.loading = true
crudProducetask.submit({'status': '0', rows: this.checkrows}).then(res => {
this.crud.notify('操作成功!')
this.querytable()
}).catch(() => {
this.crud.loading = false
})
},
save() {
@@ -374,9 +377,12 @@ export default {
this.crud.notify('请勾选需要提交的记录!')
return false
}
this.crud.loading = true
crudProducetask.submit({'status': '1', rows: this.checkrows}).then(res => {
this.crud.notify('操作成功!')
this.querytable()
}).catch(() => {
this.crud.loading = false
})
},
querytable() {