17fdd866 by cheliming

联调删除和更正

1 parent f73ab27f
...@@ -83,4 +83,16 @@ export function getTreeByZrzbsm(zrzbsm) { ...@@ -83,4 +83,16 @@ export function getTreeByZrzbsm(zrzbsm) {
83 zrzbsm 83 zrzbsm
84 } 84 }
85 }) 85 })
86 }
87
88
89 /**x
90 *修改 宗地,自然幢,户的权属状态
91 */
92 export function updateQsztByBsm(data){
93 return request({
94 url: '/gz/updateByBsm',
95 method: 'post',
96 data: data
97 })
86 } 98 }
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -160,8 +160,23 @@ export default { ...@@ -160,8 +160,23 @@ export default {
160 }, 160 },
161 deleteByBsm(){ 161 deleteByBsm(){
162 var zdBsm = this.zdData.zdbsm; 162 var zdBsm = this.zdData.zdbsm;
163 var type;
163 console.log(zdBsm); 164 console.log(zdBsm);
164 deleteZdInfoByBsm(zdBsm) 165 switch (this.zdData.type){
166 case "zd":
167 type="0";
168 break;
169 case "zrz":
170 type="1";
171 break;
172 case "h":
173 type="2";
174 break;
175 default:
176 break;
177 }
178 var params={"id":zdBsm,"type":type}
179 deleteZdInfoByBsm(params)
165 .then((res) => { 180 .then((res) => {
166 if(res.code=200){ 181 if(res.code=200){
167 this.$message({ 182 this.$message({
......
...@@ -46,6 +46,7 @@ ...@@ -46,6 +46,7 @@
46 <script> 46 <script>
47 import SearchHead from "../../../components/searchHead/searchHead"; 47 import SearchHead from "../../../components/searchHead/searchHead";
48 import {getSearchList} from "../../../api/search"; 48 import {getSearchList} from "../../../api/search";
49 import {updateQsztByBsm} from "../../../api/common";
49 50
50 export default { 51 export default {
51 name: "", 52 name: "",
...@@ -107,17 +108,32 @@ ...@@ -107,17 +108,32 @@
107 }, 108 },
108 //点击办理 109 //点击办理
109 handleClick(row) { 110 handleClick(row) {
111 console.log(row);
110 let path = ""; 112 let path = "";
111 switch (row.lx) { 113 var type;
114 var id = row.glbsm;
115 switch (row.dylx) {
112 case "自然幢": 116 case "自然幢":
113 path = "/zrz"; 117 path = "/zrz";
118 type = "1";
114 break; 119 break;
115 case "宗地": 120 case "zd":
116 path = "/zd"; 121 path = "/zd";
122 type = "0";
117 break; 123 break;
124 case "户":
125 path = "h";
126 type = "2";
118 default: 127 default:
119 break; 128 break;
120 } 129 }
130 var data={"id":id,"type":type};
131 updateQsztByBsm(data)
132 .then((res =>{
133 if(res.code==200){
134 console.log(res);
135 }
136 }))
121 this.$router.push(path); 137 this.$router.push(path);
122 }, 138 },
123 }, 139 },
......