99fb18d1 by weimo934

feat(hbj):添加户选项卡

1 parent 5264cb68
......@@ -70,6 +70,11 @@ const constantRoutes = [
name: "宗地",
code: "1-5",
component: () => import("@/views/zd/index"),
},{
path: "/h",
name: "户",
code: "1-6",
component: () => import("@/views/systemH/index"),
},
{
path: "/viewMap",
......
<template>
<div class="content_box">
<el-tabs v-model="activeName" class="tabs" @tab-click="handleClick">
<el-tab-pane label="多幢基本信息" name="dzxx"><dzxx></dzxx></el-tab-pane>
<el-tab-pane label="多幢基本信息" name="dzxx"><dzxx v-if="dzJbxxVisble"></dzxx></el-tab-pane>
<el-tab-pane label="附件材料" name="fjcl"><fjcl v-if="fjclVisible"></fjcl></el-tab-pane>
</el-tabs>
</div>
</template>
<script>
import dzxx from "./dzxx";
import fjcl from "./../zd/fjcl/fjcl"
export default {
name: "",
components: {
dzxx
dzxx,fjcl
},
props: {},
data() {
return {
activeName: "dzxx",
dzJbxxVisble:false,
fjclVisible:false
};
},
methods: {
handleClick(tab, event) {
console.log(tab, event);
switch (tab.name) {
case 'dzxx':
this.dzJbxxVisble = true;
break
case 'fjcl':
this.fjclVisible = true;
break;
default:
break;
}
},
},
created() {},
......
......@@ -127,7 +127,7 @@
this.$store.state.zdbsm = row.glbsm
break;
case "h":
path = "h";
path = "/h";
this.$store.state.hbsm = row.glbsm
type = "2";
default:
......
......@@ -170,6 +170,8 @@
console.log(this.$refs.hbj);
this.$refs.hbj.getHInfo(this.hbsm);
});
path="/h";
this.$store.state.hbsm=row.glbsm
break;
default:
break;
......
<template>
<div class="content_box">
<el-tabs v-model="activeName" class="tabs" @tab-click="handleClick">
<el-tab-pane label="户基本信息表" name="hjbxx">
<hbj v-if="hbjVisible"></hbj>
</el-tab-pane>
<el-tab-pane label="登记簿" name="djb">
<djb v-if="djbVisible"></djb>
</el-tab-pane>
<el-tab-pane label="附件材料" name="fjcl">
<fjcl v-if="fjclVisible"></fjcl>
</el-tab-pane>
</el-tabs>
</div>
</template>
<script>
import hbj from "./../zrz/lpb/bjlp/hbj/index"
import djb from "./../zd/djb/index";
import fjcl from "./../zd/fjcl/fjcl"
export default {
name: "index",
components: {
hbj, djb, fjcl
},
data() {
return {
activeName: "hjbxx",
djbVisible: false,
fjclVisible: false,
hbjVisible: false
}
},
mounted() {
},
methods: {
handleClick(tab, event) {
// console.log(tab, event);
switch (tab.name) {
case 'hjbxx':
this.hbjVisible = true;
break
case 'djb':
this.djbVisible = true;
break;
case 'fjcl':
this.fjclVisible = true;
break;
default:
break;
}
},
},
watch: {}
}
</script>
<style scoped>
</style>
......@@ -106,6 +106,7 @@
window.open(`/api/file/download?url=`+url);
},
getFileList() {
console.log(this.$route.name,'NAME')
switch (this.$route.name) {
case "宗地":
this.filesData.dylx = 'zd';
......@@ -115,6 +116,14 @@
this.filesData.dylx = 'zrz';
this.filesData.glbsm = this.$store.state.zrzbsm
break
case "多幢":
this.filesData.dylx = 'dz';
this.filesData.glbsm = this.$store.state.dzbsm
break
case "户":
this.filesData.dylx = 'h';
this.filesData.glbsm = this.$store.state.hbsm
break;
default:
break
}
......
......@@ -518,6 +518,11 @@
fwjgTitleRowspan:1, //房屋结构的单元格垂直合并数量
}
},
created(){
let bsm=this.$store.state.hbsm
console.log(bsm,'户BSM')
this.getHInfo(bsm);
},
methods: {
addYtInfo(){
this.form.fwytList.push({
......@@ -813,7 +818,7 @@
watch: {
scyclx:{
handler(n){
this.$nextTick(()=>{
this.$nextTick(()=>{
this.form.scyclx = this.scyclx;
})
}
......@@ -823,7 +828,7 @@
</script>
<style rel="stylesheet/less" lang="less" scoped>
.h {
height: 600px;
height: 100%;
width: 100%;
margin-top: 10px;
overflow-y: scroll;
......@@ -867,11 +872,11 @@
.hTable{
margin-top: 10px;
}
/deep/.el-select-tree{
width: 100%;
.el-input__inner{
height: 30px !important;
}
}
</style>
\ No newline at end of file
</style>
......