|
|
@ -114,7 +114,7 @@ export default { |
|
|
|
}, |
|
|
|
// 获取信息 |
|
|
|
getInfo () { |
|
|
|
this.$http.get(`sys/vaccinationinfo/${this.dataForm.id}`).then(({ data: res }) => { |
|
|
|
this.$http.get(`/sys/vaccinationinfo/${this.dataForm.id}`).then(({ data: res }) => { |
|
|
|
if (res.code !== 0) { |
|
|
|
return this.$message.error(res.msg) |
|
|
|
} |
|
|
@ -129,7 +129,7 @@ export default { |
|
|
|
}, |
|
|
|
getSiteOptions () { |
|
|
|
this.$http |
|
|
|
.get(`sys/vaccinationsite/getSiteList`) |
|
|
|
.get(`/sys/vaccinationsite/getSiteList`) |
|
|
|
.then(({ data: res }) => { |
|
|
|
if (res.code !== 0) { |
|
|
|
return this.$message.error(res.msg) |
|
|
@ -143,7 +143,7 @@ export default { |
|
|
|
}, |
|
|
|
getCompantyOptions () { |
|
|
|
this.$http |
|
|
|
.get(`sys/vaccinecompany/getCompantyList`) |
|
|
|
.get(`/sys/vaccinecompany/getCompantyList`) |
|
|
|
.then(({ data: res }) => { |
|
|
|
if (res.code !== 0) { |
|
|
|
return this.$message.error(res.msg) |
|
|
@ -161,7 +161,7 @@ export default { |
|
|
|
if (!valid) { |
|
|
|
return false |
|
|
|
} |
|
|
|
this.$http[!this.dataForm.id ? 'post' : 'put']('sys/vaccinationinfo/', this.dataForm).then(({ data: res }) => { |
|
|
|
this.$http[!this.dataForm.id ? 'post' : 'put']('/sys/vaccinationinfo/', this.dataForm).then(({ data: res }) => { |
|
|
|
if (res.code !== 0) { |
|
|
|
return this.$message.error(res.msg) |
|
|
|
} |
|
|
|