7166db5d by 焦泽平

範圍屬性變更修改

1 parent fb0379de
......@@ -114,12 +114,12 @@ export function updateQsztByBsm(data) {
})
}
/**x
*修改 宗地,自然幢,户的权属状态
/**
*范围属性变更 点击办理:宗地、自然幢、多幢、户、 bsm\type
*/
export function copyZdjbxx(data) {
export function fwsxbgbl(data) {
return request({
url: '/bg/fwsxbg/copyZdjbxx',
url: '/bg/fwsxbg/fwsxbgDyByBsm',
method: 'post',
data: data
})
......
......@@ -61,7 +61,7 @@
<script>
import SearchHead from "../../../../components/searchHead/searchHead";
import { getSearchList } from "../../../../api/search";
import { copyZdjbxx } from "../../../../api/common";
import { fwsxbgbl } from "../../../../api/common";
export default {
name: "",
......@@ -123,35 +123,40 @@ export default {
handleClick(row) {
console.log("fwsxbg");
console.log(row);
var bsm = row.glbsm;
var type;
let path = "";
switch (row.dylx) {
case "zrz":
type = "1";
this.$store.state.zrzbsm = row.glbsm;
path = "/zrz";
break;
case "zd":
type = "0";
this.$store.state.zdbsm = row.glbsm;
path = "/zd";
break;
case "h":
type = "2";
this.$store.state.hbsm = row.glbsm;
break;
default:
break;
}
var params = { id: bsm, type: type };
copyZdjbxx(params)
var params = { bsm: row.glbsm, type: row.dylx };
fwsxbgbl(params)
.then((res) => {
if (res.code == 200) {
this.$message({
message: res.message,
type: "success",
});
var newGlbsm=res.result;
let path = "";
switch (row.dylx) {
case "zrz":
this.$store.state.zrzbsm = newGlbsm;
path = "/zrz";
break;
case "zd":
this.$store.state.zdbsm = newGlbsm;
path = "/zd";
break;
case "dz":
this.$store.state.dzbsm = newGlbsm;
path = "/dz";
break;
default:
break;
}
this.$router.push({
path: path,
query: {
bsm: newGlbsm,
source: 2
}
});
} else {
this.$message({
message: res.message,
......@@ -164,14 +169,8 @@ export default {
message: res.message,
type: "error",
});
});
//this.$router.push({
// path: path,
// query: {
// bsm: row.glbsm,
// source: 2
// }
//});
});
},
},
computed: {},
......