微调
This commit is contained in:
@@ -42,10 +42,10 @@
|
||||
import{ ElMessage, type FormInstance,type FormItemRule } from 'element-plus'
|
||||
import type { ProTableInstance } from '@/components/ProTable/interface'
|
||||
import { ref,computed, Ref } from 'vue'
|
||||
import { type Role } from '@/api/role/interface'
|
||||
import { type Role } from '@/api/user/interface/role'
|
||||
import {dialogSmall} from '@/utils/elementBind'
|
||||
import { useDictStore } from '@/stores/modules/dict'
|
||||
import {addRole,editRole,} from '@/api/role/role'
|
||||
import {addRole,editRole} from '@/api/user/role'
|
||||
|
||||
const dictStore = useDictStore()
|
||||
// 定义弹出组件元信息
|
||||
|
||||
@@ -32,11 +32,11 @@
|
||||
import{ ElMessage, ElTree, type FormInstance,type FormItemRule } from 'element-plus'
|
||||
import type { ProTableInstance } from '@/components/ProTable/interface'
|
||||
import { ref,computed, type Ref, nextTick } from 'vue'
|
||||
import { Role } from '@/api/role/interface'
|
||||
import { Role } from '@/api/user/interface/role'
|
||||
import {dialogMiddle,dialogSmall} from '@/utils/elementBind'
|
||||
import { useDictStore } from '@/stores/modules/dict'
|
||||
import { type Function } from '@/api/function/interface'
|
||||
import {getRoleFunction,assignFunction} from '@/api/role/role'
|
||||
import { type Function } from '@/api/user/function/interface'
|
||||
import {getRoleFunction,assignFunction} from '@/api/user/role/index'
|
||||
|
||||
// 保存数据
|
||||
const treeRef = ref<InstanceType<typeof ElTree>>()
|
||||
|
||||
@@ -28,18 +28,17 @@
|
||||
</template>
|
||||
|
||||
<script setup lang='tsx' name='useRole'>
|
||||
import { type Role } from '@/api/role/interface'
|
||||
import { type Function } from '@/api/function/interface'
|
||||
import { type Role } from '@/api/user/interface/role'
|
||||
import { type Function } from '@/api/user/interface/function'
|
||||
import { useHandleData } from '@/hooks/useHandleData'
|
||||
import ProTable from '@/components/ProTable/index.vue'
|
||||
import type{ ProTableInstance, ColumnProps } from '@/components/ProTable/interface'
|
||||
import { CirclePlus, Delete, EditPen, Share, Download, Upload, View, Refresh } from '@element-plus/icons-vue'
|
||||
import {getRoleList,deleteRole,getFunctionList} from '@/api/role/role'
|
||||
import {getRoleList,deleteRole,getFunctionList} from '@/api/user/role/index'
|
||||
import RolePopup from './components/rolePopup.vue'
|
||||
import RoleResourcePopup from './components/roleResourcePopup.vue'
|
||||
import { onMounted, reactive, ref } from 'vue'
|
||||
import {useDictStore} from '@/stores/modules/dict'
|
||||
import { fa } from 'element-plus/es/locale/index.mjs'
|
||||
const rolePopup = ref()
|
||||
const roleResourcePopup = ref()
|
||||
const dictStore = useDictStore()
|
||||
|
||||
Reference in New Issue
Block a user