BUG 28274
This commit is contained in:
@@ -23,17 +23,19 @@
|
|||||||
<i>{{ item.diffNum || 0 }}</i>
|
<i>{{ item.diffNum || 0 }}</i>
|
||||||
<span>天</span>
|
<span>天</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="item-bottom__right" hover-class="text-hover" v-if="item.today === '0'" @click.stop="$linkTo('./AddReport?id=' + item.id)">
|
<div class="item-bottom__right" hover-class="text-hover" v-if="item.today === '0'"
|
||||||
|
@click.stop="$linkTo('./AddReport?id=' + item.id)">
|
||||||
<span style="color: #FF883C">今日未上报</span>
|
<span style="color: #FF883C">今日未上报</span>
|
||||||
<u-icon name="arrow-right" color="#ddd"/>
|
<u-icon name="arrow-right" color="#ddd"/>
|
||||||
</div>
|
</div>
|
||||||
<div class="item-bottom__right" hover-class="text-hover" v-else @click.stop="$linkTo('./RecordList?id=' + item.id)">
|
<div class="item-bottom__right" hover-class="text-hover" v-else
|
||||||
|
@click.stop="$linkTo('./RecordList?id=' + item.id)">
|
||||||
<span style="color: #999999">今日已上报</span>
|
<span style="color: #999999">今日已上报</span>
|
||||||
<u-icon name="arrow-right" color="#ddd"/>
|
<u-icon name="arrow-right" color="#ddd"/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<AiEmpty v-if="!list.length && !isMore"/>
|
<AiEmpty v-if="list.length==0"/>
|
||||||
</div>
|
</div>
|
||||||
<div class="btn-wrapper">
|
<div class="btn-wrapper">
|
||||||
<div class="btn" @click="toReport" hover-class="text-hover">添加上报人员</div>
|
<div class="btn" @click="toReport" hover-class="text-hover">添加上报人员</div>
|
||||||
@@ -42,184 +44,180 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { mapState } from 'vuex'
|
import {mapState} from 'vuex'
|
||||||
export default {
|
|
||||||
name:"AppHealthReport",
|
|
||||||
appName:"健康上报",
|
|
||||||
data () {
|
|
||||||
return {
|
|
||||||
list: [],
|
|
||||||
pageShow: false,
|
|
||||||
current: 1,
|
|
||||||
total: 0,
|
|
||||||
isMore: false
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
computed: {
|
export default {
|
||||||
...mapState(['user'])
|
name: "AppHealthReport",
|
||||||
},
|
appName: "健康上报",
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
list: [],
|
||||||
|
pageShow: false,
|
||||||
|
current: 1,
|
||||||
|
total: 0,
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
onLoad () {
|
computed: {
|
||||||
this.$loading()
|
...mapState(['user'])
|
||||||
this.$dict.load(['villageActivityStatus']).then(() => {
|
},
|
||||||
|
|
||||||
|
onLoad() {
|
||||||
|
this.$loading()
|
||||||
|
this.$dict.load(['villageActivityStatus']).then(() => {
|
||||||
|
this.getList()
|
||||||
|
})
|
||||||
|
|
||||||
|
uni.$on('update', () => {
|
||||||
|
this.current = 1
|
||||||
|
this.$nextTick(() => {
|
||||||
this.getList()
|
this.getList()
|
||||||
})
|
})
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
uni.$on('update', () => {
|
methods: {
|
||||||
this.current = 1
|
toReport() {
|
||||||
this.isMore = false
|
this.$linkTo('./AddUser')
|
||||||
|
|
||||||
this.$nextTick(() => {
|
|
||||||
this.getList()
|
|
||||||
})
|
|
||||||
})
|
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
getList() {
|
||||||
toReport () {
|
|
||||||
this.$linkTo('./AddUser')
|
|
||||||
},
|
|
||||||
|
|
||||||
getList() {
|
this.$instance.post(`/app/appepidemicreportmember/list?openId=${this.user.openId}`, null, {
|
||||||
if (this.isMore) return
|
params: {
|
||||||
|
current: this.current,
|
||||||
this.$instance.post(`/app/appepidemicreportmember/list?openId=${this.user.openId}`, null, {
|
size: 15
|
||||||
params: {
|
}
|
||||||
current: this.current,
|
}).then(res => {
|
||||||
size: 15
|
if (res.code == 0) {
|
||||||
}
|
this.total = res.data.total
|
||||||
}).then(res => {
|
if (this.current > 1) {
|
||||||
if (res.code == 0) {
|
this.list = [...this.list, ...res.data.records]
|
||||||
this.total = res.data.total
|
|
||||||
if (this.current > 1) {
|
|
||||||
this.list = [...this.list, ...res.data.records]
|
|
||||||
} else {
|
|
||||||
this.list = res.data.records
|
|
||||||
}
|
|
||||||
uni.hideLoading()
|
|
||||||
this.pageShow = true
|
|
||||||
if (res.data.records.length < 15) {
|
|
||||||
this.isMore = true
|
|
||||||
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
|
|
||||||
this.current = this.current + 1
|
|
||||||
} else {
|
} else {
|
||||||
uni.hideLoading()
|
this.list = res.data.records
|
||||||
}
|
}
|
||||||
}).catch(() => {
|
|
||||||
uni.hideLoading()
|
uni.hideLoading()
|
||||||
})
|
this.pageShow = true
|
||||||
}
|
if (res.data.records.length < 15) {
|
||||||
},
|
|
||||||
|
|
||||||
onReachBottom() {
|
return false
|
||||||
this.getList()
|
}
|
||||||
|
|
||||||
|
this.current = this.current + 1
|
||||||
|
} else {
|
||||||
|
uni.hideLoading()
|
||||||
|
}
|
||||||
|
}).catch(() => {
|
||||||
|
uni.hideLoading()
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
onReachBottom() {
|
||||||
|
this.getList()
|
||||||
}
|
}
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" socped>
|
<style lang="scss" socped>
|
||||||
.returnHomeRegister {
|
.returnHomeRegister {
|
||||||
padding: 0 0 150px 0;
|
padding: 0 0 150px 0;
|
||||||
|
|
||||||
.title {
|
.title {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
margin-bottom: 32px;
|
||||||
|
padding: 48px 32px 0 32px;
|
||||||
|
|
||||||
|
& > h2 {
|
||||||
|
font-size: 38px;
|
||||||
|
color: #333;
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
|
||||||
|
.right {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
|
||||||
|
span {
|
||||||
|
color: #666666;
|
||||||
|
font-size: 28px;
|
||||||
|
}
|
||||||
|
|
||||||
|
i {
|
||||||
|
color: #4181FF;
|
||||||
|
font-style: normal;
|
||||||
|
font-size: 28px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.item {
|
||||||
|
margin: 0 32px 24px;
|
||||||
|
border-radius: 16px;
|
||||||
|
background: #fff;
|
||||||
|
|
||||||
|
.item-top {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
margin-bottom: 32px;
|
height: 152px;
|
||||||
padding: 48px 32px 0 32px;
|
padding: 0 32px;
|
||||||
|
border-bottom: 1px solid #DDDDDD;
|
||||||
|
|
||||||
& > h2 {
|
.item-top__left {
|
||||||
font-size: 38px;
|
h2 {
|
||||||
color: #333;
|
line-height: 44px;
|
||||||
font-weight: 600;
|
margin-bottom: 8px;
|
||||||
|
color: #333;
|
||||||
|
font-size: 32px;
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
|
||||||
|
p {
|
||||||
|
color: #999999;
|
||||||
|
font-size: 26px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.right {
|
& > span {
|
||||||
display: flex;
|
font-size: 26px;
|
||||||
align-items: center;
|
color: #FF4466;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.item-bottom {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
height: 104px;
|
||||||
|
padding: 0 32px;
|
||||||
|
|
||||||
|
.item-bottom__right {
|
||||||
span {
|
span {
|
||||||
color: #666666;
|
color: #999999;
|
||||||
|
font-size: 28px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.item-bottom__left {
|
||||||
|
span {
|
||||||
|
color: #999999;
|
||||||
font-size: 28px;
|
font-size: 28px;
|
||||||
}
|
}
|
||||||
|
|
||||||
i {
|
i {
|
||||||
color: #4181FF;
|
color: #4181FF;
|
||||||
font-style: normal;
|
|
||||||
font-size: 28px;
|
font-size: 28px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
.item {
|
& > div {
|
||||||
margin: 0 32px 24px;
|
|
||||||
border-radius: 16px;
|
|
||||||
background: #fff;
|
|
||||||
|
|
||||||
.item-top {
|
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
|
||||||
height: 152px;
|
|
||||||
padding: 0 32px;
|
|
||||||
border-bottom: 1px solid #DDDDDD;
|
|
||||||
|
|
||||||
.item-top__left {
|
|
||||||
h2 {
|
|
||||||
line-height: 44px;
|
|
||||||
margin-bottom: 8px;
|
|
||||||
color: #333;
|
|
||||||
font-size: 32px;
|
|
||||||
font-weight: 600;
|
|
||||||
}
|
|
||||||
|
|
||||||
p {
|
|
||||||
color: #999999;
|
|
||||||
font-size: 26px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
& > span {
|
|
||||||
font-size: 26px;
|
|
||||||
color: #FF4466;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.item-bottom {
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: space-between;
|
|
||||||
height: 104px;
|
|
||||||
padding: 0 32px;
|
|
||||||
|
|
||||||
.item-bottom__right {
|
|
||||||
span {
|
|
||||||
color: #999999;
|
|
||||||
font-size: 28px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.item-bottom__left {
|
|
||||||
span {
|
|
||||||
color: #999999;
|
|
||||||
font-size: 28px;
|
|
||||||
}
|
|
||||||
|
|
||||||
i {
|
|
||||||
color: #4181FF;
|
|
||||||
font-size: 28px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
& > div {
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user