Showing
1 changed file
with
37 additions
and
2 deletions
| ... | @@ -506,7 +506,7 @@ export default { | ... | @@ -506,7 +506,7 @@ export default { |
| 506 | const { code, msg } = res; | 506 | const { code, msg } = res; |
| 507 | if (code == 200) { | 507 | if (code == 200) { |
| 508 | this.msgSuccess(msg || "创建成功!"); | 508 | this.msgSuccess(msg || "创建成功!"); |
| 509 | - this.$router.push("/et86RuleConfig"); | 509 | + this.closeTagMenu(this.$route); |
| 510 | } else { | 510 | } else { |
| 511 | this.msgError(msg || "创建失败!"); | 511 | this.msgError(msg || "创建失败!"); |
| 512 | } | 512 | } |
| ... | @@ -556,6 +556,16 @@ export default { | ... | @@ -556,6 +556,16 @@ export default { |
| 556 | } else { | 556 | } else { |
| 557 | this.checkboxClassType = []; | 557 | this.checkboxClassType = []; |
| 558 | } | 558 | } |
| 559 | + // 人民币 | ||
| 560 | + if (data.list.fltRuleDto.currencyCd == "CNY") { | ||
| 561 | + this.minCNYCustomVal = data.list.fltRuleDto.minCustomVal; | ||
| 562 | + this.maxCNYCustomVal = data.list.fltRuleDto.maxCustomVal; | ||
| 563 | + } | ||
| 564 | + // 美元 | ||
| 565 | + if (data.list.fltRuleDto.currencyCd == "USD") { | ||
| 566 | + this.minSUDCustomVal = data.list.fltRuleDto.minCustomVal; | ||
| 567 | + this.maxSUDCustomVal = data.list.fltRuleDto.maxCustomVal; | ||
| 568 | + } | ||
| 559 | this.queryForm = data.list.fltRuleDto; // ET86配舱航班顺位维度 | 569 | this.queryForm = data.list.fltRuleDto; // ET86配舱航班顺位维度 |
| 560 | } else { | 570 | } else { |
| 561 | this.msgError(msg || "获取查看失败"); | 571 | this.msgError(msg || "获取查看失败"); |
| ... | @@ -570,7 +580,7 @@ export default { | ... | @@ -570,7 +580,7 @@ export default { |
| 570 | const { code, msg } = res; | 580 | const { code, msg } = res; |
| 571 | if (code == 200) { | 581 | if (code == 200) { |
| 572 | this.msgSuccess(msg || "修改成功!"); | 582 | this.msgSuccess(msg || "修改成功!"); |
| 573 | - this.$router.push("/et86RuleConfig"); | 583 | + this.closeTagMenu(this.$route); |
| 574 | } else { | 584 | } else { |
| 575 | this.msgError(msg || "修改失败!"); | 585 | this.msgError(msg || "修改失败!"); |
| 576 | } | 586 | } |
| ... | @@ -785,6 +795,31 @@ export default { | ... | @@ -785,6 +795,31 @@ export default { |
| 785 | }); | 795 | }); |
| 786 | this.$emit("handleSearch"); | 796 | this.$emit("handleSearch"); |
| 787 | }, | 797 | }, |
| 798 | + isActive(route) { | ||
| 799 | + return route.path === this.$route.path; | ||
| 800 | + }, | ||
| 801 | + toLastView(visitedViews, view) { | ||
| 802 | + const latestView = visitedViews.slice(-1)[0]; | ||
| 803 | + if (latestView) { | ||
| 804 | + this.$router.push(latestView.fullPath); | ||
| 805 | + } else { | ||
| 806 | + if (view.name === "Dashboard") { | ||
| 807 | + this.$router.replace({ path: "/redirect" + view.fullPath }); | ||
| 808 | + } else { | ||
| 809 | + this.$router.push("/"); | ||
| 810 | + } | ||
| 811 | + } | ||
| 812 | + }, | ||
| 813 | + // 关闭当前标签菜单 | ||
| 814 | + closeTagMenu(view) { | ||
| 815 | + this.$store | ||
| 816 | + .dispatch("tagsView/delView", view) | ||
| 817 | + .then(({ visitedViews }) => { | ||
| 818 | + if (this.isActive(view)) { | ||
| 819 | + this.toLastView(visitedViews, view); | ||
| 820 | + } | ||
| 821 | + }); | ||
| 822 | + }, | ||
| 788 | }, | 823 | }, |
| 789 | }; | 824 | }; |
| 790 | </script> | 825 | </script> | ... | ... |
-
Please register or login to post a comment