Showing
2 changed files
with
6 additions
and
1 deletions
| ... | @@ -954,6 +954,7 @@ export default { | ... | @@ -954,6 +954,7 @@ export default { |
| 954 | }) | 954 | }) |
| 955 | .catch(() => { }); | 955 | .catch(() => { }); |
| 956 | }, | 956 | }, |
| 957 | + | ||
| 957 | /** 提交按钮 */ | 958 | /** 提交按钮 */ |
| 958 | submitForm: function () { | 959 | submitForm: function () { |
| 959 | this.$refs["form"].validate((valid) => { | 960 | this.$refs["form"].validate((valid) => { |
| ... | @@ -1051,6 +1052,11 @@ export default { | ... | @@ -1051,6 +1052,11 @@ export default { |
| 1051 | // 航班状态 | 1052 | // 航班状态 |
| 1052 | if (this.flightState(this.ids, "已删除")) return | 1053 | if (this.flightState(this.ids, "已删除")) return |
| 1053 | let handle = status == "flightStatus80" ? "关闭" : "开启"; | 1054 | let handle = status == "flightStatus80" ? "关闭" : "开启"; |
| 1055 | + let state = this.ids.some(item => item.statusName == `已${handle}`); | ||
| 1056 | + if(state){ | ||
| 1057 | + this.msgError(`勾选的航班,航班状态为已${handle},不可操作该按钮`); | ||
| 1058 | + return | ||
| 1059 | + } | ||
| 1054 | let data = { | 1060 | let data = { |
| 1055 | updateIds: [], | 1061 | updateIds: [], |
| 1056 | }; | 1062 | }; | ... | ... |
| ... | @@ -698,7 +698,6 @@ export default { | ... | @@ -698,7 +698,6 @@ export default { |
| 698 | // 表单提交 | 698 | // 表单提交 |
| 699 | submitForm(formName) { | 699 | submitForm(formName) { |
| 700 | this.$refs[formName].validate((valid) => { | 700 | this.$refs[formName].validate((valid) => { |
| 701 | - console.log(this.queryForm, valid); | ||
| 702 | if (valid) { | 701 | if (valid) { |
| 703 | // 爆仓是否继续配舱 | 702 | // 爆仓是否继续配舱 |
| 704 | const newtTableData = JSON.parse(JSON.stringify(this.tableData)); | 703 | const newtTableData = JSON.parse(JSON.stringify(this.tableData)); | ... | ... |
-
Please register or login to post a comment