| | |
| | | <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> |
| | | @click="synchronous()">同步安防平台</el-button></li> |
| | | <!-- <li><el-button type="primary" v-permissions="['business:member:create']" :loading="loading" |
| | | @click="synchronousJdy()">同步简道云</el-button></li>--> |
| | | <li><el-button type="primary" v-permissions="['business:member:create']" :loading="loading" |
| | | @click="synchronousDingding()">同步钉钉</el-button></li> |
| | | <li><el-button type="primary" |
| | |
| | | import OperaMemberImportWindow from '@/components/business/OperaMemberImportWindow' |
| | | import { fetchList } from '@/api/business/company' |
| | | import { allList } from '@/api/business/position' |
| | | import { memberSync,memberSyncDingding, roleAuth, updateCanVisit, updateHead, updateWorkStatus } from '@/api/business/member' |
| | | import { memberSync,memberSyncDingding, memberSyncJdy,roleAuth, updateCanVisit, updateHead, updateWorkStatus } from '@/api/business/member' |
| | | export default { |
| | | name: 'internalMember', |
| | | extends: BaseTable, |
| | |
| | | }) |
| | | .catch(() => { }) |
| | | }, |
| | | async synchronousJdy() { |
| | | this.$dialog.actionConfirm('该操作降触发全员信息更新和重新下发!请谨慎操作', '您确认全量同步内部人员信息吗?') |
| | | .then(() => { |
| | | this.loading = true |
| | | memberSyncJdy({}) |
| | | .then(res => { |
| | | this.$tip.apiSuccess(res || '同步成功') |
| | | this.search() |
| | | }) |
| | | .catch(e => { |
| | | this.$tip.apiFailed(e) |
| | | }) |
| | | .finally(() => { |
| | | this.loading = false |
| | | }) |
| | | }) |
| | | .catch(() => { }) |
| | | }, |
| | | async updateHead(row, type) { |
| | | this.$dialog.actionConfirm('您确认进行当前操作吗?', '部门主管设置操作提示') |
| | | .then(() => { |