Commit 573e470f authored by 黄奎's avatar 黄奎

新增权限验证

parent ddf8ed79
...@@ -1306,7 +1306,7 @@ ...@@ -1306,7 +1306,7 @@
TCNUM: '', TCNUM: '',
FrIds: '', FrIds: '',
}, },
IsHaveAuth:false,//权限判断按钮是否显示 IsHaveAuth: false, //权限判断按钮是否显示
zhuanLoading: false, zhuanLoading: false,
moneyAll: { moneyAll: {
Moneyall: 0, Moneyall: 0,
...@@ -1724,27 +1724,32 @@ ...@@ -1724,27 +1724,32 @@
}, },
//权限验证 //权限验证
checkHasAuth() { checkHasAuth() {
this.apipost( // this.apipost(
'travel_get_CheckBalancePaymentAuth', { // 'travel_get_CheckBalancePaymentAuth', {
TCID: this.TCID // TCID: this.TCID
}, // },
res => { // res => {
if (res.data.resultCode == 1) { // if (res.data.resultCode == 1) {
this.IsHaveAuth=true; // this.IsHaveAuth=true;
} // }
else // else
{ // {
this.IsHaveAuth=false; // this.IsHaveAuth=false;
} // }
}, // },
err => {} // err => {}
) // )
} }
}, },
mounted() { mounted() {
this.TCID = this.$route.query.id; this.TCID = this.$route.query.id;
this.OutBranchId = this.$route.query.OutBranchId; this.OutBranchId = this.$route.query.OutBranchId;
this.CloseIncomeBtn = this.$route.query.CloseIncomeBtn; this.CloseIncomeBtn = this.$route.query.CloseIncomeBtn;
if (this.$route.query.IsHaveAuth) {
this.IsHaveAuth = true;
} else {
this.IsHaveAuth = false;
}
this.checkHasAuth(); this.checkHasAuth();
this.getList(); this.getList();
this.getAllCont(); this.getAllCont();
......
...@@ -1473,7 +1473,8 @@ ...@@ -1473,7 +1473,8 @@
name: 'TeamBalancePayment', name: 'TeamBalancePayment',
query: { query: {
id: id, id: id,
OutBranchId: OutBranchId, OutBranchId:OutBranchId,
IsHaveAuth:true,
blank: 'y', blank: 'y',
tab: '团队收支明细' tab: '团队收支明细'
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment