数据权限可直接修改关联表
权限配置提示
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
<BasicModal
|
||||
wrap-class-name="fixedHeight"
|
||||
@register="registerModal"
|
||||
:title="t('选择数据库')"
|
||||
:title="t('选择数据库表')"
|
||||
v-bind="$attrs"
|
||||
width="800px"
|
||||
:fixedHeight="true"
|
||||
@ -45,6 +45,12 @@
|
||||
const selectedKeys = ref<string[] | number[]>([]);
|
||||
|
||||
const emit = defineEmits(['success', 'register']);
|
||||
const props=defineProps({
|
||||
forbidUncheck:{
|
||||
type:Boolean,
|
||||
default:true
|
||||
}
|
||||
});
|
||||
|
||||
const { createMessage } = useMessage();
|
||||
const selectTableName = ref<string[]>([]);
|
||||
@ -73,7 +79,7 @@
|
||||
rowSelection: {
|
||||
type: 'checkbox',
|
||||
getCheckboxProps: (record) => ({
|
||||
disabled: selectTableName.value.includes(record.tableName),
|
||||
disabled: props.forbidUncheck&&selectTableName.value.includes(record.tableName),
|
||||
}),
|
||||
onChange: (selectedRowKeys) => {
|
||||
//搜索后会把原有选中项清空 所以需要进行存储
|
||||
|
||||
Reference in New Issue
Block a user