| | |
| | | <ul class="toolbar" v-permissions="['business:company:create', 'business:company:sync']"> |
| | | <li><el-button type="primary" v-permissions="['business:company:create']" :loading="loading" @click="synchronous()">全量同步企业微信组织</el-button></li> |
| | | </ul> |
| | | <el-table v-loading="isWorking.search" :data="list" stripe |
| | | <el-table :height="tableHeightNew" v-loading="isWorking.search" :data="list" stripe |
| | | :tree-props="{ children: 'childList', hasChildren: 'hasChildren' }" row-key="id" |
| | | @selection-change="handleSelectionChange" default-expand-all> |
| | | <el-table-column type="selection" width="55"></el-table-column> |
| | | <el-table-column prop="name" label="组织名称" min-width="100px"></el-table-column> |
| | | <el-table-column prop="namePath" label="组织路径" min-width="100px"></el-table-column> |
| | | <el-table-column prop="qwId" label="企业微信标识" min-width="100px"></el-table-column> |
| | |
| | | </el-table> |
| | | </template> |
| | | <!-- 新建/修改 --> |
| | | <OperaInternalCompanyWindow ref="OperaInternalCompanyWindow" :list="list" @success="handlePageChange" /> |
| | | </TableLayout> |
| | | </template> |
| | | |
| | |
| | | this.loading = true |
| | | companySync({}) |
| | | .then(res => { |
| | | this.$tip.apiSuccess(res || '同步成功') |
| | | this.$tip.apiSuccess('同步成功') |
| | | this.handlePageChange(1) |
| | | }) |
| | | .catch(e => { |