diff --git a/package.json b/package.json index c11cf50..84b464a 100644 --- a/package.json +++ b/package.json @@ -8,34 +8,23 @@ "preview": "vite preview" }, "dependencies": { - "@antv/g6": "^3.5.7", - "@tinymce/tinymce-vue": "^4.0.7", "axios": "^1.4.0", - "d3": "^7.8.5", "echarts": "^5.4.2", "element-plus": "^2.3.5", "highlight.js": "9.18.5", - "jquery": "^3.6.0", "js-cookie": "^3.0.5", "nprogress": "^0.2.0", "pinia": "^2.0.35", "sass": "^1.62.1", "scss": "^0.2.4", - "sql-formatter": "^2.3.4", - "tinymce": "^5.0.4", "unplugin-icons": "^0.16.1", "vite-plugin-inspect": "^0.7.26", "vue": "^3.2.47", - "vue-clipboard3": "^2.0.0", - "vue-codemirror": "^6.1.1", "vue-json-viewer": "^3.0.4", "vue-router": "^4.1.6", "vuedraggable": "^4.1.0" }, "devDependencies": { - "@codemirror/lang-java": "^6.0.1", - "@codemirror/lang-javascript": "^6.1.9", - "@codemirror/lang-sql": "^6.5.4", "@vitejs/plugin-vue": "^4.2.1", "@vitejs/plugin-vue-jsx": "^3.0.1", "lodash": "^4.17.21", diff --git a/src/api/log/login.js b/src/api/log/login.js new file mode 100644 index 0000000..2411f44 --- /dev/null +++ b/src/api/log/login.js @@ -0,0 +1,24 @@ +import request from "@/utils/request.js"; + +//查询登录日志 +export const getLoginLogList = (params) => { + return request({ + url: "/log/login-info/list", + method: "get", + params + }); +}; +//查询登录日志详情 +export const getLoginLogDetail = (infoId) => { + return request({ + url: `/log/login-info/${infoId}`, + method: "get" + }); +}; +//删除登录日志 +export const deleteLoginLog = (infoIds) => { + return request({ + url: `/log/login-info/${infoIds}`, + method: "delete" + }); +}; diff --git a/src/api/log/operation.js b/src/api/log/operation.js new file mode 100644 index 0000000..33c7ec7 --- /dev/null +++ b/src/api/log/operation.js @@ -0,0 +1,24 @@ +import request from "@/utils/request.js"; + +//查询操作日志 +export const getOperateLog = (params) => { + return request({ + url: "/log/log/list", + method: "get", + params + }); +}; +//查询操作日志详情 +export const getOperateLogDetail = (operId) => { + return request({ + url: `/log/log/${operId}`, + method: "get" + }); +}; +//删除操作日志 +export const deleteOperateLog = (operIds) => { + return request({ + url: `/log/log/${operIds}`, + method: "delete" + }); +}; diff --git a/src/api/notice/notice.js b/src/api/notice/notice.js deleted file mode 100644 index a0ee333..0000000 --- a/src/api/notice/notice.js +++ /dev/null @@ -1,30 +0,0 @@ -import request from '@/utils/request.js' -export const getNoticeList = (params) => { - return request({ - url: '/notice/notice', - method: 'get', - params - }) -} -export const getNoticeDetail = (noticeId) => { - return request({ - url: '/notice/notice/'+noticeId, - method: "get" - }); -}; - - -export const addNotice = (data) => { - return request({ - url: '/notice/notice', - method: 'post', - data - }) -} - -export const deleteNotice = (noticeId) => { - return request({ - url: `/notice/notice/${noticeId}`, - method: "delete" - }); -}; diff --git a/src/api/notice/notify.js b/src/api/notice/notify.js deleted file mode 100644 index bee5657..0000000 --- a/src/api/notice/notify.js +++ /dev/null @@ -1,43 +0,0 @@ -import request from '@/utils/request.js' -export const getNotifyList = (params) => { - return request({ - url: '/notice/notify', - method: 'get', - params - }) -} -export const getNotifyDetail = (noticeId) => { - return request({ - url: '/notice/notify/'+noticeId, - method: "get" - }); -}; -//已读单个消息 -export const readSingleNotify = (noticeId) => { - return request({ - url: '/notice/notify/read/'+noticeId, - method: 'put' - }) -} -//已读全部消息 -export const readAllNotify = () => { - return request({ - url: '/notice/notify/read/all', - method: 'put' - }) -} -//删除单个消息 -export const deleteSingleNotify = (noticeId) => { - return request({ - url: '/notice/notify/'+noticeId, - method: "delete" - }); -}; -//删除多个消息 -export const deleteMoreNotify = (noticeIds) => { - return request({ - url: '/notice/notify/batch/'+noticeIds, - method: "delete" - }); -}; - diff --git a/src/api/system/dict-data.js b/src/api/system/dict-data.js new file mode 100644 index 0000000..a44e3b7 --- /dev/null +++ b/src/api/system/dict-data.js @@ -0,0 +1,44 @@ +import request from '@/utils/request.js' + +// 请求字典类型表list +export const getDictDataList = (params) => { + return request({ + url: '/dict/data', + method: 'get', + params + }) +} + +// 获取字典数据表详情 +export const getDictDataDetails = (dictCode) => { + return request({ + url: '/dict/data/' + dictCode, + method: 'get' + }) +} + +// 新增字典数据表 +export const addDictData = (data) => { + return request({ + url: '/dict/data', + method: 'post', + data + }) +} + +// 修改字典类型表 +export const editDictData = (data) => { + return request({ + url: '/dict/data', + method: 'put', + data + }) +} + +// 删除字典类型表 +export const delDictData = (dictCode) => { + return request({ + url: `/dict/data/${dictCode}`, + method: 'delete' + }) +} diff --git a/src/api/system/dict-type.js b/src/api/system/dict-type.js new file mode 100644 index 0000000..de2f716 --- /dev/null +++ b/src/api/system/dict-type.js @@ -0,0 +1,51 @@ +import request from '@/utils/request.js' + +export const getDictOption = () => { + return request({ + url: '/dict/type/option', + method: 'get' + }) +} + +// 请求字典类型表list +export const getDictTypeList = (params) => { + return request({ + url: '/dict/type', + method: 'get', + params + }) +} + +// 获取字典类型表详情 +export const getDictTypeDetails = (dictTypeId) => { + return request({ + url: '/dict/type/' + dictTypeId, + method: 'get' + }) +} + +// 新增字典类型表 +export const addDictType = (data) => { + return request({ + url: '/dict/type', + method: 'post', + data + }) +} + +// 修改字典类型表 +export const editDictType = (data) => { + return request({ + url: '/dict/type', + method: 'put', + data + }) +} + +// 删除字典类型表 +export const delDictType =(dictTypeId) => { + return request({ + url: '/dict/type/' + dictTypeId, + method: 'delete' + }) +} diff --git a/src/assets/svg/home.svg b/src/assets/svg/home.svg new file mode 100644 index 0000000..16e00d8 --- /dev/null +++ b/src/assets/svg/home.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/layout/navbar/BellSocket.vue b/src/layout/navbar/BellSocket.vue deleted file mode 100644 index a864ed2..0000000 --- a/src/layout/navbar/BellSocket.vue +++ /dev/null @@ -1,273 +0,0 @@ - - - - - diff --git a/src/layout/navbar/Breadcrumb.vue b/src/layout/navbar/Breadcrumb.vue index a81e6e1..3460cba 100644 --- a/src/layout/navbar/Breadcrumb.vue +++ b/src/layout/navbar/Breadcrumb.vue @@ -30,7 +30,7 @@ const getBreadcrumb = () => { let matched = route.matched.filter(item => item.meta && item.meta.title) const first = matched[0] if(!isDashboard(first)) { - matched = [{path: '/home', meta: {title: '首页'}}].concat(matched) + matched = [{path: '/home', meta: {title: '工作台'}}].concat(matched) } breadcrumbList.value.length = 0; const reBreadcrumbList = matched.filter(item => item.meta && item.meta.title && item.meta.breadcrumb !== false) diff --git a/src/layout/navbar/index.vue b/src/layout/navbar/index.vue index 7687717..40ddc5a 100644 --- a/src/layout/navbar/index.vue +++ b/src/layout/navbar/index.vue @@ -3,10 +3,9 @@
-
- + {{userInfo.userName}}
@@ -25,8 +24,7 @@ import {useRouter} from 'vue-router'; import Breadcrumb from './Breadcrumb.vue'; import Hamburger from './Hamburger.vue'; import {useAuthStore} from '@/stores/userstore.js' -import BellSocket from "./BellSocket.vue"; -import {getUserInfo} from "../../api/login"; +import {getUserInfo} from "@/api/login"; import {usePermisstionStroe} from '@/stores/permisstion' const authStore = useAuthStore() diff --git a/src/router/index.js b/src/router/index.js index 02b0319..5f2aa7c 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -33,7 +33,7 @@ const router = createRouter({ name: "home", component: () => import("@/views/home/index.vue"), meta: { - title: "首页", + title: "工作台", breadcrumb: true, }, }, @@ -46,42 +46,7 @@ const router = createRouter({ breadcrumb: true, }, }, - { - path: "/rapid/gen/edit/:tableId(\\d+)", - name: "genEdit", - component: () => import("@/views/rapid/gen/editTable.vue"), - meta: { - title: "数据库生成配置", - breadcrumb: true, - }, - }, - { - path: "/workflow/process/edit/:deploymentId", - name: "processEdit", - component: () => import("@/views/workflow/process/ProcessEdit.vue"), - meta: { - title: "编辑流程", - breadcrumb: true, - }, - }, - { - path: "/workflow/process", - name: "process", - component: () => import("@/views/workflow/process/index.vue"), - meta: { - title: "流程管理", - breadcrumb: true, - }, - }, - { - path: "/workflow/process/edit", - name: "processAdd", - component: () => import("@/views/workflow/process/ProcessEdit.vue"), - meta: { - title: "新增流程", - breadcrumb: true, - }, - }, + { path: "/role-auth/user/:roleId(\\d+)", name: "distribute", @@ -109,69 +74,8 @@ const router = createRouter({ breadcrumb: true, }, }, - { - path: "/system/notice/inform/index/:queryId", - name: "notify", - component: () => import("@/views/system/notice/inform/index.vue"), - meta: { - title: "通知公告", - breadcrumb: false, - }, - }, - { - path: "/custom/query/sql/design/:queryId", - name: "sql", - component: () => import("@/views/custom-query/sql/SqlDesign.vue"), - meta: { - title: "自定义sql查询配置", - breadcrumb: true, - }, - }, - { - path: "/custom/query/data/adapter/design/:queryId", - name: "dataAdapter", - component: () => - import("@/views/custom-query/data-adapter/DataAdapterDesign.vue"), - meta: { - title: "自定义数据适配器", - breadcrumb: true, - }, - }, - { - path: "/custom/query/echarts/design/:queryId", - name: "echarts", - component: () => - import("@/views/custom-query/echarts-editor/EchartsDesign.vue"), - meta: { - title: "自定义echarts查询配置", - breadcrumb: true, - }, - }, - { - path: "/rapid/data/:dsId(\\d+)", - name: "rapid", - component: () => import("@/views/rapid/gen/index.vue"), - meta: { - title: "数据源关联数据", - breadcrumb: true, - }, - }, ], - }, - { - path: "/topo/design/:queryId", - name: "topEdit", - component: () => import("@/views/custom-query/topo/topologyDesign.vue"), - meta: { - title: "top", - breadcrumb: false, - }, - }, - { - path: "/forbidden", - name: "forbidden", - component: () => import("@/views/forbidden/index.vue"), - }, + } ], }); diff --git a/src/stores/permisstion.js b/src/stores/permisstion.js index b7ef21e..1d69b2e 100644 --- a/src/stores/permisstion.js +++ b/src/stores/permisstion.js @@ -10,7 +10,15 @@ export const usePermisstionStroe = defineStore('permisstion', () => { const asyncRouters = ref([]) //定义是否加载路由变量 const isLoadRoutes = ref(false) - const menuList = ref([]) + const menuList = ref([{ + name: 'home', + path: '/home', + icon: 'home', + title: '工作台', + meta: { + breadcrumb: true + } + }]) const setIsLoadRoutes = (status) => { return isLoadRoutes.value = status @@ -21,7 +29,8 @@ export const usePermisstionStroe = defineStore('permisstion', () => { const sRouter = JSON.parse(JSON.stringify(res.data)) const mData = JSON.parse(JSON.stringify(res.data)) asyncRouters.value = formatAsyncRouters(sRouter) - menuList.value = generateMenu(mData) + // menuList.value = generateMenu(mData) + menuList.value = [...menuList.value, ...generateMenu(mData)] addAsyncRouters(asyncRouters.value) isLoadRoutes.value = false } else { @@ -110,4 +119,4 @@ export const usePermisstionStroe = defineStore('permisstion', () => { setIsLoadRoutes, removeMenu } -}) \ No newline at end of file +}) diff --git a/src/views/home/index.vue b/src/views/home/index.vue index 5741915..766f114 100644 --- a/src/views/home/index.vue +++ b/src/views/home/index.vue @@ -1,5 +1,5 @@ diff --git a/src/views/monitor/operlog/index.vue b/src/views/monitor/operlog/index.vue new file mode 100644 index 0000000..c3a0663 --- /dev/null +++ b/src/views/monitor/operlog/index.vue @@ -0,0 +1,337 @@ + + + + diff --git a/src/views/phone-traffic-management/address-book-management/index.vue b/src/views/phone-traffic-management/address-book-management/index.vue new file mode 100644 index 0000000..54b19c1 --- /dev/null +++ b/src/views/phone-traffic-management/address-book-management/index.vue @@ -0,0 +1,13 @@ + + + + + diff --git a/src/views/phone-traffic-management/phone-traffic-config/index.vue b/src/views/phone-traffic-management/phone-traffic-config/index.vue new file mode 100644 index 0000000..54b19c1 --- /dev/null +++ b/src/views/phone-traffic-management/phone-traffic-config/index.vue @@ -0,0 +1,13 @@ + + + + + diff --git a/src/views/system/dept/index.vue b/src/views/system/dept/index.vue new file mode 100644 index 0000000..e00ad03 --- /dev/null +++ b/src/views/system/dept/index.vue @@ -0,0 +1,330 @@ + + + + + diff --git a/src/views/system/post/DistributeUser.vue b/src/views/system/post/DistributeUser.vue new file mode 100644 index 0000000..5bd1f72 --- /dev/null +++ b/src/views/system/post/DistributeUser.vue @@ -0,0 +1,356 @@ + + + diff --git a/src/views/system/post/index.vue b/src/views/system/post/index.vue new file mode 100644 index 0000000..39cb421 --- /dev/null +++ b/src/views/system/post/index.vue @@ -0,0 +1,261 @@ + + + + + diff --git a/src/views/system/role/DistributeUser.vue b/src/views/system/role/DistributeUser.vue new file mode 100644 index 0000000..d5486f0 --- /dev/null +++ b/src/views/system/role/DistributeUser.vue @@ -0,0 +1,357 @@ + + + diff --git a/src/views/system/role/add.vue b/src/views/system/role/add.vue new file mode 100644 index 0000000..f89dc1a --- /dev/null +++ b/src/views/system/role/add.vue @@ -0,0 +1,268 @@ + + + + + diff --git a/src/views/system/role/index.vue b/src/views/system/role/index.vue new file mode 100644 index 0000000..3e606bf --- /dev/null +++ b/src/views/system/role/index.vue @@ -0,0 +1,486 @@ + + + + + diff --git a/src/views/task-management/all-work-order/index.vue b/src/views/task-management/all-work-order/index.vue new file mode 100644 index 0000000..54b19c1 --- /dev/null +++ b/src/views/task-management/all-work-order/index.vue @@ -0,0 +1,13 @@ + + + + + diff --git a/src/views/task-management/historical-work-order/index.vue b/src/views/task-management/historical-work-order/index.vue new file mode 100644 index 0000000..54b19c1 --- /dev/null +++ b/src/views/task-management/historical-work-order/index.vue @@ -0,0 +1,13 @@ + + + + + diff --git a/src/views/task-management/pending-work-order/index.vue b/src/views/task-management/pending-work-order/index.vue new file mode 100644 index 0000000..54b19c1 --- /dev/null +++ b/src/views/task-management/pending-work-order/index.vue @@ -0,0 +1,13 @@ + + + + + diff --git a/src/views/tool/dict/index.vue b/src/views/tool/dict/index.vue new file mode 100644 index 0000000..8c1f550 --- /dev/null +++ b/src/views/tool/dict/index.vue @@ -0,0 +1,582 @@ + + + + + diff --git a/src/views/voice-management/sensitive-words/index.vue b/src/views/voice-management/sensitive-words/index.vue new file mode 100644 index 0000000..54b19c1 --- /dev/null +++ b/src/views/voice-management/sensitive-words/index.vue @@ -0,0 +1,13 @@ + + + + + diff --git a/src/views/voice-management/verbal-trick/index.vue b/src/views/voice-management/verbal-trick/index.vue new file mode 100644 index 0000000..54b19c1 --- /dev/null +++ b/src/views/voice-management/verbal-trick/index.vue @@ -0,0 +1,13 @@ + + + + + diff --git a/src/views/voice-management/voice-config/index.vue b/src/views/voice-management/voice-config/index.vue new file mode 100644 index 0000000..54b19c1 --- /dev/null +++ b/src/views/voice-management/voice-config/index.vue @@ -0,0 +1,13 @@ + + + + + diff --git a/vite.config.js b/vite.config.js index 4c1ad71..0fc9fb8 100644 --- a/vite.config.js +++ b/vite.config.js @@ -76,17 +76,11 @@ export default defineConfig({ // rewrite: (path) => path.replace(/^\/api/, ""), // }, "/api": { - // target: "http://fateverse-vue.frp.feashow.cn", - // changeOrigin: true, - target: "http://192.168.31.176:9010", + // target: "http://192.168.31.176:9010", + target: "http://112.19.165.99:20002/", changeOrigin: true, - rewrite: (path) => path.replace(/^\/api/, ""), - }, - "/api/notice-ws": { - target: "ws://fateverse-vue.frp.feashow.cn/api/notice-ws", - ws: true, - changeOrigin: true, - }, + // rewrite: (path) => path.replace(/^\/api/, ""), + } }, }, });