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,34 +123,39 @@ export default {
handleClick(row) {
console.log("fwsxbg");
console.log(row);
var bsm = row.glbsm;
var type;
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":
type = "1";
this.$store.state.zrzbsm = row.glbsm;
this.$store.state.zrzbsm = newGlbsm;
path = "/zrz";
break;
case "zd":
type = "0";
this.$store.state.zdbsm = row.glbsm;
this.$store.state.zdbsm = newGlbsm;
path = "/zd";
break;
case "h":
type = "2";
this.$store.state.hbsm = row.glbsm;
case "dz":
this.$store.state.dzbsm = newGlbsm;
path = "/dz";
break;
default:
break;
}
var params = { id: bsm, type: type };
copyZdjbxx(params)
.then((res) => {
if (res.code == 200) {
this.$message({
message: res.message,
type: "success",
this.$router.push({
path: path,
query: {
bsm: newGlbsm,
source: 2
}
});
} else {
this.$message({
......@@ -165,13 +170,7 @@ export default {
type: "error",
});
});
//this.$router.push({
// path: path,
// query: {
// bsm: row.glbsm,
// source: 2
// }
//});
},
},
computed: {},
......