17fdd866 by cheliming

联调删除和更正

1 parent f73ab27f
......@@ -83,4 +83,16 @@ export function getTreeByZrzbsm(zrzbsm) {
zrzbsm
}
})
}
/**x
*修改 宗地,自然幢,户的权属状态
*/
export function updateQsztByBsm(data){
return request({
url: '/gz/updateByBsm',
method: 'post',
data: data
})
}
\ No newline at end of file
......
......@@ -160,8 +160,23 @@ export default {
},
deleteByBsm(){
var zdBsm = this.zdData.zdbsm;
var type;
console.log(zdBsm);
deleteZdInfoByBsm(zdBsm)
switch (this.zdData.type){
case "zd":
type="0";
break;
case "zrz":
type="1";
break;
case "h":
type="2";
break;
default:
break;
}
var params={"id":zdBsm,"type":type}
deleteZdInfoByBsm(params)
.then((res) => {
if(res.code=200){
this.$message({
......
......@@ -46,6 +46,7 @@
<script>
import SearchHead from "../../../components/searchHead/searchHead";
import {getSearchList} from "../../../api/search";
import {updateQsztByBsm} from "../../../api/common";
export default {
name: "",
......@@ -107,17 +108,32 @@
},
//点击办理
handleClick(row) {
console.log(row);
let path = "";
switch (row.lx) {
var type;
var id = row.glbsm;
switch (row.dylx) {
case "自然幢":
path = "/zrz";
type = "1";
break;
case "宗地":
case "zd":
path = "/zd";
type = "0";
break;
case "户":
path = "h";
type = "2";
default:
break;
}
var data={"id":id,"type":type};
updateQsztByBsm(data)
.then((res =>{
if(res.code==200){
console.log(res);
}
}))
this.$router.push(path);
},
},
......