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

update

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