|
|
@ -228,7 +228,7 @@ export default { |
|
|
|
}, |
|
|
|
getOptions () { |
|
|
|
this.$http |
|
|
|
.get(`sys/vaccinetype/getVaccineList`) |
|
|
|
.get(`/sys/vaccinetype/getVaccineList`) |
|
|
|
.then(({ data: res }) => { |
|
|
|
if (res.code !== 0) { |
|
|
|
return this.$message.error(res.msg) |
|
|
@ -242,7 +242,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) |
|
|
@ -256,7 +256,7 @@ export default { |
|
|
|
}, |
|
|
|
getCompanyOptions () { |
|
|
|
this.$http |
|
|
|
.get(`sys/vaccinecompany/getCompantyList`) |
|
|
|
.get(`/sys/vaccinecompany/getCompantyList`) |
|
|
|
.then(({ data: res }) => { |
|
|
|
if (res.code !== 0) { |
|
|
|
return this.$message.error(res.msg) |
|
|
@ -269,7 +269,7 @@ export default { |
|
|
|
}) |
|
|
|
}, |
|
|
|
companyChange (event) { |
|
|
|
this.$http.get(`sys/vaccinecompany/${event}`).then(({ data: res }) => { |
|
|
|
this.$http.get(`/sys/vaccinecompany/${event}`).then(({ data: res }) => { |
|
|
|
if (res.code !== 0) { |
|
|
|
return this.$message.error(res.msg) |
|
|
|
} |
|
|
@ -301,7 +301,7 @@ export default { |
|
|
|
}, |
|
|
|
// 获取信息 |
|
|
|
getInfo () { |
|
|
|
this.$http.get(`sys/epidemicuserinfo/getinfo/${this.dataForm.id}`).then(({ data: res }) => { |
|
|
|
this.$http.get(`/sys/epidemicuserinfo/getinfo/${this.dataForm.id}`).then(({ data: res }) => { |
|
|
|
if (res.code !== 0) { |
|
|
|
return this.$message.error(res.msg) |
|
|
|
} |
|
|
@ -332,7 +332,7 @@ export default { |
|
|
|
return false |
|
|
|
} |
|
|
|
this.isAble = true |
|
|
|
this.$http['post']('sys/vaccinationinfo/', this.dataForm).then(({ data: res }) => { |
|
|
|
this.$http['post']('/sys/vaccinationinfo/', this.dataForm).then(({ data: res }) => { |
|
|
|
if (res.code !== 0) { |
|
|
|
this.isAble = false |
|
|
|
return this.$message.error(res.msg) |
|
|
@ -352,7 +352,7 @@ export default { |
|
|
|
}) |
|
|
|
}, 1000, { 'leading': true, 'trailing': false }), |
|
|
|
putReigst () { |
|
|
|
this.$http.get(`sys/epidemicuserinfo/updateReigst/${this.id}`).then(({ data: res }) => { |
|
|
|
this.$http.get(`/sys/epidemicuserinfo/updateReigst/${this.id}`).then(({ data: res }) => { |
|
|
|
if (res.code !== 0) { |
|
|
|
return this.$message.error(res.msg) |
|
|
|
} |
|
|
|