范围属性变更办理增加二次提醒
Showing
1 changed file
with
13 additions
and
9 deletions
... | @@ -121,30 +121,31 @@ export default { | ... | @@ -121,30 +121,31 @@ export default { |
121 | }, | 121 | }, |
122 | //点击办理 | 122 | //点击办理 |
123 | handleClick(row) { | 123 | handleClick(row) { |
124 | console.log("fwsxbg"); | 124 | let params = { bsm: row.glbsm, type: row.dylx }; |
125 | console.log(row); | 125 | this.$confirm('是否确定范围属性变更?', '提示', { |
126 | var params = { bsm: row.glbsm, type: row.dylx }; | 126 | confirmButtonText: '确定', |
127 | cancelButtonText: '取消', | ||
128 | type: 'warning' | ||
129 | }).then(() => { | ||
127 | fwsxbgbl(params) | 130 | fwsxbgbl(params) |
128 | .then((res) => { | 131 | .then((res) => { |
129 | if (res.code == 200) { | 132 | if (res.code == 200) { |
130 | this.$message({ | 133 | this.$message({ |
131 | message: res.message, | 134 | message: res.message, |
132 | type: "success", | 135 | type: "变更成功", |
133 | }); | 136 | }); |
134 | var newGlbsm=res.result; | ||
135 | |||
136 | let path = ""; | 137 | let path = ""; |
137 | switch (row.dylx) { | 138 | switch (row.dylx) { |
138 | case "zrz": | 139 | case "zrz": |
139 | this.$store.state.zrzbsm = newGlbsm; | 140 | this.$store.state.zrzbsm = res.result; |
140 | path = "/zrz"; | 141 | path = "/zrz"; |
141 | break; | 142 | break; |
142 | case "zd": | 143 | case "zd": |
143 | this.$store.state.zdbsm = newGlbsm; | 144 | this.$store.state.zdbsm = res.result; |
144 | path = "/zd"; | 145 | path = "/zd"; |
145 | break; | 146 | break; |
146 | case "dz": | 147 | case "dz": |
147 | this.$store.state.dzbsm = newGlbsm; | 148 | this.$store.state.dzbsm = res.result; |
148 | path = "/dz"; | 149 | path = "/dz"; |
149 | break; | 150 | break; |
150 | default: | 151 | default: |
... | @@ -170,6 +171,9 @@ export default { | ... | @@ -170,6 +171,9 @@ export default { |
170 | type: "error", | 171 | type: "error", |
171 | }); | 172 | }); |
172 | }); | 173 | }); |
174 | }).catch(() => { | ||
175 | |||
176 | }); | ||
173 | 177 | ||
174 | }, | 178 | }, |
175 | }, | 179 | }, | ... | ... |
-
Please register or sign in to post a comment