4c0ed48f by cheliming

联调前后端项目范围属性变更

1 parent f3156a6b
......@@ -96,6 +96,17 @@ export function updateQsztByBsm(data){
data: data
})
}
/**x
*修改 宗地,自然幢,户的权属状态
*/
export function copyZdjbxx(data){
return request({
url: '/bg/fwsxbg/copyZdjbxx',
method: 'post',
data: data
})
}
/**
* 提交表单信息
* glbsm 关联标识码,自然幢,多幢等标识码 ,
......
......@@ -52,7 +52,7 @@
<script>
import SearchHead from "../../../../components/searchHead/searchHead";
import {getSearchList} from "../../../../api/search";
import {copyZdjbxx} from "../../../../api/common";
export default {
name: "",
components: {SearchHead},
......@@ -108,25 +108,50 @@
},
//点击办理
handleClick(row) {
debugger;
console.log('fwsxbg');
console.log(row);
var bsm = row.glbsm;
var type ;
let path = "";
switch (row.dylx) {
case "zrz":
type="1";
path = "/zrz";
break;
case "zd":
type ="0";
this.$store.state.zdbsm = row.glbsm;
path = "/zd";
break;
case "h":
type="2"
break;
default:
break;
}
this.$router.push({
path: path,
query: {
bsm: row.glbsm,
source: 2
}
var params = {"id":bsm,"type":type};
copyZdjbxx(params)
.then((res =>{
if(res.code==200){
this.$message({
message: res.message,
type: "success",
});
} else {
this.$message({
message: res.message,
type: "warning",
});
}
}));
//this.$router.push({
// path: path,
// query: {
// bsm: row.glbsm,
// source: 2
// }
//});
},
},
computed: {},
......
......@@ -137,7 +137,15 @@
updateQsztByBsm(data)
.then((res =>{
if(res.code==200){
console.log(res);
this.$message({
message: res.message,
type: "success",
});
} else {
this.$message({
message: res.message,
type: "warning",
});
}
}))
this.$router.push(path);
......