createName

This commit is contained in:
花有清香月有阴
2022-01-12 09:53:32 +08:00
parent 806e5e91b1
commit 87d4f61038

View File

@@ -8,15 +8,15 @@
<p>身份证号</p> <p>身份证号</p>
<p class="mar-b8" style="color: #333">{{ userList.idNumber && userList.idNumber.replace(/^(\w{6})\w{8}(.*)$/, '$1******$2') }}</p> <p class="mar-b8" style="color: #333">{{ userList.idNumber && userList.idNumber.replace(/^(\w{6})\w{8}(.*)$/, '$1******$2') }}</p>
<p>异常情况</p> <p>异常情况</p>
<div v-if="data.length"> <div v-if="datas.length">
<p style="color: #ff4466" v-for="(item, index) in data" :key="index" v-if="item.health != 0"> <p style="color: #ff4466" v-for="(item, index) in datas" :key="index" v-if="item.health != 0">
<span v-for="(items, index) in item.health" :key="index" :style="item != 0 ? 'color:#FF4466;' : ''"> <span v-for="(items, index) in item.health" :key="index" :style="item != 0 ? 'color:#FF4466;' : ''">
{{ $dict.getLabel('epidemicRecentHealth', items) }} {{ $dict.getLabel('epidemicRecentHealth', items) }}
</span> </span>
</p> </p>
</div> </div>
<!-- <p style="color: #333" v-else>暂无异常情况</p> --> <p style="color: #333" v-else>暂无异常情况</p>
</div> </div>
<div class="info"> <div class="info">
@@ -27,12 +27,12 @@
<p>{{ item.content }}</p> <p>{{ item.content }}</p>
<div> <div>
<span>{{ item.createTime }}</span> <span>{{ item.createTime }}</span>
<span class="names">网格员: 李依云</span> <span class="names">网格员: {{ item.createUserName }}</span>
</div> </div>
</div> </div>
<!-- <AiEmpty description="暂无数据" class="emptyWrap" v-else></AiEmpty> -->
</div> </div>
<AiEmpty description="暂无数据" class="emptyWrap" v-else></AiEmpty>
</div> </div>
</div> </div>
@@ -67,6 +67,7 @@ export default {
value: '', value: '',
userList: [], userList: [],
data: [], data: [],
datas: [],
} }
}, },
computed: { computed: {
@@ -79,6 +80,7 @@ export default {
this.id = o.id this.id = o.id
this.getUser() this.getUser()
this.getRecord() this.getRecord()
this.getErrThing()
} }
}) })
}, },
@@ -103,6 +105,25 @@ export default {
}) })
}, },
// 异常情况
getErrThing() {
this.$loading()
this.$http
.post(`/app/appepidemichealthreport/list?memberId=${this.id}&status=0`)
.then((res) => {
if (res?.code == 0) {
this.datas = this.current > 1 ? [...this.datas, ...res.data.records] : res.data.records
this.$hideLoading()
} else {
this.$hideLoading()
}
})
.catch(() => {
this.$hideLoading()
})
},
// 异常情况记录
getRecord() { getRecord() {
this.$loading() this.$loading()
this.$http this.$http