vue3重构 系统管理-岗位管理 elementPlus实现
parent
a7c538f71e
commit
0b8d469daf
|
|
@ -88,6 +88,7 @@
|
|||
</template>
|
||||
</Dialog>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import * as RoleApi from '@/api/system/role'
|
||||
import type { ElTree } from 'element-plus'
|
||||
|
|
|
|||
|
|
@ -104,7 +104,6 @@ const resetForm = () => {
|
|||
}
|
||||
formRef.value?.resetFields()
|
||||
}
|
||||
|
||||
defineExpose({ openModal }) // 提供 openModal 方法,用于打开弹窗
|
||||
|
||||
/** 提交表单 */
|
||||
|
|
|
|||
|
|
@ -237,6 +237,7 @@ const handleExport = async () => {
|
|||
}
|
||||
/** 数据权限操作 */
|
||||
const menuPermissionFormRef = ref()
|
||||
|
||||
// 权限操作
|
||||
const handleScope = async (type: string, row: RoleApi.RoleVO) => {
|
||||
menuPermissionFormRef.value.openModal(type, row)
|
||||
|
|
|
|||
Loading…
Reference in New Issue