健康上报成功页面,特殊人群编辑删除权限判断
This commit is contained in:
@@ -207,11 +207,13 @@ export default {
|
|||||||
health: this.form.health.join(',')
|
health: this.form.health.join(',')
|
||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
this.$u.toast("上报成功");
|
|
||||||
this.getCheckTodayReport()
|
this.getCheckTodayReport()
|
||||||
this.getStatis()
|
this.getStatis()
|
||||||
|
uni.navigateTo({url: './Success?status=1'})
|
||||||
}
|
}
|
||||||
});
|
}).catch(() => {
|
||||||
|
uni.navigateTo({url: './Success?status=0'})
|
||||||
|
})
|
||||||
},
|
},
|
||||||
getCheckTodayReport() {
|
getCheckTodayReport() {
|
||||||
this.$http.post(`/app/appepidemichealthreport/checkTodayReport`).then((res) => {
|
this.$http.post(`/app/appepidemichealthreport/checkTodayReport`).then((res) => {
|
||||||
|
|||||||
68
src/saas/AppHealthUp/Success.vue
Normal file
68
src/saas/AppHealthUp/Success.vue
Normal file
@@ -0,0 +1,68 @@
|
|||||||
|
<template>
|
||||||
|
<div class="success">
|
||||||
|
<img src="./components/img/success.png" alt="" v-if="status">
|
||||||
|
<img src="./components/img/fail.png" alt="" v-else>
|
||||||
|
<p>{{status ? '上报成功!' : '上报失败!'}}</p>
|
||||||
|
<div class="footer">{{status ? '确定' : '我知道了'}}</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import { mapState } from 'vuex'
|
||||||
|
|
||||||
|
export default {
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
status: 1
|
||||||
|
}
|
||||||
|
},
|
||||||
|
onShow() {
|
||||||
|
document.title = '健康上报'
|
||||||
|
},
|
||||||
|
onLoad(option) {
|
||||||
|
this.status = option.status
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
back() {
|
||||||
|
uni.navigateBack()
|
||||||
|
}
|
||||||
|
},
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
uni-page-body{
|
||||||
|
height: 100%;
|
||||||
|
background-color: #fff;
|
||||||
|
}
|
||||||
|
.success {
|
||||||
|
text-align: center;
|
||||||
|
img{
|
||||||
|
width: 192px;
|
||||||
|
height: 192px;
|
||||||
|
margin: 96px 0 16px 0;
|
||||||
|
}
|
||||||
|
p{
|
||||||
|
line-height: 50px;
|
||||||
|
color: #333;
|
||||||
|
font-size: 36px;
|
||||||
|
font-weight: 500;
|
||||||
|
text-align: center;
|
||||||
|
margin-bottom: 72px;
|
||||||
|
}
|
||||||
|
.footer{
|
||||||
|
width: calc(100% - 96px);
|
||||||
|
height: 88px;
|
||||||
|
line-height: 88px;
|
||||||
|
background: #1365DD;
|
||||||
|
box-shadow: inset 0px 1px 0px 0px #EEEEEE;
|
||||||
|
font-size: 32px;
|
||||||
|
font-family: PingFangSC-Medium, PingFang SC;
|
||||||
|
font-weight: 500;
|
||||||
|
color: #FFF;
|
||||||
|
text-align: center;
|
||||||
|
border-radius: 8px;
|
||||||
|
margin-left: 48px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
BIN
src/saas/AppHealthUp/components/img/fail.png
Normal file
BIN
src/saas/AppHealthUp/components/img/fail.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 15 KiB |
BIN
src/saas/AppHealthUp/components/img/success.png
Normal file
BIN
src/saas/AppHealthUp/components/img/success.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 18 KiB |
@@ -51,7 +51,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="user-info">
|
<div class="user-info">
|
||||||
<p class="name">{{e.name}}
|
<p class="name">{{e.name}}
|
||||||
<span class="btn-icon" v-if="userGird != 0">
|
<span class="btn-icon" v-if="userGird != 0 && user.wxUserId == e.createUserId">
|
||||||
<img src="./img/edit-icon.png" alt="" @click="toEdit(e,item.dictValue)">
|
<img src="./img/edit-icon.png" alt="" @click="toEdit(e,item.dictValue)">
|
||||||
<img src="./img/del-icon.png" alt="" @click="del(e,item.dictValue)">
|
<img src="./img/del-icon.png" alt="" @click="del(e,item.dictValue)">
|
||||||
</span>
|
</span>
|
||||||
|
|||||||
Reference in New Issue
Block a user