|
@@ -27,7 +27,7 @@
|
|
|
</a-form>
|
|
|
</div>
|
|
|
<div class="table-operator">
|
|
|
- <a-button type="primary" class="button-error" @click="openModal">新增</a-button>
|
|
|
+ <a-button type="primary" class="button-error" @click="openModal">新增用户</a-button>
|
|
|
</div>
|
|
|
<s-table
|
|
|
class="sTable fixPagination"
|
|
@@ -45,22 +45,9 @@
|
|
|
<!-- <span v-else>{{ record.loginFlag==1?'已启用':'已禁用' }}</span> -->
|
|
|
</span>
|
|
|
<span slot="action" slot-scope="text, record">
|
|
|
- <a-icon
|
|
|
- type="edit"
|
|
|
- title="编辑"
|
|
|
- :style="{fontSize: '20px',color:' #1890FF',padding:' 0 10px'}"
|
|
|
- @click="handleEdit(record)"
|
|
|
- />
|
|
|
- <a-icon
|
|
|
- type="unlock"
|
|
|
- title="重置密码"
|
|
|
- :style="{fontSize: '20px',color:' #ffaa00',padding: '0 10px'}"
|
|
|
- @click="resetPassword(record)" />
|
|
|
- <a-icon
|
|
|
- type="delete"
|
|
|
- title="删除"
|
|
|
- :style="{fontSize: '20px',color: '#f00',padding: '0 10px'}"
|
|
|
- @click="delect(record)"/>
|
|
|
+ <a-button size="small" type="link" class="button-info" @click="handleEdit(record)">编辑</a-button>
|
|
|
+ <a-button size="small" type="link" class="button-info" @click="resetPassword(record)" v-if="record.loginFlag">重置密码</a-button>
|
|
|
+ <a-button size="small" type="link" class="button-info" @click="delect(record)" v-if="!record.loginFlag">删除</a-button>
|
|
|
<!-- <span v-if="!($hasPermissions('B_powerMD_user_edit') && record.superAdmin!=1) && !(record.loginFlag==1 && record.ownerOrgFlag==1 && $hasPermissions('B_powerMD_user_restPwd')) && !(record.loginFlag==0 && record.ownerOrgFlag==1 && $hasPermissions('B_powerMD_user_del'))">--</span> -->
|
|
|
</span>
|
|
|
</s-table>
|
|
@@ -97,10 +84,8 @@ export default {
|
|
|
columns: [
|
|
|
{ title: '序号', dataIndex: 'no', width: '5%', align: 'center' },
|
|
|
{ title: '创建时间', dataIndex: 'createDate', width: '15%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
- // { title: '来源', dataIndex: 'org.name', width: '13%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
{ title: '用户名称', dataIndex: 'name', width: '25%', align: 'left', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
|
{ title: '手机号码', dataIndex: 'phone', width: '15%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
- // { title: '用户账号', dataIndex: 'loginName', width: '10%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
{ title: '角色', width: '15%', align: 'center', dataIndex: 'roleNames', customRender: function (text) { return text || '--' } },
|
|
|
{ title: '状态', width: '10%', align: 'center', scopedSlots: { customRender: 'status' } },
|
|
|
{ title: '操作', width: '15%', align: 'left', scopedSlots: { customRender: 'action' } }
|