按照标准框架修改角色界面

This commit is contained in:
GYYM
2024-10-17 16:34:13 +08:00
parent 062a8f259f
commit c5359b1ce7
5 changed files with 194 additions and 126 deletions

View File

@@ -0,0 +1,31 @@
<template>
<!-- 权限信息弹出框 -->
<el-dialog :model-value="dialogVisible" :title="title" @close="handleCancel" width="800" draggable>
<div>
<el-transfer v-model="value" :data="data" :titles="['未具备的权限', '已具备的权限']"/>
</div>
<template #footer>
<div class="dialog-footer">
<el-button @click="handleCancel">取消</el-button>
<el-button type="primary" @click="handleCancel">
保存
</el-button>
</div>
</template>
</el-dialog>
</template>
<script lang="ts" setup>
import { ref } from 'vue'
const {dialogVisible,data} = defineProps(['dialogVisible','title','data'])
const value = ref()
const emit = defineEmits<{
(e:'update:visible',value:boolean):void;
}>();
const handleCancel = () => {
emit('update:visible',false)
}
</script>