This commit is contained in:
liuye
2022-01-12 14:29:01 +08:00
4 changed files with 27 additions and 24 deletions

View File

@@ -21,22 +21,21 @@
<div class="info">
<div class="title">异常情况记录</div>
<div class="error-list">
<div v-if="data.length">
<div class="itemes" v-for="(item, i) in data" :key="i">
<p>{{ item.content }}</p>
<div>
<span>{{ item.createTime }}</span>
<span class="names">{{ item.createUserName }}</span>
</div>
<div class="error-list" v-if="data.length">
<div class="itemes" v-for="(item, i) in data" :key="i">
<p>{{ item.content }}</p>
<div>
<span>{{ item.createTime }}</span>
<span class="names">{{ item.createUserName }}</span>
</div>
</div>
<AiEmpty description="暂无数据" class="emptyWrap" v-else></AiEmpty>
</div>
<AiEmpty description="暂无数据" class="emptyWrap" v-else></AiEmpty>
</div>
<div class="bg-line"></div>
<!-- <div class="bg-line"></div> -->
<div class="footer">
<div class="add" @click="show = true">新增记录</div>
<div class="confirm" @click="cancel">解除异常</div>
@@ -93,7 +92,7 @@ export default {
this.$http
.post(`/app/appepidemicreportmember/queryDetailById?id=${this.id}`)
.then((res) => {
if (res?.code == 0) {
if (res.code == 0) {
this.userList = res.data
this.$hideLoading()
} else {
@@ -111,7 +110,7 @@ export default {
this.$http
.post(`/app/appepidemichealthreport/list?memberId=${this.id}&status=0`)
.then((res) => {
if (res?.code == 0) {
if (res.code == 0) {
this.datas = this.current > 1 ? [...this.datas, ...res.data.records] : res.data.records
this.$hideLoading()
} else {
@@ -129,7 +128,7 @@ export default {
this.$http
.post(`/app/appepidemicunusuallog/list?recordId=${this.id}`)
.then((res) => {
if (res?.code == 0) {
if (res.code == 0) {
this.data = this.current > 1 ? [...this.data, ...res.data.records] : res.data.records
this.$hideLoading()
} else {
@@ -167,12 +166,12 @@ export default {
cancel() {
this.$confirm(`是否解除该条异常信息?`).then(() => {
this.$http.post('/app/appepidemicreportmember/release', { id: this.id }).then((res) => {
if (res?.code == 0) {
if (res.code == 0) {
this.$u.toast('解除成功!')
uni.$emit('updateDetail')
setTimeout(() => {
uni.navigateBack()
}, 600)
}, 800)
}
})
})
@@ -222,23 +221,26 @@ export default {
}
}
.info {
padding: 0 32px 32px;
background-color: #fff;
.title {
padding: 0 32px;
font-size: 38px;
font-family: PingFangSC-Semibold, PingFang SC;
font-weight: 600;
color: #333;
line-height: 116px;
background-color: #fff;
}
.error-list {
background-color: #fff !important;
padding-bottom: 24px;
.itemes {
width: 100%;
margin: 0 32px;
background: #f4f7fe;
border-radius: 8px;
padding: 24px 24px 18px 24px;
box-sizing: border-box;
margin-bottom: 16px;
p {
font-size: 28px;
font-family: PingFangSC-Regular, PingFang SC;

View File

@@ -127,7 +127,7 @@ export default {
params: { size: this.size, current: this.current, status: this.currentTabs == 1 ? '0' : '', areaId: this.areaId, name: this.keyword },
})
.then((res) => {
if (res?.data) {
if (res.code == 0) {
this.data = this.current > 1 ? [...this.data, ...res.data.records] : res.data.records
uni.hideLoading()
} else {
@@ -146,7 +146,7 @@ export default {
this.$http
.post('/app/appepidemicreportmember/statistic')
.then((res) => {
if (res?.code == 0) {
if (res.code == 0) {
this.userList = res.data
uni.hideLoading()
} else {

View File

@@ -83,6 +83,7 @@ export default {
this.getRecord()
uni.$on('updateDetail', () => {
this.getUser()
this.getRecord()
})
},
@@ -95,7 +96,7 @@ export default {
this.$http
.post(`/app/appepidemicreportmember/queryDetailById?id=${this.id}`)
.then((res) => {
if (res?.code == 0) {
if (res.code == 0) {
this.userList = res.data
this.$hideLoading()
} else {
@@ -112,7 +113,7 @@ export default {
this.$http
.post(`/app/appepidemichealthreport/list?memberId=${this.id}`)
.then((res) => {
if (res?.code == 0) {
if (res.code == 0) {
this.data = this.current > 1 ? [...this.data, ...res.data.records] : res.data.records
this.$hideLoading()
} else {

View File

@@ -115,7 +115,7 @@ export default {
this.$http
.post(`/app/appepidemicreportmember/queryDetailById?id=${this.userList.memberId}`)
.then((res) => {
if (res?.code == 0) {
if (res.code == 0) {
this.data = res.data
this.$hideLoading()
} else {