删除功能调整
Showing
2 changed files
with
64 additions
and
1 deletions
... | @@ -2,6 +2,7 @@ import { getWorkFlowImage } from "@/api/workflow/jsydsyqFlow.js"; | ... | @@ -2,6 +2,7 @@ import { getWorkFlowImage } from "@/api/workflow/jsydsyqFlow.js"; |
2 | import { getPrintTemplateByCode } from "@/api/system"; | 2 | import { getPrintTemplateByCode } from "@/api/system"; |
3 | import { getPrintApplicationInfo } from "@/api/fqsq"; | 3 | import { getPrintApplicationInfo } from "@/api/fqsq"; |
4 | import { uploadUndo } from "@/api/clxx"; | 4 | import { uploadUndo } from "@/api/clxx"; |
5 | import { deleteFlow } from "@/api/ywbl"; | ||
5 | import { getLodop } from "@/utils/LodopFuncs" | 6 | import { getLodop } from "@/utils/LodopFuncs" |
6 | import { | 7 | import { |
7 | leftMenu, | 8 | leftMenu, |
... | @@ -229,8 +230,38 @@ export default { | ... | @@ -229,8 +230,38 @@ export default { |
229 | }); | 230 | }); |
230 | }); | 231 | }); |
231 | break; | 232 | break; |
233 | case "rm": | ||
234 | this.del() | ||
232 | } | 235 | } |
233 | }, | 236 | }, |
237 | del () { | ||
238 | let formdata = new FormData(); | ||
239 | formdata.append("bsmSlsq", this.bsmSlsq); | ||
240 | this.$confirm("确定要删除吗, 是否继续?", "提示", { | ||
241 | confirmButtonText: "确定", | ||
242 | cancelButtonText: "取消", | ||
243 | type: "warning", | ||
244 | }) | ||
245 | .then(() => { | ||
246 | deleteFlow(formdata).then((res) => { | ||
247 | if (res.code === 200) { | ||
248 | this.$message({ | ||
249 | type: "success", | ||
250 | message: "删除成功!", | ||
251 | }); | ||
252 | window.close(); | ||
253 | } else { | ||
254 | this.$message.error(res.message); | ||
255 | } | ||
256 | }); | ||
257 | }) | ||
258 | .catch(() => { | ||
259 | this.$message({ | ||
260 | type: "info", | ||
261 | message: "已取消删除", | ||
262 | }); | ||
263 | }); | ||
264 | }, | ||
234 | //发送下一个环节 | 265 | //发送下一个环节 |
235 | sendToNext (obj) { | 266 | sendToNext (obj) { |
236 | const h = this.$createElement; | 267 | const h = this.$createElement; | ... | ... |
... | @@ -13,7 +13,7 @@ | ... | @@ -13,7 +13,7 @@ |
13 | <ul> | 13 | <ul> |
14 | <li @click="operation(item)" v-for="(item, index) in rightButtonList" :key="index"> | 14 | <li @click="operation(item)" v-for="(item, index) in rightButtonList" :key="index"> |
15 | <svg-icon class="icon" :icon-class="item.icon" /> | 15 | <svg-icon class="icon" :icon-class="item.icon" /> |
16 | <span class="iconName">{{ item.name }}</span> | 16 | <span class="iconName">{{ item.name }} {{item.value }}</span> |
17 | </li> | 17 | </li> |
18 | </ul> | 18 | </ul> |
19 | <NoticeBar class="NoticeBar" :noticeList="noticeList" /> | 19 | <NoticeBar class="NoticeBar" :noticeList="noticeList" /> |
... | @@ -175,8 +175,40 @@ export default { | ... | @@ -175,8 +175,40 @@ export default { |
175 | case "signout": | 175 | case "signout": |
176 | window.close(); | 176 | window.close(); |
177 | break; | 177 | break; |
178 | case "rm": | ||
179 | this.del() | ||
180 | window.close(); | ||
178 | } | 181 | } |
179 | }, | 182 | }, |
183 | del () { | ||
184 | let formdata = new FormData(); | ||
185 | formdata.append("bsmSlsq", this.bsmSlsq); | ||
186 | this.$confirm("确定要删除吗, 是否继续?", "提示", { | ||
187 | confirmButtonText: "确定", | ||
188 | cancelButtonText: "取消", | ||
189 | type: "warning", | ||
190 | }) | ||
191 | .then(() => { | ||
192 | deleteFlow(formdata).then((res) => { | ||
193 | if (res.code === 200) { | ||
194 | this.handleDel(); | ||
195 | this.$message({ | ||
196 | type: "success", | ||
197 | message: "删除成功!", | ||
198 | }); | ||
199 | this.queryClick(); | ||
200 | } else { | ||
201 | this.$message.error(res.message); | ||
202 | } | ||
203 | }); | ||
204 | }) | ||
205 | .catch(() => { | ||
206 | this.$message({ | ||
207 | type: "info", | ||
208 | message: "已取消删除", | ||
209 | }); | ||
210 | }); | ||
211 | }, | ||
180 | //读取申请单元信息 | 212 | //读取申请单元信息 |
181 | loadBdcdylist () { | 213 | loadBdcdylist () { |
182 | var formdata = new FormData(); | 214 | var formdata = new FormData(); | ... | ... |
-
Please register or sign in to post a comment