优化
This commit is contained in:
@@ -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() {
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user