jinhui.wang

路由参数修改,请求参数修正

...@@ -85,7 +85,7 @@ export const constantRoutes = [ ...@@ -85,7 +85,7 @@ export const constantRoutes = [
85 meta: { title: '流水表', icon: 'user' } 85 meta: { title: '流水表', icon: 'user' }
86 }, 86 },
87 { 87 {
88 - path: '/upDateResult->:from', 88 + path: '/upDateResult',
89 component: (resolve) => require(['@/views/preMdeConfig/upDateResult'], resolve), 89 component: (resolve) => require(['@/views/preMdeConfig/upDateResult'], resolve),
90 name: 'UpDateResult', 90 name: 'UpDateResult',
91 meta: { title: '错误信息提示', icon: 'user' } 91 meta: { title: '错误信息提示', icon: 'user' }
......
...@@ -20,16 +20,14 @@ ...@@ -20,16 +20,14 @@
20 <el-form-item label="货站名称" prop="goodsStation"> 20 <el-form-item label="货站名称" prop="goodsStation">
21 <el-select class="selectWidth100" v-model.lazy="formData.goodsStation" filterable 21 <el-select class="selectWidth100" v-model.lazy="formData.goodsStation" filterable
22 :loading="goodsStationLoading" placeholder="不限"> 22 :loading="goodsStationLoading" placeholder="不限">
23 - <el-option v-for="(item, index) in goodsStationList" :label="item" :value="item" 23 + <el-option v-for="(item, index) in goodsStationList" :label="item" :value="item" :key="item">
24 - :key="item">
25 </el-option> 24 </el-option>
26 </el-select> 25 </el-select>
27 </el-form-item> 26 </el-form-item>
28 </div> 27 </div>
29 <div v-else> 28 <div v-else>
30 <el-form-item label="货站名称" prop="uploadGoodsStation"> 29 <el-form-item label="货站名称" prop="uploadGoodsStation">
31 - <el-input type="text" v-model="formData.uploadGoodsStation" maxlength="25" 30 + <el-input type="text" v-model="formData.uploadGoodsStation" maxlength="25" placeholder="请输入货站名称">
32 - placeholder="请输入货站名称">
33 </el-input> 31 </el-input>
34 </el-form-item> 32 </el-form-item>
35 <el-form-item prop="file" label-width="0px"> 33 <el-form-item prop="file" label-width="0px">
...@@ -195,7 +193,7 @@ export default { ...@@ -195,7 +193,7 @@ export default {
195 this.$message.warning(res.msg); 193 this.$message.warning(res.msg);
196 if (res.data) { 194 if (res.data) {
197 this.errorData = res.data; 195 this.errorData = res.data;
198 - this.$router.push({ name: 'UpDateResult', params: { data: this.errorData, from: 'FlightInformationImport' } }) 196 + this.$router.push({ name: 'UpDateResult', query: { data: this.errorData, from: 'FlightInformationImport' } })
199 } 197 }
200 } else { 198 } else {
201 this.$message.warning(res.msg); 199 this.$message.warning(res.msg);
......
...@@ -20,16 +20,14 @@ ...@@ -20,16 +20,14 @@
20 <el-form-item label="货站名称" prop="goodsStation"> 20 <el-form-item label="货站名称" prop="goodsStation">
21 <el-select class="selectWidth100" v-model.lazy="formData.goodsStation" filterable 21 <el-select class="selectWidth100" v-model.lazy="formData.goodsStation" filterable
22 :loading="goodsStationLoading" placeholder="不限"> 22 :loading="goodsStationLoading" placeholder="不限">
23 - <el-option v-for="(item, index) in goodsStationList" :label="item" :value="item" 23 + <el-option v-for="(item, index) in goodsStationList" :label="item" :value="item" :key="item">
24 - :key="item">
25 </el-option> 24 </el-option>
26 </el-select> 25 </el-select>
27 </el-form-item> 26 </el-form-item>
28 </div> 27 </div>
29 <div v-else> 28 <div v-else>
30 <el-form-item label="货站名称" prop="uploadGoodsStation"> 29 <el-form-item label="货站名称" prop="uploadGoodsStation">
31 - <el-input type="text" v-model="formData.uploadGoodsStation" maxlength="25" 30 + <el-input type="text" v-model="formData.uploadGoodsStation" maxlength="25" placeholder="请输入货站名称">
32 - placeholder="请输入货站名称">
33 </el-input> 31 </el-input>
34 </el-form-item> 32 </el-form-item>
35 <el-form-item prop="file" label-width="0px"> 33 <el-form-item prop="file" label-width="0px">
...@@ -195,7 +193,7 @@ export default { ...@@ -195,7 +193,7 @@ export default {
195 this.$message.warning(res.msg); 193 this.$message.warning(res.msg);
196 if (res.data) { 194 if (res.data) {
197 this.errorData = res.data; 195 this.errorData = res.data;
198 - this.$router.push({ name: 'UpDateResult', params: { data: this.errorData, from: 'FlightInformationImport' } }) 196 + this.$router.push({ name: 'UpDateResult', query: { data: this.errorData, from: 'FlightInformationImport' } })
199 } 197 }
200 } else { 198 } else {
201 this.$message.warning(res.msg); 199 this.$message.warning(res.msg);
......
1 <template> 1 <template>
2 <div class="cargoPage"> 2 <div class="cargoPage">
3 - <el-form ref="cargoForm" class="form-header" label-position="right" label-width="auto" size="small" 3 + <el-form ref="cargoForm" class="form-header" label-position="right" label-width="auto" size="small" :model="formData">
4 - :model="formData">
5 <el-row type="flex" style="flexWrap: wrap !important"> 4 <el-row type="flex" style="flexWrap: wrap !important">
6 <el-col :span="6"> 5 <el-col :span="6">
7 <el-form-item label="配舱航班日期"> 6 <el-form-item label="配舱航班日期">
...@@ -139,8 +138,7 @@ ...@@ -139,8 +138,7 @@
139 </div> 138 </div>
140 </template> 139 </template>
141 <el-select class="formItem" v-model="formData.cargoPlaneRoute" placeholder="不限" 140 <el-select class="formItem" v-model="formData.cargoPlaneRoute" placeholder="不限"
142 - :disabled="routeList.length == 0" clearable @change="routeSelectChange" 141 + :disabled="routeList.length == 0" clearable @change="routeSelectChange" :key="formData.cargoPlaneRoute">
143 - :key="formData.cargoPlaneRoute">
144 <el-option v-for="(item, index) in routeList" :label="item" :value="item" :key="item"> 142 <el-option v-for="(item, index) in routeList" :label="item" :value="item" :key="item">
145 <Tooltips :content="item" :refName="item"></Tooltips> 143 <Tooltips :content="item" :refName="item"></Tooltips>
146 </el-option> 144 </el-option>
...@@ -199,8 +197,8 @@ ...@@ -199,8 +197,8 @@
199 <el-button class="mr20" icon="el-icon-search" size="mini" @click="formShow = !formShow" circle></el-button> 197 <el-button class="mr20" icon="el-icon-search" size="mini" @click="formShow = !formShow" circle></el-button>
200 </el-tooltip> 198 </el-tooltip>
201 <el-tooltip content="表格设置" placement="top"> 199 <el-tooltip content="表格设置" placement="top">
202 - <HeaderSetting tableName="cargo" class="mr20" style="float:right;line-height: 48px;" 200 + <HeaderSetting tableName="cargo" class="mr20" style="float:right;line-height: 48px;" @close="headerSetClose">
203 - @close="headerSetClose"></HeaderSetting> 201 + </HeaderSetting>
204 </el-tooltip> 202 </el-tooltip>
205 </div> 203 </div>
206 </div> 204 </div>
...@@ -216,8 +214,8 @@ ...@@ -216,8 +214,8 @@
216 }}<i class="el-icon-link"></i> </el-link> 214 }}<i class="el-icon-link"></i> </el-link>
217 </template> 215 </template>
218 </Tables> 216 </Tables>
219 - <el-dialog title="舱位释放结果" width="80%" :visible.sync="dialogVisible" :close-on-click-modal="false" 217 + <el-dialog title="舱位释放结果" width="80%" :visible.sync="dialogVisible" :close-on-click-modal="false" :show-close="false"
220 - :show-close="false" :append-to-body="true" @close="close"> 218 + :append-to-body="true" @close="close">
221 <el-table :data="selectTable" size="mini" border stripe highlight-current-row style="width: 100%"> 219 <el-table :data="selectTable" size="mini" border stripe highlight-current-row style="width: 100%">
222 <el-table-column type="index" label="序号" align="center"> 220 <el-table-column type="index" label="序号" align="center">
223 </el-table-column> 221 </el-table-column>
...@@ -376,7 +374,6 @@ export default { ...@@ -376,7 +374,6 @@ export default {
376 this.selectTable = [] 374 this.selectTable = []
377 this.cargoTotal() 375 this.cargoTotal()
378 if (this.$route.params.fltNo) { 376 if (this.$route.params.fltNo) {
379 - console.log(1)
380 //判断进入页面是否带参,确定是否是index跳转 377 //判断进入页面是否带参,确定是否是index跳转
381 this.formData = { 378 this.formData = {
382 fltDateStart: "", 379 fltDateStart: "",
...@@ -409,7 +406,6 @@ export default { ...@@ -409,7 +406,6 @@ export default {
409 limitStart: 1, 406 limitStart: 1,
410 limitSize: 100, 407 limitSize: 100,
411 } 408 }
412 - console.log(this.$route)
413 this.cargoPlaneTime = [this.$route.params.fltDate, this.$route.params.fltDate] 409 this.cargoPlaneTime = [this.$route.params.fltDate, this.$route.params.fltDate]
414 this.formData.cargoPlaneStart = this.$route.params.fltDate 410 this.formData.cargoPlaneStart = this.$route.params.fltDate
415 this.formData.cargoPlaneEnd = this.$route.params.fltDate 411 this.formData.cargoPlaneEnd = this.$route.params.fltDate
...@@ -696,7 +692,7 @@ export default { ...@@ -696,7 +692,7 @@ export default {
696 }, 692 },
697 //配载航班号获取航线 693 //配载航班号获取航线
698 planeNoChange(val) { 694 planeNoChange(val) {
699 - getFlightsRoutes(val).then(res => { 695 + getFlightsRoutes(val.split(';')).then(res => {
700 if (res.code === 200) { 696 if (res.code === 200) {
701 this.routeList = res.data 697 this.routeList = res.data
702 } else { 698 } else {
......
...@@ -159,7 +159,7 @@ export default { ...@@ -159,7 +159,7 @@ export default {
159 } 159 }
160 arr.push(obj) 160 arr.push(obj)
161 }) 161 })
162 - this.$router.push({ name: 'UpDateResult', params: { data: arr, from: 'queryCargo' } }) 162 + this.$router.push({ name: 'UpDateResult', query: { data: arr, from: 'queryCargo' } })
163 this.dialogBeforeClose() 163 this.dialogBeforeClose()
164 } else if (res.code === 202) { 164 } else if (res.code === 202) {
165 this.reBatchMoveCargoToOtherFlight(res.msg, 'overweight') 165 this.reBatchMoveCargoToOtherFlight(res.msg, 'overweight')
...@@ -207,7 +207,7 @@ export default { ...@@ -207,7 +207,7 @@ export default {
207 } 207 }
208 arr.push(obj) 208 arr.push(obj)
209 }) 209 })
210 - this.$router.push({ name: 'UpDateResult', params: { data: arr, from: 'queryCargo' } }) 210 + this.$router.push({ name: 'UpDateResult', query: { data: arr, from: 'queryCargo' } })
211 this.dialogBeforeClose() 211 this.dialogBeforeClose()
212 } else if (res.code === 203) { 212 } else if (res.code === 203) {
213 this.reBatchMoveCargoToOtherFlight(res.msg, 'notInWhite') 213 this.reBatchMoveCargoToOtherFlight(res.msg, 'notInWhite')
...@@ -286,6 +286,4 @@ export default { ...@@ -286,6 +286,4 @@ export default {
286 }; 286 };
287 </script> 287 </script>
288 288
289 -<style>
290 -
291 -</style>
...\ No newline at end of file ...\ No newline at end of file
289 +<style></style>
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -164,7 +164,7 @@ export default { ...@@ -164,7 +164,7 @@ export default {
164 } else if (res.code === 201) { 164 } else if (res.code === 201) {
165 this.msgWarning(res.msg); 165 this.msgWarning(res.msg);
166 this.errorData = res.data.data; 166 this.errorData = res.data.data;
167 - this.$router.push({ name: 'UpDateResult', params: { data: this.errorData, from: 'FlightToArea' } }) 167 + this.$router.push({ name: 'UpDateResult', query: { data: this.errorData, from: 'FlightToArea' } })
168 } else { 168 } else {
169 this.msgWarning(res.msg); 169 this.msgWarning(res.msg);
170 } 170 }
......
...@@ -33,14 +33,13 @@ export default { ...@@ -33,14 +33,13 @@ export default {
33 } 33 }
34 }, 34 },
35 created() { 35 created() {
36 - this.tableData = this.$route.params.data 36 + console.log(this.$route)
37 - this.fromRoute = this.$route.params.from 37 + this.tableData = this.$route.query.data
38 + this.fromRoute = this.$route.query.from
38 }, 39 },
39 - wactch: { 40 + activated() {
40 - dialogVisible(val) { 41 + this.tableData = this.$route.query.data
41 - if (val) { 42 + this.fromRoute = this.$route.query.from
42 - }
43 - }
44 }, 43 },
45 methods: { 44 methods: {
46 close() { 45 close() {
...@@ -56,6 +55,4 @@ export default { ...@@ -56,6 +55,4 @@ export default {
56 } 55 }
57 </script> 56 </script>
58 57
59 -<style lang="scss" scoped>
60 -
61 -</style>
...\ No newline at end of file ...\ No newline at end of file
58 +<style lang="scss" scoped></style>
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -171,7 +171,7 @@ export default { ...@@ -171,7 +171,7 @@ export default {
171 } else if (res.code === 201) { 171 } else if (res.code === 201) {
172 this.msgWarning(res.msg); 172 this.msgWarning(res.msg);
173 this.errorData = res.data; 173 this.errorData = res.data;
174 - this.$router.push({ name: 'UpDateResult', params: { data: this.errorData, from: 'FlightInformationImport' } }) 174 + this.$router.push({ name: 'UpDateResult', query: { data: this.errorData, from: 'FlightInformationImport' } })
175 } else { 175 } else {
176 this.msgWarning(res.msg); 176 this.msgWarning(res.msg);
177 } 177 }
...@@ -200,7 +200,6 @@ export default { ...@@ -200,7 +200,6 @@ export default {
200 this.selection() 200 this.selection()
201 }, 201 },
202 upload() { 202 upload() {
203 - console.log(1)
204 this.$refs.selectForm.validateField('beginDate') 203 this.$refs.selectForm.validateField('beginDate')
205 } 204 }
206 }, 205 },
......