| | |
| | | @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> |
| | | |
| | | <el-table-column label="部门(护卫点)" align="center" min-width="100px"> |
| | | <template slot-scope="scope"> |
| | | <span>{{ scope.row.deptName }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column :label="$t('table.user.username')" prop="username" :show-overflow-tooltip="true" align="center" min-width="120px"> |
| | |
| | | <span>{{ scope.row.username }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="用户头像" :show-overflow-tooltip="true" align="center" min-width="120px" /> |
| | | <el-table-column label="姓名" :show-overflow-tooltip="true" align="center" min-width="120px" /> |
| | | <el-table-column |
| | | :label="$t('table.user.sex')" |
| | | :filters="[{ text: $t('common.sex.male'), value: '0' }, { text: $t('common.sex.female'), value: '1' }, { text: $t('common.sex.secret'), value: '2' }]" |
| | | :filter-method="filterSex" |
| | | class-name="status-col" |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <el-tag :type="row.sex | sexFilter"> |
| | | {{ transSex(row.sex) }} |
| | | </el-tag> |
| | | <el-table-column label="员工姓名" prop="nickName" :show-overflow-tooltip="true" align="center" min-width="120px"> |
| | | <template slot-scope="scope"> |
| | | <span>{{ scope.row.nickName }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="身份证号" prop="certificateNumb" :show-overflow-tooltip="true" align="center" min-width="120px"> |
| | | <template slot-scope="scope"> |
| | | <span>{{ scope.row.certificateNumb }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="手机" :show-overflow-tooltip="true" align="center" min-width="120px" /> |
| | | <el-table-column :label="$t('table.user.email')" :show-overflow-tooltip="true" align="center" min-width="150px"> |
| | | <template slot-scope="scope"> |
| | | <span>{{ scope.row.email }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="联系地址" :show-overflow-tooltip="true" align="center" min-width="120px" /> |
| | | <el-table-column :label="$t('table.user.dept')" align="center" min-width="100px"> |
| | | <template slot-scope="scope"> |
| | | <span>{{ scope.row.deptName }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | |
| | | <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 |