健康上报

This commit is contained in:
liuye
2022-02-09 11:32:49 +08:00
parent 60076e88d0
commit efb3748ab9

View File

@@ -14,7 +14,7 @@
<h2>姓名</h2> <h2>姓名</h2>
</div> </div>
<div class="form-item__right"> <div class="form-item__right">
<input placeholder="请输入" v-model="form.name" :maxlength="20" /> <AiOpenData v-if="user.wxUserId" type="userName" :openid="user.wxUserId" />
</div> </div>
</div> </div>
</div> </div>
@@ -79,7 +79,7 @@
<div class="form-item__title"> <div class="form-item__title">
<span class="label">姓名</span> <span class="label">姓名</span>
</div> </div>
<div class="form-item__right">张三</div> <div class="form-item__right"><AiOpenData v-if="user.wxUserId" type="userName" :openid="user.wxUserId" /></div>
</div> </div>
</div> </div>
</div> </div>
@@ -145,7 +145,7 @@ export default {
data() { data() {
return { return {
tabList: [{ name: '健康上报'},{ name: '上报统计'}], tabList: [{ name: '健康上报'},{ name: '上报统计'}],
currentTabs: 1, currentTabs: 0,
form: {}, form: {},
isUpload: false, isUpload: false,
weekList: ['一', '二', '三', '四', '五', '六', '日'] weekList: ['一', '二', '三', '四', '五', '六', '日']
@@ -155,12 +155,19 @@ export default {
...mapState(['user']), ...mapState(['user']),
}, },
onLoad() { onLoad() {
this.getStatis()
}, },
onShow() { onShow() {
document.title = '健康上报' document.title = '健康上报'
}, },
methods: { methods: {
getStatis() {
this.$http.post(`/app/appepidemichealthreport/statistic`).then((res) => {
if (res.code == 0) {
// this.dataInfo = res.data
}
})
},
change(index) { change(index) {
this.currentTabs = index this.currentTabs = index
}, },