549a2ef0 by 杨威
2 parents de9cfb68 9377c122
......@@ -65,3 +65,25 @@ export function editDdicNode(data) {
data: data,
})
}
/**
* 查询号段管理列表
*/
export function getCodeSection(data) {
return request({
url: '/system/manage/getCodeSection',
method: 'post',
data: data,
})
}
/**
* 查询号段管理列表
*/
export function batchUpdateSectionCode(data) {
return request({
url: '/system/manage/batchUpdateSectionCode',
method: 'post',
data: data,
})
}
\ No newline at end of file
......
......@@ -48,20 +48,20 @@
<el-row>
<el-col :span="6"><div class="grid-left">权利性质</div></el-col>
<el-col :span="18"
><div class="grid-right">{{ result.qlxzdm }}</div></el-col
><div class="grid-right">{{ result.qlxzmc }}</div></el-col
>
</el-row>
<el-row>
<el-col :span="6"><div class="grid-left">批准用途</div></el-col>
<el-col :span="18"
><div class="grid-right">{{ result.pzytdm }}</div></el-col
><div class="grid-right">{{ result.pzytmc }}</div></el-col
>
</el-row>
<el-row>
<el-col :span="6"><div class="grid-left">实际用途</div></el-col>
<el-col :span="18"
><div class="grid-right">{{ result.sjytdm }}</div></el-col
><div class="grid-right">{{ result.sjytmc }}</div></el-col
>
</el-row>
<el-row>
......@@ -293,7 +293,7 @@ export default {
},
fitView: true,
fitViewPadding: 160,
fitViewPadding: 100,
});
graph.data(data);
......@@ -312,6 +312,39 @@ export default {
getQjZdjbxxDetailByIdBylshs(e.item._cfg.id).then((res) => {
if (res.code === 200) {
self.result = res.result;
this.$store.state.qlxzList.forEach((item) => {
if(item.children!=null&&item.children.length!=0){
item.children.forEach((childitem)=>{
if (childitem.dm === res.result.qlxzdm) {
self.result.qlxzmc=childitem.mc;
}
})
}
if (item.dm === res.result.qlxzdm) {
self.result.qlxzmc=item.mc;
}
});
this.$store.state.tdytList.forEach((item) => {
if(item.children!=null&&item.children.length!=0){
item.children.forEach((childitem)=>{
if (childitem.dm === res.result.pzytdm) {
self.result.pzytmc=childitem.mc;
}
if (childitem.dm === res.result.sjytdm) {
self.result.sjytmc=childitem.mc;
}
})
}
if (item.dm === res.result.pzytdm) {
self.result.pzytmc=item.mc;
}
if (item.dm === res.result.sjytdm) {
self.result.sjytmc=item.mc;
}
});
}
});
break;
......@@ -384,6 +417,36 @@ export default {
getQjZdjbxxDetailByIdBylshs(this.bsm).then((res) => {
if (res.code === 200) {
this.result = res.result;
this.$store.state.qlxzList.forEach((item) => {
if(item.children!=null&&item.children.length!=0){
item.children.forEach((childitem)=>{
if (childitem.dm === res.result.qlxzdm) {
this.result.qlxzmc=childitem.mc;
}
})
}
if (item.dm === res.result.qlxzdm) {
this.result.qlxzmc=item.mc;
}
});
this.$store.state.tdytList.forEach((item1) => {
if(item1.children!=null&&item1.children.length!=0){
item1.children.forEach((childitem1)=>{
if (childitem1.dm === res.result.pzytdm) {
this.result.pzytmc=childitem1.mc;
}
if (childitem1.dm === res.result.sjytdm) {
this.result.sjytmc=childitem1.mc;
}
})
}
if (item1.dm === res.result.pzytdm) {
this.result.pzytmc=item1.mc;
}
if (item1.dm === res.result.sjytdm) {
this.result.sjytmc=item1.mc;
}
});
}
});
break;
......
......@@ -32,9 +32,9 @@
</el-select>
</el-form-item>
<br/>
<el-form-item label="所有权类型" class="w100" prop="syqlxbsm">
<el-form-item label="所有权类型" class="w100" prop="syqlx">
<el-select
v-model="ruleForm.syqlxbsm"
v-model="ruleForm.syqlx"
placeholder="所有权类型"
>
<el-option
......@@ -46,16 +46,16 @@
</el-option>
</el-select>
</el-form-item>
<el-form-item label="特征码" class="w100" prop="zdtzmbsm">
<el-form-item label="特征码" class="w100" prop="zdtzm">
<el-select
v-model="ruleForm.tzmbsm"
v-model="ruleForm.tzm"
placeholder="宗地特征码"
>
<el-option
v-for="item in $store.state.zdtzmList"
:key="item.bsm"
:label="item.mc"
:value="item.bsm"
:value="item.dm"
>
</el-option>
</el-select>
......@@ -110,7 +110,7 @@
</template>
<script>
import {getLogData,getErrorLog} from "@api/manage";
import { getCodeSection,batchUpdateSectionCode } from "@api/manage";
import {
getAllList,
getListByXzqbsm,
......@@ -142,8 +142,8 @@
xzqbsm: "",
djqbsm: "",
djzqbsm: "",
syqlxbsm: "G",
tzmbsm: "",
syqlx: "G",
tzm: "",
},
syqlx: [
{
......@@ -167,6 +167,11 @@
methods:{
//数据查询
getData(){
getCodeSection(this.ruleForm).then((res)=>{
if(res.code === 200){
this.tableData = res.result;
}
})
},
//条件重置
reset(){
......@@ -174,8 +179,8 @@
xzqbsm: "",
djqbsm: "",
djzqbsm: "",
syqlxbsm: "G",
tzmbsm: "",
syqlx: "G",
tzm: "",
}
},
//获取行政区划数据
......@@ -253,7 +258,21 @@
},
//确定修改
saveInfo(){
let bsms = [];
for(let i = 0;i<this.multipleSelection.length;i++){
bsms.push(this.multipleSelection[i].bsm);
}
let data = {
bsms:bsms,
newJzdm:this.newJzdm
};
batchUpdateSectionCode(data).then((res)=>{
if(res.code === 200){
this.$message.success("修改完成")
}else {
this.$message.warning(res.message);
}
})
},
//多选
handleSelectionChange(val){
......@@ -264,7 +283,7 @@
this.getXzqList();
this.getData();
this.$nextTick(() => {
this.ruleForm.tzmbsm = this.$store.state.zdtzmList[0].bsm;
this.ruleForm.tzm = this.$store.state.zdtzmList[0].dm;
this.tableHeight = (document.documentElement.clientHeight || document.body.clientHeight) - 382;
})
}
......