fzq #31
@ -159,7 +159,7 @@ export default {
|
|||||||
this.$refs['dataForm'].resetFields()
|
this.$refs['dataForm'].resetFields()
|
||||||
if (this.dataForm.id) {
|
if (this.dataForm.id) {
|
||||||
this.$http({
|
this.$http({
|
||||||
url: this.$http.adornUrl(`/monitoring/equipment/info/${this.dataForm.id}`),
|
url: this.$http.adornUrl(`/monitoring/equipment/${this.dataForm.id}`),
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params: this.$http.adornParams()
|
params: this.$http.adornParams()
|
||||||
}).then(({ data }) => {
|
}).then(({ data }) => {
|
||||||
|
@ -118,6 +118,7 @@ export default {
|
|||||||
this.$http({
|
this.$http({
|
||||||
url: this.$http.adornUrl(`/monitoring/qualityInspectionDet/${!this.dataForm.id ? '' : this.dataForm.id}`),
|
url: this.$http.adornUrl(`/monitoring/qualityInspectionDet/${!this.dataForm.id ? '' : this.dataForm.id}`),
|
||||||
method: this.dataForm.id ? 'put' : 'post',
|
method: this.dataForm.id ? 'put' : 'post',
|
||||||
|
headers: { 'Content-Type': 'application/json' },
|
||||||
data: this.$http.adornData({
|
data: this.$http.adornData({
|
||||||
id: this.dataForm.id || undefined,
|
id: this.dataForm.id || undefined,
|
||||||
typeId: this.dataForm.typeId,
|
typeId: this.dataForm.typeId,
|
||||||
|
Loading…
Reference in New Issue
Block a user