ct
This commit is contained in:
@@ -21,22 +21,21 @@
|
|||||||
|
|
||||||
<div class="info">
|
<div class="info">
|
||||||
<div class="title">异常情况记录</div>
|
<div class="title">异常情况记录</div>
|
||||||
<div class="error-list">
|
<div class="error-list" v-if="data.length">
|
||||||
<div v-if="data.length">
|
<div class="itemes" v-for="(item, i) in data" :key="i">
|
||||||
<div class="itemes" v-for="(item, i) in data" :key="i">
|
<p>{{ item.content }}</p>
|
||||||
<p>{{ item.content }}</p>
|
<div>
|
||||||
<div>
|
<span>{{ item.createTime }}</span>
|
||||||
<span>{{ item.createTime }}</span>
|
<span class="names">{{ item.createUserName }}</span>
|
||||||
<span class="names">{{ item.createUserName }}</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<AiEmpty description="暂无数据" class="emptyWrap" v-else></AiEmpty>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<AiEmpty description="暂无数据" class="emptyWrap" v-else></AiEmpty>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="bg-line"></div>
|
<!-- <div class="bg-line"></div> -->
|
||||||
|
|
||||||
<div class="footer">
|
<div class="footer">
|
||||||
<div class="add" @click="show = true">新增记录</div>
|
<div class="add" @click="show = true">新增记录</div>
|
||||||
<div class="confirm" @click="cancel">解除异常</div>
|
<div class="confirm" @click="cancel">解除异常</div>
|
||||||
@@ -93,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 {
|
||||||
@@ -111,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 {
|
||||||
@@ -129,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 {
|
||||||
@@ -167,12 +166,12 @@ 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(() => {
|
||||||
uni.navigateBack()
|
uni.navigateBack()
|
||||||
}, 600)
|
}, 800)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
@@ -222,23 +221,26 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
.info {
|
.info {
|
||||||
padding: 0 32px 32px;
|
|
||||||
background-color: #fff;
|
|
||||||
.title {
|
.title {
|
||||||
|
padding: 0 32px;
|
||||||
font-size: 38px;
|
font-size: 38px;
|
||||||
font-family: PingFangSC-Semibold, PingFang SC;
|
font-family: PingFangSC-Semibold, PingFang SC;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
color: #333;
|
color: #333;
|
||||||
line-height: 116px;
|
line-height: 116px;
|
||||||
|
background-color: #fff;
|
||||||
}
|
}
|
||||||
.error-list {
|
.error-list {
|
||||||
|
background-color: #fff !important;
|
||||||
|
padding-bottom: 24px;
|
||||||
.itemes {
|
.itemes {
|
||||||
width: 100%;
|
margin: 0 32px;
|
||||||
background: #f4f7fe;
|
background: #f4f7fe;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
padding: 24px 24px 18px 24px;
|
padding: 24px 24px 18px 24px;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
margin-bottom: 16px;
|
margin-bottom: 16px;
|
||||||
|
|
||||||
p {
|
p {
|
||||||
font-size: 28px;
|
font-size: 28px;
|
||||||
font-family: PingFangSC-Regular, PingFang SC;
|
font-family: PingFangSC-Regular, PingFang SC;
|
||||||
|
|||||||
@@ -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 {
|
||||||
|
|||||||
@@ -83,6 +83,7 @@ export default {
|
|||||||
this.getRecord()
|
this.getRecord()
|
||||||
|
|
||||||
uni.$on('updateDetail', () => {
|
uni.$on('updateDetail', () => {
|
||||||
|
this.getUser()
|
||||||
this.getRecord()
|
this.getRecord()
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@@ -95,7 +96,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 +113,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