27385376 by 杨威
2 parents e2c8f399 a8ea6fad
......@@ -28,6 +28,10 @@ const store = new Vuex.Store({
xzqList: [],
djqList: [],
djzqList: [],
fwxzOptions:[],
cbOptions:[],
cqlyOptions:[],
jgOptions:[],
//创建自然幢时需要用到的临时存储信息
zrzbsm: '',
zjlxList: [],
......
......@@ -258,6 +258,11 @@ export default {
s.qlxzList = s.qlxzList.length == 0 ?await this.getDicData("权利性质") : s.qlxzList;
s.tdytList = s.tdytList.length == 0 ?await this.getDicData("土地用途") : s.tdytList;
s.tddjList = s.tddjList.length == 0 ?await this.getDicData("土地等级") : s.tddjList;
s.fwxzOptions = s.fwxzOptions.length == 0 ?await this.getDicData("房屋性质") : s.fwxzOptions;
s.cbOptions = s.cbOptions.length == 0 ?await this.getDicData("房屋产别") : s.cbOptions;
s.cqlyOptions = s.cqlyOptions.length == 0 ?await this.getDicData("产权来源") : s.cqlyOptions;
s.jgOptions = s.jgOptions.length == 0 ?await this.getDicData("房屋结构") : s.jgOptions;
},
async getDicData(name) {
return await getDdicByMC(name).then((res)=> {
......
......@@ -49,10 +49,10 @@
<td colspan="4" >
<el-select v-model="form.fwxzbsm" placeholder="请选择" >
<el-option
v-for="item in fwxzOptions"
:key="item.value"
:label="item.label"
:value="item.value">
v-for="item in $store.state.fwxzOptions"
:key="item.bsm"
:label="item.mc"
:value="item.bsm">
</el-option>
</el-select>
</td>
......@@ -126,10 +126,10 @@
<td colspan="4" >
<el-select v-model="form.fwcbbsm" placeholder="请选择" >
<el-option
v-for="item in cbOptions"
:key="item.value"
:label="item.label"
:value="item.value">
v-for="item in $store.state.cbOptions"
:key="item.bsm"
:label="item.mc"
:value="item.bsm">
</el-option>
</el-select>
</td>
......@@ -137,10 +137,10 @@
<td colspan="4" >
<el-select v-model="form.fwcqlybsm" placeholder="请选择" >
<el-option
v-for="item in cqlyOptions"
:key="item.value"
:label="item.label"
:value="item.value">
v-for="item in $store.state.cqlyOptions"
:key="item.bsm"
:label="item.mc"
:value="item.bsm">
</el-option>
</el-select>
</td>
......@@ -159,10 +159,10 @@
<td width="30" colspan="4" align="center" >
<el-select v-model="item1.fwytzdbsm" placeholder="请选择" >
<el-option
v-for="item in ytOptions"
:key="item.value"
:label="item.label"
:value="item.value">
v-for="item in $store.state.tdytList"
:key="item.bsm"
:label="item.mc"
:value="item.bsm">
</el-option>
</el-select>
</td>
......@@ -170,10 +170,10 @@
<td width="30" colspan="4" align="center" >
<el-select v-model="item1.fwsjytbsm" placeholder="请选择" >
<el-option
v-for="item in ytOptions"
:key="item.value"
:label="item.label"
:value="item.value">
v-for="item in $store.state.tdytList"
:key="item.bsm"
:label="item.mc"
:value="item.bsm">
</el-option>
</el-select>
</td>
......@@ -190,10 +190,10 @@
<td colspan="9" >
<el-select v-model="item1.fwjgzdbsm" placeholder="请选择" >
<el-option
v-for="item in jgOptions"
:key="item.value"
:label="item.label"
:value="item.value">
v-for="item in $store.state.jgOptions"
:key="item.bsm"
:label="item.mc"
:value="item.bsm">
</el-option>
</el-select>
</td>
......@@ -271,7 +271,6 @@
import Qlxz from "../../../components/formMenu/qlxz";
import {getBdcdyh,saveZrzInfo,getZrzDetailByBsm} from "../../../api/zrz"
import {getQjZdjbxxDetailById} from "../../../api/zd"
import {getDdicByMC} from "../../../api/common"
export default {
name:'zrz',
components:{
......@@ -343,12 +342,6 @@
value: '选项5',
label: '北京烤鸭'
}],
fwxzOptions:[],
cbOptions:[],
cqlyOptions:[],
ytOptions:[],
jgOptions:[],
djOptions:[],
value: '',
ytTitleRowspan:1, //用途的单元格垂直合并数量
fwjgTitleRowspan:1, //房屋结构的单元格垂直合并数量
......@@ -447,74 +440,6 @@
this.form.bdcdyh=res.result;
})
},
getDDic(){
getDdicByMC("房屋性质").then((res)=>{
if(res.result!=null){
for(let i=0;i<res.result.length;i++){
this.fwxzOptions.push({
label:res.result[i].mc,
value:res.result[i].bsm
})
}
}
})
getDdicByMC("房屋产别").then((res)=>{
if(res.result!=null){
for(let i=0;i<res.result.length;i++){
this.cbOptions.push({
label:res.result[i].mc,
value:res.result[i].bsm
})
}
}
})
getDdicByMC("产权来源").then((res)=>{
if(res.result!=null){
for(let i=0;i<res.result.length;i++){
this.cqlyOptions.push({
label:res.result[i].mc,
value:res.result[i].bsm
})
}
}
})
getDdicByMC("土地用途").then((res)=>{
if(res.result!=null){
for(let i=0;i<res.result.length;i++){
this.ytOptions.push({
label:res.result[i].mc,
value:res.result[i].bsm
})
}
}
})
getDdicByMC("土地等级").then((res)=>{
if(res.result!=null){
for(let i=0;i<res.result.length;i++){
this.djOptions.push({
label:res.result[i].mc,
value:res.result[i].bsm
})
}
}
})
getDdicByMC("房屋结构").then((res)=>{
if(res.result!=null){
for(let i=0;i<res.result.length;i++){
this.jgOptions.push({
label:res.result[i].mc,
value:res.result[i].bsm
})
}
}
})
},
getQlrxxData() {
console.log(this.$refs.qlrxxModule.getQlgyfsData()); //权利共有方式数据
......@@ -554,7 +479,6 @@
},
},
created(){
this.getDDic();
//todo 怎么判断进入到该页面是从新建处进来的,还是从右键宗地进来的!如果是从新建进来的就需要把虚拟宗标识码带过来;
this.source = this.$route.query.source;
//source为1代表是从新建中进入道该页面的,source为2代表是从综合查询进入到该页面的
......