监测对象界面完成
This commit is contained in:
57
packages/jianping/AppHelpedResident/AppHelpedResident.vue
Normal file
57
packages/jianping/AppHelpedResident/AppHelpedResident.vue
Normal file
@@ -0,0 +1,57 @@
|
||||
<template>
|
||||
<section class="AppHelpedResident">
|
||||
<component :is="currentComponent" :instance="instance" :dict="dict" :permissions="permissions"/>
|
||||
</section>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
||||
import HrAdd from "./hrAdd";
|
||||
import HrDetail from "./hrDetail";
|
||||
import HrList from "./hrList";
|
||||
|
||||
export default {
|
||||
name: "AppHelpedResident",
|
||||
components: {HrList, HrDetail, HrAdd},
|
||||
label: "监测对象(防返贫帮扶对象)",
|
||||
props: {
|
||||
instance: Function,
|
||||
dict: Object,
|
||||
permissions: Function
|
||||
},
|
||||
computed: {
|
||||
currentComponent() {
|
||||
return this.$route.hash == "#add" ? HrAdd :
|
||||
this.$route.query.id ? HrDetail : HrList
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.dict.load('residentType', "sex", "faithType", "fileStatus",
|
||||
"legality",
|
||||
"education",
|
||||
"maritalStatus",
|
||||
"politicsStatus",
|
||||
"householdName",
|
||||
"nation",
|
||||
"liveReason",
|
||||
"certificateType",
|
||||
"job",
|
||||
"militaryStatus",
|
||||
"householdRelation",
|
||||
"logoutReason",
|
||||
"nation",
|
||||
"registerStatus",
|
||||
"residentTipType",
|
||||
"liveCategory",
|
||||
"livePeriod",
|
||||
"language",
|
||||
"nationality")
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.AppHelpedResident {
|
||||
height: 100%;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user