feat(demo): switch use in table

演示在table中渲染switch列并响应修改switch的动作
This commit is contained in:
无木
2021-06-04 16:11:18 +08:00
parent 41854121f3
commit 46899aa3cd
3 changed files with 43 additions and 7 deletions

View File

@@ -152,6 +152,15 @@ export default [
return resultPageSuccess(page, pageSize, roleList);
},
},
{
url: '/basic-api/system/setRoleStatus',
timeout: 500,
method: 'post',
response: ({ query }) => {
const { id, status } = query;
return resultSuccess({ id, status });
},
},
{
url: '/basic-api/system/getAllRoleList',
timeout: 100,