优化
This commit is contained in:
@@ -327,9 +327,12 @@ export default {
|
|||||||
this.crud.notify('请勾选需要操作的记录!')
|
this.crud.notify('请勾选需要操作的记录!')
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
this.crud.loading = true
|
||||||
dailyplan.submit({ query: this.crud.query, rows: this.checkrows }).then(res => {
|
dailyplan.submit({ query: this.crud.query, rows: this.checkrows }).then(res => {
|
||||||
this.crud.notify('操作成功!')
|
this.crud.notify('操作成功!')
|
||||||
this.querytable()
|
this.querytable()
|
||||||
|
}).catch(() => {
|
||||||
|
this.crud.loading = false
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
querytable() {
|
querytable() {
|
||||||
|
|||||||
@@ -303,8 +303,9 @@ export default {
|
|||||||
this.crud.notify('操作成功!')
|
this.crud.notify('操作成功!')
|
||||||
this.crud.loading = false
|
this.crud.loading = false
|
||||||
this.querytable()
|
this.querytable()
|
||||||
|
}).catch(() => {
|
||||||
|
this.crud.loading = false
|
||||||
})
|
})
|
||||||
this.crud.loading = false
|
|
||||||
},
|
},
|
||||||
querytable() {
|
querytable() {
|
||||||
this.crud.toQuery()
|
this.crud.toQuery()
|
||||||
|
|||||||
@@ -363,9 +363,12 @@ export default {
|
|||||||
this.crud.notify('无可操作的记录!')
|
this.crud.notify('无可操作的记录!')
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
this.crud.loading = true
|
||||||
crudProducetask.submit({'status': '0', rows: this.checkrows}).then(res => {
|
crudProducetask.submit({'status': '0', rows: this.checkrows}).then(res => {
|
||||||
this.crud.notify('操作成功!')
|
this.crud.notify('操作成功!')
|
||||||
this.querytable()
|
this.querytable()
|
||||||
|
}).catch(() => {
|
||||||
|
this.crud.loading = false
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
save() {
|
save() {
|
||||||
@@ -374,9 +377,12 @@ export default {
|
|||||||
this.crud.notify('请勾选需要提交的记录!')
|
this.crud.notify('请勾选需要提交的记录!')
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
this.crud.loading = true
|
||||||
crudProducetask.submit({'status': '1', rows: this.checkrows}).then(res => {
|
crudProducetask.submit({'status': '1', rows: this.checkrows}).then(res => {
|
||||||
this.crud.notify('操作成功!')
|
this.crud.notify('操作成功!')
|
||||||
this.querytable()
|
this.querytable()
|
||||||
|
}).catch(() => {
|
||||||
|
this.crud.loading = false
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
querytable() {
|
querytable() {
|
||||||
|
|||||||
Reference in New Issue
Block a user