范围属性变更办理增加二次提醒
Showing
1 changed file
with
46 additions
and
42 deletions
... | @@ -121,55 +121,59 @@ export default { | ... | @@ -121,55 +121,59 @@ 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 | fwsxbgbl(params) | 127 | cancelButtonText: '取消', |
128 | .then((res) => { | 128 | type: 'warning' |
129 | if (res.code == 200) { | 129 | }).then(() => { |
130 | this.$message({ | 130 | fwsxbgbl(params) |
131 | message: res.message, | 131 | .then((res) => { |
132 | type: "success", | 132 | if (res.code == 200) { |
133 | }); | 133 | this.$message({ |
134 | var newGlbsm=res.result; | 134 | message: res.message, |
135 | 135 | type: "变更成功", | |
136 | let path = ""; | 136 | }); |
137 | switch (row.dylx) { | 137 | let path = ""; |
138 | case "zrz": | 138 | switch (row.dylx) { |
139 | this.$store.state.zrzbsm = newGlbsm; | 139 | case "zrz": |
140 | path = "/zrz"; | 140 | this.$store.state.zrzbsm = res.result; |
141 | break; | 141 | path = "/zrz"; |
142 | case "zd": | 142 | break; |
143 | this.$store.state.zdbsm = newGlbsm; | 143 | case "zd": |
144 | path = "/zd"; | 144 | this.$store.state.zdbsm = res.result; |
145 | break; | 145 | path = "/zd"; |
146 | case "dz": | 146 | break; |
147 | this.$store.state.dzbsm = newGlbsm; | 147 | case "dz": |
148 | path = "/dz"; | 148 | this.$store.state.dzbsm = res.result; |
149 | break; | 149 | path = "/dz"; |
150 | default: | 150 | break; |
151 | break; | 151 | default: |
152 | } | 152 | break; |
153 | this.$router.push({ | ||
154 | path: path, | ||
155 | query: { | ||
156 | bsm: newGlbsm, | ||
157 | source: 2 | ||
158 | } | 153 | } |
159 | }); | 154 | this.$router.push({ |
160 | } else { | 155 | path: path, |
161 | this.$message({ | 156 | query: { |
162 | message: res.message, | 157 | bsm: newGlbsm, |
163 | type: "warning", | 158 | source: 2 |
164 | }); | 159 | } |
165 | } | 160 | }); |
166 | }) | 161 | } else { |
162 | this.$message({ | ||
163 | message: res.message, | ||
164 | type: "warning", | ||
165 | }); | ||
166 | } | ||
167 | }) | ||
167 | .catch((error) => { | 168 | .catch((error) => { |
168 | this.$message({ | 169 | this.$message({ |
169 | message: res.message, | 170 | message: res.message, |
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