作者 xudada

获取用户信息及用户权限BUG

... ... @@ -541,6 +541,7 @@
import { QueryData,ediAllocat,sendCreateMt6202,sendRemoveMt6202,sendCreateMt3202,sendRemoveMt3202 } from '../../api/Allocat'
import loginUserInfo from '@/api/base'
import {mapActions, mapGetters} from 'vuex'
import {loginedUserInfo} from "../../api/user";
export default{
data(){
return{
... ... @@ -798,7 +799,7 @@
},
//发送分拨申请报
importSend(index,row){
const map = {'mt6202':row,'username':this.getUserInfoStore.username}
const map = {'mt6202':row,'username':loginedUserInfo().username}
sendCreateMt6202(map).then(res=>{
let response=res.data;
//console.log(res);
... ... @@ -848,7 +849,7 @@
'contactName':this.Udform.operperson,
'contactTel':this.Udform.opertel,
'carrier':this.rows.carrier,
'username':this.getUserInfoStore.username}
'username':loginedUserInfo().username}
if(this.rows.turntype=='MT6202'){
sendRemoveMt6202(map).then(res=>{
let response=res.data;
... ... @@ -898,7 +899,7 @@
//发送分拨运抵报
arriveSend(index,row){
const map = {'mt3202':row,'username':this.getUserInfoStore.username}
const map = {'mt3202':row,'username':loginedUserInfo().username}
sendCreateMt3202(map).then(res=>{
let response=res.data;
//console.log(res);
... ...
... ... @@ -738,6 +738,7 @@
import htmlToPdf from "../../api/htmlToPdf";
import loginUserInfo from '@/api/base.js'
import {mapActions, mapGetters} from 'vuex'
import {loginedUserInfo} from "../../api/user";
export default {
data() {
/*初始数据*/
... ... @@ -749,7 +750,7 @@
destinationstation: undefined,
awba: undefined
},
LoginUserInfo: loginUserInfo,
LoginUserInfo: loginedUserInfo(),
FenQuery:{
flightno: undefined,
flightdate: undefined,
... ... @@ -823,7 +824,7 @@
awbtype:'001',
},
userinfo: {
username: this.getUserInfoStore.username
username: loginedUserInfo().username
},
waybill:undefined,
customText:undefined
... ... @@ -1071,7 +1072,7 @@
}else{
row.flightno=row.flightno;
}
const map = {'mt1201':row,'username':this.getUserInfoStore.username}
const map = {'mt1201':row,'username':loginedUserInfo().username}
sendCreateMt1201(map).then(res=>{
let response=res.data;
//console.log(res);
... ... @@ -1114,7 +1115,7 @@
this.$refs[formName].validate((valid) => {
if (valid) {
if(this.batichboolean){
let arr={ids:this.uuids,reason:this.Udform.operreason,contactName:this.getUserInfoStore.username,contactTel:this.Udform.opertel,content:''}
let arr={ids:this.uuids,reason:this.Udform.operreason,contactName:loginedUserInfo().username,contactTel:this.Udform.opertel,content:''}
sendBatchDelMt1201(arr).then(res=>{
let response=res.data;
this.code=response.code;
... ... @@ -1137,7 +1138,7 @@
'contactName':this.Udform.operperson,
'contactTel':this.Udform.opertel,
'carrier':this.Udform.carrier,
'username':this.getUserInfoStore.username}
'username':loginedUserInfo().username}
sendRemoveMt1201(map).then(res=>{
let response=res.data;
//console.log(res);
... ... @@ -1193,7 +1194,7 @@
'reason' :this.Udform.operreason,
'contactName':this.Udform.operperson,
'contactTel':this.Udform.opertel,
'username':this.getUserInfoStore.username}
'username':loginedUserInfo().username}
sendEditeMt1201(map).then(res=>{
let response=res.data;
//console.log(res);
... ... @@ -1314,7 +1315,7 @@
_this.ruleForm.userinfo = {
username: ''
}
_this.ruleForm.userinfo.username=_this.getUserInfoStore.username;
_this.ruleForm.userinfo.username=loginedUserInfo().username;
_this.ruleForm.status='22';
addMt1201(_this.ruleForm).then(res=>{
let response=res.data;
... ... @@ -1347,7 +1348,7 @@
_this.ruleForm.userinfo = {
username: ''
}
_this.ruleForm.userinfo.username=_this.getUserInfoStore.username;
_this.ruleForm.userinfo.username=loginedUserInfo().username;
ediMt1201(_this.ruleForm).then(res=>{
let response=res.data;
//console.log(res);
... ...
... ... @@ -448,6 +448,7 @@
import loginUserInfo from '@/api/base'
import {sendBatchApllyMt1201, sendBatchDelMt1201} from "../../api/mt1201";
import {mapActions, mapGetters} from 'vuex'
import {loginedUserInfo} from "../../api/user";
export default {
data() {
return {
... ... @@ -492,7 +493,7 @@
wei:undefined,
ext5:undefined,
userinfo: {
username: this.getUserInfoStore.username
username: loginedUserInfo().username
},
},
FenStatus:'',
... ... @@ -627,7 +628,7 @@
if(row.awbh==null){
row.awbh="";
}
const map = {'mt520x':row,'username':this.getUserInfoStore.username}
const map = {'mt520x':row,'username':loginedUserInfo().username}
sendCreateMt520x(map).then(res=>{
let response=res.data;
//console.log(res);
... ... @@ -673,7 +674,7 @@
this.$refs[formName].validate((valid) => {
if (valid) {
if(this.batichboolean){
let arr={ids:this.uuids,reason:this.Udform.operreason,contactName:this.getUserInfoStore.username,contactTel:this.Udform.opertel,content:''}
let arr={ids:this.uuids,reason:this.Udform.operreason,contactName:loginedUserInfo().username,contactTel:this.Udform.opertel,content:''}
sendbatchRemoveMt5201(arr).then(res=>{
let response=res.data;
this.code=response.code;
... ... @@ -697,7 +698,7 @@
'contactTel':this.Udform.opertel,
'rcfdep':this.rows.rcfdep,
'carrier':this.rows.carrier,
'username':this.getUserInfoStore.username}
'username':loginedUserInfo().username}
sendRemoveMt520x(map).then(res=>{
let response=res.data;
//console.log(res);
... ... @@ -829,7 +830,7 @@
_this.ruleForm.userinfo = {
username: ''
}
_this.ruleForm.userinfo.username=_this.getUserInfoStore.username;
_this.ruleForm.userinfo.username=loginedUserInfo().username;
_this.ruleForm.status='22';
//this.ruleForm.endtime=this.ruleForm.starttime.add(Calendar.MINUTE, 15);
addMt5201(_this.ruleForm).then(res=>{
... ... @@ -862,7 +863,7 @@
_this.ruleForm.userinfo = {
username: ''
}
_this.ruleForm.userinfo.username=_this.getUserInfoStore.username;
_this.ruleForm.userinfo.username=loginedUserInfo().username;
ediMt5201(_this.ruleForm).then(res=>{
let response=res.data;
_this.code=response.code;
... ...