作者 xudada

获取用户信息及用户权限修改

... ... @@ -540,6 +540,7 @@
import{addResponse,selectResponseList} from "../../api/InResponse";
import { QueryData,ediAllocat,sendCreateMt6202,sendRemoveMt6202,sendCreateMt3202,sendRemoveMt3202 } from '../../api/Allocat'
import loginUserInfo from '@/api/base'
import {mapActions, mapGetters} from 'vuex'
export default{
data(){
return{
... ... @@ -797,7 +798,7 @@
},
//发送分拨申请报
importSend(index,row){
const map = {'mt6202':row,'username':loginUserInfo.username}
const map = {'mt6202':row,'username':this.getUserInfoStore.username}
sendCreateMt6202(map).then(res=>{
let response=res.data;
//console.log(res);
... ... @@ -847,7 +848,7 @@
'contactName':this.Udform.operperson,
'contactTel':this.Udform.opertel,
'carrier':this.rows.carrier,
'username':loginUserInfo.username}
'username':this.getUserInfoStore.username}
if(this.rows.turntype=='MT6202'){
sendRemoveMt6202(map).then(res=>{
let response=res.data;
... ... @@ -897,7 +898,7 @@
//发送分拨运抵报
arriveSend(index,row){
const map = {'mt3202':row,'username':loginUserInfo.username}
const map = {'mt3202':row,'username':this.getUserInfoStore.username}
sendCreateMt3202(map).then(res=>{
let response=res.data;
//console.log(res);
... ... @@ -1039,6 +1040,9 @@
});
}
},
computed:{
...mapGetters(['getUserInfoStore','getUserMenuStore']) // 动态计算属性,相当于this.$store.getters.resturantName
},
mounted(){
this.getList();
}
... ...
... ... @@ -98,6 +98,7 @@
<script>
import { selectFlightLists } from '../../api/mt1201'
import {mapActions, mapGetters} from 'vuex'
export default {
data() {
/*初始化值*/
... ... @@ -108,7 +109,8 @@
currentPage:1,
pageSize:10,
total:0,
tableloading:true
tableloading:true,
departmentid:''
}
},
methods: {
... ... @@ -127,7 +129,7 @@
},
/*查询列表请求*/
getFlightList:function() {
let params={currentPage:this.currentPage,pageSize:this.pageSize,flighttime:this.flighttime,carrier:this.carrier};
let params={currentPage:this.currentPage,pageSize:this.pageSize,flighttime:this.flighttime,carrier:this.carrier,departmentid:this.getUserInfoStore.companyInfo.departmentid};
this.listLoading = true;
selectFlightLists(params).then(res=>{
let response=res.data.data;
... ... @@ -154,7 +156,8 @@
set:function (val) {
this.carrier=val.toUpperCase();
}
}
},
...mapGetters(['getUserInfoStore','getUserMenuStore']) // 动态计算属性,相当于this.$store.getters.resturantName
},
/*渲染方法*/
mounted() {
... ...
... ... @@ -737,6 +737,7 @@
import XLSX from "xlsx";
import htmlToPdf from "../../api/htmlToPdf";
import loginUserInfo from '@/api/base.js'
import {mapActions, mapGetters} from 'vuex'
export default {
data() {
/*初始数据*/
... ... @@ -822,7 +823,7 @@
awbtype:'001',
},
userinfo: {
username: '11111'
username: this.getUserInfoStore.username
},
waybill:undefined,
customText:undefined
... ... @@ -1070,7 +1071,7 @@
}else{
row.flightno=row.flightno;
}
const map = {'mt1201':row,'username':loginUserInfo.username}
const map = {'mt1201':row,'username':this.getUserInfoStore.username}
sendCreateMt1201(map).then(res=>{
let response=res.data;
//console.log(res);
... ... @@ -1113,7 +1114,7 @@
this.$refs[formName].validate((valid) => {
if (valid) {
if(this.batichboolean){
let arr={ids:this.uuids,reason:this.Udform.operreason,contactName:loginUserInfo.username,contactTel:this.Udform.opertel,content:''}
let arr={ids:this.uuids,reason:this.Udform.operreason,contactName:this.getUserInfoStore.username,contactTel:this.Udform.opertel,content:''}
sendBatchDelMt1201(arr).then(res=>{
let response=res.data;
this.code=response.code;
... ... @@ -1136,7 +1137,7 @@
'contactName':this.Udform.operperson,
'contactTel':this.Udform.opertel,
'carrier':this.Udform.carrier,
'username':loginUserInfo.username}
'username':this.getUserInfoStore.username}
sendRemoveMt1201(map).then(res=>{
let response=res.data;
//console.log(res);
... ... @@ -1192,7 +1193,7 @@
'reason' :this.Udform.operreason,
'contactName':this.Udform.operperson,
'contactTel':this.Udform.opertel,
'username':loginUserInfo.username}
'username':this.getUserInfoStore.username}
sendEditeMt1201(map).then(res=>{
let response=res.data;
//console.log(res);
... ... @@ -1313,7 +1314,7 @@
_this.ruleForm.userinfo = {
username: ''
}
_this.ruleForm.userinfo.username=_this.LoginUserInfo.username;
_this.ruleForm.userinfo.username=_this.getUserInfoStore.username;
_this.ruleForm.status='22';
addMt1201(_this.ruleForm).then(res=>{
let response=res.data;
... ... @@ -1346,7 +1347,7 @@
_this.ruleForm.userinfo = {
username: ''
}
_this.ruleForm.userinfo.username=_this.LoginUserInfo.username;
_this.ruleForm.userinfo.username=_this.getUserInfoStore.username;
ediMt1201(_this.ruleForm).then(res=>{
let response=res.data;
//console.log(res);
... ... @@ -1394,6 +1395,9 @@
},
},
computed:{
...mapGetters(['getUserInfoStore','getUserMenuStore']) // 动态计算属性,相当于this.$store.getters.resturantName
},
/*渲染方法*/
mounted(){
this.getDefaultData();
... ...
... ... @@ -447,6 +447,7 @@
import { getMt5201List,addMt5201,ediMt5201,delMt5201,sendCreateMt520x,sendRemoveMt520x,selectCustomcode,sendbatchRemoveMt5201,sendbatchCreateMt5201} from '../../api/mt5201'
import loginUserInfo from '@/api/base'
import {sendBatchApllyMt1201, sendBatchDelMt1201} from "../../api/mt1201";
import {mapActions, mapGetters} from 'vuex'
export default {
data() {
return {
... ... @@ -491,7 +492,7 @@
wei:undefined,
ext5:undefined,
userinfo: {
username: '11111'
username: this.getUserInfoStore.username
},
},
FenStatus:'',
... ... @@ -626,7 +627,7 @@
if(row.awbh==null){
row.awbh="";
}
const map = {'mt520x':row,'username':loginUserInfo.username}
const map = {'mt520x':row,'username':this.getUserInfoStore.username}
sendCreateMt520x(map).then(res=>{
let response=res.data;
//console.log(res);
... ... @@ -672,7 +673,7 @@
this.$refs[formName].validate((valid) => {
if (valid) {
if(this.batichboolean){
let arr={ids:this.uuids,reason:this.Udform.operreason,contactName:loginUserInfo.username,contactTel:this.Udform.opertel,content:''}
let arr={ids:this.uuids,reason:this.Udform.operreason,contactName:this.getUserInfoStore.username,contactTel:this.Udform.opertel,content:''}
sendbatchRemoveMt5201(arr).then(res=>{
let response=res.data;
this.code=response.code;
... ... @@ -696,7 +697,7 @@
'contactTel':this.Udform.opertel,
'rcfdep':this.rows.rcfdep,
'carrier':this.rows.carrier,
'username':loginUserInfo.username}
'username':this.getUserInfoStore.username}
sendRemoveMt520x(map).then(res=>{
let response=res.data;
//console.log(res);
... ... @@ -828,7 +829,7 @@
_this.ruleForm.userinfo = {
username: ''
}
_this.ruleForm.userinfo.username=_this.LoginUserInfo.username;
_this.ruleForm.userinfo.username=_this.getUserInfoStore.username;
_this.ruleForm.status='22';
//this.ruleForm.endtime=this.ruleForm.starttime.add(Calendar.MINUTE, 15);
addMt5201(_this.ruleForm).then(res=>{
... ... @@ -861,7 +862,7 @@
_this.ruleForm.userinfo = {
username: ''
}
_this.ruleForm.userinfo.username=_this.LoginUserInfo.username;
_this.ruleForm.userinfo.username=_this.getUserInfoStore.username;
ediMt5201(_this.ruleForm).then(res=>{
let response=res.data;
_this.code=response.code;
... ... @@ -886,6 +887,9 @@
this.$router.go(-1);//返回上一层
},
},
computed:{
...mapGetters(['getUserInfoStore','getUserMenuStore']) // 动态计算属性,相当于this.$store.getters.resturantName
},
//渲染方法
mounted(){
this.getDefaultData();
... ...
... ... @@ -246,6 +246,7 @@
</style>
<script>
import { QueryData } from '../../api/wayDeclaration'
import {mapActions, mapGetters} from 'vuex'
export default {
data() {
return {
... ... @@ -255,7 +256,8 @@
flightno:'',
flightdate:'',
status:'',
messageType:''
messageType:'',
departmentid:''
},
options: [
{
... ... @@ -294,9 +296,6 @@
handleSelectionChange(val) {
this.multipleSelection = val;
},
handleClick(row) {
console.log(row);
},
handleSizeChange(val) {
this.pageSize=val;
this.QueryData();
... ... @@ -315,11 +314,10 @@
//条件查询方法
QueryData(){
let params={currentPage:this.currentPage,pageSize:this.pageSize,awba:this.defaultQuery.awba,carrier:this.defaultQuery.carrier,
flightno:this.defaultQuery.flightno,flightdate:this.defaultQuery.flightdate,status:this.defaultQuery.status,messageType:this.defaultQuery.messageType};
flightno:this.defaultQuery.flightno,flightdate:this.defaultQuery.flightdate,status:this.defaultQuery.status,messageType:this.defaultQuery.messageType,departmentid:this.getUserInfoStore.companyInfo.departmentid};
this.tableloading=true;
QueryData(params).then(res =>{
let response=res.data.data;
console.log(response)
this.tableData=response.list;
this.total=response.total;
this.tableloading = false;
... ... @@ -353,7 +351,8 @@
set:function (val) {
this.defaultQuery.carrier=val.toUpperCase();
}
}
},
...mapGetters(['getUserInfoStore','getUserMenuStore']) // 动态计算属性,相当于this.$store.getters.resturantName
},
}
... ...