规范res.code==0
This commit is contained in:
@@ -92,7 +92,7 @@ export default {
|
|||||||
this.$http
|
this.$http
|
||||||
.post(`/app/appepidemicreportmember/queryDetailById?id=${this.id}`)
|
.post(`/app/appepidemicreportmember/queryDetailById?id=${this.id}`)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
if (res?.code == 0) {
|
if (res.code == 0) {
|
||||||
this.userList = res.data
|
this.userList = res.data
|
||||||
this.$hideLoading()
|
this.$hideLoading()
|
||||||
} else {
|
} else {
|
||||||
@@ -110,7 +110,7 @@ export default {
|
|||||||
this.$http
|
this.$http
|
||||||
.post(`/app/appepidemichealthreport/list?memberId=${this.id}&status=0`)
|
.post(`/app/appepidemichealthreport/list?memberId=${this.id}&status=0`)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
if (res?.code == 0) {
|
if (res.code == 0) {
|
||||||
this.datas = this.current > 1 ? [...this.datas, ...res.data.records] : res.data.records
|
this.datas = this.current > 1 ? [...this.datas, ...res.data.records] : res.data.records
|
||||||
this.$hideLoading()
|
this.$hideLoading()
|
||||||
} else {
|
} else {
|
||||||
@@ -128,7 +128,7 @@ export default {
|
|||||||
this.$http
|
this.$http
|
||||||
.post(`/app/appepidemicunusuallog/list?recordId=${this.id}`)
|
.post(`/app/appepidemicunusuallog/list?recordId=${this.id}`)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
if (res?.code == 0) {
|
if (res.code == 0) {
|
||||||
this.data = this.current > 1 ? [...this.data, ...res.data.records] : res.data.records
|
this.data = this.current > 1 ? [...this.data, ...res.data.records] : res.data.records
|
||||||
this.$hideLoading()
|
this.$hideLoading()
|
||||||
} else {
|
} else {
|
||||||
@@ -166,7 +166,7 @@ export default {
|
|||||||
cancel() {
|
cancel() {
|
||||||
this.$confirm(`是否解除该条异常信息?`).then(() => {
|
this.$confirm(`是否解除该条异常信息?`).then(() => {
|
||||||
this.$http.post('/app/appepidemicreportmember/release', { id: this.id }).then((res) => {
|
this.$http.post('/app/appepidemicreportmember/release', { id: this.id }).then((res) => {
|
||||||
if (res?.code == 0) {
|
if (res.code == 0) {
|
||||||
this.$u.toast('解除成功!')
|
this.$u.toast('解除成功!')
|
||||||
uni.$emit('updateDetail')
|
uni.$emit('updateDetail')
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
|||||||
@@ -127,7 +127,7 @@ export default {
|
|||||||
params: { size: this.size, current: this.current, status: this.currentTabs == 1 ? '0' : '', areaId: this.areaId, name: this.keyword },
|
params: { size: this.size, current: this.current, status: this.currentTabs == 1 ? '0' : '', areaId: this.areaId, name: this.keyword },
|
||||||
})
|
})
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
if (res?.data) {
|
if (res.code == 0) {
|
||||||
this.data = this.current > 1 ? [...this.data, ...res.data.records] : res.data.records
|
this.data = this.current > 1 ? [...this.data, ...res.data.records] : res.data.records
|
||||||
uni.hideLoading()
|
uni.hideLoading()
|
||||||
} else {
|
} else {
|
||||||
@@ -146,7 +146,7 @@ export default {
|
|||||||
this.$http
|
this.$http
|
||||||
.post('/app/appepidemicreportmember/statistic')
|
.post('/app/appepidemicreportmember/statistic')
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
if (res?.code == 0) {
|
if (res.code == 0) {
|
||||||
this.userList = res.data
|
this.userList = res.data
|
||||||
uni.hideLoading()
|
uni.hideLoading()
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -95,7 +95,7 @@ export default {
|
|||||||
this.$http
|
this.$http
|
||||||
.post(`/app/appepidemicreportmember/queryDetailById?id=${this.id}`)
|
.post(`/app/appepidemicreportmember/queryDetailById?id=${this.id}`)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
if (res?.code == 0) {
|
if (res.code == 0) {
|
||||||
this.userList = res.data
|
this.userList = res.data
|
||||||
this.$hideLoading()
|
this.$hideLoading()
|
||||||
} else {
|
} else {
|
||||||
@@ -112,7 +112,7 @@ export default {
|
|||||||
this.$http
|
this.$http
|
||||||
.post(`/app/appepidemichealthreport/list?memberId=${this.id}`)
|
.post(`/app/appepidemichealthreport/list?memberId=${this.id}`)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
if (res?.code == 0) {
|
if (res.code == 0) {
|
||||||
this.data = this.current > 1 ? [...this.data, ...res.data.records] : res.data.records
|
this.data = this.current > 1 ? [...this.data, ...res.data.records] : res.data.records
|
||||||
this.$hideLoading()
|
this.$hideLoading()
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -115,7 +115,7 @@ export default {
|
|||||||
this.$http
|
this.$http
|
||||||
.post(`/app/appepidemicreportmember/queryDetailById?id=${this.userList.memberId}`)
|
.post(`/app/appepidemicreportmember/queryDetailById?id=${this.userList.memberId}`)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
if (res?.code == 0) {
|
if (res.code == 0) {
|
||||||
this.data = res.data
|
this.data = res.data
|
||||||
this.$hideLoading()
|
this.$hideLoading()
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user