範圍屬性變更修改
Showing
2 changed files
with
27 additions
and
28 deletions
... | @@ -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,34 +123,39 @@ export default { | ... | @@ -123,34 +123,39 @@ 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 | .then((res) => { | ||
129 | if (res.code == 200) { | ||
130 | this.$message({ | ||
131 | message: res.message, | ||
132 | type: "success", | ||
133 | }); | ||
134 | var newGlbsm=res.result; | ||
135 | |||
128 | let path = ""; | 136 | let path = ""; |
129 | switch (row.dylx) { | 137 | switch (row.dylx) { |
130 | case "zrz": | 138 | case "zrz": |
131 | type = "1"; | 139 | this.$store.state.zrzbsm = newGlbsm; |
132 | this.$store.state.zrzbsm = row.glbsm; | ||
133 | path = "/zrz"; | 140 | path = "/zrz"; |
134 | break; | 141 | break; |
135 | case "zd": | 142 | case "zd": |
136 | type = "0"; | 143 | this.$store.state.zdbsm = newGlbsm; |
137 | this.$store.state.zdbsm = row.glbsm; | ||
138 | path = "/zd"; | 144 | path = "/zd"; |
139 | break; | 145 | break; |
140 | case "h": | 146 | case "dz": |
141 | type = "2"; | 147 | this.$store.state.dzbsm = newGlbsm; |
142 | this.$store.state.hbsm = row.glbsm; | 148 | path = "/dz"; |
143 | break; | 149 | break; |
144 | default: | 150 | default: |
145 | break; | 151 | break; |
146 | } | 152 | } |
147 | var params = { id: bsm, type: type }; | 153 | this.$router.push({ |
148 | copyZdjbxx(params) | 154 | path: path, |
149 | .then((res) => { | 155 | query: { |
150 | if (res.code == 200) { | 156 | bsm: newGlbsm, |
151 | this.$message({ | 157 | source: 2 |
152 | message: res.message, | 158 | } |
153 | type: "success", | ||
154 | }); | 159 | }); |
155 | } else { | 160 | } else { |
156 | this.$message({ | 161 | this.$message({ |
... | @@ -165,13 +170,7 @@ export default { | ... | @@ -165,13 +170,7 @@ export default { |
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: {}, | ... | ... |
-
Please register or sign in to post a comment