健康登记

This commit is contained in:
liuye
2022-02-09 17:39:17 +08:00
parent eec90be6fe
commit 2d6a9c4bab
3 changed files with 40 additions and 12 deletions

View File

@@ -153,13 +153,14 @@ export default {
tabList: [{ name: '健康上报'},{ name: '上报统计'}], tabList: [{ name: '健康上报'},{ name: '上报统计'}],
currentTabs: 0, currentTabs: 0,
form: {temperature: '', touchInFourteen: '', health: []}, form: {temperature: '', touchInFourteen: '', health: []},
isUpload: false, isUpload: true,
weekList: ['一', '二', '三', '四', '五', '六', '日'], weekList: ['一', '二', '三', '四', '五', '六', '日'],
dayList: [], dayList: [],
month: '', month: '',
selectDay: '', selectDay: '',
healthInfo: {}, healthInfo: {},
isAdmin: false, //是否网格长 isAdmin: false, //是否网格长
girdMemberId: '',
} }
}, },
computed: { computed: {
@@ -253,7 +254,7 @@ export default {
this.currentTabs = index this.currentTabs = index
}, },
toOther() { toOther() {
uni.navigateTo({ url: './OtherUser'}) uni.navigateTo({ url: `./OtherUser?girdMemberId=${this.girdMemberId}`})
}, },
isGirdUser() { isGirdUser() {
this.isAdmin = false this.isAdmin = false
@@ -261,6 +262,7 @@ export default {
if (res.code == 0) { if (res.code == 0) {
if (res.data.checkType == 2) { if (res.data.checkType == 2) {
this.isAdmin = true this.isAdmin = true
this.girdMemberId = res.data.girdMemberId
} }
} }
}) })

View File

@@ -2,18 +2,19 @@
<div class="OtherUser"> <div class="OtherUser">
<AiTopFixed> <AiTopFixed>
<div class="seachObjs"> <div class="seachObjs">
<u-search v-model="keyword" :clearabled="true" placeholder="请输入姓名" :show-action="false" bg-color="#F5F5F5" search-icon-color="#E2E8F1" color="#666" height="58" @search="handerSearch" @clear="handerClear"></u-search> <u-search v-model="keyword" :clearabled="true" placeholder="请输入姓名" :show-action="false" bg-color="#F5F5F5" search-icon-color="#E2E8F1" color="#666" height="58" @search="getListInit" @clear="handerClear"></u-search>
</div> </div>
</AiTopFixed> </AiTopFixed>
<div class="user-list"> <div class="user-list">
<div class="item" @click="toOtherSta"> <div class="item" v-for="(item, index) in list" :key="index" @click="toOtherSta(item.id)" >
<div class="left"> <div class="left">
<img src="./components/img/user-icon.png" alt="">李轶 <img src="./components/img/user-icon.png" alt="">{{item.name}}
</div> </div>
<div class="right"> <div class="right">
今日已上报<img src="./components/img/right-icon.png" alt=""> <span :class="item.status == 1 ? '' : 'color-F5A319'">{{item.status == 1 ? '今日已上报' : '今日未上报'}}</span><img src="./components/img/right-icon.png" alt="">
</div> </div>
</div> </div>
<AiEmpty v-if="!list.length"/>
</div> </div>
</div> </div>
</template> </template>
@@ -26,22 +27,48 @@ export default {
data() { data() {
return { return {
keyword: '', keyword: '',
current: 1,
girdMemberId: '',
list: []
} }
}, },
computed: { computed: {
...mapState(['user']), ...mapState(['user']),
}, },
onLoad() { onLoad(option) {
this.girdMemberId = option.girdMemberId
this.getUserList()
}, },
onShow() { onShow() {
document.title = '其他成员' document.title = '其他成员'
}, },
methods: { methods: {
toOtherSta() { toOtherSta(id) {
uni.navigateTo({ url: './OtherStatistics'}) uni.navigateTo({ url: `./OtherStatistics?id=${id}`})
}, },
handerClear() {
this.keyword = ''
this.getListInit()
},
getListInit() {
this.current = 1
this.getUserList()
},
getUserList() {
this.$http.post(`/app/appepidemichealthreport/other-report?girdMemberId=${this.girdMemberId}&name=${this.keyword}&size=20&current=${this.current}`).then((res) => {
if (res.code == 0) {
if (this.current > 1 && this.current > res.data.pages) {
return
}
this.list = this.current > 1 ? [...this.list, ...res.data.records] : res.data.records
}
})
}
}, },
onReachBottom() {
this.current ++
this.getUserList()
}
} }
</script> </script>
@@ -91,7 +118,6 @@ uni-page-body{
.emptyWrap { .emptyWrap {
background: #f5f5f5;
margin: 0; margin: 0;
} }
::v-deep .emptyText{ ::v-deep .emptyText{

View File

@@ -16,7 +16,7 @@
</div> </div>
<div class="empty" v-else> <div class="empty" v-else>
<img src="./img/empty.png" alt=""> <img src="./img/empty.png" alt="">
<p>您还未添加便民通讯录<br/>点击<span>新增按钮</span>试试吧</p> <p>您还未添加通讯录<br/>点击<span>新增按钮</span>试试吧</p>
</div> </div>
<div class="footer-btn" @click="edit('')">新增</div> <div class="footer-btn" @click="edit('')">新增</div>
</div> </div>