微调
This commit is contained in:
@@ -57,14 +57,11 @@
|
||||
<script lang="ts" setup name="ResourceDialog">
|
||||
import { defineProps, defineEmits,watch,ref, type Ref, computed } from 'vue';
|
||||
import { dialogMiddle } from '@/utils/elementBind'
|
||||
import { ElMessage, FormInstance, FormItemRule } from 'element-plus'
|
||||
import { ElMessage, type FormInstance, type FormItemRule } from 'element-plus'
|
||||
import { useDictStore } from '@/stores/modules/dict'
|
||||
import { type Function } from '@/api/function/interface'
|
||||
import {addFunction,updateFunction,getFunctionListNoButton} from '@/api/function/index.ts'
|
||||
import type { Function } from "@/api/user/interface/function"
|
||||
import {addFunction,updateFunction,getFunctionListNoButton} from '@/api/user/function/index'
|
||||
import IconSelect from '@/components/SelectIcon/index.vue'
|
||||
import { functionList } from '@/api/function/functionExample.ts'
|
||||
import { min } from 'lodash';
|
||||
import { Console } from 'console';
|
||||
const value = ref()
|
||||
// 树形节点配置
|
||||
const defaultProps = {
|
||||
|
||||
@@ -26,13 +26,13 @@
|
||||
<script setup lang='tsx' name='useProTable'>
|
||||
import { ref ,reactive} from 'vue'
|
||||
import { useHandleData } from '@/hooks/useHandleData'
|
||||
import { type Function } from '@/api/function/interface'
|
||||
import type { Function } from "@/api/user/interface/function"
|
||||
import ProTable from '@/components/ProTable/index.vue'
|
||||
import {CirclePlus, Delete, EditPen,HomeFilled} from '@element-plus/icons-vue'
|
||||
import type { ColumnProps, ProTableInstance } from '@/components/ProTable/interface'
|
||||
import { useDictStore } from '@/stores/modules/dict'
|
||||
import ResourcePopup from './components/resourcePopup.vue'
|
||||
import {deleteFunction,getFunctionList} from '@/api/function/index.ts'
|
||||
import {deleteFunction,getFunctionList} from '@/api/user/function/index'
|
||||
const dictStore = useDictStore()
|
||||
const resourcePopup = ref()
|
||||
// ProTable 实例
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
import {updatePassWord} from '@/api/user/user'
|
||||
// 使用 dayjs 库格式化
|
||||
import dayjs from 'dayjs';
|
||||
import { type User } from '@/api/user/interface';
|
||||
import { type User } from '@/api/user/interface/user';
|
||||
|
||||
// 定义弹出组件元信息
|
||||
const dialogFormRef = ref()
|
||||
|
||||
@@ -56,9 +56,9 @@
|
||||
} from '@/api/user/user'
|
||||
// 使用 dayjs 库格式化
|
||||
import dayjs from 'dayjs';
|
||||
import { type User } from '@/api/user/interface';
|
||||
import { type User } from '@/api/user/interface/user';
|
||||
import { useDictStore } from '@/stores/modules/dict'
|
||||
import { type Role } from '@/api/role/interface';
|
||||
import { type Role } from '@/api/user/interface/role';
|
||||
const dictStore = useDictStore()
|
||||
// 定义弹出组件元信息
|
||||
const dialogFormRef = ref()
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
|
||||
<script setup lang='tsx' name='useRole'>
|
||||
import TimeControl from '@/components/TimeControl/index.vue'
|
||||
import { type User } from '@/api/user/interface'
|
||||
import { type User } from '@/api/user/interface/user'
|
||||
import { useHandleData } from '@/hooks/useHandleData'
|
||||
import ProTable from '@/components/ProTable/index.vue'
|
||||
import UserPopup from './components/userPopup.vue'
|
||||
@@ -42,7 +42,7 @@
|
||||
import { useDictStore } from '@/stores/modules/dict'
|
||||
import {getUserList, deleteUser,getRoleList} from '@/api/user/user'
|
||||
import { onMounted, reactive, ref } from 'vue'
|
||||
import { type Role } from '@/api/role/interface'
|
||||
import { type Role } from '@/api/user/interface/role'
|
||||
const roleList = ref<Role.RoleBO[]>([])
|
||||
const dictStore = useDictStore()
|
||||
const userPopup = ref()
|
||||
|
||||
Reference in New Issue
Block a user