|  |  | 
 |  |  |         <!-- 表格和分页 --> | 
 |  |  |         <template v-slot:table-wrap> | 
 |  |  |             <ul class="toolbar" v-permissions="['business:company:create', 'business:company:sync']"> | 
 |  |  |                <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 type="primary" v-permissions="['business:company:create']" @click="$refs.OperaInternalCompanyWindow.open('新建组织',null,null)">新建</el-button></li> | 
 |  |  |               <li><el-button @click="sort('top')" :loaing="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> | 
 |  |  |             </ul> | 
 |  |  | 
 |  |  |                 :tree-props="{children: 'childList',hasChildren: 'hasChildren'}" | 
 |  |  |                 row-key="id" | 
 |  |  |                 @selection-change="handleSelectionChange" | 
 |  |  |                 default-expand-all | 
 |  |  |             > | 
 |  |  |                 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="name" label="组织类型" min-width="80px"> | 
 |  |  |                 <!-- <el-table-column prop="name" label="组织类型" min-width="80px"> | 
 |  |  |                   <template scope="{row}"> | 
 |  |  |                       <span v-if="row.type == 0">相关方组织</span> | 
 |  |  |                       <span v-if="row.type == 1">内部组织</span> | 
 |  |  |                   </template> | 
 |  |  |                 </el-table-column> | 
 |  |  |                 </el-table-column> --> | 
 |  |  |                 <el-table-column prop="companyNamePath" label="组织路径" min-width="100px"></el-table-column> | 
 |  |  |               <el-table-column prop="editorName" label="操作人" min-width="100px"></el-table-column> | 
 |  |  |               <el-table-column prop="editDate" label="最后更新时间" min-width="100px"></el-table-column> | 
 |  |  |                 <el-table-column | 
 |  |  |                     label="操作" | 
 |  |  |                     width="230" | 
 |  |  |                     fixed="right" | 
 |  |  |                 > | 
 |  |  |                     fixed="right"> | 
 |  |  |                     <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('编辑组织信息',{  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)" style="color: red" icon="el-icon-delete" v-permissions="['business:company:delete']">删除</el-button> | 
 |  |  |                     </template> | 
 |  |  | 
 |  |  |       loading: false, | 
 |  |  |       sorting: false, | 
 |  |  |       searchForm: { | 
 |  |  |         // type: 1 | 
 |  |  |         type: 1 | 
 |  |  |       }, | 
 |  |  |       list: [], | 
 |  |  |       total: 0 | 
 |  |  | 
 |  |  |   }, | 
 |  |  |   created () { | 
 |  |  |     this.config({ | 
 |  |  |       module: '企业信息表', | 
 |  |  |       module: '组织信息表', | 
 |  |  |       api: '/business/company', | 
 |  |  |       'field.id': 'id', | 
 |  |  |       'field.main': 'id' |