| | |
| | | <!-- 表格和分页 --> |
| | | <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 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" |
| | |
| | | <el-table-column label="操作" width="230" 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)" |
| | | @click="$refs.OperaInternalCompanyWindow.open('编辑企业信息', { id: row.parentId, name: row.parentName, type: row.parentType, companyPath: row.parentCompanyPath }, row, 'edit')" |
| | | icon="el-icon-edit" v-permissions="['business:company:update']">编辑</el-button> |
| | | <el-button type="text" @click="$refs.OperaInternalCompanyWindow.open('新建子级', row, null)" |
| | | <el-button type="text" @click="$refs.OperaInternalCompanyWindow.open('新建子级', row, null, 'add')" |
| | | 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> |
| | | v-permissions="['business:company:delete']" v-if="row.type !== -1">删除</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |