作者 朱兆平

操作体验优化

@@ -91,12 +91,9 @@ axios.interceptors.response.use( @@ -91,12 +91,9 @@ axios.interceptors.response.use(
91 91
92 // 下面是接口回调的satus ,因为我做了一些错误页面,所以都会指向对应的报错页面 92 // 下面是接口回调的satus ,因为我做了一些错误页面,所以都会指向对应的报错页面
93 if (error.response.status === 401) { 93 if (error.response.status === 401) {
94 - router.push({  
95 - path: "/login"  
96 - });  
97 message({ 94 message({
98 // 饿了么的消息弹窗组件 95 // 饿了么的消息弹窗组件
99 - message: '授权超时,或未授权,请重新登录', 96 + message: '授权超时,或访问未授权,请重新登录',
100 type: "error" 97 type: "error"
101 }); 98 });
102 } 99 }
@@ -129,7 +129,6 @@ @@ -129,7 +129,6 @@
129 }).then(() => { 129 }).then(() => {
130 sessionStorage.removeItem('user'); 130 sessionStorage.removeItem('user');
131 sessionStorage.removeItem('menu'); 131 sessionStorage.removeItem('menu');
132 -  
133 //退出后初始化原来的路由 132 //退出后初始化原来的路由
134 let sysRoutes = JSON.parse(sessionStorage.getItem('sysMenu')); 133 let sysRoutes = JSON.parse(sessionStorage.getItem('sysMenu'));
135 console.log(sysRoutes); 134 console.log(sysRoutes);
@@ -3,12 +3,12 @@ @@ -3,12 +3,12 @@
3 <el-form :model="ruleForm2" :rules="rules2" ref="ruleForm2" label-position="left" label-width="0px" class="demo-ruleForm login-container" id="loginForm"> 3 <el-form :model="ruleForm2" :rules="rules2" ref="ruleForm2" label-position="left" label-width="0px" class="demo-ruleForm login-container" id="loginForm">
4 <h3 class="title">系统登录</h3> 4 <h3 class="title">系统登录</h3>
5 <el-form-item prop="account"> 5 <el-form-item prop="account">
6 - <el-input type="text" v-model="ruleForm2.account" auto-complete="off" placeholder="账号"></el-input> 6 + <el-input type="text" v-model="ruleForm2.account" autofocus placeholder="账号"></el-input>
7 </el-form-item> 7 </el-form-item>
8 <el-form-item prop="checkPass"> 8 <el-form-item prop="checkPass">
9 - <el-input type="password" v-model="ruleForm2.checkPass" auto-complete="off" placeholder="密码"></el-input> 9 + <el-input type="password" v-model="ruleForm2.checkPass" placeholder="密码" @keyup.enter.native="handleSubmit2"></el-input>
10 </el-form-item> 10 </el-form-item>
11 - <el-checkbox v-model="checked" checked class="remember">记住密码</el-checkbox> 11 + <el-checkbox v-model="checked" checked class="remeberme">记住密码</el-checkbox>
12 <el-form-item style="width:100%;"> 12 <el-form-item style="width:100%;">
13 <el-button type="primary" style="width:100%;" @click.native.prevent="handleSubmit2" :loading="logining" :plain="true">登录</el-button> 13 <el-button type="primary" style="width:100%;" @click.native.prevent="handleSubmit2" :loading="logining" :plain="true">登录</el-button>
14 <!--<el-button @click.native.prevent="handleReset2">重置</el-button>--> 14 <!--<el-button @click.native.prevent="handleReset2">重置</el-button>-->
@@ -42,8 +42,8 @@ @@ -42,8 +42,8 @@
42 fixStyle: '', 42 fixStyle: '',
43 logining: false, 43 logining: false,
44 ruleForm2: { 44 ruleForm2: {
45 - account: 'admin',  
46 - checkPass: '123456' 45 + account: '',
  46 + checkPass: ''
47 }, 47 },
48 rules2: { 48 rules2: {
49 account: [ 49 account: [
@@ -32,7 +32,9 @@ @@ -32,7 +32,9 @@
32 </el-table-column> 32 </el-table-column>
33 <el-table-column prop="modelnamecn" label="操作模块" width="120" sortable> 33 <el-table-column prop="modelnamecn" label="操作模块" width="120" sortable>
34 </el-table-column> 34 </el-table-column>
35 - <el-table-column prop="classname" label="系统类" show-overflow-tooltip="true" width="100" sortable> 35 + <el-table-column prop="classname" label="系统类" show-overflow-tooltip width="100" sortable>
  36 + </el-table-column>
  37 + <el-table-column prop="parameters" label="参数" show-overflow-tooltip width="100" sortable>
36 </el-table-column> 38 </el-table-column>
37 <el-table-column prop="result" label="操作结果" min-width="200" sortable> 39 <el-table-column prop="result" label="操作结果" min-width="200" sortable>
38 </el-table-column> 40 </el-table-column>
@@ -126,7 +126,7 @@ @@ -126,7 +126,7 @@
126 <el-dialog title="新增" :visible.sync="addFormVisible" :close-on-click-modal="false"> 126 <el-dialog title="新增" :visible.sync="addFormVisible" :close-on-click-modal="false">
127 <el-form :model="addForm" label-width="80px" :rules="addFormRules" ref="addForm"> 127 <el-form :model="addForm" label-width="80px" :rules="addFormRules" ref="addForm">
128 <el-form-item label="账号" prop="username"> 128 <el-form-item label="账号" prop="username">
129 - <el-input v-model="addForm.username"></el-input> 129 + <el-input v-model="addForm.username" aria-placeholder="用户名长度在5-11位,支持英文和数字"></el-input>
130 </el-form-item> 130 </el-form-item>
131 <el-form-item label="密码" prop="password"> 131 <el-form-item label="密码" prop="password">
132 <el-input v-model="addForm.password" type="password"></el-input> 132 <el-input v-model="addForm.password" type="password"></el-input>
@@ -230,7 +230,10 @@ @@ -230,7 +230,10 @@
230 addLoading: false, 230 addLoading: false,
231 addFormRules: { 231 addFormRules: {
232 username: [ 232 username: [
233 - { required: true, message: '请输入姓名', trigger: 'blur' } 233 + { required: true, message: '请输入姓名,用户名长度在5-11位,支持英文和数字', trigger: 'blur' },
  234 + ],
  235 + password: [
  236 + { required: true, message: '请输入密码,用户名长度在6-18位,支持英文和数字和非空字符', trigger: 'blur'}
234 ] 237 ]
235 }, 238 },
236 //用户角色配置 239 //用户角色配置
@@ -432,7 +435,10 @@ @@ -432,7 +435,10 @@
432 this.getUsers(); 435 this.getUsers();
433 }).catch(error => { 436 }).catch(error => {
434 this.addLoading = false; 437 this.addLoading = false;
435 - alert(error.message); 438 + this.$message({
  439 + message: error.message,
  440 + type: 'error'
  441 + });
436 }); 442 });
437 }); 443 });
438 } 444 }
@@ -433,6 +433,7 @@ @@ -433,6 +433,7 @@
433 :loading="listLoading" 433 :loading="listLoading"
434 v-model="shprcountyr" 434 v-model="shprcountyr"
435 filterable 435 filterable
  436 + allow-create
436 remote 437 remote
437 placeholder="请选择" clearable> 438 placeholder="请选择" clearable>
438 <el-option 439 <el-option
@@ -511,6 +512,7 @@ @@ -511,6 +512,7 @@
511 :listLoading="listLoading" 512 :listLoading="listLoading"
512 v-model="cnscountyr" 513 v-model="cnscountyr"
513 filterable 514 filterable
  515 + allow-create
514 remote 516 remote
515 placeholder="请选择" clearable> 517 placeholder="请选择" clearable>
516 <el-option 518 <el-option
@@ -651,7 +653,7 @@ @@ -651,7 +653,7 @@
651 import treeTable from '@/components/TreeTable' 653 import treeTable from '@/components/TreeTable'
652 import treeToArray from '@/utils/customEval' 654 import treeToArray from '@/utils/customEval'
653 import Pagination from '@/components/Pagination' 655 import Pagination from '@/components/Pagination'
654 - 656 + import util from '@/common/js/util'
655 import {getCountry, getByCountryCode, getByCountryCodeForName,getCustomCode,getAirportCode} from "@/api/country"; 657 import {getCountry, getByCountryCode, getByCountryCodeForName,getCustomCode,getAirportCode} from "@/api/country";
656 import { 658 import {
657 getMt2201ListForParam, 659 getMt2201ListForParam,
@@ -830,7 +832,7 @@ @@ -830,7 +832,7 @@
830 cargonm: undefined, 832 cargonm: undefined,
831 sairportid: undefined, 833 sairportid: undefined,
832 dest1city: undefined, 834 dest1city: undefined,
833 - by1: undefined, 835 + by1: '',
834 dest1: undefined, 836 dest1: undefined,
835 by2: undefined, 837 by2: undefined,
836 dest2: undefined, 838 dest2: undefined,
@@ -1048,10 +1050,10 @@ @@ -1048,10 +1050,10 @@
1048 }, 1050 },
1049 by1: { 1051 by1: {
1050 get: function () { 1052 get: function () {
1051 - return this.preModel.awbinfo.by1 1053 + return util.checkNull(this.preModel.awbinfo.by1)?'':this.preModel.awbinfo.by1
1052 }, 1054 },
1053 set: function (val) { 1055 set: function (val) {
1054 - this.preModel.awbinfo.by1 = val.toUpperCase().trim() 1056 + this.preModel.awbinfo.by1 = util.checkNull(val)?'':val.toUpperCase().trim()
1055 } 1057 }
1056 }, 1058 },
1057 dest1: { 1059 dest1: {
@@ -80,7 +80,7 @@ @@ -80,7 +80,7 @@
80 </el-table-column> 80 </el-table-column>
81 <el-table-column label="状态" width="100" align="center"> 81 <el-table-column label="状态" width="100" align="center">
82 <template slot-scope="scope"> 82 <template slot-scope="scope">
83 - <span v-if="scope.row.status ==='01'">接受申报</span> 83 + <span v-if="scope.row.status ==='01'">未发送</span>
84 <span v-if="scope.row.status ==='02'">待人工审核</span> 84 <span v-if="scope.row.status ==='02'">待人工审核</span>
85 <span v-if="scope.row.status ==='03'">退单</span> 85 <span v-if="scope.row.status ==='03'">退单</span>
86 <span v-if="scope.row.status ==='05'">舱单报退单</span> 86 <span v-if="scope.row.status ==='05'">舱单报退单</span>
@@ -349,6 +349,7 @@ @@ -349,6 +349,7 @@
349 import {getResponseForParam} from '@/api/responseDetail' 349 import {getResponseForParam} from '@/api/responseDetail'
350 import {validAwb, validAlphabets, validAlphabetsAndNum, validAlphabetsAndSpanceKey,validatorNum} from "@/utils/validate" 350 import {validAwb, validAlphabets, validAlphabetsAndNum, validAlphabetsAndSpanceKey,validatorNum} from "@/utils/validate"
351 import {getCustomCode,getAirportCode} from "@/api/country"; 351 import {getCustomCode,getAirportCode} from "@/api/country";
  352 + import util from "@/common/js/util.js";
352 353
353 export default { 354 export default {
354 name: "ExitTidy", 355 name: "ExitTidy",
@@ -398,7 +399,7 @@ @@ -398,7 +399,7 @@
398 airportCode:[], 399 airportCode:[],
399 tidyQuery: { 400 tidyQuery: {
400 pageSize: 1, 401 pageSize: 1,
401 - limitSize: 100, 402 + limitSize: 30,
402 awba: undefined, 403 awba: undefined,
403 carrier: undefined, 404 carrier: undefined,
404 flightno: undefined, 405 flightno: undefined,
@@ -406,7 +407,7 @@ @@ -406,7 +407,7 @@
406 originstation: undefined, 407 originstation: undefined,
407 destinationstation: undefined, 408 destinationstation: undefined,
408 customcode: undefined, 409 customcode: undefined,
409 - messageType: undefined 410 + rcfdep: "5202"
410 }, 411 },
411 tidyRoles: { 412 tidyRoles: {
412 awba: [{required: true, trigger: 'blur', validator: validatorAwb}], 413 awba: [{required: true, trigger: 'blur', validator: validatorAwb}],
@@ -605,7 +606,7 @@ @@ -605,7 +606,7 @@
605 flightDate: row.flightdate, 606 flightDate: row.flightdate,
606 awba: row.awba, 607 awba: row.awba,
607 awbh: row.awbh, 608 awbh: row.awbh,
608 - messageType: 'MT5202' 609 + rcfdep: 'MT5202'
609 } 610 }
610 this.dialogTableVisible = true 611 this.dialogTableVisible = true
611 getResponseForParam(resQuery).then(res => { 612 getResponseForParam(resQuery).then(res => {
@@ -622,7 +623,6 @@ @@ -622,7 +623,6 @@
622 confirmButtonText: '发送', 623 confirmButtonText: '发送',
623 cancelButtonText: '取消' 624 cancelButtonText: '取消'
624 }).then(() => { 625 }).then(() => {
625 - delete row.messageType  
626 console.log(row) 626 console.log(row)
627 sendCreateMt5202(row).then(res => { 627 sendCreateMt5202(row).then(res => {
628 if (res.data.count > 0) { 628 if (res.data.count > 0) {
@@ -872,13 +872,13 @@ @@ -872,13 +872,13 @@
872 // 新增理货弹框 872 // 新增理货弹框
873 handleAddTidy() { 873 handleAddTidy() {
874 const query = { 874 const query = {
875 - 'messageType': 'MT5202' 875 + 'rcfdep': 'MT5202'
876 } 876 }
877 this.$router.push({name: '出港航班信息', params: {scopeRow: query}}) 877 this.$router.push({name: '出港航班信息', params: {scopeRow: query}})
878 }, 878 },
879 // 返回 879 // 返回
880 handelBackStep() { 880 handelBackStep() {
881 - this.tidyQuery.messageType = 'MT5202' 881 + this.tidyQuery.rcfdep = 'MT5202'
882 this.$router.push({name: '出港航班信息', params: {scopeRow: this.tidyQuery}}) 882 this.$router.push({name: '出港航班信息', params: {scopeRow: this.tidyQuery}})
883 } 883 }
884 } 884 }
@@ -466,6 +466,7 @@ @@ -466,6 +466,7 @@
466 import {Message} from "element-ui"; 466 import {Message} from "element-ui";
467 467
468 import {validAwb, validFlightNo} from '@/utils/validate' 468 import {validAwb, validFlightNo} from '@/utils/validate'
  469 + import util from '@/common/js/util'
469 470
470 export default { 471 export default {
471 name: 'OrgManifest', 472 name: 'OrgManifest',
@@ -823,7 +824,7 @@ @@ -823,7 +824,7 @@
823 }, 824 },
824 by1: { 825 by1: {
825 get: function () { 826 get: function () {
826 - return this.temp.awbinfo.by1 827 + return util.checkNull(this.temp.awbinfo.by1)?'':this.temp.awbinfo.by1
827 }, 828 },
828 set: function (val) { 829 set: function (val) {
829 this.temp.awbinfo.by1 = val.toUpperCase().trim() 830 this.temp.awbinfo.by1 = val.toUpperCase().trim()
@@ -142,6 +142,7 @@ @@ -142,6 +142,7 @@
142 <el-button 142 <el-button
143 size="mini" 143 size="mini"
144 type="primary" 144 type="primary"
  145 + :disabled="sendBtsStatus(scope.row.status)"
145 @click="handleSend(scope.$index, scope.row)">发送舱单报 146 @click="handleSend(scope.$index, scope.row)">发送舱单报
146 </el-button> 147 </el-button>
147 <el-button 148 <el-button
@@ -827,6 +828,18 @@ @@ -827,6 +828,18 @@
827 :row.status=='21'?'可自动发送':row.status=='22'?'未发送':row.status=='23'?'已发送新增报' 828 :row.status=='21'?'可自动发送':row.status=='22'?'未发送':row.status=='23'?'已发送新增报'
828 :row.status=='24'?'已发送删除报':row.status=='25'?'已发送修改报':''; 829 :row.status=='24'?'已发送删除报':row.status=='25'?'已发送修改报':'';
829 }, 830 },
  831 + //按钮禁用状态判定
  832 + sendBtsStatus:function(status){
  833 + switch (status) {
  834 + case '01':
  835 + return true;
  836 + case '22':
  837 + return false;
  838 + case '23':
  839 + return true;
  840 + }
  841 +
  842 + },
830 /*多选框功能*/ 843 /*多选框功能*/
831 handleSelectionChange(val) { 844 handleSelectionChange(val) {
832 this.multipleSelection = val; 845 this.multipleSelection = val;