迁移防返贫
This commit is contained in:
@@ -1,15 +1,15 @@
|
||||
<template>
|
||||
<div class="info">
|
||||
<div class="info-top">
|
||||
<div class="info-top__item" @click="linkTo('/pages/Monitor/Monitor')">
|
||||
<div class="info-top__item" @click="linkTo('./Monitor')">
|
||||
<image src="/static/images/wdbf.png"/>
|
||||
<h2>监测对象</h2>
|
||||
</div>
|
||||
<div class="info-top__item" @click="linkTo('/pages/povertyMonitor/povertyMonitor')">
|
||||
<div class="info-top__item" @click="linkTo('./povertyMonitor')">
|
||||
<image src="/static/images/yjjk.png"/>
|
||||
<h2>预警监控</h2>
|
||||
</div>
|
||||
<div class="info-top__item" @click="linkTo('/pages/PovertyAlleviation/News')">
|
||||
<div class="info-top__item" @click="linkTo('./News')">
|
||||
<image src="/static/images/news.png"/>
|
||||
<h2>政策动态</h2>
|
||||
</div>
|
||||
@@ -18,7 +18,7 @@
|
||||
<h2>最新动态</h2>
|
||||
<div class="news-list">
|
||||
<div class="news-item" v-for="(item, index) in list" :key="index"
|
||||
@click="linkTo(`/pages/PovertyAlleviation/NewsDetail?id=${item.id}`)">
|
||||
@click="linkTo(`./NewsDetail?id=${item.id}`)">
|
||||
<div class="left">
|
||||
<h2>{{ item.title }}</h2>
|
||||
<div class="item-bottom">
|
||||
@@ -35,12 +35,13 @@
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: "AppPovertyAlleviation",
|
||||
appName: "防返贫",
|
||||
data() {
|
||||
return {
|
||||
list: []
|
||||
}
|
||||
},
|
||||
|
||||
onLoad() {
|
||||
this.$dict.load(['newsCenterPolicyType']).then(() => {
|
||||
this.getList()
|
||||
@@ -49,11 +50,8 @@ export default {
|
||||
|
||||
methods: {
|
||||
linkTo(url) {
|
||||
uni.navigateTo({
|
||||
url
|
||||
})
|
||||
uni.navigateTo({url})
|
||||
},
|
||||
|
||||
getList() {
|
||||
this.$http.post(`/app/appnewscenterinfo/listForWx`, null, {
|
||||
params: {
|
||||
@@ -12,8 +12,8 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import Statistics from './components/Statistics.vue'
|
||||
import List from './components/List.vue'
|
||||
import Statistics from './Monitor/Statistics.vue'
|
||||
import List from './Monitor/List.vue'
|
||||
|
||||
export default {
|
||||
data() {
|
||||
@@ -36,19 +36,15 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<ai-empty v-if="!list.length && isMore" style="padding-bottom: 20px;"></ai-empty>
|
||||
<AiEmpty v-if="!list.length && isMore" style="padding-bottom: 20px;"></AiEmpty>
|
||||
</div>
|
||||
<ai-fixed-btn>
|
||||
<AiFixedBtn>
|
||||
<div class="addBtn iconfont iconfont-iconfangda" @tap="toAdd"></div>
|
||||
</ai-fixed-btn>
|
||||
</AiFixedBtn>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import AiArea from '@/components/AiArea'
|
||||
import AiFixedBtn from '@/components/AiFixedBtn'
|
||||
import AiEmpty from '@/components/AiEmpty/AiEmpty'
|
||||
import AiAreaPicker from '@/components/AiAreaPicker'
|
||||
|
||||
export default {
|
||||
name: 'list',
|
||||
@@ -66,13 +62,6 @@ export default {
|
||||
}
|
||||
},
|
||||
|
||||
components: {
|
||||
AiArea,
|
||||
AiEmpty,
|
||||
AiAreaPicker,
|
||||
AiFixedBtn
|
||||
},
|
||||
|
||||
created() {
|
||||
uni.showLoading()
|
||||
this.areaId = this.$store.state.user.areaId
|
||||
@@ -92,7 +81,7 @@ export default {
|
||||
methods: {
|
||||
toDetail(id) {
|
||||
uni.navigateTo({
|
||||
url: '/pages/Monitor/Detail?id=' + id
|
||||
url: './MonitorDetail?id=' + id
|
||||
})
|
||||
},
|
||||
|
||||
@@ -106,7 +95,7 @@ export default {
|
||||
|
||||
toAdd() {
|
||||
uni.navigateTo({
|
||||
url: '/pages/Monitor/Add'
|
||||
url: './MonitorAdd'
|
||||
})
|
||||
},
|
||||
|
||||
@@ -235,8 +224,8 @@ export default {
|
||||
span {
|
||||
position: relative;
|
||||
flex: 1;
|
||||
height: 96 rpx;
|
||||
line-height: 96 rpx;
|
||||
height: 96px;
|
||||
line-height: 96px;
|
||||
color: #000000;
|
||||
text-align: center;
|
||||
font-size: 32px;
|
||||
@@ -56,8 +56,6 @@
|
||||
|
||||
<script>
|
||||
import echarts from 'echarts'
|
||||
import AiArea from '@/components/AiArea'
|
||||
import AiAreaPicker from '@/components/AiAreaPicker'
|
||||
|
||||
export default {
|
||||
name: 'statistics',
|
||||
@@ -76,10 +74,6 @@ export default {
|
||||
}
|
||||
},
|
||||
|
||||
components: {
|
||||
AiArea,
|
||||
AiAreaPicker
|
||||
},
|
||||
|
||||
created() {
|
||||
this.areaId = this.$store.state.user.areaId
|
||||
@@ -107,10 +107,6 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import AiUploader from '@/components/AiUploader'
|
||||
import AiSelect from '@/components/AiSelect'
|
||||
import AiArea from '@/components/AiArea'
|
||||
import AiAreaPicker from '@/components/AiAreaPicker'
|
||||
|
||||
export default {
|
||||
data() {
|
||||
@@ -132,13 +128,6 @@ export default {
|
||||
}
|
||||
},
|
||||
|
||||
components: {
|
||||
AiArea,
|
||||
AiSelect,
|
||||
AiUploader,
|
||||
AiAreaPicker
|
||||
},
|
||||
|
||||
created() {
|
||||
this.$areaId = this.$store.state.user.areaId
|
||||
this.areaName = this.$store.state.user.areaFullName
|
||||
@@ -15,7 +15,7 @@
|
||||
<p>{{ info.phone }}</p>
|
||||
</div>
|
||||
</div>
|
||||
<span @click="linkTo('/pages/Monitor/Add?id=' + info.id)">编辑</span>
|
||||
<span @click="linkTo('./MonitorAdd?id=' + info.id)">编辑</span>
|
||||
</div>
|
||||
<div class="item-info">
|
||||
<label>行政区划</label>
|
||||
@@ -59,7 +59,7 @@
|
||||
info.familyList.length ? '已填写' : '未填写'
|
||||
}})</i>
|
||||
</div>
|
||||
<span @click="linkTo('/pages/Monitor/FamilyMember?id=' + info.id)">编辑</span>
|
||||
<span @click="linkTo('./MonitorFamilyMember?id=' + info.id)">编辑</span>
|
||||
</div>
|
||||
<div class="item-info">
|
||||
<label>未参加医疗参保</label>
|
||||
@@ -78,7 +78,7 @@
|
||||
isFamilySituation ? '已填写' : '未填写'
|
||||
}})</i>
|
||||
</div>
|
||||
<span @click="linkTo('/pages/Monitor/FamilySituation?id=' + info.id)">编辑</span>
|
||||
<span @click="linkTo('./MonitorFamilySituation?id=' + info.id)">编辑</span>
|
||||
</div>
|
||||
<div class="item-info">
|
||||
<label>是否危房</label>
|
||||
@@ -95,7 +95,7 @@
|
||||
<h2>收支情况</h2>
|
||||
<i :style="{color: isIncome ? '#2EA222' : '#FF4466'}">({{ isIncome ? '已填写' : '未填写' }})</i>
|
||||
</div>
|
||||
<span @click="linkTo('/pages/Monitor/Income?id=' + info.id)">编辑</span>
|
||||
<span @click="linkTo('./MonitorIncome?id=' + info.id)">编辑</span>
|
||||
</div>
|
||||
<div class="item-info">
|
||||
<label>家庭纯收入</label>
|
||||
@@ -112,7 +112,7 @@
|
||||
<h2>风险解除</h2>
|
||||
<i :style="{color: isPoorStatus ? '#2EA222' : '#FF4466'}">({{ isPoorStatus ? '已填写' : '未填写' }})</i>
|
||||
</div>
|
||||
<span @click="linkTo('/pages/Monitor/PoorStatus?id=' + info.id)">编辑</span>
|
||||
<span @click="linkTo('./MonitorPoorStatus?id=' + info.id)">编辑</span>
|
||||
</div>
|
||||
<div class="item-info">
|
||||
<label>是否消除风险</label>
|
||||
@@ -142,18 +142,16 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<ai-empty v-if="!list.length" style="padding-bottom: 20px;"></ai-empty>
|
||||
<AiEmpty v-if="!list.length" style="padding-bottom: 20px;"></AiEmpty>
|
||||
</div>
|
||||
</div>
|
||||
<ai-fixed-btn v-if="currIndex === 1">
|
||||
<AiFixedBtn v-if="currIndex === 1">
|
||||
<div class="addBtn iconfont iconfont-iconfangda" @tap="toAddLog"></div>
|
||||
</ai-fixed-btn>
|
||||
</AiFixedBtn>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import AiFixedBtn from '@/components/AiFixedBtn'
|
||||
import AiEmpty from '@/components/AiEmpty/AiEmpty'
|
||||
|
||||
export default {
|
||||
name: 'detail',
|
||||
@@ -168,10 +166,6 @@ export default {
|
||||
}
|
||||
},
|
||||
|
||||
components: {
|
||||
AiEmpty,
|
||||
AiFixedBtn
|
||||
},
|
||||
|
||||
computed: {
|
||||
isIncome() {
|
||||
@@ -225,9 +219,7 @@ export default {
|
||||
|
||||
methods: {
|
||||
linkTo(url) {
|
||||
uni.navigateTo({
|
||||
url
|
||||
})
|
||||
uni.navigateTo({url})
|
||||
},
|
||||
|
||||
call(phone) {
|
||||
@@ -244,7 +236,7 @@ export default {
|
||||
success: res => {
|
||||
if (res.tapIndex === 0) {
|
||||
uni.navigateTo({
|
||||
url: `/pages/Monitor/AddLog?pid=${this.info.id}&id=${id}`
|
||||
url: `./MonitorAddLog?pid=${this.info.id}&id=${id}`
|
||||
})
|
||||
} else if (res.tapIndex === 1) {
|
||||
this.$confirm('确定删除该数据?').then(() => {
|
||||
@@ -273,7 +265,7 @@ export default {
|
||||
|
||||
toAddLog() {
|
||||
uni.navigateTo({
|
||||
url: '/pages/Monitor/AddLog?pid=' + this.info.id
|
||||
url: './MonitorAddLog?pid=' + this.info.id
|
||||
})
|
||||
},
|
||||
|
||||
@@ -362,8 +354,8 @@ export default {
|
||||
span {
|
||||
position: relative;
|
||||
flex: 1;
|
||||
height: 96 rpx;
|
||||
line-height: 96 rpx;
|
||||
height: 96px;
|
||||
line-height: 96px;
|
||||
color: #000000;
|
||||
text-align: center;
|
||||
font-size: 32px;
|
||||
@@ -76,9 +76,9 @@
|
||||
<span @click="remove(index)">删除</span>
|
||||
</div>
|
||||
</div>
|
||||
<ai-fixed-btn>
|
||||
<AiFixedBtn>
|
||||
<div class="addBtn iconfont iconfont-iconfangda" @tap="toAdd"></div>
|
||||
</ai-fixed-btn>
|
||||
</AiFixedBtn>
|
||||
<div class="no-more" v-if="!list.length">
|
||||
<image src="/static/images/empty.png"/>
|
||||
<div>
|
||||
@@ -125,14 +125,14 @@ export default {
|
||||
methods: {
|
||||
toAdd() {
|
||||
uni.navigateTo({
|
||||
url: '/pages/Monitor/AddFamilyMember?id=' + this.id
|
||||
url: './MonitorAddFamilyMember?id=' + this.id
|
||||
})
|
||||
},
|
||||
|
||||
toEdit(index) {
|
||||
this.$confirm('确定编辑该数据?').then(() => {
|
||||
uni.navigateTo({
|
||||
url: `/pages/Monitor/AddFamilyMember?id=${this.id}&index=${index}`
|
||||
url: `./MonitorAddFamilyMember?id=${this.id}&index=${index}`
|
||||
})
|
||||
}).catch(() => {
|
||||
})
|
||||
@@ -11,7 +11,7 @@
|
||||
</div>
|
||||
<div class="list">
|
||||
<div class="item" v-for="(item, index) in list" :key="index"
|
||||
@click="linkTo('/pages/PovertyAlleviation/NewsDetail?id=' + item.id)">
|
||||
@click="linkTo('./NewsDetail?id=' + item.id)">
|
||||
<div class="left">
|
||||
<h2>{{ item.title }}</h2>
|
||||
<div class="item-bottom">
|
||||
@@ -21,13 +21,12 @@
|
||||
</div>
|
||||
<image v-if="item.coverFile" :src="item.coverFile ? item.coverFile.url : ''"/>
|
||||
</div>
|
||||
<ai-empty v-if="!list.length && isMore" style="padding-bottom: 20px;"></ai-empty>
|
||||
<AiEmpty v-if="!list.length && isMore" style="padding-bottom: 20px;"></AiEmpty>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import AiEmpty from '@/components/AiEmpty/AiEmpty'
|
||||
|
||||
export default {
|
||||
data() {
|
||||
@@ -42,9 +41,6 @@ export default {
|
||||
}
|
||||
},
|
||||
|
||||
components: {
|
||||
AiEmpty
|
||||
},
|
||||
|
||||
onLoad() {
|
||||
uni.showLoading()
|
||||
@@ -70,9 +66,7 @@ export default {
|
||||
},
|
||||
|
||||
linkTo(url) {
|
||||
uni.navigateTo({
|
||||
url
|
||||
})
|
||||
uni.navigateTo({url})
|
||||
},
|
||||
|
||||
getList() {
|
||||
@@ -200,8 +194,8 @@ export default {
|
||||
span {
|
||||
position: relative;
|
||||
flex: 1;
|
||||
height: 96 rpx;
|
||||
line-height: 96 rpx;
|
||||
height: 96px;
|
||||
line-height: 96px;
|
||||
color: #999999;
|
||||
text-align: center;
|
||||
font-size: 28px;
|
||||
@@ -12,8 +12,8 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import Statistics from './components/Statistics.vue'
|
||||
import List from './components/List.vue'
|
||||
import Statistics from './povertyMonitor/Statistics.vue'
|
||||
import List from './povertyMonitor/List.vue'
|
||||
|
||||
export default {
|
||||
data() {
|
||||
@@ -15,13 +15,12 @@
|
||||
<p>{{ item.addressArea }} {{ item.address }}</p>
|
||||
<div class="item-bottom">家庭收入</div>
|
||||
</div>
|
||||
<ai-empty v-if="!list.length && isMore" style="padding-bottom: 20px;"></ai-empty>
|
||||
<AiEmpty v-if="!list.length && isMore" style="padding-bottom: 20px;"></AiEmpty>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import AiEmpty from '@/components/AiEmpty/AiEmpty'
|
||||
|
||||
export default {
|
||||
name: 'list',
|
||||
@@ -35,10 +34,6 @@ export default {
|
||||
}
|
||||
},
|
||||
|
||||
components: {
|
||||
AiEmpty
|
||||
},
|
||||
|
||||
created() {
|
||||
uni.showLoading()
|
||||
this.$nextTick(() => {
|
||||
@@ -56,7 +51,7 @@ export default {
|
||||
|
||||
toDetail(id) {
|
||||
uni.navigateTo({
|
||||
url: `/pages/Monitor/Detail?id=${id}&isFrom=1`
|
||||
url: `./MonitorDetail?id=${id}&isFrom=1`
|
||||
})
|
||||
},
|
||||
|
||||
@@ -130,8 +125,8 @@ export default {
|
||||
span {
|
||||
position: relative;
|
||||
flex: 1;
|
||||
height: 96 rpx;
|
||||
line-height: 96 rpx;
|
||||
height: 96px;
|
||||
line-height: 96px;
|
||||
color: #000000;
|
||||
text-align: center;
|
||||
font-size: 32px;
|
||||
@@ -194,14 +189,14 @@ export default {
|
||||
}
|
||||
|
||||
&.status1 {
|
||||
color: 已解除风险;
|
||||
color: #3975C6;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
p {
|
||||
line-height: 1.4;
|
||||
margin-bottom: 32 rpx;
|
||||
margin-bottom: 32px;
|
||||
padding: 0 32px;
|
||||
color: #999999;
|
||||
font-size: 26px;
|
||||
@@ -89,7 +89,7 @@ export default {
|
||||
methods: {
|
||||
linkTo() {
|
||||
uni.navigateTo({
|
||||
url: '/pages/povertyMonitor/Form'
|
||||
url: './povertyMonitorForm'
|
||||
})
|
||||
},
|
||||
|
||||
@@ -110,7 +110,7 @@ export default {
|
||||
|
||||
<style lang="scss">
|
||||
.detail {
|
||||
padding-bottom: 122 rpx;
|
||||
padding-bottom: 122px;
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
@@ -224,7 +224,7 @@ export default {
|
||||
line-height: 1.3;
|
||||
text-align: right;
|
||||
color: #999999;
|
||||
font-size: 30 rpx;
|
||||
font-size: 30px;
|
||||
}
|
||||
|
||||
span {
|
||||
Reference in New Issue
Block a user