Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Fedex
/
imac-vue
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
Elements-SY
2023-09-14 16:11:58 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
8d50698a8345b7922705e162508376aa25920c4e
8d50698a
1 parent
9747b003
modify
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
18 deletions
src/views/allocationConfig/flightAllocConfig/info.vue
src/views/basicInformation/flightInformationMaintenance/index.vue
src/views/allocationConfig/flightAllocConfig/info.vue
View file @
8d50698
...
...
@@ -150,7 +150,7 @@
<el-col :span="10">
<el-input class="numberInput" v-model.trim="val.minNumOfPieces"
oninput="value=value.replace(/[^\d\.\-]/g,'')" @change="change"
@input="change($event)"
@blur="inputBlurMinPieces($event)"
>
@input="change($event)">
</el-input>
<span ref="minNumOfPieces" class="el-form-item__error"></span>
</el-col>
...
...
@@ -158,7 +158,7 @@
<el-col :span="10">
<el-input class="numberInput" v-model.trim="val.maxNumOfPieces"
oninput="value=value.replace(/[^\d\.\-]/g,'')" @change="change"
@input="change($event)"
@blur="inputBlurMaxPieces($event)"
>
@input="change($event)">
</el-input>
</el-col>
</el-form-item>
...
...
@@ -168,7 +168,7 @@
<el-col :span="10">
<el-input class="numberInput" v-model.trim="val.minWeight"
oninput="value=value.replace(/[^\d\.\-]/g,'')" @change="change"
@input="change($event)"
@blur="inputBlurMinWeight($event)"
>
@input="change($event)">
</el-input>
<span ref="minWeight" class="el-form-item__error"></span>
</el-col>
...
...
@@ -176,7 +176,7 @@
<el-col :span="10">
<el-input class="numberInput" v-model.trim="val.maxWeight"
oninput="value=value.replace(/[^\d\.\-]/g,'')" @change="change"
@input="change($event)"
@blur="inputBlurMaxWeight($event)"
>
@input="change($event)">
</el-input>
</el-col>
</el-form-item>
...
...
@@ -392,7 +392,7 @@
<el-col :span="10">
<el-input class="numberInput" v-model.trim="val.minNumOfPieces"
oninput="value=value.replace(/[^\d\.\-]/g,'')" @change="change"
@input="change($event)"
@blur="inputBlurMinPieces($event)"
>
@input="change($event)">
</el-input>
<span ref="minNumOfPieces" class="el-form-item__error"></span>
</el-col>
...
...
@@ -400,7 +400,7 @@
<el-col :span="10">
<el-input class="numberInput" v-model.trim="val.maxNumOfPieces"
oninput="value=value.replace(/[^\d\.\-]/g,'')" @change="change"
@input="change($event)"
@blur="inputBlurMaxPieces($event)"
>
@input="change($event)">
</el-input>
</el-col>
</el-form-item>
...
...
@@ -410,7 +410,7 @@
<el-col :span="10">
<el-input class="numberInput" v-model.trim="val.minWeight"
oninput="value=value.replace(/[^\d\.\-]/g,'')" @change="change"
@input="change($event)"
@blur="inputBlurMinWeight($event)"
>
@input="change($event)">
</el-input>
<span ref="minWeight" class="el-form-item__error"></span>
</el-col>
...
...
@@ -418,7 +418,7 @@
<el-col :span="10">
<el-input class="numberInput" v-model.trim="val.maxWeight"
oninput="value=value.replace(/[^\d\.\-]/g,'')" @change="change"
@input="change($event)"
@blur="inputBlurMaxWeight($event)"
>
@input="change($event)">
</el-input>
</el-col>
</el-form-item>
...
...
@@ -552,10 +552,10 @@ import {
findByFlightId,
queryRouteByFltNo
} from "@/api/destinationFlight";
import { inputBlurValidate } from "@/utils/mixins";
//
import { inputBlurValidate } from "@/utils/mixins";
export default {
name: 'FlightAllocConfigInfo',
mixins: [inputBlurValidate],
//
mixins: [inputBlurValidate],
data() {
return {
infoForm: {
...
...
@@ -1210,7 +1210,7 @@ export default {
data.routePriority = item.routePriority
}
})
data.flightRoute = this.infoForm.route
//
data.flightRoute = this.infoForm.route
} else {
data.flightRoute = this.routeList[val].route
data.routePriority = this.routeList[val].routePriority
...
...
@@ -1263,7 +1263,9 @@ export default {
}).catch(() => {
this.loading = false
});
});
}).catch(() => {
this.loading = false
});;
}
} else {
this.infoForm.list[val] = {
...
...
src/views/basicInformation/flightInformationMaintenance/index.vue
View file @
8d50698
...
...
@@ -643,9 +643,7 @@ export default {
this.routeMultiple = true
this.form.route = []
}
this.$refs.form.validateField(['route'], (flag) => {
// console.log(flag)
})
this.validateFieldForm()
}
})
// this.$refs.routeSelect.$forceUpdate()
...
...
@@ -1132,13 +1130,16 @@ export default {
console.log(err)
})
},
// 对部分表单字段进行校验的方法
validateFieldForm(){
this.$refs.form.validateField(['route'], (flag) => {})
},
//航线修改
routeChange(val) {
this.validateFieldForm()
if(val.length){
this.$nextTick(()=>{
this.$refs.form.clearValidate()
}else{
this.$refs.form.validateField(['route'], (flag) => {
// console.log(flag)
})
}
this.$forceUpdate()
...
...
Please
register
or
login
to post a comment