| | |
| | | @sort-change="sortChange" |
| | | > |
| | | <el-table-column type="selection" align="center" width="40px" /> |
| | | <el-table-column :label="$t('table.operation')" align="center" min-width="150px" class-name="small-padding fixed-width"> |
| | | <template slot-scope="{row}"> |
| | | <i v-hasPermission="['user:view']" class="el-icon-view table-operation" style="color: #87d068;" @click="view(row)" /> |
| | | <i v-hasPermission="['user:update']" class="el-icon-setting table-operation" style="color: #2db7f5;" @click="edit(row)" /> |
| | | <i v-hasPermission="['user:delete']" class="el-icon-delete table-operation" style="color: #f50;" @click="singleDelete(row)" /> |
| | | <el-link v-has-no-permission="['user:view','user:update','user:delete']" class="no-perm"> |
| | | {{ $t('tips.noPermission') }} |
| | | </el-link> |
| | | </template> |
| | | </el-table-column> |
| | | |
| | | <el-table-column label="部门(护卫点)" align="center" min-width="100px"> |
| | | <template slot-scope="scope"> |
| | | <span>{{ scope.row.deptName }}</span> |
| | |
| | | <span>{{ scope.row.createTime }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | |
| | | <el-table-column :label="$t('table.operation')" align="center" min-width="150px" class-name="small-padding fixed-width"> |
| | | <template slot-scope="{row}"> |
| | | <!--<i v-hasPermission="['user:view']" class="el-icon-view table-operation" style="color: #87d068;" @click="view(row)" />--> |
| | | <i v-hasPermission="['user:update']" class="el-icon-setting table-operation" style="color: #2db7f5;" @click="edit(row)" /> |
| | | <i v-hasPermission="['user:delete']" class="el-icon-delete table-operation" style="color: #f50;" @click="singleDelete(row)" /> |
| | | <el-link v-has-no-permission="['user:view','user:update','user:delete']" class="no-perm"> |
| | | {{ $t('tips.noPermission') }} |
| | | </el-link> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | <pagination v-show="total>0" :total="total" :page.sync="pagination.num" :limit.sync="pagination.size" @pagination="search" /> |
| | | <user-edit |