Commit 66ebaebf authored by zhengke's avatar zhengke

修改权限

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