vue3重构 系统管理-岗位管理 elementPlus实现

pull/61/head
Chika 2023-03-26 21:44:26 +08:00
parent a7c538f71e
commit 0b8d469daf
3 changed files with 2 additions and 1 deletions

View File

@ -88,6 +88,7 @@
</template>
</Dialog>
</template>
<script setup lang="ts">
import * as RoleApi from '@/api/system/role'
import type { ElTree } from 'element-plus'

View File

@ -104,7 +104,6 @@ const resetForm = () => {
}
formRef.value?.resetFields()
}
defineExpose({ openModal }) // openModal
/** 提交表单 */

View File

@ -237,6 +237,7 @@ const handleExport = async () => {
}
/** 数据权限操作 */
const menuPermissionFormRef = ref()
//
const handleScope = async (type: string, row: RoleApi.RoleVO) => {
menuPermissionFormRef.value.openModal(type, row)