Commit 4391adaa authored by 黄媛媛's avatar 黄媛媛

update

parent b0023773
......@@ -17,6 +17,7 @@ var AuthCode = {
F_ContractManagement:'F_ContractManagement',//合同
F_PayMoney_CapitalPool:'F_PayMoney_CapitalPool',//账户类型
S_Travel_Share:'S_Travel_Share',//广告分享
A_AppMenu_Allot:'A_AppMenu_Allot',//APP菜单分配
};
export default AuthCode;
\ No newline at end of file
......@@ -37,7 +37,7 @@
<el-button @click="roleAllocation(item.PostId,1)" type="primary" icon="iconfont icon-user11"></el-button>
</el-tooltip>
<el-tooltip class="item" effect="dark" content="APP角色管理" placement="top-start">
<el-button @click="roleAllocation(item.PostId,2)" type="primary" icon="iconfont icon-user11"></el-button>
<el-button v-if="qjGroupId==userInfo.RB_Group_id || A_AppMenu_Allot" @click="roleAllocation(item.PostId,2)" type="primary" icon="iconfont icon-user11"></el-button>
</el-tooltip>
<el-tooltip class="item" effect="dark" :content="$t('system.table_delete')" placement="top-start">
<el-button @click="deleteData(item.PostId)" type="danger" icon="el-icon-delete"></el-button>
......@@ -81,6 +81,10 @@
export default {
data() { //穿梭
return {
A_AppMenu_Allot:false,
qjGroupId:-1,
userInfo:{},
loading: true,
total: 0,
pageSize: '',
......@@ -140,12 +144,27 @@
},
mounted() {
let userInfo = this.getLocalStorage();
this.userInfo = this.getLocalStorage();
this.GetSupperOrderEditAuth();
this.qjGroupId=this.QjGroupId();
this.msg.RB_Group_Id = this.getDepartmentMsg.RB_Group_Id = this.getCompanyMsg.RB_Group_Id = this.addMsg.RB_Group_Id = userInfo.RB_Group_id; //集团
this.getList();
this.getCompany();
this.getDerpartMent();
},
methods: {
GetSupperOrderEditAuth() {
var actionCodeNew = this.$AuthCode.A_AppMenu_Allot;
// 制单权限
this.CheckUserAuth(actionCodeNew, res => {
if (res.data.resultCode == 1 && res.data.data == 1) {
this.A_AppMenu_Allot = true;
}
});
},
getCompany() {
this.apipost('admin_get_BranchGetList', this.getCompanyMsg, res => {
if (res.data.resultCode == 1) {
......
......@@ -138,7 +138,7 @@
"></el-button>
</el-tooltip>
<el-tooltip class="item" effect="dark" :content="$t('adm.adm_bindaccountinfo')" placement="top">
<el-button type="primary" class="zidingyiFz" icon="iconfont icon-bangdingzhagnhuxinxi" circle
<el-button v-if="qjGroupId==userInfo.RB_Group_id || F_Finance_Create" type="primary" class="zidingyiFz" icon="iconfont icon-bangdingzhagnhuxinxi" circle
@click="goUrl('empBankAccount', item.EmployeeId)"></el-button>
</el-tooltip>
<el-tooltip v-if="isSelectFinaceJJ" class="item" effect="dark" content="单据交接" placement="top">
......@@ -386,6 +386,9 @@
};
return {
qjGroupId:-1,
F_Finance_Create:false,//制单权限
userInfo:{},
UseNum: 0,
TotalNum: 0,
leaveBtn: "",
......@@ -560,7 +563,9 @@
},
mounted() {
let userInfo = this.getLocalStorage();
this.userInfo=this.getLocalStorage();
this.GetSupperOrderEditAuth();
this.qjGroupId=this.QjGroupId();
this.getPostMsg.RB_Group_Id = this.getCompanyMsg.RB_Group_Id = this.getDepartmentMsg.RB_Group_Id = this.addMsg
.RB_Group_id = this.msg.RB_Group_id =
userInfo.RB_Group_id; //集团
......@@ -583,6 +588,7 @@
this.getDerpartMent();
this.getPost();
this.getTotalNum();
},
filters: {
leaveTimeFormat(value) {
......@@ -595,6 +601,17 @@
},
methods: {
GetSupperOrderEditAuth() {
var actionCodeNew = this.$AuthCode.F_Finance_Create;
// 制单权限
this.CheckUserAuth(actionCodeNew, res => {
if (res.data.resultCode == 1 && res.data.data == 1) {
this.F_Finance_Create = true;
}
});
},
getTotalNum() {
this.apipost(
"admin_get_GetGroupEmployeeNum", {},
......
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