Commit a4ace66c by 胡悦

修改员工批量权限

1 parent a0cbfc1a
......@@ -14,12 +14,12 @@
<div class="table-btn">
<!-- <el-button @click="handleExport" :size="size" type="primary" plain mode="el-button">导出</el-button> -->
<GLButton @click="handleExport" fn="导出" :size="size" type="primary" plain mode="el-button">导出</GLButton>
<el-button v-if="$globalState.session.accountLevel == 4 || $globalState.session.isMerchantStaffAdmin" :size="size" plain @click="batch(1)">批量分配角色</el-button>
<el-button v-if="$globalState.session.accountLevel == 4 || $globalState.session.isMerchantStaffAdmin" :size="size" plain @click="batch(2)">批量启用</el-button>
<el-button v-if="($globalState.session.userType == 1 && $globalState.session.accountLevel == 4) || ($globalState.session.userType == 2 && $globalState.session.isMerchantStaffAdmin)" :size="size" plain @click="batch(1)">批量分配角色</el-button>
<el-button v-if="($globalState.session.userType == 1 && $globalState.session.accountLevel == 4) || ($globalState.session.userType == 2 && $globalState.session.isMerchantStaffAdmin)" :size="size" plain @click="batch(2)">批量启用</el-button>
</div>
</div>
<!-- 表格区域 开始 -->
<GLTable ref="employeeRef" :getListApi="getListApi" :searchForm="tableSearchForm" :tableParams="$globalState.session.accountLevel == 4 || $globalState.session.isMerchantStaffAdmin ? tableParams1 : tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun">
<GLTable ref="employeeRef" :getListApi="getListApi" :searchForm="tableSearchForm" :tableParams="($globalState.session.userType == 1 && $globalState.session.accountLevel == 4) || ($globalState.session.userType == 2 && $globalState.session.isMerchantStaffAdmin) ? tableParams1 : tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun">
<div slot="optionBtns" slot-scope="scope">
<GLTableButton :buttonList="buttonList" :buttonItem="scope.scope"></GLTableButton>
<!-- <el-button type="text" @click="handleDetail(scope.scope)">查看</el-button>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!