|  |  | 
 |  |  |                <li><el-button type="primary" v-permissions="['business:company:create']" @click="$refs.OperaInternalCompanyWindow.open('新建企业',null,null)">新建</el-button></li> | 
 |  |  |               <li><el-button @click="sort('top')" :loading="sorting" icon="el-icon-sort-up" v-permissions="['business:company:sort']">上移</el-button></li> | 
 |  |  |               <li><el-button @click="sort('bottom')" :loading="sorting" icon="el-icon-sort-down" v-permissions="['business:company:sort']">下移</el-button></li> | 
 |  |  |               <!--<li><el-button type="primary"  v-permissions="['business:company:sync']" :loading="loading" @click="synchronous()">同步</el-button></li>--> | 
 |  |  |               <li><el-button type="primary"  v-permissions="['business:company:sync']" :loading="loading" @click="synchronous()">同步</el-button></li> | 
 |  |  |             </ul> | 
 |  |  |             <el-table | 
 |  |  |                 v-loading="isWorking.search" | 
 |  |  | 
 |  |  |                     <template slot-scope="{row}"> | 
 |  |  |                         <el-button type="text" @click="$refs.OperaInternalCompanyWindow.open('编辑企业信息',{  id: row.parentId,name:row.parentName,type:row.parentType, companyPath:row.parentCompanyPath}, row)" icon="el-icon-edit" v-permissions="['business:company:update']">编辑</el-button> | 
 |  |  |                         <el-button type="text" @click="$refs.OperaInternalCompanyWindow.open('新建子级',  row,null)" icon="el-icon-plus">新建子级</el-button> | 
 |  |  |                         <el-button type="text" @click="deleteById(row)" icon="el-icon-delete" v-permissions="['business:company:delete']">删除</el-button> | 
 |  |  |                         <el-button type="text" @click="deleteById(row)" style="color: red" icon="el-icon-delete" v-permissions="['business:company:delete']">删除</el-button> | 
 |  |  |                     </template> | 
 |  |  |                 </el-table-column> | 
 |  |  |             </el-table> | 
 |  |  | 
 |  |  |     }, | 
 |  |  |     // 同步信息 | 
 |  |  |     async synchronous () { | 
 |  |  |       this.$dialog.actionConfirm('操作确认提醒', '您确认同步全部信息吗?') | 
 |  |  |       this.$dialog.actionConfirm('该操作将系统清空已有组织信息,您确认同步全部信息吗?', '操作确认提醒') | 
 |  |  |         .then(() => { | 
 |  |  |           this.loading = true | 
 |  |  |           companySync({}) | 
 |  |  | 
 |  |  |         direction | 
 |  |  |       }) | 
 |  |  |         .then(() => { | 
 |  |  |           if (direction === 'top') { | 
 |  |  |          /* if (direction === 'top') { | 
 |  |  |             menuPool.splice(menuIndex, 0, menuPool.splice(menuIndex - 1, 1)[0]) | 
 |  |  |           } else { | 
 |  |  |             menuPool.splice(menuIndex, 0, menuPool.splice(menuIndex + 1, 1)[0]) | 
 |  |  |           } | 
 |  |  |           }*/ | 
 |  |  |           this.search() | 
 |  |  |         }) | 
 |  |  |         .catch(e => { | 
 |  |  |           this.$tip.apiFailed(e) |