Commit 2329acd1 authored by 沈翠玲's avatar 沈翠玲
parents e3df34a0 bc004eac
import request from '@/utils/http/index'; import request from '@/utils/http/index';
export const saveUser = (data) => { export const saveUser = (data) => {
return request.post('/login/save', data); return request.post('/user/save', data);
}; };
export const getUserPage = (params) => { export const getUserPage = (params) => {
return request.get('/login/page', params); return request.get('/user/page', params);
}; };
export const deleteUsers = (ids) => { export const deleteUsers = (ids) => {
return request.get('/login/batchDeleteByIds', { ids }); return request.get('/user/batchDeleteByIds', { ids });
}; };
export const saveLeaderGroup = (data) => { export const saveLeaderGroup = (data) => {
return request.post(`/leaderGroup/add?username=${data.username}&password=${data.password}&phone=${data.phone}&status=${data.status}&role=${data.role}`); return request.post(`/leaderGroup/add?username=${data.username}&password=${data.password}&phone=${data.phone}&status=${data.status}&role=${data.role}`);
......
...@@ -45,13 +45,13 @@ ...@@ -45,13 +45,13 @@
slots: { slots: {
default: ({ row }) => { default: ({ row }) => {
return ( return (
<>{Array.from(new Set(row.tenantNames)).join(',')}</> <>{row.tenant.name}</>
); );
}, },
}, },
field: 'tenantNames', field: 'tenantNames',
enum: Tenantlist, enum: Tenantlist,
search: { el: 'select', props: { filterable: true }, key: 'tenantId', labelWidth: 85 }, search: { el: 'select', props: { filterable: true }, key: 'tenant', labelWidth: 85 },
fieldNames: { label: 'name', value: 'id' }, fieldNames: { label: 'name', value: 'id' },
title: '调解中心' title: '调解中心'
}, },
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
{ field: 'roleCode', title: '角色编码', search: { el: 'input' } }, { field: 'roleCode', title: '角色编码', search: { el: 'input' } },
{ field: 'roleDesc', title: '角色描述', search: { el: 'input' } }, { field: 'roleDesc', title: '角色描述', search: { el: 'input' } },
{ {
width: 320, width: 200,
title: '操作', title: '操作',
fixed: 'right', fixed: 'right',
slots: { slots: {
...@@ -52,7 +52,7 @@ ...@@ -52,7 +52,7 @@
> >
设置权限 设置权限
</ElButton> </ElButton>
<ElButton {/* <ElButton
type="primary" type="primary"
link link
icon={Setting} icon={Setting}
...@@ -61,7 +61,7 @@ ...@@ -61,7 +61,7 @@
} }
> >
设置成员 设置成员
</ElButton> </ElButton> */}
</> </>
), ),
}, },
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
</ProTable> </ProTable>
<TenantFormModal ref="tenatModalRef" @success="query" /> <TenantFormModal ref="tenatModalRef" @success="query" />
<AllocationUserModal ref="allocationUserModalRef" @success="query" /> <!-- <AllocationUserModal ref="allocationUserModalRef" @success="query" /> -->
</div> </div>
</template> </template>
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
width: 80, width: 80,
slots: { slots: {
default: ({ row }) => { default: ({ row }) => {
return <div>{row.users.length}</div>; return <div>{row.usersSize}</div>;
}, },
}, },
}, },
...@@ -65,7 +65,7 @@ ...@@ -65,7 +65,7 @@
}, },
}, },
{ {
width: 200, width: 100,
title: '操作', title: '操作',
fixed: 'right', fixed: 'right',
slots: { slots: {
...@@ -74,16 +74,7 @@ ...@@ -74,16 +74,7 @@
<ElButton type="primary" link icon={Edit} onClick={() => handleEdit(row)}> <ElButton type="primary" link icon={Edit} onClick={() => handleEdit(row)}>
编辑 编辑
</ElButton> </ElButton>
<ElButton
type="primary"
link
icon={Setting}
onClick={() =>
allocationUserModalRef.value.openModal(JSON.parse(JSON.stringify(row)))
}
>
设置成员
</ElButton>
</> </>
), ),
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment