Commit 66ebaebf authored by zhengke's avatar zhengke

修改权限

parent 0d6d5f5c
...@@ -4,5 +4,6 @@ ...@@ -4,5 +4,6 @@
var AuthCode = { var AuthCode = {
EidtCoupon:"IsEidtCoupon",//优惠券修改权限 EidtCoupon:"IsEidtCoupon",//优惠券修改权限
LeaderAudit:'IsLeaderAudit' //领队报账审核权限
}; };
export default AuthCode; export default AuthCode;
\ No newline at end of file
...@@ -1025,8 +1025,7 @@ ...@@ -1025,8 +1025,7 @@
<input type="button" class="leader2Btn" @click="AuditOrder(1)" value="审核不通过" <input type="button" class="leader2Btn" @click="AuditOrder(1)" value="审核不通过"
v-show="dataList.LeaderApply.Status==1"> v-show="dataList.LeaderApply.Status==1">
<input type="button" class="leader2Btn" value="打印" @click="printTable()"> <input type="button" class="leader2Btn" value="打印" @click="printTable()">
<input v-if="UserId==615 && dataList.LeaderApply.Status==2" type="button" class="leader2Btn" value="取消审核" @click="CancelLeaderApply()"> <input v-if="EditBtn && dataList.LeaderApply.Status==2" type="button" class="leader2Btn" value="取消审核" @click="CancelLeaderApply()">
</div> </div>
</div> </div>
<a :href="blankUrl" id="blankLink" target="_blank" style="display:none">1</a> <a :href="blankUrl" id="blankLink" target="_blank" style="display:none">1</a>
...@@ -1227,9 +1226,19 @@ ...@@ -1227,9 +1226,19 @@
czTableList:[], czTableList:[],
UserId:0, UserId:0,
OutBranchId:'', OutBranchId:'',
EditBtn: false,
}; };
}, },
methods: { methods: {
GetAuth() {
var actionCode = this.$AuthCode.LeaderAudit;
this.CheckUserAuth(actionCode, res => {
if (res.data.resultCode == 1 && res.data.data == 1) {
this.EditBtn = true;
}
});
},
getczTableList(TCIDs){ getczTableList(TCIDs){
let msg={ let msg={
pageIndex:1, pageIndex:1,
...@@ -2120,6 +2129,7 @@ ...@@ -2120,6 +2129,7 @@
this.msg.TCIDs = this.$route.query.id; this.msg.TCIDs = this.$route.query.id;
let userInfo = this.getLocalStorage(); let userInfo = this.getLocalStorage();
this.UserId = userInfo.EmployeeId; this.UserId = userInfo.EmployeeId;
this.GetAuth();
this.getzongJE(); this.getzongJE();
this.getNav(); this.getNav();
this.getList(); this.getList();
......
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