Elements-SY

modify

1 +export const inputBlurValidate = {
2 + data(){
3 + return {
4 + queryForm: {
5 + minWeight: "",
6 + maxWeight: "",
7 + minNumOfPieces: "",
8 + maxNumOfPieces: "",
9 + },
10 + };
11 + },
12 + methods: {
13 + // 最小件数失焦事件
14 + inputBlurMinPieces({ target }) {
15 + this.validateNumOfPieces(target.value, "minNumOfPieces");
16 + },
17 + // 最大件数失焦事件
18 + inputBlurMaxPieces({ target }) {
19 + this.validateNumOfPieces(target.value, "maxNumOfPieces");
20 + },
21 + // 最小重量失焦事件
22 + inputBlurMinWeight({ target }) {
23 + this.validateWeight(target.value, "minWeight");
24 + },
25 + // 最大重量失焦事件
26 + inputBlurMaxWeight({ target }) {
27 + this.validateWeight(target.value, "maxWeight");
28 + },
29 + // 最小申报价值
30 + inputBlurMin({ target }, customVal) {
31 + this.validateCustomVal(target.value, customVal);
32 + },
33 + // 最大申报价值
34 + inputBlurMax({ target }, customVal) {
35 + this.validateCustomVal(target.value, customVal);
36 + },
37 + // 校验件数方法 【件数可以为空但件数不得为0】只能输入正整数
38 + validateNumOfPieces(value, pieces) {
39 + if (value.length) {
40 + this.queryForm[pieces] = Number(value);
41 + let markPieces = false;
42 + if (pieces == "minNumOfPieces" || pieces == "maxNumOfPieces") {
43 + if (this.queryForm.minNumOfPieces && this.queryForm.maxNumOfPieces) {
44 + markPieces = Number(this.queryForm.maxNumOfPieces) < Number(this.queryForm.minNumOfPieces);
45 + }
46 + }
47 + if (/^\d+$/.test(this.queryForm[pieces])) {
48 + if (markPieces) {
49 + if (this.queryForm.maxNumOfPieces < this.queryForm.minNumOfPieces) {
50 + if (Array.isArray(this.$refs.minNumOfPieces)) {
51 + this.msgError("最小件数不得大于最大件数");
52 + } else {
53 + this.$refs.minNumOfPieces.innerHTML = "";
54 + this.$refs.minNumOfPieces.innerHTML = "最小件数不得大于最大件数";
55 + }
56 + } else if (
57 + this.queryForm.minNumOfPieces < 1 || this.queryForm.maxNumOfPieces < 1
58 + ) {
59 + if (Array.isArray(this.$refs.minNumOfPieces)) {
60 + this.msgError("最小件数和最大件数不能小于1");
61 + } else {
62 + this.$refs.minNumOfPieces.innerHTML = "";
63 + this.$refs.minNumOfPieces.innerHTML = "最小件数和最大件数不能小于1";
64 + }
65 + } else {
66 + if (!Array.isArray(this.$refs.minNumOfPieces)) {
67 + this.$refs.minNumOfPieces.innerHTML = "";
68 + }
69 + }
70 + } else {
71 + if (value.length) {
72 + if (Number(value) < 1) {
73 + if (Array.isArray(this.$refs.minNumOfPieces)) {
74 + this.msgError("件数不得小于1");
75 + } else {
76 + this.$refs.minNumOfPieces.innerHTML = "";
77 + this.$refs.minNumOfPieces.innerHTML = "件数不得小于1";
78 + }
79 + } else {
80 + if (!Array.isArray(this.$refs.minNumOfPieces)) {
81 + this.$refs.minNumOfPieces.innerHTML = "";
82 + }
83 + }
84 + }
85 + }
86 + } else {
87 + if (Array.isArray(this.$refs.minNumOfPieces)) {
88 + this.msgError("请输入有效件数");
89 + } else {
90 + this.$refs.minNumOfPieces.innerHTML = "";
91 + this.$refs.minNumOfPieces.innerHTML = "请输入有效件数";
92 + }
93 + return false;
94 + }
95 + }
96 + },
97 + // 校验重量方法 【重量可以为空为0 && 最小/大重量的范围0~34KG】允许保留1~5位小数。
98 + validateWeight(value, weight) {
99 + if (value.length) {
100 + this.queryForm[weight] = Number(value);
101 + let markWeight = false;
102 + if (weight == "minWeight" || weight == "maxWeight") {
103 + if (this.queryForm.minWeight && this.queryForm.maxWeight) {
104 + markWeight = Number(this.queryForm.maxWeight) < Number(this.queryForm.minWeight);
105 + }
106 + }
107 + if (/^(0|[1-9]\d*)(.\d{1,5})?$/.test(this.queryForm[weight])) {
108 + if (this.queryForm[weight] >= 0) {
109 + if (markWeight) {
110 + if (Array.isArray(this.$refs.minWeight)) {
111 + this.msgError("最小重量不得大于最大重量");
112 + } else {
113 + this.$refs.minWeight.innerHTML = "";
114 + this.$refs.minWeight.innerHTML = "最小重量不得大于最大重量";
115 + }
116 + } else if (this.queryForm[weight] > 34) {
117 + if (Array.isArray(this.$refs.minWeight)) {
118 + this.msgError("最大重量不能大于34KG");
119 + } else {
120 + this.$refs.minWeight.innerHTML = "";
121 + this.$refs.minWeight.innerHTML = "最大重量不能大于34KG";
122 + }
123 + } else {
124 + if (!Array.isArray(this.$refs.minWeight)) {
125 + this.$refs.minWeight.innerHTML = "";
126 + }
127 + }
128 + } else {
129 + if (value.length) {
130 + if (Number(value) > 34) {
131 + if (Array.isArray(this.$refs.minWeight)) {
132 + this.msgError("最大重量不能大于34KG");
133 + } else {
134 + this.$refs.minWeight.innerHTML = "";
135 + this.$refs.minWeight.innerHTML = "最大重量不能大于34KG";
136 + }
137 + } else {
138 + if (!Array.isArray(this.$refs.minWeight)) {
139 + this.$refs.minWeight.innerHTML = "";
140 + }
141 + }
142 + }
143 + }
144 + } else {
145 + if (Array.isArray(this.$refs.minWeight)) {
146 + this.msgError("请输入正整数,小数保留5位");
147 + } else {
148 + this.$refs.minWeight.innerHTML = "";
149 + this.$refs.minWeight.innerHTML = "请输入正整数,小数保留5位";
150 + }
151 + return false;
152 + }
153 + }
154 + },
155 + // 报价值【申报价值可以为空为0】
156 + validateCustomVal(value, customVal) {
157 + if (value.length) {
158 + this.queryForm[customVal] = Number(value);
159 + let coin = {
160 + minCNYCustomVal: "minCNYCustomVal",
161 + maxCNYCustomVal: "minCNYCustomVal",
162 + minSUDCustomVal: "minSUDCustomVal",
163 + maxSUDCustomVal: "minSUDCustomVal",
164 + };
165 + let currency = {
166 + minCNYCustomVal: 2000,
167 + maxCNYCustomVal: 2000,
168 + minSUDCustomVal: 600,
169 + maxSUDCustomVal: 600,
170 + };
171 + let markCoin = false;
172 + if (customVal == "minCNYCustomVal" || customVal == "maxCNYCustomVal") {
173 + if (this.queryForm.minCNYCustomVal && this.queryForm.maxCNYCustomVal) {
174 + markCoin = Number(this.queryForm.maxCNYCustomVal) < Number(this.queryForm.minCNYCustomVal);
175 + }
176 + } else {
177 + if (this.queryForm.minSUDCustomVal && this.queryForm.maxSUDCustomVal) {
178 + markCoin = Number(this.queryForm.maxSUDCustomVal) < Number(this.queryForm.minSUDCustomVal);
179 + }
180 + }
181 + if (/^(0|[1-9]\d*)(.\d{1,2})?$/.test(this.queryForm[customVal])) {
182 + if (this.queryForm[customVal] >= 0) {
183 + if (markCoin) {
184 + this.$refs[coin[customVal]].innerHTML = "";
185 + this.$refs[coin[customVal]].innerHTML = "最小申报价值不得大于最大申报价值";
186 + } else if (this.queryForm[customVal] > currency[customVal]) {
187 + this.$refs[coin[customVal]].innerHTML = "";
188 + this.$refs[coin[customVal]].innerHTML = `最大申报值不得大于${currency[customVal]}`;
189 + } else {
190 + this.$refs[coin[customVal]].innerHTML = "";
191 + }
192 + } else {
193 + if (value.length) {
194 + if (Number(value) > currency[customVal]) {
195 + this.$refs[coin[customVal]].innerHTML = "";
196 + this.$refs[coin[customVal]].innerHTML = `最大申报值不得大于${currency[customVal]}`;
197 + } else {
198 + this.$refs[coin[customVal]].innerHTML = "";
199 + }
200 + }
201 + }
202 + } else {
203 + this.$refs[coin[customVal]].innerHTML = "";
204 + this.$refs[coin[customVal]].innerHTML = "请输入正确申报价值";
205 + return false;
206 + }
207 + }
208 + },
209 + },
210 +};
...@@ -303,7 +303,7 @@ export default { ...@@ -303,7 +303,7 @@ export default {
303 this.shiftKey = false; 303 this.shiftKey = false;
304 } 304 }
305 }); 305 });
306 - // this.tableHeight = window.innerHeight - this.$refs.form.$el.offsetHeight - 60; 306 + this.tableHeight = window.innerHeight - this.$refs.form.$el.offsetHeight - 60;
307 }, 307 },
308 methods: { 308 methods: {
309 //查询条件 309 //查询条件
......
...@@ -71,7 +71,11 @@ ...@@ -71,7 +71,11 @@
71 align="center" 71 align="center"
72 > 72 >
73 <template slot-scope="scope"> 73 <template slot-scope="scope">
74 - <el-select v-model="scope.row.fltRoute" placeholder="请选择" size="small"> 74 + <el-select
75 + v-model="scope.row.fltRoute"
76 + placeholder="请选择"
77 + size="small"
78 + >
75 <el-option 79 <el-option
76 v-for="item in scope.row.routeList" 80 v-for="item in scope.row.routeList"
77 :key="item.id" 81 :key="item.id"
...@@ -231,7 +235,7 @@ ...@@ -231,7 +235,7 @@
231 v-model.trim="queryForm.minWeight" 235 v-model.trim="queryForm.minWeight"
232 clearable 236 clearable
233 placeholder="最小重量" 237 placeholder="最小重量"
234 - @blur="inputBlur('minWeight')" 238 + @blur="inputBlurMinWeight($event)"
235 ></el-input> 239 ></el-input>
236 <span ref="minWeight" class="el-form-item__error"></span> 240 <span ref="minWeight" class="el-form-item__error"></span>
237 </el-col> 241 </el-col>
...@@ -241,7 +245,7 @@ ...@@ -241,7 +245,7 @@
241 v-model.trim="queryForm.maxWeight" 245 v-model.trim="queryForm.maxWeight"
242 clearable 246 clearable
243 placeholder="最大重量" 247 placeholder="最大重量"
244 - @blur="inputBlur('maxWeight')" 248 + @blur="inputBlurMaxWeight($event)"
245 ></el-input> 249 ></el-input>
246 </el-col> 250 </el-col>
247 </el-form-item> 251 </el-form-item>
...@@ -254,7 +258,7 @@ ...@@ -254,7 +258,7 @@
254 v-model.trim="queryForm.minNumOfPieces" 258 v-model.trim="queryForm.minNumOfPieces"
255 clearable 259 clearable
256 placeholder="最少件数" 260 placeholder="最少件数"
257 - @blur="inputBlur('minNumOfPieces')" 261 + @blur="inputBlurMinPieces($event)"
258 ></el-input> 262 ></el-input>
259 <span ref="minNumOfPieces" class="el-form-item__error"></span> 263 <span ref="minNumOfPieces" class="el-form-item__error"></span>
260 </el-col> 264 </el-col>
...@@ -264,7 +268,7 @@ ...@@ -264,7 +268,7 @@
264 v-model.trim="queryForm.maxNumOfPieces" 268 v-model.trim="queryForm.maxNumOfPieces"
265 clearable 269 clearable
266 placeholder="最多件数" 270 placeholder="最多件数"
267 - @blur="inputBlur('maxNumOfPieces')" 271 + @blur="inputBlurMaxPieces($event)"
268 ></el-input> 272 ></el-input>
269 </el-col> 273 </el-col>
270 </el-form-item> 274 </el-form-item>
...@@ -283,7 +287,7 @@ ...@@ -283,7 +287,7 @@
283 v-model.trim="queryForm.minCNYCustomVal" 287 v-model.trim="queryForm.minCNYCustomVal"
284 clearable 288 clearable
285 placeholder="最小申报价值" 289 placeholder="最小申报价值"
286 - @blur="inputBlur('minCNYCustomVal')" 290 + @blur="inputBlurMin($event, 'minCNYCustomVal')"
287 ></el-input> 291 ></el-input>
288 <span 292 <span
289 ref="minCNYCustomVal" 293 ref="minCNYCustomVal"
...@@ -296,7 +300,7 @@ ...@@ -296,7 +300,7 @@
296 v-model.trim="queryForm.maxCNYCustomVal" 300 v-model.trim="queryForm.maxCNYCustomVal"
297 clearable 301 clearable
298 placeholder="最大申报价值" 302 placeholder="最大申报价值"
299 - @blur="inputBlur('maxCNYCustomVal')" 303 + @blur="inputBlurMax($event, 'maxCNYCustomVal')"
300 ></el-input> 304 ></el-input>
301 </el-col> 305 </el-col>
302 </el-form-item> 306 </el-form-item>
...@@ -308,7 +312,7 @@ ...@@ -308,7 +312,7 @@
308 v-model.trim="queryForm.minSUDCustomVal" 312 v-model.trim="queryForm.minSUDCustomVal"
309 clearable 313 clearable
310 placeholder="最小申报价值" 314 placeholder="最小申报价值"
311 - @blur="inputBlur('minSUDCustomVal')" 315 + @blur="inputBlurMin($event, 'minSUDCustomVal')"
312 ></el-input> 316 ></el-input>
313 <span 317 <span
314 ref="minSUDCustomVal" 318 ref="minSUDCustomVal"
...@@ -321,7 +325,7 @@ ...@@ -321,7 +325,7 @@
321 v-model.trim="queryForm.maxSUDCustomVal" 325 v-model.trim="queryForm.maxSUDCustomVal"
322 clearable 326 clearable
323 placeholder="最大申报价值" 327 placeholder="最大申报价值"
324 - @blur="inputBlur('maxSUDCustomVal')" 328 + @blur="inputBlurMax($event, 'maxSUDCustomVal')"
325 ></el-input> 329 ></el-input>
326 </el-col> 330 </el-col>
327 </el-form-item> 331 </el-form-item>
...@@ -345,6 +349,7 @@ import YlForm from "@/components/YlForm"; ...@@ -345,6 +349,7 @@ import YlForm from "@/components/YlForm";
345 import YlTable from "@/components/YlTable"; 349 import YlTable from "@/components/YlTable";
346 import { formConfig } from "./formConfig"; 350 import { formConfig } from "./formConfig";
347 import { debounce } from "@/utils"; 351 import { debounce } from "@/utils";
352 +import { inputBlurValidate } from "@/utils/mixins";
348 import { tableAttr } from "./tableConfig"; 353 import { tableAttr } from "./tableConfig";
349 import { 354 import {
350 allDictData, // 获取全部字典 355 allDictData, // 获取全部字典
...@@ -358,7 +363,7 @@ export default { ...@@ -358,7 +363,7 @@ export default {
358 YlForm, 363 YlForm,
359 YlTable, 364 YlTable,
360 }, 365 },
361 - mixins: [indexMixins], 366 + mixins: [indexMixins, inputBlurValidate],
362 data() { 367 data() {
363 return { 368 return {
364 formConfig: formConfig, // 表单配置项 369 formConfig: formConfig, // 表单配置项
...@@ -372,10 +377,10 @@ export default { ...@@ -372,10 +377,10 @@ export default {
372 cargoType: [], // 申报类别调用接口获取所有的申报类别 377 cargoType: [], // 申报类别调用接口获取所有的申报类别
373 checkboxCargoType: [], // 已勾选申报类别的数据 378 checkboxCargoType: [], // 已勾选申报类别的数据
374 singleName: false, // 单品名 379 singleName: false, // 单品名
375 - minWeight: null, 380 + minWeight: "",
376 - maxWeight: null, 381 + maxWeight: "",
377 - minNumOfPieces: null, 382 + minNumOfPieces: "",
378 - maxNumOfPieces: null, 383 + maxNumOfPieces: "",
379 minCNYCustomVal: "", // 384 minCNYCustomVal: "", //
380 maxCNYCustomVal: "", // 385 maxCNYCustomVal: "", //
381 minSUDCustomVal: "", // 386 minSUDCustomVal: "", //
...@@ -556,45 +561,6 @@ export default { ...@@ -556,45 +561,6 @@ export default {
556 this.queryForm.checkboxCargoType = include; //已勾选申报类别的数据 561 this.queryForm.checkboxCargoType = include; //已勾选申报类别的数据
557 // console.log(arr, include); 562 // console.log(arr, include);
558 }, 563 },
559 - // 重量、件数、申报值input失焦事件
560 - inputBlur(name) {
561 - let coin = {
562 - minCNYCustomVal: "CNY",
563 - maxCNYCustomVal: "CNY",
564 - minSUDCustomVal: "USD",
565 - maxSUDCustomVal: "USD",
566 - };
567 - if (name == "minWeight") {
568 - // 最小重量
569 - this.validateMaxWeight("maxWeight");
570 - this.validateMinWeight(name);
571 - }
572 - if (name == "maxWeight") {
573 - // 最大重量
574 - this.validateMinWeight("minWeight");
575 - this.validateMaxWeight(name);
576 - }
577 - if (name == "minNumOfPieces") {
578 - // 最小件数
579 - this.validateMaxPieces("maxNumOfPieces");
580 - this.validateMinPieces(name);
581 - }
582 - if (name == "maxNumOfPieces") {
583 - // 最大件数
584 - this.validateMinPieces("minNumOfPieces");
585 - this.validateMaxPieces(name);
586 - }
587 - if (name == "minCNYCustomVal" || name == "minSUDCustomVal") {
588 - // 最小申报值(CNY/USD)
589 - this.validateMaxCustomVal(coin[name]);
590 - this.validateMinCustomVal(coin[name]);
591 - }
592 - if (name == "maxCNYCustomVal" || name == "maxSUDCustomVal") {
593 - // 最大申报值(CNY/USD)
594 - this.validateMinCustomVal(coin[name]);
595 - this.validateMaxCustomVal(coin[name]);
596 - }
597 - },
598 // 表单提交 564 // 表单提交
599 submitForm(formName) { 565 submitForm(formName) {
600 this.$refs[formName].validate((valid) => { 566 this.$refs[formName].validate((valid) => {
...@@ -602,8 +568,8 @@ export default { ...@@ -602,8 +568,8 @@ export default {
602 let parmas = { 568 let parmas = {
603 fltInfoList: this.tableData, 569 fltInfoList: this.tableData,
604 ...this.queryForm, 570 ...this.queryForm,
605 - } 571 + };
606 - parmas.singleName = this.queryForm.singleName ? 'Y' : 'N'; // N为单品名,Y为多品名 572 + parmas.singleName = this.queryForm.singleName ? "Y" : "N"; // N为单品名,Y为多品名
607 console.log(parmas); 573 console.log(parmas);
608 } else { 574 } else {
609 console.log("error submit!!"); 575 console.log("error submit!!");
......
...@@ -106,7 +106,7 @@ export default { ...@@ -106,7 +106,7 @@ export default {
106 } 106 }
107 }, 107 },
108 mounted() { 108 mounted() {
109 - // this.tableHeight = window.innerHeight - this.$refs.flightAllocForm.$el.offsetHeight - 200; 109 + this.tableHeight = window.innerHeight - this.$refs.flightAllocForm.$el.offsetHeight - 200;
110 }, 110 },
111 activated() { 111 activated() {
112 this.getList() 112 this.getList()
......
...@@ -249,7 +249,7 @@ export default { ...@@ -249,7 +249,7 @@ export default {
249 } 249 }
250 }, 250 },
251 mounted() { 251 mounted() {
252 - // this.tableHeight = window.innerHeight - this.$refs.queryForm.$el.offsetHeight - 200; 252 + this.tableHeight = window.innerHeight - this.$refs.queryForm.$el.offsetHeight - 200;
253 }, 253 },
254 activated() { 254 activated() {
255 this.findSourceFlightRules(); 255 this.findSourceFlightRules();
......
...@@ -113,7 +113,7 @@ export default { ...@@ -113,7 +113,7 @@ export default {
113 } 113 }
114 }, 114 },
115 mounted() { 115 mounted() {
116 - // this.tableHeight = window.innerHeight - this.$refs.preReviewOptions.offsetHeight - 300; 116 + this.tableHeight = window.innerHeight - this.$refs.preReviewOptions.offsetHeight - 300;
117 }, 117 },
118 methods: { 118 methods: {
119 //搜索 119 //搜索
......
...@@ -502,7 +502,7 @@ export default { ...@@ -502,7 +502,7 @@ export default {
502 this.shiftKey = false; 502 this.shiftKey = false;
503 } 503 }
504 }); 504 });
505 - // this.tableHeight = window.innerHeight - this.$refs.queryForm.$el.offsetHeight - 120; 505 + this.tableHeight = window.innerHeight - this.$refs.queryForm.$el.offsetHeight - 120;
506 }, 506 },
507 methods: { 507 methods: {
508 //输入航班号后 508 //输入航班号后
......
...@@ -92,7 +92,7 @@ export default { ...@@ -92,7 +92,7 @@ export default {
92 92
93 }, 93 },
94 mounted() { 94 mounted() {
95 - // this.tableHeight = window.innerHeight - this.$refs.goodsStation.$el.offsetHeight - 200; 95 + this.tableHeight = window.innerHeight - this.$refs.goodsStation.$el.offsetHeight - 200;
96 this.selection(1) 96 this.selection(1)
97 }, 97 },
98 watch: { 98 watch: {
......
...@@ -92,7 +92,7 @@ export default { ...@@ -92,7 +92,7 @@ export default {
92 92
93 }, 93 },
94 mounted() { 94 mounted() {
95 - // this.tableHeight = window.innerHeight - this.$refs.goodsStation.$el.offsetHeight - 200; 95 + this.tableHeight = window.innerHeight - this.$refs.goodsStation.$el.offsetHeight - 200;
96 this.selection(1) 96 this.selection(1)
97 }, 97 },
98 watch: { 98 watch: {
......
...@@ -73,7 +73,7 @@ export default { ...@@ -73,7 +73,7 @@ export default {
73 created() { 73 created() {
74 }, 74 },
75 mounted() { 75 mounted() {
76 - // this.tableHeight = window.innerHeight - this.$refs.goodsStationFlight.$el.offsetHeight - 200; 76 + this.tableHeight = window.innerHeight - this.$refs.goodsStationFlight.$el.offsetHeight - 200;
77 this.selection(1) 77 this.selection(1)
78 }, 78 },
79 watch: { 79 watch: {
......
...@@ -441,7 +441,7 @@ export default { ...@@ -441,7 +441,7 @@ export default {
441 this.shiftKey = false; 441 this.shiftKey = false;
442 } 442 }
443 }); 443 });
444 - // this.tableHeight = window.innerHeight - this.$refs.cargoForm.$el.offsetHeight - 50 444 + this.tableHeight = window.innerHeight - this.$refs.cargoForm.$el.offsetHeight - 50
445 }, 445 },
446 watch: { 446 watch: {
447 $route: { 447 $route: {
...@@ -489,7 +489,7 @@ export default { ...@@ -489,7 +489,7 @@ export default {
489 } 489 }
490 }, 490 },
491 formShow(val, oldVal) { 491 formShow(val, oldVal) {
492 - // this.tableHeight = window.innerHeight - this.$refs.cargoForm.$el.offsetHeight - 120 492 + this.tableHeight = window.innerHeight - this.$refs.cargoForm.$el.offsetHeight - 120
493 }, 493 },
494 }, 494 },
495 methods: { 495 methods: {
......
...@@ -109,7 +109,7 @@ export default { ...@@ -109,7 +109,7 @@ export default {
109 // this.getFlight() 109 // this.getFlight()
110 // }, 110 // },
111 mounted() { 111 mounted() {
112 - // this.tableHeight = window.innerHeight - this.$refs.card1.$el.offsetHeight - this.$refs.indexForm.$el.offsetHeight - 350 112 + this.tableHeight = window.innerHeight - this.$refs.card1.$el.offsetHeight - this.$refs.indexForm.$el.offsetHeight - 350
113 this.getFlight() 113 this.getFlight()
114 }, 114 },
115 methods: { 115 methods: {
......
...@@ -100,7 +100,7 @@ export default { ...@@ -100,7 +100,7 @@ export default {
100 created() { 100 created() {
101 }, 101 },
102 mounted() { 102 mounted() {
103 - // this.tableHeight = window.innerHeight - this.$refs.selectForm.$el.offsetHeight - 170; 103 + this.tableHeight = window.innerHeight - this.$refs.selectForm.$el.offsetHeight - 170;
104 this.selection(1) 104 this.selection(1)
105 }, 105 },
106 activated() { 106 activated() {
......
...@@ -139,7 +139,7 @@ export default { ...@@ -139,7 +139,7 @@ export default {
139 this.selectOptionData() 139 this.selectOptionData()
140 }, 140 },
141 mounted() { 141 mounted() {
142 - // this.tableHeight = window.innerHeight - this.$refs.preMdeSelectForm.$el.offsetHeight - 150; 142 + this.tableHeight = window.innerHeight - this.$refs.preMdeSelectForm.$el.offsetHeight - 150;
143 this.select(0) 143 this.select(0)
144 }, 144 },
145 watch: { 145 watch: {
......
...@@ -101,7 +101,7 @@ export default { ...@@ -101,7 +101,7 @@ export default {
101 created() { 101 created() {
102 }, 102 },
103 mounted() { 103 mounted() {
104 - // this.tableHeight = window.innerHeight - this.$refs.selectForm.$el.offsetHeight - 170; 104 + this.tableHeight = window.innerHeight - this.$refs.selectForm.$el.offsetHeight - 170;
105 this.selection(1) 105 this.selection(1)
106 }, 106 },
107 activated() { 107 activated() {
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
3 <el-card style="margin-bottom:10px"> 3 <el-card style="margin-bottom:10px">
4 <!-- cardHeader --> 4 <!-- cardHeader -->
5 <div slot="header" class="clearfix"> 5 <div slot="header" class="clearfix">
6 - <span style="font-size:16px;font-weight:700">{{ (tableName == '航线' ? '航线' : tableName == 'Site' ? '始发站' : 6 + <span style="font-size:16px;font-weight:700">{{ (tableName == '航线' ? '航线' : tableName == 'Site' ? '站点' :
7 tableName == 7 tableName ==
8 '虚拟航班' ? '虚拟航班' : tableName.replace(/( |^)[a-z]/g, L => L.toUpperCase())) + "表" 8 '虚拟航班' ? '虚拟航班' : tableName.replace(/( |^)[a-z]/g, L => L.toUpperCase())) + "表"
9 }}</span> 9 }}</span>
...@@ -220,7 +220,7 @@ export default { ...@@ -220,7 +220,7 @@ export default {
220 // } 220 // }
221 }, 221 },
222 mounted() { 222 mounted() {
223 - // this.tableHeight = window.innerHeight - this.$refs.dictForm.$el.offsetHeight - 270 223 + this.tableHeight = window.innerHeight - this.$refs.dictForm.$el.offsetHeight - 270
224 }, 224 },
225 filters: { 225 filters: {
226 // 是否为ET86航线 226 // 是否为ET86航线
......
...@@ -86,7 +86,7 @@ export default { ...@@ -86,7 +86,7 @@ export default {
86 } 86 }
87 }, 87 },
88 mounted() { 88 mounted() {
89 - // this.tableHeight = window.innerHeight - this.$refs.selectionRoleForm.$el.offsetHeight - 250 89 + this.tableHeight = window.innerHeight - this.$refs.selectionRoleForm.$el.offsetHeight - 250
90 }, 90 },
91 activated() { 91 activated() {
92 this.selectRoleList(); 92 this.selectRoleList();
......
...@@ -80,7 +80,7 @@ export default { ...@@ -80,7 +80,7 @@ export default {
80 created() { 80 created() {
81 }, 81 },
82 mounted() { 82 mounted() {
83 - // this.tableHeight = window.innerHeight - this.$refs.supserAllocation.$el.offsetHeight - 250 83 + this.tableHeight = window.innerHeight - this.$refs.supserAllocation.$el.offsetHeight - 250
84 this.selection(1) 84 this.selection(1)
85 }, 85 },
86 methods: { 86 methods: {
......
...@@ -113,7 +113,7 @@ export default { ...@@ -113,7 +113,7 @@ export default {
113 } 113 }
114 }, 114 },
115 mounted() { 115 mounted() {
116 - // this.tableHeight = window.innerHeight - this.$refs.selectionUserForm.$el.offsetHeight - 250; 116 + this.tableHeight = window.innerHeight - this.$refs.selectionUserForm.$el.offsetHeight - 250;
117 }, 117 },
118 activated() { 118 activated() {
119 this.selectUser(); 119 this.selectUser();
......
...@@ -64,7 +64,7 @@ export default { ...@@ -64,7 +64,7 @@ export default {
64 this.selectLog() 64 this.selectLog()
65 }, 65 },
66 mounted() { 66 mounted() {
67 - // this.tableHeight = window.innerHeight - this.$refs.archiveDataForm.$el.offsetHeight - 200 67 + this.tableHeight = window.innerHeight - this.$refs.archiveDataForm.$el.offsetHeight - 200
68 }, 68 },
69 methods: { 69 methods: {
70 selectLog(val) { 70 selectLog(val) {
......
...@@ -130,7 +130,7 @@ export default { ...@@ -130,7 +130,7 @@ export default {
130 this.data = []; 130 this.data = [];
131 }, 131 },
132 mounted() { 132 mounted() {
133 - // this.tableHeight = window.innerHeight - this.$refs.dmLogForm.$el.offsetHeight - 130; 133 + this.tableHeight = window.innerHeight - this.$refs.dmLogForm.$el.offsetHeight - 130;
134 }, 134 },
135 methods: { 135 methods: {
136 //数据查询 136 //数据查询
......
...@@ -109,7 +109,7 @@ export default { ...@@ -109,7 +109,7 @@ export default {
109 this.selectLog(); 109 this.selectLog();
110 }, 110 },
111 mounted() { 111 mounted() {
112 - // this.tableHeight = window.innerHeight - this.$refs.operationLogForm.$el.offsetHeight - 240 112 + this.tableHeight = window.innerHeight - this.$refs.operationLogForm.$el.offsetHeight - 240
113 }, 113 },
114 methods: { 114 methods: {
115 getModule() { 115 getModule() {
......