7166db5d by 焦泽平

範圍屬性變更修改

1 parent fb0379de
...@@ -114,12 +114,12 @@ export function updateQsztByBsm(data) { ...@@ -114,12 +114,12 @@ export function updateQsztByBsm(data) {
114 }) 114 })
115 } 115 }
116 116
117 /**x 117 /**
118 *修改 宗地,自然幢,户的权属状态 118 *范围属性变更 点击办理:宗地、自然幢、多幢、户、 bsm\type
119 */ 119 */
120 export function copyZdjbxx(data) { 120 export function fwsxbgbl(data) {
121 return request({ 121 return request({
122 url: '/bg/fwsxbg/copyZdjbxx', 122 url: '/bg/fwsxbg/fwsxbgDyByBsm',
123 method: 'post', 123 method: 'post',
124 data: data 124 data: data
125 }) 125 })
......
...@@ -61,7 +61,7 @@ ...@@ -61,7 +61,7 @@
61 <script> 61 <script>
62 import SearchHead from "../../../../components/searchHead/searchHead"; 62 import SearchHead from "../../../../components/searchHead/searchHead";
63 import { getSearchList } from "../../../../api/search"; 63 import { getSearchList } from "../../../../api/search";
64 import { copyZdjbxx } from "../../../../api/common"; 64 import { fwsxbgbl } from "../../../../api/common";
65 65
66 export default { 66 export default {
67 name: "", 67 name: "",
...@@ -123,35 +123,40 @@ export default { ...@@ -123,35 +123,40 @@ export default {
123 handleClick(row) { 123 handleClick(row) {
124 console.log("fwsxbg"); 124 console.log("fwsxbg");
125 console.log(row); 125 console.log(row);
126 var bsm = row.glbsm; 126 var params = { bsm: row.glbsm, type: row.dylx };
127 var type; 127 fwsxbgbl(params)
128 let path = "";
129 switch (row.dylx) {
130 case "zrz":
131 type = "1";
132 this.$store.state.zrzbsm = row.glbsm;
133 path = "/zrz";
134 break;
135 case "zd":
136 type = "0";
137 this.$store.state.zdbsm = row.glbsm;
138 path = "/zd";
139 break;
140 case "h":
141 type = "2";
142 this.$store.state.hbsm = row.glbsm;
143 break;
144 default:
145 break;
146 }
147 var params = { id: bsm, type: type };
148 copyZdjbxx(params)
149 .then((res) => { 128 .then((res) => {
150 if (res.code == 200) { 129 if (res.code == 200) {
151 this.$message({ 130 this.$message({
152 message: res.message, 131 message: res.message,
153 type: "success", 132 type: "success",
154 }); 133 });
134 var newGlbsm=res.result;
135
136 let path = "";
137 switch (row.dylx) {
138 case "zrz":
139 this.$store.state.zrzbsm = newGlbsm;
140 path = "/zrz";
141 break;
142 case "zd":
143 this.$store.state.zdbsm = newGlbsm;
144 path = "/zd";
145 break;
146 case "dz":
147 this.$store.state.dzbsm = newGlbsm;
148 path = "/dz";
149 break;
150 default:
151 break;
152 }
153 this.$router.push({
154 path: path,
155 query: {
156 bsm: newGlbsm,
157 source: 2
158 }
159 });
155 } else { 160 } else {
156 this.$message({ 161 this.$message({
157 message: res.message, 162 message: res.message,
...@@ -164,14 +169,8 @@ export default { ...@@ -164,14 +169,8 @@ export default {
164 message: res.message, 169 message: res.message,
165 type: "error", 170 type: "error",
166 }); 171 });
167 }); 172 });
168 //this.$router.push({ 173
169 // path: path,
170 // query: {
171 // bsm: row.glbsm,
172 // source: 2
173 // }
174 //});
175 }, 174 },
176 }, 175 },
177 computed: {}, 176 computed: {},
......