|
|
@ -1,6 +1,5 @@
|
|
|
|
<template>
|
|
|
|
<template>
|
|
|
|
<anji-crud ref="listPage"
|
|
|
|
<anji-crud ref="listPage" :option="crudOption">
|
|
|
|
:option="crudOption">
|
|
|
|
|
|
|
|
<template v-slot:buttonLeftOnTable>
|
|
|
|
<template v-slot:buttonLeftOnTable>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
@ -18,7 +17,13 @@
|
|
|
|
</anji-crud>
|
|
|
|
</anji-crud>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
|
import { accessAuthorityList, accessAuthorityAdd, accessAuthorityDeleteBatch, accessAuthorityUpdate, accessAuthorityDetail } from '@/api/accessAuthority'
|
|
|
|
import {
|
|
|
|
|
|
|
|
accessAuthorityList,
|
|
|
|
|
|
|
|
accessAuthorityAdd,
|
|
|
|
|
|
|
|
accessAuthorityDeleteBatch,
|
|
|
|
|
|
|
|
accessAuthorityUpdate,
|
|
|
|
|
|
|
|
accessAuthorityDetail,
|
|
|
|
|
|
|
|
} from '@/api/accessAuthority'
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
name: 'AccessAuthority',
|
|
|
|
name: 'AccessAuthority',
|
|
|
|
data() {
|
|
|
|
data() {
|
|
|
@ -46,7 +51,7 @@ export default {
|
|
|
|
dictCode: 'ENABLE_FLAG',
|
|
|
|
dictCode: 'ENABLE_FLAG',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
label: '启用状态',
|
|
|
|
label: '启用状态',
|
|
|
|
field: 'enableFlag'
|
|
|
|
field: 'enableFlag',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
inputType: 'input',
|
|
|
|
inputType: 'input',
|
|
|
@ -73,23 +78,23 @@ export default {
|
|
|
|
buttons: {
|
|
|
|
buttons: {
|
|
|
|
query: {
|
|
|
|
query: {
|
|
|
|
api: accessAuthorityList,
|
|
|
|
api: accessAuthorityList,
|
|
|
|
permission: 'authorityManage:query'
|
|
|
|
permission: 'authorityManage:query',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
queryByPrimarykey: {
|
|
|
|
queryByPrimarykey: {
|
|
|
|
api: accessAuthorityDetail,
|
|
|
|
api: accessAuthorityDetail,
|
|
|
|
permission: 'authorityManage:query'
|
|
|
|
permission: 'authorityManage:query',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
add: {
|
|
|
|
add: {
|
|
|
|
api: accessAuthorityAdd,
|
|
|
|
api: accessAuthorityAdd,
|
|
|
|
permission: 'authorityManage:insert'
|
|
|
|
permission: 'authorityManage:insert',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
delete: {
|
|
|
|
delete: {
|
|
|
|
api: accessAuthorityDeleteBatch,
|
|
|
|
api: accessAuthorityDeleteBatch,
|
|
|
|
permission: 'authorityManage:delete'
|
|
|
|
permission: 'authorityManage:delete',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
edit: {
|
|
|
|
edit: {
|
|
|
|
api: accessAuthorityUpdate,
|
|
|
|
api: accessAuthorityUpdate,
|
|
|
|
permission: 'authorityManage:update'
|
|
|
|
permission: 'authorityManage:update',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// 表格列
|
|
|
|
// 表格列
|
|
|
@ -110,7 +115,7 @@ export default {
|
|
|
|
inputType: 'input',
|
|
|
|
inputType: 'input',
|
|
|
|
rules: [
|
|
|
|
rules: [
|
|
|
|
{ required: true, message: '目标菜单必填', trigger: 'blur' },
|
|
|
|
{ required: true, message: '目标菜单必填', trigger: 'blur' },
|
|
|
|
{ min: 1, max: 64, message: '不超过64个字符', trigger: 'blur' }
|
|
|
|
{ min: 1, max: 64, message: '不超过64个字符', trigger: 'blur' },
|
|
|
|
],
|
|
|
|
],
|
|
|
|
disabled: false,
|
|
|
|
disabled: false,
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -127,7 +132,7 @@ export default {
|
|
|
|
inputType: 'input',
|
|
|
|
inputType: 'input',
|
|
|
|
rules: [
|
|
|
|
rules: [
|
|
|
|
{ required: true, message: '目标菜单名称必填', trigger: 'blur' },
|
|
|
|
{ required: true, message: '目标菜单名称必填', trigger: 'blur' },
|
|
|
|
{ min: 1, max: 128, message: '不超过128个字符', trigger: 'blur' }
|
|
|
|
{ min: 1, max: 128, message: '不超过128个字符', trigger: 'blur' },
|
|
|
|
],
|
|
|
|
],
|
|
|
|
disabled: false,
|
|
|
|
disabled: false,
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -141,7 +146,7 @@ export default {
|
|
|
|
inputType: 'input',
|
|
|
|
inputType: 'input',
|
|
|
|
rules: [
|
|
|
|
rules: [
|
|
|
|
{ required: true, message: '目标必填', trigger: 'blur' },
|
|
|
|
{ required: true, message: '目标必填', trigger: 'blur' },
|
|
|
|
{ min: 1, max: 64, message: '不超过64个字符', trigger: 'blur' }
|
|
|
|
{ min: 1, max: 64, message: '不超过64个字符', trigger: 'blur' },
|
|
|
|
],
|
|
|
|
],
|
|
|
|
disabled: false,
|
|
|
|
disabled: false,
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -158,7 +163,7 @@ export default {
|
|
|
|
inputType: 'input',
|
|
|
|
inputType: 'input',
|
|
|
|
rules: [
|
|
|
|
rules: [
|
|
|
|
{ required: true, message: '目标按钮名称必填', trigger: 'blur' },
|
|
|
|
{ required: true, message: '目标按钮名称必填', trigger: 'blur' },
|
|
|
|
{ min: 1, max: 128, message: '不超过128个字符', trigger: 'blur' }
|
|
|
|
{ min: 1, max: 128, message: '不超过128个字符', trigger: 'blur' },
|
|
|
|
],
|
|
|
|
],
|
|
|
|
disabled: false,
|
|
|
|
disabled: false,
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -176,7 +181,7 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
colorStyle: {
|
|
|
|
colorStyle: {
|
|
|
|
0: 'table-danger', //key为editField渲染的值(字典的提交值)'红色': 'danger','蓝色': 'primary','绿色': 'success','黄色': 'warning','灰色': 'info','白色':''
|
|
|
|
0: 'table-danger', //key为editField渲染的值(字典的提交值)'红色': 'danger','蓝色': 'primary','绿色': 'success','黄色': 'warning','灰色': 'info','白色':''
|
|
|
|
1: 'table-success'
|
|
|
|
1: 'table-success',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
rules: [
|
|
|
|
rules: [
|
|
|
|
{ required: true, message: '启用状态必填', trigger: 'blur' },
|
|
|
|
{ required: true, message: '启用状态必填', trigger: 'blur' },
|
|
|
@ -189,8 +194,7 @@ export default {
|
|
|
|
field: 'sort',
|
|
|
|
field: 'sort',
|
|
|
|
editField: 'sort',
|
|
|
|
editField: 'sort',
|
|
|
|
inputType: 'input',
|
|
|
|
inputType: 'input',
|
|
|
|
rules: [
|
|
|
|
rules: [],
|
|
|
|
],
|
|
|
|
|
|
|
|
disabled: false,
|
|
|
|
disabled: false,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
@ -240,8 +244,7 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
created() {},
|
|
|
|
created() {},
|
|
|
|
methods: {
|
|
|
|
methods: {},
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|