111
Showing
2 changed files
with
10 additions
and
9 deletions
| ... | @@ -492,12 +492,13 @@ export default { | ... | @@ -492,12 +492,13 @@ export default { |
| 492 | }, | 492 | }, |
| 493 | //表单选项卡事件 | 493 | //表单选项卡事件 |
| 494 | beforeLeave (activeName, oldActiveName) { | 494 | beforeLeave (activeName, oldActiveName) { |
| 495 | if (!_.isEqual(this.oldDetail, this.newDetail)) { | 495 | // if (!_.isEqual(this.oldDetail, this.newDetail)) { |
| 496 | this.$message.error('界面内容有所变化,请先保存') | 496 | // this.$message.error('界面内容有所变化,请先保存') |
| 497 | return false | 497 | // return false |
| 498 | } else { | 498 | // } else { |
| 499 | if (activeName && activeName != 0) this.getFromRouter(activeName) | 499 | // if (activeName && activeName != 0) this.getFromRouter(activeName) |
| 500 | } | 500 | // } |
| 501 | if (activeName && activeName != 0) this.getFromRouter(activeName) | ||
| 501 | }, | 502 | }, |
| 502 | //切换选项卡内容组件 | 503 | //切换选项卡内容组件 |
| 503 | getFromRouter (tabname) { | 504 | getFromRouter (tabname) { | ... | ... |
| ... | @@ -178,8 +178,8 @@ export default { | ... | @@ -178,8 +178,8 @@ export default { |
| 178 | formdata.append("bsmSldy", this.propsParam.bsmSldy); | 178 | formdata.append("bsmSldy", this.propsParam.bsmSldy); |
| 179 | formdata.append("djlx", this.propsParam.djlx); | 179 | formdata.append("djlx", this.propsParam.djlx); |
| 180 | Init(formdata).then((res) => { | 180 | Init(formdata).then((res) => { |
| 181 | if (res.code === 200 && res.result) { | 181 | this.ruleForm = res.result; |
| 182 | this.ruleForm = res.result; | 182 | if (res.code === 200 ) { |
| 183 | this.$store.dispatch('slxx/setQlrxxOld', { | 183 | this.$store.dispatch('slxx/setQlrxxOld', { |
| 184 | qlrxx: this.ruleForm.qlrxx, | 184 | qlrxx: this.ruleForm.qlrxx, |
| 185 | fj: this.ruleForm.fj, | 185 | fj: this.ruleForm.fj, |
| ... | @@ -188,7 +188,7 @@ export default { | ... | @@ -188,7 +188,7 @@ export default { |
| 188 | }) | 188 | }) |
| 189 | } | 189 | } |
| 190 | else{ | 190 | else{ |
| 191 | this.$message(res.message); | 191 | this.$alert(res.message, '提示'); |
| 192 | } | 192 | } |
| 193 | }) | 193 | }) |
| 194 | }, | 194 | }, | ... | ... |
-
Please register or sign in to post a comment