帮扶日志

This commit is contained in:
liuye
2022-03-31 11:14:42 +08:00
parent ccdd30d3a4
commit e03aabf61a
3 changed files with 398 additions and 10 deletions

View File

@@ -2,7 +2,7 @@
<div class="detail" v-if="pageShow" :class="[isFrom ? 'active' : '']">
<div class="tab" v-if="!isFrom">
<span @click="changeTab(0)" :class="[currIndex === 0 ? 'active' : '']">基本信息</span>
<span @click="changeTab(1)" :class="[currIndex === 1 ? 'active' : '']">帮扶日志</span>
<span @click="changeTab(1)" :class="[currIndex === 1 ? 'active' : '']">走访日志</span>
</div>
<div class="tab-content">
<div class="tab-content__item" v-show="currIndex === 0">
@@ -165,7 +165,7 @@
<div class="item-wrapper">
<div class="item-header">
<div class="left">
<h2>帮扶措施</h2>
<h2>帮扶情况</h2>
<i :style="{color: isPoorStatus ? '#2EA222' : '#FF4466'}">({{ isPoorStatus ? '已填写' : '未填写' }})</i>
</div>
<span @click="linkTo(`./MonitorPoorStatus?id=${info.id}&girdId=${girdInfo.girdId}&girdName=${girdInfo.girdName}`)" v-if="info.status == 1">编辑</span>
@@ -179,6 +179,14 @@
<span>{{ $dict.getLabel('fpHealthAssistance', info.healthAssistance) || '-' }}</span>
</div>
</div>
<div class="item-wrapper">
<div class="item-header">
<div class="left">
<h2>帮扶措施</h2>
</div>
<span @click="toLogList()">查看</span>
</div>
</div>
</div>
<div class="tab-content__item" v-show="currIndex === 1">
<div class="log-item" v-for="(item, index) in list" :key="index">
@@ -206,7 +214,7 @@
</div>
</div>
<AiFixedBtn v-if="currIndex === 1">
<div class="addBtn iconfont iconfont-iconfangda" @tap="toAddLog"></div>
<div class="addBtn iconfont iconfont-iconfangda" @tap="toAddLog()"></div>
</AiFixedBtn>
<!-- 0待纳入1监测中2待解除3已解除4已驳回 -->
<div v-if="checkType == 1 && currIndex != 1">
@@ -342,7 +350,7 @@ export default {
success: res => {
if (res.tapIndex === 0) {
uni.navigateTo({
url: `./MonitorAddLog?pid=${this.info.id}&id=${id}`
url: `./MonitorAddLog?pid=${this.info.id}&id=${id}&type=0`
})
} else if (res.tapIndex === 1) {
this.$confirm('确定删除该数据?').then(() => {
@@ -371,7 +379,13 @@ export default {
toAddLog() {
uni.navigateTo({
url: './MonitorAddLog?pid=' + this.info.id
url: `./MonitorAddLog?pid=${this.info.id}&type=0`
})
},
toLogList() {
uni.navigateTo({
url: `./LogList?id=${this.info.id}`
})
},
@@ -402,7 +416,7 @@ export default {
this.pageShow = true
}
})
this.$http.post(`/app/apppreventionreturntopovertylog/list?pid=${this.id}&size=1000&current=1`).then(res => {
this.$http.post(`/app/apppreventionreturntopovertylog/list?pid=${this.id}&size=1000&current=1&type=0`).then(res => {
if (res.code === 0) {
this.list = res.data.records || []
}