forked from mt-fe-group/mt-yd-ui
update PUT-POST
This commit is contained in:
@@ -86,8 +86,8 @@ export default {
|
||||
this.$refs['dataForm'].validate(valid => {
|
||||
if (valid) {
|
||||
this.$http({
|
||||
url: this.$http.adornUrl(`/monitoring/productionLineRecSch/${!this.dataForm.id ? 'save' : 'update'}`),
|
||||
method: 'post',
|
||||
url: this.$http.adornUrl(`/monitoring/productionLineRecSch/${!this.dataForm.id ? '' : this.dataForm.id}`),
|
||||
method: this.dataForm.id ? 'put' : 'post',
|
||||
data: this.$http.adornData({
|
||||
id: this.dataForm.id || undefined,
|
||||
productionLineId: this.dataForm.productionLineId,
|
||||
|
||||
Reference in New Issue
Block a user