|  |  |  | 
|---|
|  |  |  | <!-- 表格和分页 --> | 
|---|
|  |  |  | <template v-slot:table-wrap> | 
|---|
|  |  |  | <ul class="toolbar" v-permissions="['business:member:delete', 'business:member:create,business:empower:create']"> | 
|---|
|  |  |  | <li><el-button type="primary" v-permissions="['business:member:sync']" :loading="loading" | 
|---|
|  |  |  | @click="synchronous()">同步</el-button></li> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <li><el-button type="primary" | 
|---|
|  |  |  | @click="$refs.OperaMemberWindow.open('新建员工', null, department, searchForm.companyType)" icon="el-icon-plus" | 
|---|
|  |  |  | v-permissions="['business:member:create']">新建员工</el-button></li> | 
|---|
|  |  |  | 
|---|
|  |  |  | icon="el-icon-plus" v-permissions="['business:member:create']">人员导入</el-button></li> | 
|---|
|  |  |  | <li><el-button type="danger" @click="deleteByIdInBatch" icon="el-icon-delete" | 
|---|
|  |  |  | v-permissions="['business:member:delete']">批量删除</el-button></li> | 
|---|
|  |  |  | <li><el-button type="primary" v-permissions="['business:empower:create']" @click="startEmpowerBatch()" | 
|---|
|  |  |  | >下发授权</el-button></li> | 
|---|
|  |  |  | <li style="float: right"> | 
|---|
|  |  |  | <el-checkbox style="font-size: 12px" label="1" v-model="searchForm.includeChild" key="1" | 
|---|
|  |  |  | @change="search">是否包含下级组织</el-checkbox> | 
|---|
|  |  |  | 
|---|
|  |  |  | </el-switch> | 
|---|
|  |  |  | </template> | 
|---|
|  |  |  | </el-table-column> | 
|---|
|  |  |  | <el-table-column label="是否可拜访"> | 
|---|
|  |  |  | <!--        <el-table-column label="是否可拜访"> | 
|---|
|  |  |  | <template slot-scope="{row}"> | 
|---|
|  |  |  | <el-switch @change="changeCanvisit($event, row)" v-model="row.canVisit" active-color="#13ce66" | 
|---|
|  |  |  | inactive-color="#ff4949" :active-value="1" :inactive-value="0"> | 
|---|
|  |  |  | 
|---|
|  |  |  | <el-button @click="$refs.cardOpeningRecord.open('开卡记录', row.id)" type="text">{{ row.memberCardCount || | 
|---|
|  |  |  | '0'}}</el-button> | 
|---|
|  |  |  | </template> | 
|---|
|  |  |  | </el-table-column> | 
|---|
|  |  |  | </el-table-column>--> | 
|---|
|  |  |  | <el-table-column prop="editorName" label="操作人" min-width="100px"></el-table-column> | 
|---|
|  |  |  | <el-table-column prop="editDate" label="最后操作时间" min-width="150px"></el-table-column> | 
|---|
|  |  |  | <el-table-column | 
|---|
|  |  |  | 
|---|
|  |  |  | <template slot-scope="{row}"> | 
|---|
|  |  |  | <el-button type="text" icon="el-icon-edit" @click="$refs.OperaMemberWindow.open('编辑员工信息', row, department)" | 
|---|
|  |  |  | v-permissions="['business:empower:update']">编辑</el-button> | 
|---|
|  |  |  | <el-button type="text" icon="el-icon-plus" @click="empower(row.id)" | 
|---|
|  |  |  | v-permissions="['business:empower:create']">重新授权</el-button> | 
|---|
|  |  |  | <!--            <el-button type="text" icon="el-icon-plus" @click="empower(row.id)" | 
|---|
|  |  |  | v-permissions="['business:empower:create']">重新授权</el-button>--> | 
|---|
|  |  |  | <el-button type="text" :loading="heading" style="color: red" icon="el-icon-delete" | 
|---|
|  |  |  | @click="updateHead(row, 0)" v-if="row.headStatus == 1" | 
|---|
|  |  |  | v-permissions="['business:member:head']">取消主管</el-button> | 
|---|
|  |  |  | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | // 获取组织树 | 
|---|
|  |  |  | getfindCompanyTreePage () { | 
|---|
|  |  |  | fetchList() | 
|---|
|  |  |  | fetchList(1) | 
|---|
|  |  |  | .then(res => { | 
|---|
|  |  |  | if (res && res.length > 0) { | 
|---|
|  |  |  | res[0].fsStatus = 1 | 
|---|