Merge pull request 'fix: 修复role新增编辑bug, 调整列表页' (#45) from role into master
Reviewed-on: http://git.feashow.cn/clay/mosr-web/pulls/45
This commit is contained in:
@@ -154,7 +154,11 @@ const filterMenu = (value, data) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const checkChange = (data) => {
|
const checkChange = (data) => {
|
||||||
return menuTree.value.getCheckedKeys()
|
// 获取已选
|
||||||
|
const checkedKeys = menuTree.value.getCheckedKeys()
|
||||||
|
// 获取半选
|
||||||
|
const halfCheckedKeys = menuTree.value.getHalfCheckedKeys()
|
||||||
|
return [...checkedKeys, ...halfCheckedKeys]
|
||||||
}
|
}
|
||||||
|
|
||||||
const checkBoxChange = (val) => {
|
const checkBoxChange = (val) => {
|
||||||
|
|||||||
@@ -109,10 +109,10 @@ const tableConfig = reactive({
|
|||||||
align: 'center'
|
align: 'center'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'dataScope',
|
prop: 'template',
|
||||||
label: '数据范围',
|
label: '是否为模版角色',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
currentRender: ({row, index}) => (<span>{formatDataScope(row.dataScope)}</span>)
|
currentRender: ({row, index}) => (<Tag dictType={'yes_no'} value={row.template ? '1' : '0'} />)
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'roleSort',
|
prop: 'roleSort',
|
||||||
@@ -154,7 +154,7 @@ const tableConfig = reactive({
|
|||||||
btn.push({label: '删除', auth: auths.edit, func: ()=>handleDel(row) , type: 'danger'})
|
btn.push({label: '删除', auth: auths.edit, func: ()=>handleDel(row) , type: 'danger'})
|
||||||
}
|
}
|
||||||
return (
|
return (
|
||||||
<div>
|
<div style={{width: '100%'}}>
|
||||||
{
|
{
|
||||||
btn.map(item=>(
|
btn.map(item=>(
|
||||||
<el-button
|
<el-button
|
||||||
|
|||||||
Reference in New Issue
Block a user