diff --git a/src/views/modules/monitoring/equipment-add-or-update.vue b/src/views/modules/monitoring/equipment-add-or-update.vue index 4b00b94..a59acf2 100644 --- a/src/views/modules/monitoring/equipment-add-or-update.vue +++ b/src/views/modules/monitoring/equipment-add-or-update.vue @@ -159,7 +159,7 @@ export default { this.$refs['dataForm'].resetFields() if (this.dataForm.id) { this.$http({ - url: this.$http.adornUrl(`/monitoring/equipment/info/${this.dataForm.id}`), + url: this.$http.adornUrl(`/monitoring/equipment/${this.dataForm.id}`), method: 'get', params: this.$http.adornParams() }).then(({ data }) => { diff --git a/src/views/modules/monitoring/qualityinspectiondet-add-or-update.vue b/src/views/modules/monitoring/qualityinspectiondet-add-or-update.vue index d79295d..1450e96 100644 --- a/src/views/modules/monitoring/qualityinspectiondet-add-or-update.vue +++ b/src/views/modules/monitoring/qualityinspectiondet-add-or-update.vue @@ -118,6 +118,7 @@ export default { this.$http({ url: this.$http.adornUrl(`/monitoring/qualityInspectionDet/${!this.dataForm.id ? '' : this.dataForm.id}`), method: this.dataForm.id ? 'put' : 'post', + headers: { 'Content-Type': 'application/json' }, data: this.$http.adornData({ id: this.dataForm.id || undefined, typeId: this.dataForm.typeId,