lxf hace 1 año
padre
commit
b253fbf069
Se han modificado 49 ficheros con 87 adiciones y 457 borrados
  1. 1 1
      src/api/menu.js
  2. 1 1
      src/api/monitor/cache.js
  3. 1 1
      src/api/monitor/job.js
  4. 1 1
      src/api/monitor/jobLog.js
  5. 1 1
      src/api/monitor/logininfor.js
  6. 1 1
      src/api/monitor/online.js
  7. 1 1
      src/api/monitor/operlog.js
  8. 1 1
      src/api/monitor/server.js
  9. 1 1
      src/api/system/config.js
  10. 1 1
      src/api/system/dept.js
  11. 1 1
      src/api/system/dict/data.js
  12. 1 1
      src/api/system/dict/type.js
  13. 1 1
      src/api/system/menu.js
  14. 1 1
      src/api/system/notice.js
  15. 1 1
      src/api/system/post.js
  16. 1 1
      src/api/system/role.js
  17. 1 1
      src/api/system/user.js
  18. 1 1
      src/api/tool/gen.js
  19. 1 1
      src/components/Editor/index.vue
  20. 3 3
      src/components/HeaderSearch/index.vue
  21. 1 1
      src/components/IconSelect/index.vue
  22. 1 1
      src/components/Pagination/index.vue
  23. 1 1
      src/directive/permission/hasPermi.js
  24. 1 1
      src/directive/permission/hasRole.js
  25. 1 1
      src/layout/components/IframeToggle/index.vue
  26. 6 6
      src/layout/components/Settings/index.vue
  27. 1 1
      src/layout/components/Sidebar/Link.vue
  28. 3 3
      src/layout/components/Sidebar/Logo.vue
  29. 2 2
      src/layout/components/Sidebar/SidebarItem.vue
  30. 1 1
      src/layout/components/TagsView/ScrollPane.vue
  31. 4 4
      src/layout/components/TagsView/index.vue
  32. 1 1
      src/plugins/auth.js
  33. 3 3
      src/plugins/download.js
  34. 2 2
      src/plugins/tab.js
  35. 13 13
      src/router/index.js
  36. 6 6
      src/store/modules/permission.js
  37. 2 2
      src/store/modules/settings.js
  38. 2 2
      src/utils/dict.js
  39. 3 3
      src/utils/dynamicTitle.js
  40. 1 1
      src/utils/permission.js
  41. 1 1
      src/views/monitor/cache/index.vue
  42. 1 1
      src/views/monitor/druid/index.vue
  43. 1 1
      src/views/monitor/job/index.vue
  44. 1 1
      src/views/monitor/server/index.vue
  45. 1 1
      src/views/process/processConfig/processChart.vue
  46. 1 1
      src/views/system/dict/data.vue
  47. 3 3
      src/views/system/msg/index.vue
  48. 0 370
      src/views/system/role2/index - 副本.vue
  49. 1 1
      src/views/tool/swagger/index.vue

+ 1 - 1
src/api/menu.js

@@ -1,4 +1,4 @@
-import request from '@/utils/request'
+import request from '/src/utils/request'
 
 // 获取路由
 export const getRouters = () => {

+ 1 - 1
src/api/monitor/cache.js

@@ -1,4 +1,4 @@
-import request from '@/utils/request'
+import request from '/src/utils/request'
 
 // 查询缓存详细
 export function getCache() {

+ 1 - 1
src/api/monitor/job.js

@@ -1,4 +1,4 @@
-import request from '@/utils/request'
+import request from '/src/utils/request'
 
 // 查询定时任务调度列表
 export function listJob(query) {

+ 1 - 1
src/api/monitor/jobLog.js

@@ -1,4 +1,4 @@
-import request from '@/utils/request'
+import request from '/src/utils/request'
 
 // 查询调度日志列表
 export function listJobLog(query) {

+ 1 - 1
src/api/monitor/logininfor.js

@@ -1,4 +1,4 @@
-import request from '@/utils/request'
+import request from '/src/utils/request'
 
 // 查询登录日志列表
 export function list(query) {

+ 1 - 1
src/api/monitor/online.js

@@ -1,4 +1,4 @@
-import request from '@/utils/request'
+import request from '/src/utils/request'
 
 // 查询在线用户列表
 export function list(query) {

+ 1 - 1
src/api/monitor/operlog.js

@@ -1,4 +1,4 @@
-import request from '@/utils/request'
+import request from '/src/utils/request'
 
 // 查询操作日志列表
 export function list(query) {

+ 1 - 1
src/api/monitor/server.js

@@ -1,4 +1,4 @@
-import request from '@/utils/request'
+import request from '/src/utils/request'
 
 // 获取服务信息
 export function getServer() {

+ 1 - 1
src/api/system/config.js

@@ -1,4 +1,4 @@
-import request from '@/utils/request'
+import request from '/src/utils/request'
 
 // 查询参数列表
 export function listConfig(query) {

+ 1 - 1
src/api/system/dept.js

@@ -1,4 +1,4 @@
-import request from '@/utils/request'
+import request from '/src/utils/request'
 
 // 查询部门列表
 export function listDept(query) {

+ 1 - 1
src/api/system/dict/data.js

@@ -1,4 +1,4 @@
-import request from '@/utils/request'
+import request from '/src/utils/request'
 
 // 查询字典数据列表
 export function listData(query) {

+ 1 - 1
src/api/system/dict/type.js

@@ -1,4 +1,4 @@
-import request from '@/utils/request'
+import request from '/src/utils/request'
 
 // 查询字典类型列表
 export function listType(query) {

+ 1 - 1
src/api/system/menu.js

@@ -1,4 +1,4 @@
-import request from '@/utils/request'
+import request from '/src/utils/request'
 
 // 查询菜单列表
 export function listMenu(query) {

+ 1 - 1
src/api/system/notice.js

@@ -1,4 +1,4 @@
-import request from '@/utils/request'
+import request from '/src/utils/request'
 
 // 查询公告列表
 export function listNotice(query) {

+ 1 - 1
src/api/system/post.js

@@ -1,4 +1,4 @@
-import request from '@/utils/request'
+import request from '/src/utils/request'
 
 // 查询岗位列表
 export function listPost(query) {

+ 1 - 1
src/api/system/role.js

@@ -1,4 +1,4 @@
-import request from '@/utils/request'
+import request from '/src/utils/request'
 
 // 查询角色列表
 export function listRole(query) {

+ 1 - 1
src/api/system/user.js

@@ -1,4 +1,4 @@
-import request from '@/utils/request'
+import request from '/src/utils/request'
 import { parseStrEmpty } from "@/utils/ruoyi";
 
 // 查询用户列表

+ 1 - 1
src/api/tool/gen.js

@@ -1,4 +1,4 @@
-import request from '@/utils/request'
+import request from '/src/utils/request'
 
 // 查询生成表数据
 export function listTable(query) {

+ 1 - 1
src/components/Editor/index.vue

@@ -27,7 +27,7 @@
 import { QuillEditor } from "@vueup/vue-quill";
 import "@vueup/vue-quill/dist/vue-quill.snow.css";
 import { reactive, onMounted, ref, toRaw, watch, computed } from "vue";
-// import { backsite } from '@/api'
+// import { backsite } from '/src/api'
 
 // const props = defineProps(["value"]);
 const props = defineProps({

+ 3 - 3
src/components/HeaderSearch/index.vue

@@ -19,9 +19,9 @@
 
 <script setup>
 import Fuse from 'fuse.js'
-import { getNormalPath } from '@/utils/ruoyi'
-import { isHttp } from '@/utils/validate'
-import usePermissionStore from '@/store/modules/permission'
+import { getNormalPath } from '/src/utils/ruoyi'
+import { isHttp } from '/src/utils/validate'
+import usePermissionStore from '/src/store/modules/permission'
 
 const search = ref('');
 const options = ref([]);

+ 1 - 1
src/components/IconSelect/index.vue

@@ -23,7 +23,7 @@
 <script setup>
 import icons from './requireIcons'
 
-import iconfont from '@/assets/icons/iconfont/iconfont.css' 
+import iconfont from '/src/assets/icons/iconfont/iconfont.css' 
 let iconArr = iconfont.match(/(?:[\.]{1})([a-zA-Z_]+[\w-_]*)(?:[\s\.\,\{\>#\:]{0})/igm)
 iconArr.splice(0,4)
 iconArr = iconArr.map(item => {

+ 1 - 1
src/components/Pagination/index.vue

@@ -15,7 +15,7 @@
 </template>
 
 <script setup>
-import { scrollTo } from '@/utils/scroll-to'
+import { scrollTo } from '/src/utils/scroll-to'
 
 const props = defineProps({
   total: {

+ 1 - 1
src/directive/permission/hasPermi.js

@@ -3,7 +3,7 @@
  * Copyright (c) 2019 ruoyi
  */
  
-import useUserStore from '@/store/modules/user'
+import useUserStore from '/src/store/modules/user'
 
 export default {
   mounted(el, binding, vnode) {

+ 1 - 1
src/directive/permission/hasRole.js

@@ -3,7 +3,7 @@
  * Copyright (c) 2019 ruoyi
  */
  
-import useUserStore from '@/store/modules/user'
+import useUserStore from '/src/store/modules/user'
 
 export default {
   mounted(el, binding, vnode) {

+ 1 - 1
src/layout/components/IframeToggle/index.vue

@@ -12,7 +12,7 @@
 
 <script setup>
 import InnerLink from "../InnerLink/index"
-import useTagsViewStore from '@/store/modules/tagsView'
+import useTagsViewStore from '/src/store/modules/tagsView'
 
 const route = useRoute();
 const tagsViewStore = useTagsViewStore()

+ 6 - 6
src/layout/components/Settings/index.vue

@@ -79,15 +79,15 @@
 </template>
 
 <script setup>
-import variables from '@/assets/styles/variables.module.scss'
+import variables from '/src/assets/styles/variables.module.scss'
 import originElementPlus from 'element-plus/theme-chalk/index.css'
 import axios from 'axios'
 import { ElLoading, ElMessage } from 'element-plus'
-import { useDynamicTitle } from '@/utils/dynamicTitle'
-import useAppStore from '@/store/modules/app'
-import useSettingsStore from '@/store/modules/settings'
-import usePermissionStore from '@/store/modules/permission'
-import { handleThemeStyle } from '@/utils/theme'
+import { useDynamicTitle } from '/src/utils/dynamicTitle'
+import useAppStore from '/src/store/modules/app'
+import useSettingsStore from '/src/store/modules/settings'
+import usePermissionStore from '/src/store/modules/permission'
+import { handleThemeStyle } from '/src/utils/theme'
 
 const { proxy } = getCurrentInstance();
 const appStore = useAppStore()

+ 1 - 1
src/layout/components/Sidebar/Link.vue

@@ -5,7 +5,7 @@
 </template>
 
 <script setup>
-import { isExternal } from '@/utils/validate'
+import { isExternal } from '/src/utils/validate'
 
 const props = defineProps({
   to: {

+ 3 - 3
src/layout/components/Sidebar/Logo.vue

@@ -14,9 +14,9 @@
 </template>
 
 <script setup>
-import variables from '@/assets/styles/variables.module.scss'
-import logo from '@/assets/logo/logo.png'
-import useSettingsStore from '@/store/modules/settings'
+import variables from '/src/assets/styles/variables.module.scss'
+import logo from '/src/assets/logo/logo.png'
+import useSettingsStore from '/src/store/modules/settings'
 
 defineProps({
   collapse: {

+ 2 - 2
src/layout/components/Sidebar/SidebarItem.vue

@@ -28,9 +28,9 @@
 </template>
 
 <script setup>
-import { isExternal } from '@/utils/validate'
+import { isExternal } from '/src/utils/validate'
 import AppLink from './Link'
-import { getNormalPath } from '@/utils/ruoyi'
+import { getNormalPath } from '/src/utils/ruoyi'
 
 const props = defineProps({
   // route object

+ 1 - 1
src/layout/components/TagsView/ScrollPane.vue

@@ -10,7 +10,7 @@
 </template>
 
 <script setup>
-import useTagsViewStore from '@/store/modules/tagsView'
+import useTagsViewStore from '/src/store/modules/tagsView'
 
 const tagAndTagSpacing = ref(4);
 const { proxy } = getCurrentInstance();

+ 4 - 4
src/layout/components/TagsView/index.vue

@@ -44,10 +44,10 @@
 
 <script setup>
 import ScrollPane from './ScrollPane'
-import { getNormalPath } from '@/utils/ruoyi'
-import useTagsViewStore from '@/store/modules/tagsView'
-import useSettingsStore from '@/store/modules/settings'
-import usePermissionStore from '@/store/modules/permission'
+import { getNormalPath } from '/src/utils/ruoyi'
+import useTagsViewStore from '/src/store/modules/tagsView'
+import useSettingsStore from '/src/store/modules/settings'
+import usePermissionStore from '/src/store/modules/permission'
 
 const visible = ref(false);
 const top = ref(0);

+ 1 - 1
src/plugins/auth.js

@@ -1,4 +1,4 @@
-import useUserStore from '@/store/modules/user'
+import useUserStore from '/src/store/modules/user'
 
 function authPermission(permission) {
   const all_permission = "*:*:*";

+ 3 - 3
src/plugins/download.js

@@ -1,9 +1,9 @@
 import axios from 'axios'
 import { ElMessage } from 'element-plus'
 import { saveAs } from 'file-saver'
-import { getToken } from '@/utils/auth'
-import errorCode from '@/utils/errorCode'
-import { blobValidate } from '@/utils/ruoyi'
+import { getToken } from '/src/utils/auth'
+import errorCode from '/src/utils/errorCode'
+import { blobValidate } from '/src/utils/ruoyi'
 
 const baseURL = import.meta.env.VITE_APP_BASE_API
 

+ 2 - 2
src/plugins/tab.js

@@ -1,5 +1,5 @@
-import useTagsViewStore from '@/store/modules/tagsView'
-import router from '@/router'
+import useTagsViewStore from '/src/store/modules/tagsView'
+import router from '/src/router'
 
 export default {
   // 刷新当前tab页签

+ 13 - 13
src/router/index.js

@@ -33,28 +33,28 @@ export const constantRoutes = [
     children: [
       {
         path: "/redirect/:path(.*)",
-        component: () => import("@/views/redirect/index.vue"),
+        component: () => import("/src/views/redirect/index.vue"),
       },
     ],
   },
   {
     path: "/login",
-    component: () => import("@/views/login"),
+    component: () => import("/src/views/login"),
     hidden: true,
   },
   {
     path: "/register",
-    component: () => import("@/views/register"),
+    component: () => import("/src/views/register"),
     hidden: true,
   },
   {
     path: "/:pathMatch(.*)*",
-    component: () => import("@/views/error/404"),
+    component: () => import("/src/views/error/404"),
     hidden: true,
   },
   {
     path: "/401",
-    component: () => import("@/views/error/401"),
+    component: () => import("/src/views/error/401"),
     hidden: true,
   },
   {
@@ -64,13 +64,13 @@ export const constantRoutes = [
     children: [
       {
         path: "/index",
-        component: () => import("@/views/index"),
+        component: () => import("/src/views/index"),
         name: "Index",
         meta: { title: "首页", icon: "dashboard", affix: true },
       },
       {
         path: "/platform_manage/process/processApproval",
-        component: () => import("@/views/process/processApproval/index.vue"),
+        component: () => import("/src/views/process/processApproval/index.vue"),
         name: "ProcessApproval",
         meta: { title: "流程审批", icon: "dashboard", affix: false },
       },
@@ -84,7 +84,7 @@ export const constantRoutes = [
     children: [
       {
         path: "profile",
-        component: () => import("@/views/system/user/profile/index"),
+        component: () => import("/src/views/system/user/profile/index"),
         name: "Profile",
         meta: { title: "个人中心", icon: "user" },
       },
@@ -227,7 +227,7 @@ export const dynamicRoutes = [
     children: [
       {
         path: "role/:userId(\\d+)",
-        component: () => import("@/views/system/user/authRole"),
+        component: () => import("/src/views/system/user/authRole"),
         name: "AuthRole",
         meta: { title: "分配角色", activeMenu: "/system/user" },
       },
@@ -241,7 +241,7 @@ export const dynamicRoutes = [
     children: [
       {
         path: "user/:roleId(\\d+)",
-        component: () => import("@/views/system/role/authUser"),
+        component: () => import("/src/views/system/role/authUser"),
         name: "AuthUser",
         meta: { title: "分配用户", activeMenu: "/system/role" },
       },
@@ -255,7 +255,7 @@ export const dynamicRoutes = [
     children: [
       {
         path: "index/:dictId(\\d+)",
-        component: () => import("@/views/system/dict/data"),
+        component: () => import("/src/views/system/dict/data"),
         name: "Data",
         meta: { title: "字典数据", activeMenu: "/system/dict" },
       },
@@ -269,7 +269,7 @@ export const dynamicRoutes = [
     children: [
       {
         path: "index/:jobId(\\d+)",
-        component: () => import("@/views/monitor/job/log"),
+        component: () => import("/src/views/monitor/job/log"),
         name: "JobLog",
         meta: { title: "调度日志", activeMenu: "/monitor/job" },
       },
@@ -283,7 +283,7 @@ export const dynamicRoutes = [
     children: [
       {
         path: "index/:tableId(\\d+)",
-        component: () => import("@/views/tool/gen/editTable"),
+        component: () => import("/src/views/tool/gen/editTable"),
         name: "GenEdit",
         meta: { title: "修改生成配置", activeMenu: "/tool/gen" },
       },

+ 6 - 6
src/store/modules/permission.js

@@ -1,9 +1,9 @@
-import auth from '@/plugins/auth'
-import router, { constantRoutes, dynamicRoutes } from '@/router'
-import { getRouters } from '@/api/menu'
-import Layout from '@/layout/index'
-import ParentView from '@/components/ParentView'
-import InnerLink from '@/layout/components/InnerLink'
+import auth from '/src/plugins/auth'
+import router, { constantRoutes, dynamicRoutes } from '/src/router'
+import { getRouters } from '/src/api/menu'
+import Layout from '/src/layout/index'
+import ParentView from '/src/components/ParentView'
+import InnerLink from '/src/layout/components/InnerLink'
 
 // 匹配views里面所有的.vue文件
 const modules = import.meta.glob('./../../views/**/*.vue')

+ 2 - 2
src/store/modules/settings.js

@@ -1,5 +1,5 @@
-import defaultSettings from '@/settings'
-import { useDynamicTitle } from '@/utils/dynamicTitle'
+import defaultSettings from '/src/settings'
+import { useDynamicTitle } from '/src/utils/dynamicTitle'
 
 const { sideTheme, showSettings, topNav, tagsView, fixedHeader, sidebarLogo, dynamicTitle } = defaultSettings
 

+ 2 - 2
src/utils/dict.js

@@ -1,5 +1,5 @@
-import useDictStore from '@/store/modules/dict'
-import { getDicts } from '@/api/system/dict/data'
+import useDictStore from '/src/store/modules/dict'
+import { getDicts } from '/src/api/system/dict/data'
 
 /**
  * 获取字典数据

+ 3 - 3
src/utils/dynamicTitle.js

@@ -1,6 +1,6 @@
-import store from '@/store'
-import defaultSettings from '@/settings'
-import useSettingsStore from '@/store/modules/settings'
+import store from '/src/store'
+import defaultSettings from '/src/settings'
+import useSettingsStore from '/src/store/modules/settings'
 
 /**
  * 动态修改标题

+ 1 - 1
src/utils/permission.js

@@ -1,4 +1,4 @@
-import useUserStore from '@/store/modules/user'
+import useUserStore from '/src/store/modules/user'
 
 /**
  * 字符权限校验

+ 1 - 1
src/views/monitor/cache/index.vue

@@ -65,7 +65,7 @@
 </template>
 
 <script setup name="Cache">
-import { getCache } from '@/api/monitor/cache';
+import { getCache } from '/src/api/monitor/cache';
 import * as echarts from 'echarts';
 
 const cache = ref([]);

+ 1 - 1
src/views/monitor/druid/index.vue

@@ -5,7 +5,7 @@
 </template>
 
 <script setup>
-import iFrame from '@/components/iFrame'
+import iFrame from '/src/components/iFrame'
 
 import { ref } from 'vue';
 

+ 1 - 1
src/views/monitor/job/index.vue

@@ -286,7 +286,7 @@
 
 <script setup name="Job">
 import { listJob, getJob, delJob, addJob, updateJob, runJob, changeJobStatus } from "@/api/monitor/job";
-import Crontab from '@/components/Crontab'
+import Crontab from '/src/components/Crontab'
 const router = useRouter();
 const { proxy } = getCurrentInstance();
 const { sys_job_group, sys_job_status } = proxy.useDict("sys_job_group", "sys_job_status");

+ 1 - 1
src/views/monitor/server/index.vue

@@ -170,7 +170,7 @@
 </template>
 
 <script setup>
-import { getServer } from '@/api/monitor/server'
+import { getServer } from '/src/api/monitor/server'
 
 const server = ref([]);
 const { proxy } = getCurrentInstance();

+ 1 - 1
src/views/process/processConfig/processChart.vue

@@ -22,7 +22,7 @@
 
 <script setup name="ProcessChart">
 
-import vueFlow from '@/views/process/processConfig/vueFlow.vue'
+import vueFlow from '/src/views/process/processConfig/vueFlow.vue'
 const title = ref('')
 onMounted(() => {
 	

+ 1 - 1
src/views/system/dict/data.vue

@@ -176,7 +176,7 @@
 </template>
 
 <script setup name="Data">
-import useDictStore from '@/store/modules/dict'
+import useDictStore from '/src/store/modules/dict'
 import { optionselect as getDictOptionselect, getType } from "@/api/system/dict/type";
 import { listData, getData, delData, addData, updateData } from "@/api/system/dict/data";
 

+ 3 - 3
src/views/system/msg/index.vue

@@ -48,10 +48,10 @@
 
 <script setup>
 import { ElMessage, ElMessageBox } from 'element-plus'
-import byTable from '@/components/byTable/index'
-import byForm from '@/components/byForm/index'
+import byTable from '/src/components/byTable/index'
+import byForm from '/src/components/byForm/index'
 import { computed, ref } from 'vue'
-import Editor from '@/components/Editor/index.vue'
+import Editor from '/src/components/Editor/index.vue'
 
 const { proxy } = getCurrentInstance()
 const loading = ref(false)

+ 0 - 370
src/views/system/role2/index - 副本.vue

@@ -1,370 +0,0 @@
-<template>
-	<div class="role">
-        <div class="tree">
-            <treeList
-                :data="treeListData"
-                v-model="sourceList.pagination.tenantId"
-                node-key="id"
-                @change="treeChange"
-            >
-            </treeList>
-        </div>
-		<div class="content">
-			<byTable
-				:source="sourceList.data"
-				:pagination="sourceList.pagination"
-				:config="config"
-				:loading="loading"
-				highlight-current-row
-				:selectConfig="selectConfig"
-				:table-events="{
-					//element talbe事件都能传
-					'select': select,
-				}"
-				:action-list="[
-					{
-						text: '添加角色',
-						action: () => openModal('add'),
-						disabled:!sourceList.pagination.tenantId
-					},
-					{
-						text: '权限配置',
-						plain: true,
-						//type: 'warning',
-						action: () => openRoomModal(),
-						disabled:selection.data.length != 1,
-					},
-				]"
-				@get-list="getList"
-			>
-				<template #slotName="{ item }">
-					{{ item.createTime }}
-				</template>
-			</byTable>
-		</div>
-		<el-dialog
-			:title="modalType == 'add' ? '新增' : '编辑'"
-			v-model="dialogVisible"
-			width="500"
-			v-loading="loading"
-		>
-			<byForm
-				:formConfig="formConfig"
-				:formOption="formOption"
-				v-model="formData.data"
-				:rules="rules"
-				ref="byform"
-			>
-				
-			</byForm>
-			<template #footer>
-				<el-button @click="dialogVisible = false" size="large"
-					>取 消</el-button
-				>
-				<el-button
-					type="primary"
-					@click="submitForm('byform')"
-					size="large"
-					:loading="submitLoading">
-					确 定
-				</el-button>
-			</template>
-		</el-dialog>
-		<el-dialog
-			title="权限配置"
-			v-model="roomDialogVisible"
-			width="500"
-			:before-close="handleClose"
-			v-loading="loading">
-				
-				<el-tree
-					:data="treeData"
-					:show-checkbox="true"
-					v-model="formData.treeData"
-					ref="tree"
-					node-key="id"
-				>
-				</el-tree>
-			<template #footer>
-				<el-button @click="roomDialogVisible = false" size="large"
-					>取 消</el-button
-				>
-				<el-button
-					type="primary"
-					@click="submitTree('byform')"
-					size="large"
-					:loading="submitLoading">
-					确 定
-				</el-button>
-			</template>
-		</el-dialog>
-	</div>
-</template>
-  
-<script setup>
-/* eslint-disable vue/no-unused-components */
-import { ElMessage, ElMessageBox } from 'element-plus'
-import byTable from '@/components/byTable/index'
-import byForm from '@/components/byForm/index'
-import treeList from '@/components/treeList/index'
-import { computed, defineComponent, ref } from 'vue'
-const loading = ref(false)
-const submitLoading = ref(false)
-const sourceList = ref({
-	data: [],
-	pagination: {
-		total: 3,
-		pageNum: 1,
-		pageSize: 10,
-
-	},
-})
-let dialogVisible = ref(false)
-let roomDialogVisible = ref(false)
-let modalType = ref('add')
-let rules = ref({
-	roleKey: [{ required: true, message: '请输入角色编码', trigger: 'blur' }],
-	roleName: [{ required: true, message: '请输入角色名称', trigger: 'blur' }],
-})
-const { proxy } = getCurrentInstance()
-const selectConfig = computed(() => {
-	return [
-	]
-})
-const config = computed(() => {
-	return [
-        {
-			type: 'selection',
-			attrs: {
-				label: '多选',
-				prop: 'remark',
-			},
-		},
-		{
-			attrs: {
-				label: '角色编码',
-				prop: 'roleKey',
-			},
-		},
-		{
-			attrs: {
-				label: '角色名称',
-				prop: 'roleName',
-				align: 'left',
-			},
-		},
-		{
-			attrs: {
-				label: '创建时间',
-				prop: 'createTime',
-			},
-		},
-		{
-			attrs: {
-				label: '操作',
-				width: '200',
-				align: 'right',
-			},
-			// 渲染 el-button,一般用在最后一列。
-			renderHTML(row) {
-				return [
-					{
-						attrs: {
-							label: '修改',
-							type: 'primary',
-							text: true,
-						},
-						el: 'button',
-						click() {
-							getDtl(row)
-						},
-					},
-					{
-						attrs: {
-							label: '删除',
-							type: 'danger',
-							text: true,
-						},
-						el: 'button',
-						click() {
-							// 弹窗提示是否删除
-							ElMessageBox.confirm('此操作将永久删除该数据, 是否继续?', '提示', {
-								confirmButtonText: '确定',
-								cancelButtonText: '取消',
-								type: 'warning',
-							})
-								.then(() => {
-									// 删除
-									proxy.post('/tenantRole/' + row.roleId, {
-										id: row.roleId,
-									},'delete').then((res) => {
-										ElMessage({
-											message: '删除成功',
-											type: 'success',
-										})
-										getList()
-									})
-								})
-						},
-					},
-				]
-			},
-		},
-	]
-})
-
-let formData = reactive({
-	data:{},
-	treeData:[],
-})
-const formOption = reactive({
-	inline: true,
-	labelWidth: 100,
-	itemWidth: 100,
-	rules: [],
-})
-const byform = ref(null)
-const treeData = ref([])
-const treeListData = ref([])
-const formConfig = computed(() => {
-	return [
-        
-		{
-			type: 'input',
-			prop: 'roleKey',
-			label: '角色编码',
-			required: true,
-			itemWidth: 100,
-			//disabled:true,
-			itemType: 'text',
-		},
-		{
-			type: 'input',
-			prop: 'roleName',
-			label: '角色名称',
-			required: true,
-			itemWidth: 100,
-			//disabled:true,
-			itemType: 'text',
-		},
-	]
-})
-const getTreeList = () => {
-    proxy.post('/tenantInfo/list').then((message) => {
-        message.map((item) => {
-            item.label = item.enterpriseName
-            item.id = item.tenantId
-            item.children = []
-        })
-        treeListData.value = message
-        console.log(treeListData.value)
-    })
-}
-const getList = async (req) => {
-	sourceList.value.pagination = { ...sourceList.value.pagination, ...req }
-	loading.value = true
-	proxy.get('/tenantRole/list',sourceList.value.pagination).then((message) => {
-		console.log(message)
-		sourceList.value.data = message.rows
-		sourceList.value.pagination.total = message.total
-		setTimeout(() => {
-			loading.value = false
-		}, 200)
-	})
-}
-
-const treeChange = ((e) => {
-	console.log(e)
-    sourceList.value.pagination.tenantId = e.id
-    getList({tenantId:e.id})
-})
-
-const openModal = () => {
-	dialogVisible.value = true
-	modalType.value = 'add'
-	formData.data = {
-		tableData:[{num:111,age:222,renyuan:2},{num:111,age:222,renyuan:1}]
-	}
-}
-const TreetenantId = ref('')
-const selection = ref({
-	data:[],
-})
-const select = (_selection, row) => {
-	selection.value.data = _selection
-	console.log(_selection.length)
-}
-const openRoomModal = () => {
-	roomDialogVisible.value = true
-	
-	proxy.get('/tenantRole/roleMenuTreeSelect/' + selection.value.data[0].roleId).then((res) => {
-		if(res.code == 200){
-			treeData.value = res.menus
-			formData.treeData = res.checkedKeys
-			tree.value.setCheckedKeys(res.checkedKeys)
-		}
-	})
-}
-const tree = ref(null)
-const submitTree = () => {
-	proxy.post('/tenantRole', {
-		... selection.value.data[0],
-		menuIds:tree.value.getCheckedKeys(),
-	},'PUT').then((res) => {
-		ElMessage({
-			message: '保存成功',
-			type: 'success',
-		})
-		roomDialogVisible.value = false
-	})
-}
-
-
-
-const submitForm = () => {
-	byform.value.handleSubmit((valid) => {
-		const method = modalType.value == 'add' ? 'POST' : 'PUT'
-		console.log(method)
-		proxy.post(
-				'/tenantRole',
-				{...formData.data,
-					tenantId:sourceList.value.pagination.tenantId,
-					roleSort:1,
-					status:"0"},
-					method
-				).then((res) => {
-			ElMessage({
-				message: modalType.value == 'add' ? '添加成功' : '编辑成功',
-				type: 'success',  
-			})
-			dialogVisible.value = false
-			getList()
-		})
-	})
-}
-
-const getDtl = (row) => {
-	formData.data = {...row}
-	delete formData.data.menuIds
-	console.log(formData.data)
-	modalType.value = 'edit'
-	console.log(modalType.value)
-	dialogVisible.value = true
-}
-getTreeList()
-getList()
-</script>
-  
-<style lang="scss" scoped>
-.role {
-	padding: 20px;
-    display: flex;
-    justify-content: space-between;
-    .tree{
-        width: 300px;
-    }
-    .content{
-        width:calc(100% - 320px);
-    }
-}
-</style>

+ 1 - 1
src/views/tool/swagger/index.vue

@@ -3,7 +3,7 @@
 </template>
 
 <script setup>
-import iFrame from '@/components/iFrame'
+import iFrame from '/src/components/iFrame'
 
 const url = ref(import.meta.env.VITE_APP_BASE_API + "/swagger-ui/index.html")
 </script>