c10927e3 by zhaoqian

权利人组件的接口联调

1 parent a084c209
......@@ -24,13 +24,11 @@ export function updateQlrDlrFr(data) {
/**
* 删除权利人法人代理人
*/
export function deleteQlrDlrFrByQlrbsm(bsm) {
export function deleteQlrDlrFrByQlrbsm(data) {
return request({
url: '/system/Qlr/deleteQlrDlrFrByQlrbsm',
method: 'delete',
params: {
qlrbsm:bsm
},
method: 'post',
data: data,
})
}
......
......@@ -310,11 +310,12 @@
type: String,
default: "15vh",
},
'bsm':String
},
data() {
return {
update:false,
bsm:'',
// bsm:'',
gyfs: '',
tableData: [],
//表格选中项
......@@ -446,10 +447,17 @@
//删除行数据
delRow() {
if (this.multipleSelection.length > 0) {
for (var i = 0; i < this.multipleSelection.length; i++) {
this.deleteArrOption(this.tableData, this.multipleSelection[i].id);
let qlrbsms=[];
for(let i=0;i<this.multipleSelection.length;i++){
qlrbsms.push(this.multipleSelection[i].qlrbsm)
}
//调用删除接口 TO DO
console.log(qlrbsms)
deleteQlrDlrFrByQlrbsm(qlrbsms).then((res)=>{
if(res.code===200){
this.$message.success("删除完成!")
this.getQlrInfo();
}
})
} else {
this.$message({
message: "请至少选择一条信息后继续操作",
......@@ -462,15 +470,6 @@
this.multipleSelection = val;
},
//根据id删除多重数组中的某一项
deleteArrOption(arr, id) {
for (var i = arr.length; i > 0; i--) {
if (arr[i - 1].id == id) {
arr.splice(i - 1, 1);
}
}
},
//供父组件调用来获取共有方式
getQlgyfsData() {
return this.gyfs;
......@@ -509,10 +508,11 @@
})
}
},
created(){
},
created(){},
mounted() {
this.bsm=localStorage.getItem("zrzbsm");
// this.bsm=this.$parent.bsm;
// console.log(this.$parent.bsm)
console.log(this.bsm)
this.getQlrInfo();
if(this.$store.state.gyfsList.length>0){
this.gyfs=this.$store.state.gyfsList[0].bsm;
......
<template>
<div class="zrz content-form" v-loading="loading">
<el-form ref="form" :model="form" label-width="160px">
<Qlr ref="qlrxxModule"></Qlr>
<Qlr ref="qlrxxModule" :bsm="bsm"></Qlr>
<table border="1" width="100%" cellspacing="0" cellpadding="0" class="zrzTable">
<tbody>
<tr height="30">
......@@ -281,7 +281,7 @@
data () {
return {
lx:"zrz",
zrzbsm:'',
bsm:'',
form:{
zrzbsm:'', //自然幢标识码
zdbsm:'', //宗地标识码
......@@ -397,8 +397,8 @@
}
},
onSave(){
this.loading=true;
// this.form.qlxzList=this.$refs.qlxzModule.getQlxzDataList();
// this.loading=true;
this.form.zrzbsm=this.bsm;
this.form.qlxzList=
[{
"addQjTdytRequestList": [
......@@ -435,10 +435,10 @@
}
this.loading=false;
})
this.loading=false;
}
},
onSubmit(){
console.log(this.form)
},
generatorCode(){
getBdcdyh(this.form.zddm,"zrz")
......@@ -559,15 +559,15 @@
this.source = this.$route.query.source;
//source为1代表是从新建中进入道该页面的,source为2代表是从综合查询进入到该页面的
if(this.source===1){
this.zrzbsm=this.$route.query.bsm;
this.bsm=this.$route.query.bsm;
// this.form.zdbsm=this.$store.zdbsm;
// this.form.xmmc=this.$store.xmmc;
// this.form.zrzbsm=this.$store.zrzbsm;
this.form.zrzbsm=this.$route.query.bsm;
this.getZddm(this.$store.zdbsm);
}else {
this.zrzbsm=this.$route.query.bsm;
this.bsm=this.$route.query.bsm;
this.form.zrzbsm=this.$route.query.bsm;
this.getZrzDetailByBsm(this.$route.query.bsm)
}
},
......