列表
This commit is contained in:
@@ -130,13 +130,34 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { mapState } from 'vuex'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
type: 0,
|
||||
id: '',
|
||||
data: {},
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
...mapState(['user'])
|
||||
},
|
||||
onLoad(o) {
|
||||
this.id = o.id;
|
||||
this.getDetail()
|
||||
},
|
||||
methods: {
|
||||
getDetail() {
|
||||
this.$http.post('/app/apppreventionreturntopovertyriskperson/queryDetailById',null,{
|
||||
params:{
|
||||
id: this.id
|
||||
}
|
||||
}).then(res => {
|
||||
if(res.code == 0) {
|
||||
this.data = res.data
|
||||
}
|
||||
})
|
||||
},
|
||||
toResult() {
|
||||
uni.navigateTo({url: './result'})
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user