| | |
| | | <template v-slot:table-wrap> |
| | | <ul class="toolbar" v-permissions="['business:member:delete']"> |
| | | <li><el-button type="primary">门禁授权</el-button></li> |
| | | <li><el-button type="primary" v-permissions="['business:member:sync']">同步</el-button></li> |
| | | <li><el-button type="primary" v-permissions="['business:member:sync']" @click="synchronous()">同步</el-button></li> |
| | | <li><el-button @click="deleteByIdInBatch" icon="el-icon-delete" v-permissions="['business:member:delete']">删除</el-button></li> |
| | | </ul> |
| | | <el-table |
| | |
| | | import TableLayout1 from '@/layouts/TableLayout1' |
| | | import Pagination from '@/components/common/Pagination' |
| | | import Tree from '@/components/common/Tree' |
| | | import { fetchList } from '@/api/business/company' |
| | | import { fetchList} from '@/api/business/company' |
| | | import {memberSync} from "@/api/business/member"; |
| | | export default { |
| | | name: 'internalMember', |
| | | extends: BaseTable, |
| | |
| | | keyword: '', |
| | | type: 2, |
| | | erpOrgId: '', |
| | | companyId: '', |
| | | hasFace: '' |
| | | }, |
| | | companyTree: [] |
| | |
| | | this.search() |
| | | }) |
| | | }, |
| | | // 同步信息 |
| | | async synchronous () { |
| | | const message = await memberSync({}) |
| | | this.$message.success(message) |
| | | this.search() |
| | | } , |
| | | callback (row) { |
| | | console.log(row) |
| | | this.searchForm.erpOrgId = row.erpId |
| | | this.searchForm.companyId = row.id |
| | | this.search() |
| | | } |
| | | } |