22a64998 by zhaoqian

权利人,范围属性变更目录树问题

1 parent a6f55c3c
......@@ -44,3 +44,18 @@ export function getQlrInfoByGlbsm(data) {
},
})
}
/**
* 更新权利人共有公用情况
*/
export function updateGyGyQlrQk(glbsm,type,gyqkbsm) {
return request({
url: '/system/Qlr/updateGyGyQlrQk',
method: 'get',
params: {
glbsm:glbsm,
type:type,
gyqkbsm:gyqkbsm,
},
})
}
\ No newline at end of file
......
......@@ -7,8 +7,8 @@
<td colspan="8">
<el-row>
<el-col :span="14" class="fl" style="line-height:32px">
<el-radio-group v-model="gyfs">
<el-radio :label="item.bsm" :disabled="+qszt!==0 || item.disabled" :key="item.bsm" v-for="item in gyfsList">{{item.mc}}</el-radio>
<el-radio-group v-model="gyfs" @change="updateGyfs">
<el-radio :label="item.bsm" :disabled="+qszt!==0" :key="item.bsm" v-for="item in gyfsList">{{item.mc}}</el-radio>
</el-radio-group>
</el-col>
<el-col :span="10" class="fr">
......@@ -268,7 +268,7 @@
<tr>
<td colspan="4" class="tdright">共有方式</td>
<td colspan="6">
<el-select class="formSelect" v-model="formData.gyfsbsm">
<el-select class="formSelect" v-model="formData.gyfsbsm" disabled>
<el-option
v-for="item in $store.state.gyfsList"
:key="item.bsm"
......@@ -313,7 +313,7 @@
<script>
import {getDdicByMC} from "@api/common";
import {insertQlrDlrFr,getQlrInfoByGlbsm,updateQlrDlrFr,deleteQlrDlrFrByQlrbsm} from "@api/qlr";
import {insertQlrDlrFr,getQlrInfoByGlbsm,updateQlrDlrFr,deleteQlrDlrFrByQlrbsm,updateGyGyQlrQk} from "@api/qlr";
export default {
props: {
......@@ -333,6 +333,10 @@
type: String,
default: "",
},
type: {
type: String,
default: "",
},
},
data() {
return {
......@@ -540,6 +544,21 @@
});
}
},
updateGyfs(val){
console.log(val,this.type)
updateGyGyQlrQk(this.bsm,this.type,val).then((res)=>{
if(res.code === 200){
console.log("修改完成!")
}
})
},
//父组件改变子组件的共有方式
changeGyfs(val){
this.gyfs = val;
},
//行双击事件
rowDbclick(row){
this.dialogVisible = true;
......@@ -625,9 +644,9 @@
if(res.result!=null){
this.tableData=res.result;
if(this.tableData.length===0){
this.gyfs=this.$store.state.gyfsList[0].bsm;
// this.gyfs=this.$store.state.gyfsList[0].bsm;
}else {
this.gyfs=res.result[0].gyfsbsm;
// this.gyfs=res.result[0].gyfsbsm;
}
}
}
......
......@@ -506,17 +506,17 @@
switch (this.queryType) {
case "zrz":
this.$store.state.zrzbsm = res.result;
this.getTreeByBsm(res.result,this.queryType,'2');
this.getTreeByBsm(res.result,this.queryType,'0,1,2');
path = "/zrz";
break;
case "zd":
this.$store.state.zdbsm = res.result;
this.getRightTree(res.result,'2');
this.getRightTree(res.result,'0,1,2');
path = "/zd";
break;
case "dz":
this.$store.state.dzbsm = res.result;
this.getTreeByBsm(res.result,this.queryType,'2');
this.getTreeByBsm(res.result,this.queryType,'0,1,2');
path = "/dz";
break;
default:
......
<template>
<div class="dz content-form" ref="mainBox">
<el-form ref="form" :model="form" label-width="160px">
<Qlr ref="qlrxxModule" :bsm="bsm"></Qlr>
<Qlr ref="qlrxxModule" :bsm="bsm" :type="lx"></Qlr>
<table border="1" width="100%" cellspacing="0" cellpadding="0" class="dzTable">
<tbody>
<tr height="30">
......@@ -230,6 +230,7 @@
label: 'mc'
},
lx:'dz',
bsm:'', //此页面的多幢标识码
form:{
dzbsm:'', //多幢标识码
......@@ -400,6 +401,7 @@
getDzDetailByBsm(data).then((res)=>{
if(res.code===200) {
this.form = res.result;
this.$refs.qlrxxModule.changeGyfs(res.result.gygyqlrqk);
if(this.form.bblx === 0 && this.form.qszt === '0' && this.form.bhqkbsm == null){
this.disabled = false
}else {
......
<template>
<div class="gzw content-form">
<el-form ref="form" :model="form" label-width="160px">
<Qlr ref="qlrxxModule" :bsm="bsm"></Qlr>
<Qlr ref="qlrxxModule" :bsm="bsm" :type="lx"></Qlr>
<table border="1" width="100%" cellspacing="0" cellpadding="0" class="gzwTable">
<tr height="30">
<th colspan="12"><font size="4"></font>构筑物基本信息</th>
......@@ -114,6 +114,7 @@
label: 'mc'
},
lx:'gzw',
bsm:'',
form:{
zdzhdm:'',
......@@ -260,6 +261,7 @@
this.form.qszt = res.result.qszt;
this.zdbsm = res.result.zdzhbsm;
this.getZddm(this.zdbsm);
this.$refs.qlrxxModule.changeGyfs(res.result.gygyqlrqk);
}
})
},
......
<template>
<div class="main" ref="mainBox">
<div class="formMenu">
<Qlr ref="qlrxxModule" :bsm="curZdbsm" :qszt="formData.qszt"></Qlr>
<Qlr ref="qlrxxModule" :bsm="curZdbsm" :qszt="formData.qszt" :type="lx"></Qlr>
<table class="zdjbxxTable" cellspacing="0" cellpadding="0" border="1">
<tr>
<th colspan="12">宗地基本信息</th>
......@@ -422,6 +422,7 @@
formData: {},
dpdm: '', //宗地底盘代码
curZdbsm: '',
lx:'zd',
mainBoxWidth: 0,
geoAttributes: {
OBJECTID: "",
......@@ -499,6 +500,7 @@
.then((res) => {
if (res.result) {
this.formData = res.result;
this.$refs.qlrxxModule.changeGyfs(res.result.gygyqlrqk);
if(this.formData.bblx === 0 && this.formData.qszt === '0' && this.formData.bhqkbsm == null){
console.log("12345")
this.disabled = false
......
<template>
<div class="h content-form" ref="mainBox" :class="$route.path == '/h' ? 'hpage':''" :style="{'height': $route.path == '/h' ? '100%' : formHeight+'px'}">
<el-form ref="form" :model="form" label-width="160px" class="form">
<Qlr ref="qlrxxModule" :bsm='bsm' :qszt="form.qszt"></Qlr>
<Qlr ref="qlrxxModule" :bsm='bsm' :qszt="form.qszt" :type="lx"></Qlr>
<table border="1" width="100%" cellspacing="0" cellpadding="0" class="hTable">
<tbody>
<tr height="30">
......@@ -441,6 +441,7 @@
label: 'mc'
},
lx:'h',
hbsm:'',
form:{
bsm:'',//户标识码
......@@ -624,6 +625,7 @@
if(res.code===200){
this.form = res.result;
this.hbsm = res.result.bsm;
this.$refs.qlrxxModule.changeGyfs(res.result.gygyqlrqk);
if(this.form.bblx === 0 && this.form.qszt === '0' && this.form.bhqkbsm == null){
this.disableFlag = false
}else {
......
<template>
<div class="main" ref="mainBox">
<div class="formMenu">
<Qlr ref="qlrxxModule" :bsm="bsm" :qszt="form.qszt"></Qlr>
<Qlr ref="qlrxxModule" :bsm="bsm" :qszt="form.qszt" :type="lx"></Qlr>
<table border="1" width="100%" cellspacing="0" cellpadding="0" class="zrzTable">
<tr>
<th colspan="12">自然幢基本信息</th>
......@@ -660,6 +660,7 @@
getZrzDetailByBsm(data).then((res)=>{
if(res.code===200){
this.form=res.result;
this.$refs.qlrxxModule.changeGyfs(res.result.gygyqlrqk);
// //如果没有宗地代码,自动生成
// if(res.result.zddm == null){
// this.generatorCode()
......