Merge branch 'master' of http://yun.pashanhoo.com:9090/renchao/CadastralSystem
Showing
3 changed files
with
55 additions
and
11 deletions
... | @@ -96,6 +96,17 @@ export function updateQsztByBsm(data){ | ... | @@ -96,6 +96,17 @@ export function updateQsztByBsm(data){ |
96 | data: data | 96 | data: data |
97 | }) | 97 | }) |
98 | } | 98 | } |
99 | |||
100 | /**x | ||
101 | *修改 宗地,自然幢,户的权属状态 | ||
102 | */ | ||
103 | export function copyZdjbxx(data){ | ||
104 | return request({ | ||
105 | url: '/bg/fwsxbg/copyZdjbxx', | ||
106 | method: 'post', | ||
107 | data: data | ||
108 | }) | ||
109 | } | ||
99 | /** | 110 | /** |
100 | * 提交表单信息 | 111 | * 提交表单信息 |
101 | * glbsm 关联标识码,自然幢,多幢等标识码 , | 112 | * glbsm 关联标识码,自然幢,多幢等标识码 , | ... | ... |
... | @@ -52,7 +52,7 @@ | ... | @@ -52,7 +52,7 @@ |
52 | <script> | 52 | <script> |
53 | import SearchHead from "../../../../components/searchHead/searchHead"; | 53 | import SearchHead from "../../../../components/searchHead/searchHead"; |
54 | import {getSearchList} from "../../../../api/search"; | 54 | import {getSearchList} from "../../../../api/search"; |
55 | 55 | import {copyZdjbxx} from "../../../../api/common"; | |
56 | export default { | 56 | export default { |
57 | name: "", | 57 | name: "", |
58 | components: {SearchHead}, | 58 | components: {SearchHead}, |
... | @@ -108,25 +108,50 @@ | ... | @@ -108,25 +108,50 @@ |
108 | }, | 108 | }, |
109 | //点击办理 | 109 | //点击办理 |
110 | handleClick(row) { | 110 | handleClick(row) { |
111 | debugger; | ||
112 | console.log('fwsxbg'); | ||
113 | console.log(row); | ||
114 | var bsm = row.glbsm; | ||
115 | var type ; | ||
111 | let path = ""; | 116 | let path = ""; |
112 | switch (row.dylx) { | 117 | switch (row.dylx) { |
113 | case "zrz": | 118 | case "zrz": |
119 | type="1"; | ||
114 | path = "/zrz"; | 120 | path = "/zrz"; |
115 | break; | 121 | break; |
116 | case "zd": | 122 | case "zd": |
123 | type ="0"; | ||
117 | this.$store.state.zdbsm = row.glbsm; | 124 | this.$store.state.zdbsm = row.glbsm; |
118 | path = "/zd"; | 125 | path = "/zd"; |
119 | break; | 126 | break; |
127 | case "h": | ||
128 | type="2" | ||
129 | break; | ||
120 | default: | 130 | default: |
121 | break; | 131 | break; |
122 | } | 132 | } |
123 | this.$router.push({ | 133 | var params = {"id":bsm,"type":type}; |
124 | path: path, | 134 | copyZdjbxx(params) |
125 | query: { | 135 | .then((res =>{ |
126 | bsm: row.glbsm, | 136 | if(res.code==200){ |
127 | source: 2 | 137 | this.$message({ |
128 | } | 138 | message: res.message, |
129 | }); | 139 | type: "success", |
140 | }); | ||
141 | } else { | ||
142 | this.$message({ | ||
143 | message: res.message, | ||
144 | type: "warning", | ||
145 | }); | ||
146 | } | ||
147 | })); | ||
148 | //this.$router.push({ | ||
149 | // path: path, | ||
150 | // query: { | ||
151 | // bsm: row.glbsm, | ||
152 | // source: 2 | ||
153 | // } | ||
154 | //}); | ||
130 | }, | 155 | }, |
131 | }, | 156 | }, |
132 | computed: {}, | 157 | computed: {}, | ... | ... |
... | @@ -117,7 +117,7 @@ | ... | @@ -117,7 +117,7 @@ |
117 | console.log(row); | 117 | console.log(row); |
118 | let path = ""; | 118 | let path = ""; |
119 | var type; | 119 | var type; |
120 | var id = row.glbsm; | 120 | var id = row.bsm; |
121 | switch (row.dylx) { | 121 | switch (row.dylx) { |
122 | case "自然幢": | 122 | case "自然幢": |
123 | path = "/zrz"; | 123 | path = "/zrz"; |
... | @@ -137,8 +137,16 @@ | ... | @@ -137,8 +137,16 @@ |
137 | updateQsztByBsm(data) | 137 | updateQsztByBsm(data) |
138 | .then((res =>{ | 138 | .then((res =>{ |
139 | if(res.code==200){ | 139 | if(res.code==200){ |
140 | console.log(res); | 140 | this.$message({ |
141 | } | 141 | message: res.message, |
142 | type: "success", | ||
143 | }); | ||
144 | } else { | ||
145 | this.$message({ | ||
146 | message: res.message, | ||
147 | type: "warning", | ||
148 | }); | ||
149 | } | ||
142 | })) | 150 | })) |
143 | this.$router.push(path); | 151 | this.$router.push(path); |
144 | }, | 152 | }, | ... | ... |
-
Please register or sign in to post a comment