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
jinhui.wang
2022-10-10 15:39:22 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
58d19a9df6064c275dd36ae1f404fdbbcf5b332c
58d19a9d
1 parent
b514a58c
增加航班号限制
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
4 deletions
src/views/allocationConfig/flightAllocConfig/info.vue
src/views/allocationConfig/flightRandConfig/index.vue
src/views/systemConfig/superAllocation/dialog.vue
src/views/allocationConfig/flightAllocConfig/info.vue
View file @
58d19a9
...
...
@@ -11,7 +11,7 @@
<el-row class="mb20">
<el-col :span="6">
<el-form-item label="航班号" prop="fltNo">
<el-input v-model.tirm="infoForm.fltNo" @change="getRoutes" :disabled="fltNoDisabled">
<el-input v-model.tirm="infoForm.fltNo" @change="getRoutes" :disabled="fltNoDisabled"
maxlength="50"
>
</el-input>
</el-form-item>
</el-col>
...
...
@@ -24,7 +24,7 @@
</el-col>
<el-col :span="6" v-if="infoForm.route != null">
<el-form-item label="航线">
<el-input v-model.t
ir
m="infoForm.route" @change="getRoutes" disabled>
<el-input v-model.t
ri
m="infoForm.route" @change="getRoutes" disabled>
</el-input>
</el-form-item>
</el-col>
...
...
src/views/allocationConfig/flightRandConfig/index.vue
View file @
58d19a9
...
...
@@ -115,7 +115,7 @@
</el-col>
<el-col :span="24">
<el-form-item label="配载航班" prop="flightRank">
<el-input type="textarea" v-model="form.flightRank" :rows="4"></el-input>
<el-input type="textarea" v-model="form.flightRank" :rows="4"
maxlength="255"
></el-input>
</el-form-item>
</el-col>
<el-col :span="24">
...
...
@@ -217,6 +217,7 @@ export default {
dayOfWeek: [],
// 表单参数
form: {
flightRank: null,
dayOfWeek: [],
},
// 表单校验
...
...
@@ -449,8 +450,20 @@ export default {
this.queryParams.sourceFlightNo = this.upCase(val);
},
},
flightRank: {
get: function () {
return this.form.flightRank
},
set: function (val) {
const reg = /^([a-zA-Z0-9]{0,40}(\;[a-zA-Z0-9]{0,40})*)$/
if (reg.test(val)) {
this.form.flightRank = val
}
},
}
},
};
</script>
<style>
</style>
...
...
src/views/systemConfig/superAllocation/dialog.vue
View file @
58d19a9
...
...
@@ -13,7 +13,7 @@
</el-col>
<el-col :span="12">
<el-form-item label="航班号" prop="flightNo">
<el-input class="formItem" ref="flightNoFormItem" v-focus v-model="formData.flightNo"
<el-input class="formItem" ref="flightNoFormItem" v-focus v-model="formData.flightNo"
maxlength="50"
placeholder="请输入航班号" @change="getRoute" :disabled="disabled">
</el-input>
</el-form-item>
...
...
Please
register
or
login
to post a comment