This commit is contained in:
zhuoda
2024-01-08 19:52:39 +08:00
parent 8dc663d885
commit 192e959d14
1126 changed files with 13783 additions and 68273 deletions

View File

@@ -1,2 +0,0 @@
VITE_APP_PROJECT_TITLE = 'SmartAdmin'

View File

@@ -1,8 +1,3 @@
VITE_APP_API_URL = 'http://127.0.0.1:1024'
VITE_APP_PROJECT_TITLE = 'SmartAdmin 开发环境(Dev)'
VITE_APP_PROFILE = 'dev'
VITE_APP_MODE = 'development'
NODE_ENV=development
VITE_APP_TITLE='SmartAdmin 开发环境(Dev)'
VITE_APP_API_URL='http://127.0.0.1:1024'

View File

@@ -1,8 +1,3 @@
VITE_APP_API_URL = 'http://127.0.0.1:1024'
VITE_APP_PROJECT_TITLE = 'SmartAdmin 本地环境(Localhost)'
VITE_APP_PROFILE = 'local'
VITE_APP_MODE = 'local'
NODE_ENV=development
VITE_APP_TITLE='SmartAdmin 本地环境(Local)'
VITE_APP_API_URL='http://127.0.0.1:1024'

View File

@@ -1,8 +1,3 @@
VITE_APP_API_URL = 'http://preview.smartadmin.1024lab.net/smart-admin-api'
VITE_APP_PROJECT_TITLE = 'SmartAdmin 预发布环境(Pre)'
VITE_APP_PROFILE = 'pre'
VITE_APP_MODE = 'production'
NODE_ENV=production
VITE_APP_TITLE='SmartAdmin 预发布环境(Pre)'
VITE_APP_API_URL='http://preview.smartadmin.1024lab.net/smart-admin-api'

View File

@@ -1,8 +1,3 @@
VITE_APP_API_URL = 'https://preview.smartadmin.vip/smart-admin-api'
VITE_APP_PROJECT_TITLE = 'SmartAdmin V2.X'
VITE_APP_PROFILE = 'prod'
VITE_APP_MODE = 'production'
NODE_ENV=production
VITE_APP_TITLE='SmartAdmin V3.X'
VITE_APP_API_URL='http://preview.smartadmin.1024lab.net/smart-admin-api'

View File

@@ -1,8 +1,3 @@
VITE_APP_API_URL = 'http://127.0.0.1:1024'
VITE_APP_PROJECT_TITLE = 'SmartAdmin 测试环境(Test)'
VITE_APP_PROFILE = 'test'
VITE_APP_MODE = 'development'
NODE_ENV=production
VITE_APP_TITLE='SmartAdmin 测试环境(Test)'
VITE_APP_API_URL='http://127.0.0.1:1024'

View File

@@ -1,5 +1,5 @@
<!--
* @Description:
* @Description: 首页
* @Author: zhuoda
* @Date: 2021-08-03
* @LastEditTime: 2022-06-23
@@ -14,7 +14,7 @@
<meta name="viewport"
content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=0"
/>
<title>SmartAdmin 2.X</title>
<title> %VITE_APP_TITLE%</title>
<link rel="icon" href="/favicon.ico"/>
</head>
<body>

File diff suppressed because it is too large Load Diff

View File

@@ -1,6 +1,6 @@
{
"name": "SmartAdmin",
"version": "2.0.0",
"name": "smartadmin",
"version": "3.0.0",
"author": {
"name": "1024创新实验室1024lab",
"email": "lab1024@163.com",
@@ -15,51 +15,52 @@
"build:pre": "vite build --mode pre",
"build:prod": "vite build --mode production"
},
"type": "module",
"dependencies": {
"@ant-design/icons-vue": "^6.1.0",
"@wangeditor/editor": "^5.0.1",
"@wangeditor/editor-for-vue": "^5.1.11",
"ant-design-vue": "3.2.5",
"axios": "~0.27.2",
"clipboard": "~2.0.11",
"crypto-js": "~4.1.1",
"decimal.js": "^10.3.1",
"diff": "^5.1.0",
"diff2html": "^3.4.18",
"echarts": "^5.1.2",
"highlight.js": "^11.6.0",
"js-cookie": "^2.2.1",
"lodash": "^4.17.21",
"lunar-javascript": "^1.2.32",
"mitt": "^3.0.0",
"nprogress": "^0.2.0",
"pinia": "~2.0.14",
"sortablejs": "^1.15.0",
"ua-parser-js": "^1.0.2",
"@wangeditor/editor": "5.1.14",
"@wangeditor/editor-for-vue": "5.1.12",
"ant-design-vue": "4.0.7",
"axios": "1.4.0",
"clipboard": "2.0.11",
"crypto-js": "4.1.1",
"decimal.js": "10.3.1",
"diff": "5.1.0",
"diff2html": "3.4.18",
"echarts": "5.4.3",
"highlight.js": "11.8.0",
"js-cookie": "3.0.5",
"lodash": "4.17.21",
"lunar-javascript": "1.6.3",
"mitt": "3.0.0",
"nprogress": "0.2.0",
"pinia": "2.1.6",
"sm-crypto": "^0.3.13",
"sortablejs": "1.15.0",
"ua-parser-js": "1.0.35",
"v-viewer": "~1.6.4",
"vue": "~3.2.26",
"vue-i18n": "^9.1.10",
"vue-router": "~4.0.15",
"vue3-json-viewer": "^2.2.2"
"vue": "3.3.4",
"vue-i18n": "9.2.2",
"vue-router": "4.2.4",
"vue3-json-viewer": "2.2.2"
},
"devDependencies": {
"@vitejs/plugin-vue": "^3.2.0",
"@vue/compiler-sfc": "~3.2.26",
"@vitejs/plugin-vue": "4.5.0",
"@vue/compiler-sfc": "3.3.4",
"eslint": "^8.16.0",
"eslint-config-prettier": "~8.5.0",
"eslint-plugin-prettier": "~4.0.0",
"eslint-plugin-vue": "~9.1.0",
"less": "~4.1.1",
"less-loader": "~10.0.1",
"prettier": "~2.6.2",
"rimraf": "^3.0.2",
"eslint-config-prettier": "~9.0.0",
"eslint-plugin-prettier": "~5.0.0",
"eslint-plugin-vue": "~9.17.0",
"less": "~4.2.0",
"less-loader": "~11.1.3",
"prettier": "~3.0.2",
"rimraf": "~5.0.1",
"stylelint": "~14.8.5",
"stylelint-config-prettier": "~9.0.3",
"stylelint-config-standard": "~25.0.0",
"stylelint-order": "~5.0.0",
"terser": "^5.15.1",
"vite": "^3.2.3",
"vue-eslint-parser": "~9.0.2"
"terser": "~5.19.2",
"vite": "5.0.0",
"vue-eslint-parser": "~9.3.1"
},
"engines": {
"node": ">=14"

View File

@@ -11,7 +11,7 @@
<template>
<a-config-provider :locale="antdLocale">
<!---全局loading--->
<a-spin :spinning="spinning" tip="稍等片刻,我在拼命加载中..." size="large">
<a-spin :spinning="spinning" tip="稍等片刻,我在拼命加载中..." size="large">
<!--- 路由 -->
<RouterView />
</a-spin>
@@ -21,7 +21,7 @@
<script setup>
import dayjs from 'dayjs';
import { computed } from 'vue';
import { messages } from '/@/i18n/index';
import { messages } from '/@/i18n';
import { useAppConfigStore } from '/@/store/modules/system/app-config';
import { useSpinStore } from './store/modules/system/spin';

View File

@@ -27,8 +27,4 @@ export const categoryApi = {
updateCategory: (param) => {
return postRequest('/category/update', param);
},
// 查询类目详情 @author 卓大
getCategory: (categoryId) => {
return getRequest(`/category/${categoryId}`);
},
};

View File

@@ -5,7 +5,7 @@
* @LastEditTime: 2022-06-23
* @LastEditors: zhuoda
*/
import { postRequest, getRequest } from '/@/lib/axios';
import {postRequest, getRequest, getDownload} from '/@/lib/axios';
export const goodsApi = {
// 添加商品 @author zhuoda
@@ -28,4 +28,14 @@ export const goodsApi = {
updateGoods: (param) => {
return postRequest('/goods/update', param);
},
// 导入 @author 卓大
importGoods : (file) =>{
return postRequest('/goods/importGoods',file);
},
// 导出 @author 卓大
exportGoods : () =>{
return getDownload('/goods/exportGoods');
}
};

View File

@@ -7,58 +7,63 @@
* @Email: lab1024@163.com
* @Copyright 1024创新实验室 https://1024lab.net Since 2012
*/
import { postRequest, getRequest } from '/@/lib/axios';
import {postRequest, getRequest, postDownload} from '/@/lib/axios';
export const enterpriseApi = {
// 新建企业 @author 开云
create: (param) => {
return postRequest('/oa/enterprise/create', param);
},
// 新建企业 @author 开云
create: (param) => {
return postRequest('/oa/enterprise/create', param);
},
// 删除企业 @author 开云
delete: (enterpriseId) => {
return getRequest(`/oa/enterprise/delete/${enterpriseId}`);
},
// 删除企业 @author 开云
delete: (enterpriseId) => {
return getRequest(`/oa/enterprise/delete/${enterpriseId}`);
},
// 查询企业详情 @author 开云
detail: (enterpriseId) => {
return getRequest(`/oa/enterprise/get/${enterpriseId}`);
},
// 查询企业详情 @author 开云
detail: (enterpriseId) => {
return getRequest(`/oa/enterprise/get/${enterpriseId}`);
},
// 分页查询企业模块 @author 开云
pageQuery: (param) => {
return postRequest('/oa/enterprise/page/query', param);
},
// 分页查询企业模块 @author 开云
pageQuery: (param) => {
return postRequest('/oa/enterprise/page/query', param);
},
//企业列表查询 含数据范围 @author 开云
queryList: (type) => {
let query = '';
if (type) {
query = `?type=${type}`;
}
return getRequest(`/oa/enterprise/query/list${query}`);
},
// 导出企业数据excel @author 卓大
exportExcel: (param) => {
return postDownload('/oa/enterprise/exportExcel', param);
},
// 编辑企业 @author 开云
update: (param) => {
return postRequest('/oa/enterprise/update', param);
},
// 企业全部员工List @author yandy
employeeList: (param) => {
return postRequest('/oa/enterprise/employee/list', param);
},
// 分页查询企业员工List @author 卓大
queryPageEmployeeList: (param) => {
return postRequest('/oa/enterprise/employee/queryPage', param);
},
// 添加员工 @author yandy
addEmployee: (param) => {
return postRequest('/oa/enterprise/employee/add', param);
},
//企业列表查询 含数据范围 @author 开云
queryList: (type) => {
let query = '';
if (type) {
query = `?type=${type}`;
}
return getRequest(`/oa/enterprise/query/list${query}`);
},
// 删除员工 @author yandy
deleteEmployee: (param) => {
return postRequest('/oa/enterprise/employee/delete', param);
},
// 编辑企业 @author 开云
update: (param) => {
return postRequest('/oa/enterprise/update', param);
},
// 企业全部员工List @author yandy
employeeList: (param) => {
return postRequest('/oa/enterprise/employee/list', param);
},
// 分页查询企业员工List @author 卓大
queryPageEmployeeList: (param) => {
return postRequest('/oa/enterprise/employee/queryPage', param);
},
// 添加员工 @author yandy
addEmployee: (param) => {
return postRequest('/oa/enterprise/employee/add', param);
},
// 删除员工 @author yandy
deleteEmployee: (param) => {
return postRequest('/oa/enterprise/employee/delete', param);
},
};

View File

@@ -0,0 +1,40 @@
/**
* 接口:加密、解密
*
* @Author: 1024创新实验室-主任-卓大
* @Date: 2023-10-17 20:02:37
* @Copyright 1024创新实验室
*/
import { postRequest, postEncryptRequest } from '/src/lib/axios';
export const encryptApi = {
/**
* 测试 请求加密 @author 1024创新实验室-主任-卓大
*/
testRequestEncrypt: (param) => {
return postEncryptRequest('/support/apiEncrypt/testRequestEncrypt', param);
},
/**
* 测试 返回加密 @author 1024创新实验室-主任-卓大
*/
testResponseEncrypt: (param) => {
return postRequest('/support/apiEncrypt/testResponseEncrypt', param);
},
/**
* 测试 请求参数加密和解密、返回数据加密和解密 @author 1024创新实验室-主任-卓大
*/
testDecryptAndEncrypt: (param) => {
return postEncryptRequest('/support/apiEncrypt/testDecryptAndEncrypt', param);
},
/**
* 测试 数组加解密 @author 1024创新实验室-主任-卓大
*/
testArray : (param) => {
return postEncryptRequest('/support/apiEncrypt/testArray', param);
},
};

View File

@@ -7,7 +7,7 @@
* @Email: lab1024@163.com
* @Copyright 1024创新实验室 https://1024lab.net Since 2012
*/
import { postRequest, getRequest } from '/@/lib/axios';
import {getRequest} from '/src/lib/axios';
export const cacheApi = {
// 获取某个缓存的所有key @author 罗伊

View File

@@ -5,41 +5,41 @@
* @Date: 2022-09-26 14:53:50
* @Copyright 1024创新实验室
*/
import { postRequest, getRequest } from '/@/lib/axios';
import { postRequest, getRequest } from '/src/lib/axios';
export const changeLogApi = {
/**
* 分页查询 @author 卓大
*/
queryPage : (param) => {
return postRequest('/changeLog/queryPage', param);
queryPage: (param) => {
return postRequest('/support/changeLog/queryPage', param);
},
/**
* 增加 @author 卓大
*/
add: (param) => {
return postRequest('/changeLog/add', param);
return postRequest('/support/changeLog/add', param);
},
/**
* 修改 @author 卓大
*/
update: (param) => {
return postRequest('/changeLog/update', param);
return postRequest('/support/changeLog/update', param);
},
/**
* 删除 @author 卓大
*/
delete: (id) => {
return getRequest(`/changeLog/delete/${id}`);
return getRequest(`/support/changeLog/delete/${id}`);
},
/**
* 批量删除 @author 卓大
*/
batchDelete: (idList) => {
return postRequest('/changeLog/batchDelete', idList);
return postRequest('/support/changeLog/batchDelete', idList);
},
};

View File

@@ -1,45 +0,0 @@
/**
* 系统更新日志 api 封装
*
* @Author: 卓大
* @Date: 2022-09-26 14:53:50
* @Copyright 1024创新实验室
*/
import { postRequest, getRequest } from '/@/lib/axios';
export const changeLogApi = {
/**
* 分页查询 @author 卓大
*/
queryPage : (param) => {
return postRequest('/changeLog/queryPage', param);
},
/**
* 增加 @author 卓大
*/
add: (param) => {
return postRequest('/changeLog/add', param);
},
/**
* 修改 @author 卓大
*/
update: (param) => {
return postRequest('/changeLog/update', param);
},
/**
* 删除 @author 卓大
*/
delete: (id) => {
return getRequest(`/changeLog/delete/${id}`);
},
/**
* 批量删除 @author 卓大
*/
batchDelete: (idList) => {
return postRequest('/changeLog/batchDelete', idList);
},
};

View File

@@ -7,7 +7,7 @@
* @Email: lab1024@163.com
* @Copyright 1024创新实验室 https://1024lab.net Since 2012
*/
import { getRequest, postRequest,download } from '/@/lib/axios';
import { getRequest, postRequest,getDownload } from '/src/lib/axios';
export const codeGeneratorApi = {
// 查询数据库的表 @author 卓大
@@ -41,6 +41,6 @@ export const codeGeneratorApi = {
// 下载代码 @author 卓大
downloadCode: (tableName) => {
return download(`${tableName}.zip`,`/support/codeGenerator/code/download/${tableName}`);
return getDownload(`${tableName}.zip`,`/support/codeGenerator/code/download/${tableName}`);
},
};

View File

@@ -7,7 +7,7 @@
* @Email: lab1024@163.com
* @Copyright 1024创新实验室 https://1024lab.net Since 2012
*/
import { postRequest, getRequest } from '/@/lib/axios';
import { postRequest, getRequest } from '/src/lib/axios';
export const configApi = {
// 分页查询 @author 卓大

View File

@@ -7,7 +7,7 @@
* @Email: lab1024@163.com
* @Copyright 1024创新实验室 https://1024lab.net Since 2012
*/
import { postRequest } from '/@/lib/axios';
import { postRequest } from '/src/lib/axios';
export const dataTracerApi = {
// 分页查询业务操作日志 - @author 卓大

View File

@@ -1,18 +0,0 @@
/*
* 数据变动
*
* @Author: 卓大
* @Date: 2022-09-03 21:51:54
* @Wechat: zhuda1024
* @Email: lab1024@163.com
* @Copyright 1024创新实验室 https://1024lab.net Since 2012
*/
import { postRequest } from '/@/lib/axios';
export const dataTracerApi = {
// 分页查询业务操作日志 - @author 卓大
queryList: (param) => {
return postRequest('/support/dataTracer/query', param);
},
};

View File

@@ -7,7 +7,7 @@
* @Email: lab1024@163.com
* @Copyright 1024创新实验室 https://1024lab.net Since 2012
*/
import { postRequest, getRequest } from '/@/lib/axios';
import { postRequest, getRequest } from '/src/lib/axios';
export const dictApi = {
// 分页查询数据字典KEY - @author 卓大

View File

@@ -7,7 +7,7 @@
* @Email: lab1024@163.com
* @Copyright 1024创新实验室 https://1024lab.net Since 2012
*/
import { postRequest } from '/@/lib/axios';
import { postRequest } from '/src/lib/axios';
export const feedbackApi = {
// 意见反馈-新增

View File

@@ -1,21 +0,0 @@
/*
* 意见反馈
*
* @Author: 1024创新实验室开云
* @Date: 2022-09-03 21:56:31
* @Wechat: zhuda1024
* @Email: lab1024@163.com
* @Copyright 1024创新实验室 https://1024lab.net Since 2012
*/
import { postRequest } from '/@/lib/axios';
export const feedbackApi = {
// 意见反馈-新增
addFeedback: (params) => {
return postRequest('/support/feedback/add', params);
},
// 意见反馈-分页查询
queryFeedback: (params) => {
return postRequest('/support/feedback/query', params);
},
};

View File

@@ -7,7 +7,7 @@
* @Email: lab1024@163.com
* @Copyright 1024创新实验室 https://1024lab.net Since 2012
*/
import { postRequest, getRequest, download } from '/@/lib/axios';
import { postRequest, getRequest, getDownload } from '/src/lib/axios';
export const fileApi = {
// 文件上传 @author 卓大
@@ -33,6 +33,6 @@ export const fileApi = {
* 下载文件流根据fileKey @author 胡克
*/
downLoadFile: (fileName, fileKey) => {
return download(fileName, '/support/file/downLoad', { fileKey });
return getDownload(fileName, '/support/file/downLoad', { fileKey });
},
};

View File

@@ -1,38 +0,0 @@
/*
* 文件上传
*
* @Author: 1024创新实验室-主任:卓大
* @Date: 2022-09-03 21:55:25
* @Wechat: zhuda1024
* @Email: lab1024@163.com
* @Copyright 1024创新实验室 https://1024lab.net Since 2012
*/
import { postRequest, getRequest, download } from '/@/lib/axios';
export const fileApi = {
// 文件上传 @author 卓大
uploadUrl: '/support/file/upload',
uploadFile: (param, folder) => {
return postRequest(`/support/file/upload?folder=${folder}`, param);
},
/**
* 分页查询 @author 卓大
*/
queryPage: (param) => {
return postRequest('/support/file/queryPage', param);
},
/**
* 获取文件URL根据fileKey @author 胡克
*/
getUrl: (fileKey) => {
return getRequest(`/support/file/getFileUrl?fileKey=${fileKey}`);
},
/**
* 下载文件流根据fileKey @author 胡克
*/
downLoadFile: (fileName, fileKey) => {
return download(fileName, '/support/file/downLoad', { fileKey });
},
};

View File

@@ -7,7 +7,7 @@
* @Email: lab1024@163.com
* @Copyright 1024创新实验室 https://1024lab.net Since 2012
*/
import { postRequest } from '/@/lib/axios';
import { postRequest } from '/src/lib/axios';
export const heartBeatApi = {
// 分页查询 @author 卓大

View File

@@ -1,17 +0,0 @@
/*
* 心跳
*
* @Author: 1024创新实验室-主任:卓大
* @Date: 2022-09-03 21:55:47
* @Wechat: zhuda1024
* @Email: lab1024@163.com
* @Copyright 1024创新实验室 https://1024lab.net Since 2012
*/
import { postRequest } from '/@/lib/axios';
export const heartBeatApi = {
// 分页查询 @author 卓大
queryList: (param) => {
return postRequest('/support/heartBeat/query', param);
},
};

View File

@@ -7,7 +7,7 @@
* @Email: lab1024@163.com
* @Copyright 1024创新实验室 https://1024lab.net Since 2012
*/
import { postRequest, getRequest } from '/@/lib/axios';
import { postRequest, getRequest } from '/src/lib/axios';
export const helpDocApi = {
// 【管理】帮助文档-分页查询 @author zhuoda

View File

@@ -7,7 +7,7 @@
* @Email: lab1024@163.com
* @Copyright 1024创新实验室 https://1024lab.net Since 2012
*/
import { postRequest, getRequest } from '/@/lib/axios';
import { postRequest, getRequest } from '/src/lib/axios';
export const helpDocCatalogApi = {
//帮助文档目录-获取全部 @author zhuoda

View File

@@ -1,59 +0,0 @@
/*
* 帮助文档
*
* @Author: 1024创新实验室-主任:卓大
* @Date: 2022-09-03 21:56:31
* @Wechat: zhuda1024
* @Email: lab1024@163.com
* @Copyright 1024创新实验室 https://1024lab.net Since 2012
*/
import { postRequest, getRequest } from '/@/lib/axios';
export const helpDocApi = {
// 【管理】帮助文档-分页查询 @author zhuoda
query: (param) => {
return postRequest('/support/helpDoc/query', param);
},
//【管理】帮助文档-更新 @author zhuoda
update: (param) => {
return postRequest('/support/helpDoc/update', param);
},
// 【管理】帮助文档-添加 @author zhuoda
add: (param) => {
return postRequest('/support/helpDoc/add', param);
},
//【管理】帮助文档-删除 @author zhuoda
delete: (helpDocId) => {
return getRequest(`/support/helpDoc/delete/${helpDocId}`);
},
//【管理】帮助文档-获取详情 @author zhuoda
getDetail: (helpDocId) => {
return getRequest(`/support/helpDoc/getDetail/${helpDocId}`);
},
//【管理】帮助文档-根据关联id查询 @author zhuoda
queryHelpDocByRelationId: (relationId) => {
return getRequest(`/support/helpDoc/queryHelpDocByRelationId/${relationId}`);
},
//----------------------- 用户相关 --------------------------------
//【用户】帮助文档-查询全部 @author zhuoda
getAllHelpDocList() {
return getRequest('/support/helpDoc/user/queryAllHelpDocList');
},
//【用户】帮助文档-查询全部 @author zhuoda
view(helpDocId) {
return getRequest(`/support/helpDoc/user/view/${helpDocId}`);
},
//【用户】帮助文档-查询 查看记录 @author zhuoda
queryViewRecord(param) {
return postRequest('/support/helpDoc/user/queryViewRecord', param);
},
};

View File

@@ -1,32 +0,0 @@
/*
* 帮助文档 目录
*
* @Author: 1024创新实验室-主任:卓大
* @Date: 2022-09-03 21:56:31
* @Wechat: zhuda1024
* @Email: lab1024@163.com
* @Copyright 1024创新实验室 https://1024lab.net Since 2012
*/
import { postRequest, getRequest } from '/@/lib/axios';
export const helpDocCatalogApi = {
//帮助文档目录-获取全部 @author zhuoda
getAll: () => {
return getRequest('/support/helpDoc/helpDocCatalog/getAll');
},
//帮助文档目录-添加 @author zhuoda
add: (param) => {
return postRequest('/support/helpDoc/helpDocCatalog/add', param);
},
//帮助文档目录-更新 @author zhuoda
update: (param) => {
return postRequest('/support/helpDoc/helpDocCatalog/update', param);
},
//帮助文档目录-删除 @author zhuoda
delete: (helpDocCatalogId) => {
return getRequest(`/support/helpDoc/helpDocCatalog/delete/${helpDocCatalogId}`);
},
};

View File

@@ -0,0 +1,26 @@
/**
* 登录锁定 api 封装
*
* @Author: 1024创新实验室-主任-卓大
* @Date: 2023-10-17 18:02:37
* @Copyright 1024创新实验室
*/
import { postRequest, getRequest } from '/src/lib/axios';
export const loginFailApi = {
/**
* 分页查询 @author 1024创新实验室-主任-卓大
*/
queryPage : (param) => {
return postRequest('/support/protect/loginFail/queryPage', param);
},
/**
* 批量删除 @author 1024创新实验室-主任-卓大
*/
batchDelete: (idList) => {
return postRequest('/support/protect/loginFail/batchDelete', idList);
},
};

View File

@@ -7,7 +7,7 @@
* @Email: lab1024@163.com
* @Copyright 1024创新实验室 https://1024lab.net Since 2012
*/
import { postRequest, getRequest } from '/@/lib/axios';
import { postRequest, getRequest } from '/src/lib/axios';
export const loginLogApi = {
// 分页查询 @author 卓大

View File

@@ -7,7 +7,7 @@
* @Email: lab1024@163.com
* @Copyright 1024创新实验室 https://1024lab.net Since 2012
*/
import { postRequest, getRequest } from '/@/lib/axios';
import { postRequest, getRequest } from '/src/lib/axios';
export const operateLogApi = {
// 分页查询 @author 卓大

View File

@@ -1,21 +0,0 @@
/*
* 操作日志
*
* @Author: 1024创新实验室-主任:卓大
* @Date: 2022-09-03 21:56:45
* @Wechat: zhuda1024
* @Email: lab1024@163.com
* @Copyright 1024创新实验室 https://1024lab.net Since 2012
*/
import { postRequest, getRequest } from '/@/lib/axios';
export const operateLogApi = {
// 分页查询 @author 卓大
queryList: (param) => {
return postRequest('/support/operateLog/page/query', param);
},
// 详情 @author 卓大
detail: (id) => {
return getRequest(`/support/operateLog/detail/${id}`);
},
};

View File

@@ -7,7 +7,7 @@
* @Email: lab1024@163.com
* @Copyright 1024创新实验室 https://1024lab.net Since 2012
*/
import { postRequest, getRequest } from '/@/lib/axios';
import { postRequest, getRequest } from '/src/lib/axios';
export const reloadApi = {
// 查询reload列表 @author 卓大

View File

@@ -7,7 +7,7 @@
* @Email: lab1024@163.com
* @Copyright 1024创新实验室 https://1024lab.net Since 2012
*/
import { postRequest, getRequest } from '/@/lib/axios';
import { postRequest, getRequest } from '/src/lib/axios';
export const serialNumberApi = {
// 生成单号 @author 卓大

View File

@@ -6,7 +6,7 @@
* @LastEditors: zhuoda
* @LastEditTime: 2022-08-21
*/
import { postRequest, getRequest } from '/@/lib/axios';
import { postRequest, getRequest } from '/src/lib/axios';
export const tableColumnApi = {
// 修改表格列 @author zhuoda

View File

@@ -1,26 +0,0 @@
/*
* @Description:表格自定义列
* @version:
* @Author: zhuoda
* @Date: 2022-08-17 23:32:36
* @LastEditors: zhuoda
* @LastEditTime: 2022-08-21
*/
import { postRequest, getRequest } from '/@/lib/axios';
export const tableColumnApi = {
// 修改表格列 @author zhuoda
updateTableColumn: (param) => {
return postRequest('/support/tableColumn/update', param);
},
// 查询表格列 @author zhuoda
getColumns: (tableId) => {
return getRequest(`/support/tableColumn/getColumns/${tableId}`);
},
// 删除表格列 @author zhuoda
deleteColumns: (tableId) => {
return getRequest(`/support/tableColumn/delete/${tableId}`);
},
};

View File

@@ -7,47 +7,37 @@
* @Email: lab1024@163.com
* @Copyright 1024创新实验室 https://1024lab.net Since 2012
*/
import { getRequest, postRequest } from '/@/lib/axios';
import { getRequest, postRequest } from '/src/lib/axios';
export const departmentApi = {
/**
* @description: 查询部门列表 @author 卓大
* @param {*}
* @return {*}
* 查询部门列表 @author 卓大
*/
queryAllDepartment: () => {
return getRequest('/department/listAll');
},
/**
* @description: 查询部门树形列表 @author 卓大
* @param {*}
* @return {*}
* 查询部门树形列表 @author 卓大
*/
queryDepartmentTree: () => {
queryDepartmentTree: () => {
return getRequest('/department/treeList');
},
/**
* @description: 添加部门 @author 卓大
* @param {*}
* @return {*}
* 添加部门 @author 卓大
*/
addDepartment: (param) => {
return postRequest('/department/add', param);
},
/**
* @description: 更新部门信息 @author 卓大
* @param {*}
* @return {*}
* 更新部门信息 @author 卓大
*/
updateDepartment: (param) => {
return postRequest('/department/update', param);
},
/**
* @description: 获取校区列表 @author 卓大
* @param {*}
* @return {*}
* 删除
*/
deleteDepartment: (departmentId) => {
return getRequest(`/department/delete/${departmentId}`);

View File

@@ -8,90 +8,73 @@
* @Copyright 1024创新实验室 https://1024lab.net Since 2012
*/
import { getRequest, postRequest } from '/@/lib/axios';
import { getRequest, postRequest } from '/src/lib/axios';
export const employeeApi = {
/**
* @description: 查询所有员工 @author 卓大
* @param {*}
* @return {*}
* 查询所有员工 @author 卓大
*/
queryAll: () => {
return getRequest('/employee/queryAll');
},
/**
* @description: 员工管理查询
* @param {*}
* @return {*}
* 员工管理查询
*/
queryEmployee: (params) => {
return postRequest('/employee/query', params);
},
/**
* @description: 添加员工
* @param {EmployeeAddDto} params
* @return {*}
* 添加员工
*/
addEmployee: (params) => {
return postRequest('/employee/add', params);
},
/**
* @description: 更新员工信息
* @param {EmployeeUpdateDto} params
* @return {*}
* 更新员工信息
*/
updateEmployee: (params) => {
return postRequest('/employee/update', params);
},
/**
* @description: 删除员工
* @param {number} employeeId
* @return {*}
* 删除员工
*/
deleteEmployee: (employeeId) => {
return getRequest(`/employee/delete/${employeeId}`);
},
/**
* @description: 批量删除员工
* @param {number} employeeIdList
* @return {*}
* 批量删除员工
*/
batchDeleteEmployee: (employeeIdList) => {
return postRequest('/employee/update/batch/delete', employeeIdList);
},
/**
* @description: 批量调整员工部门
* @return {*}
* 批量调整员工部门
*/
batchUpdateDepartmentEmployee: (updateParam) => {
return postRequest('/employee/update/batch/department', updateParam);
},
/**
* @description: 重置员工密码
* @param {number} employeeId
* @return {*}
* 重置员工密码
*/
resetPassword: (employeeId) => {
return getRequest(`/employee/update/password/reset/${employeeId}`);
},
/**
* @description: 修改面面
* @param {number} employeeId
* @return {*}
* 修改面面
*/
updateEmployeePassword: (param) => {
return postRequest('/employee/update/password',param);
return postRequest('/employee/update/password', param);
},
/**
* @description: 更新员工禁用状态
* @param {number} employeeId
* @return {*}
* 更新员工禁用状态
*/
updateDisabled: (employeeId) => {
return getRequest(`/employee/update/disabled/${employeeId}`);
},
// 查询员工-根据部门id
/**
* 查询员工-根据部门id
*/
queryEmployeeByDeptId: (departmentId) => {
return getRequest(`/employee/query/dept/${departmentId}`);
},

View File

@@ -1,98 +0,0 @@
/*
* 员工
*
* @Author: 1024创新实验室-主任:卓大
* @Date: 2022-09-03 21:59:15
* @Wechat: zhuda1024
* @Email: lab1024@163.com
* @Copyright 1024创新实验室 https://1024lab.net Since 2012
*/
import { getRequest, postRequest } from '/@/lib/axios';
export const employeeApi = {
/**
* @description: 查询所有员工 @author 卓大
* @param {*}
* @return {*}
*/
queryAll: () => {
return getRequest('/employee/queryAll');
},
/**
* @description: 员工管理查询
* @param {*}
* @return {*}
*/
queryEmployee: (params) => {
return postRequest('/employee/query', params);
},
/**
* @description: 添加员工
* @param {EmployeeAddDto} params
* @return {*}
*/
addEmployee: (params) => {
return postRequest('/employee/add', params);
},
/**
* @description: 更新员工信息
* @param {EmployeeUpdateDto} params
* @return {*}
*/
updateEmployee: (params) => {
return postRequest('/employee/update', params);
},
/**
* @description: 删除员工
* @param {number} employeeId
* @return {*}
*/
deleteEmployee: (employeeId) => {
return getRequest(`/employee/delete/${employeeId}`);
},
/**
* @description: 批量删除员工
* @param {number} employeeIdList
* @return {*}
*/
batchDeleteEmployee: (employeeIdList) => {
return postRequest('/employee/update/batch/delete', employeeIdList);
},
/**
* @description: 批量调整员工部门
* @return {*}
*/
batchUpdateDepartmentEmployee: (updateParam) => {
return postRequest('/employee/update/batch/department', updateParam);
},
/**
* @description: 重置员工密码
* @param {number} employeeId
* @return {*}
*/
resetPassword: (employeeId) => {
return getRequest(`/employee/update/password/reset/${employeeId}`);
},
/**
* @description: 修改面面
* @param {number} employeeId
* @return {*}
*/
updateEmployeePassword: (param) => {
return postRequest('/employee/update/password',param);
},
/**
* @description: 更新员工禁用状态
* @param {number} employeeId
* @return {*}
*/
updateDisabled: (employeeId) => {
return getRequest(`/employee/update/disabled/${employeeId}`);
},
// 查询员工-根据部门id
queryEmployeeByDeptId: (departmentId) => {
return getRequest(`/employee/query/dept/${departmentId}`);
},
};

View File

@@ -7,21 +7,17 @@
* @Email: lab1024@163.com
* @Copyright 1024创新实验室 https://1024lab.net Since 2012
*/
import { getRequest } from '/@/lib/axios';
import { getRequest } from '/src/lib/axios';
export const homeApi = {
/**
* @description: 首页-金额统计业绩收款订单数等 @author 卓大
* @param {*}
* @return {*}
*/
homeAmountStatistics: () => {
return getRequest('/home/amount/statistics');
},
/**
* @description: 首页-待办信息 @author 卓大
* @param {*}
* @return {*}
*/
homeWaitHandle: () => {
return getRequest('home/wait/handle');

View File

@@ -1,29 +0,0 @@
/*
* 首页api
*
* @Author: 1024创新实验室-主任:卓大
* @Date: 2022-09-03 21:59:39
* @Wechat: zhuda1024
* @Email: lab1024@163.com
* @Copyright 1024创新实验室 https://1024lab.net Since 2012
*/
import { getRequest } from '/@/lib/axios';
export const homeApi = {
/**
* @description: 首页-金额统计(业绩、收款、订单数等) @author 卓大
* @param {*}
* @return {*}
*/
homeAmountStatistics: () => {
return getRequest('/home/amount/statistics');
},
/**
* @description: 首页-待办信息 @author 卓大
* @param {*}
* @return {*}
*/
homeWaitHandle: () => {
return getRequest('home/wait/handle');
},
};

View File

@@ -7,12 +7,11 @@
* @Email: lab1024@163.com
* @Copyright 1024创新实验室 https://1024lab.net Since 2012
*/
import { getRequest, postRequest } from '/@/lib/axios';
import { getRequest, postRequest } from '/src/lib/axios';
export const loginApi = {
/**
* 登录 @author 卓大
* @param param
*/
login: (param) => {
return postRequest('/login', param);
@@ -20,7 +19,6 @@ export const loginApi = {
/**
* 退出登录 @author 卓大
* @param param
*/
logout: () => {
return getRequest('/login/logout');
@@ -28,7 +26,6 @@ export const loginApi = {
/**
* 获取验证码 @author 卓大
* @param param
*/
getCaptcha: () => {
return getRequest('/login/getCaptcha');
@@ -36,16 +33,8 @@ export const loginApi = {
/**
* 获取登录信息 @author 卓大
* @param param
*/
getLoginInfo: () => {
return getRequest('/login/getLoginInfo');
},
/**
* 刷新用户信息包含用户基础信息权限信息等等 @author 卓大
*/
refresh: () => {
return getRequest('/login/refresh');
},
};

View File

@@ -1,51 +0,0 @@
/*
* 登录
*
* @Author: 1024创新实验室-主任:卓大
* @Date: 2022-09-03 21:59:58
* @Wechat: zhuda1024
* @Email: lab1024@163.com
* @Copyright 1024创新实验室 https://1024lab.net Since 2012
*/
import { getRequest, postRequest } from '/@/lib/axios';
export const loginApi = {
/**
* 登录 @author 卓大
* @param param
*/
login: (param) => {
return postRequest('/login', param);
},
/**
* 退出登录 @author 卓大
* @param param
*/
logout: () => {
return getRequest('/login/logout');
},
/**
* 获取验证码 @author 卓大
* @param param
*/
getCaptcha: () => {
return getRequest('/login/getCaptcha');
},
/**
* 获取登录信息 @author 卓大
* @param param
*/
getLoginInfo: () => {
return getRequest('/login/getLoginInfo');
},
/**
* 刷新用户信息(包含用户基础信息、权限信息等等) @author 卓大
*/
refresh: () => {
return getRequest('/login/refresh');
},
};

View File

@@ -7,7 +7,7 @@
* @Email: lab1024@163.com
* @Copyright 1024创新实验室 https://1024lab.net Since 2012
*/
import { getRequest, postRequest } from '/@/lib/axios';
import { getRequest, postRequest } from '/src/lib/axios';
export const menuApi = {
/**

View File

@@ -1,54 +0,0 @@
/*
* 菜单
*
* @Author: 1024创新实验室-主任:卓大
* @Date: 2022-09-03 22:00:32
* @Wechat: zhuda1024
* @Email: lab1024@163.com
* @Copyright 1024创新实验室 https://1024lab.net Since 2012
*/
import { getRequest, postRequest } from '/@/lib/axios';
export const menuApi = {
/**
* 添加菜单
*/
addMenu: (param) => {
return postRequest('/menu/add', param);
},
/**
* 更新菜单
*/
updateMenu: (param) => {
return postRequest('/menu/update', param);
},
/**
* 批量删除菜单
*/
batchDeleteMenu: (menuIdList) => {
return getRequest(`/menu/batchDelete?menuIdList=${menuIdList}`);
},
/**
* 查询所有菜单列表
*/
queryMenu: () => {
return getRequest('/menu/query');
},
/**
* 查询菜单树
*/
queryMenuTree: (onlyMenu) => {
return getRequest(`/menu/tree?onlyMenu=${onlyMenu}`);
},
/**
* 获取所有请求路径
*/
getAuthUrl: () => {
return getRequest('/menu/auth/url');
},
};

View File

@@ -7,102 +7,77 @@
* @Email: lab1024@163.com
* @Copyright 1024创新实验室 https://1024lab.net Since 2012
*/
import { getRequest, postRequest } from '/@/lib/axios';
import { getRequest, postRequest } from '/src/lib/axios';
export const roleApi = {
/**
* @description: 获取所有角色
* @param {*}
* @return {*}
*/
queryAll: () => {
return getRequest('/role/getAll');
},
/**
* @description:添加角色
* @param {*}
* @return {*}
*/
addRole: (data) => {
return postRequest('/role/add', data);
},
/**
* @description:更新角色
* @param {*}
* @return {*}
*/
updateRole: (data) => {
return postRequest('/role/update', data);
},
/**
* @description: 删除角色
* @param {number} roleId
* @return {*}
*/
deleteRole: (roleId) => {
return getRequest(`/role/delete/${roleId}`);
},
/**
* @description: 批量设置某角色数据范围
* @param {DataScopeBatchSetRoleDto} data
* @return {*}
*/
updateDataScope: (data) => {
return postRequest('/role/dataScope/updateRoleDataScopeList', data);
},
/**
* @description: 获取当前系统所配置的所有数据范围
* @param {*}
* @return {*}
*/
getDataScopeList: () => {
return getRequest('/dataScope/list');
},
/**
* @description: 获取某角色所设置的数据范围
* @param {number} roleId
* @return {*}
*/
getDataScopeByRoleId: (roleId) => {
return getRequest(`/role/dataScope/getRoleDataScopeList/${roleId}`);
},
/**
* @description: 获取角色成员-员工列表
* @param {*}
* @return {*}
*/
queryRoleEmployee: (params) => {
return postRequest('/role/employee/queryEmployee', params);
},
/**
* @description: 从角色成员列表中移除员工
* @param {number} employeeId
* @param {number} roleId
* @return {*}
*/
deleteEmployeeRole: (employeeId, roleId) => {
return getRequest('/role/employee/removeEmployee?employeeId=' + employeeId + '&roleId=' + roleId);
},
/**
* @description: 从角色成员列表中批量移除员工
* @param {RoleEmployeeBatchDto} data
* @return {*}
*/
batchRemoveRoleEmployee: (data) => {
return postRequest('/role/employee/batchRemoveRoleEmployee', data);
},
/**
* @description: 根据角色id获取角色员工列表(无分页)
* @param {*}
* @return {*}
*/
getRoleAllEmployee: (roleId) => {
return getRequest(`/role/employee/getAllEmployeeByRoleId/${roleId}`);
},
/**
* @description: 角色成员列表中批量添加员工
* @param data
* @return {*}
*/
batchAddRoleEmployee: (data) => {
return postRequest('/role/employee/batchAddRoleEmployee', data);

View File

@@ -7,20 +7,16 @@
* @Email: lab1024@163.com
* @Copyright 1024创新实验室 https://1024lab.net Since 2012
*/
import { getRequest, postRequest } from '/@/lib/axios';
import { getRequest, postRequest } from '/src/lib/axios';
export const roleMenuApi = {
/**
* @description: 获取角色关联菜单权限
* @param {*}
* @return {*}
*/
getRoleSelectedMenu: (roleId) => {
return getRequest(`role/menu/getRoleSelectedMenu/${roleId}`);
},
/**
* @description: 更新角色权限
* @param {*}
* @return {*}
*/
updateRoleMenu: (data) => {
return postRequest('role/menu/updateRoleMenu', data);

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 382 KiB

View File

@@ -22,14 +22,13 @@
</template>
<script setup>
import { PROVINCE_CITY_DISTRICT } from "./province-city-district";
import { PROVINCE_CITY } from "./province-city";
import { ref, toRaw, watch } from "vue";
import { PROVINCE_CITY_DISTRICT } from './province-city-district';
import { PROVINCE_CITY } from './province-city';
import { ref, toRaw, watch } from 'vue';
// ============ 组件属性 ============
const TYPE_PROVINCE_CITY_DISTRICT = "province_city_district";
const TYPE_PROVINCE_CITY = "province_city";
const TYPE_PROVINCE_CITY_DISTRICT = 'province_city_district';
const props = defineProps({
type: String,
@@ -55,22 +54,21 @@
const emit = defineEmits(['update:value', 'change']);
// ============ 组件业务 ============
const areaOptionData =
props.type === TYPE_PROVINCE_CITY_DISTRICT ? PROVINCE_CITY_DISTRICT : PROVINCE_CITY;
const areaOptionData = props.type === TYPE_PROVINCE_CITY_DISTRICT ? PROVINCE_CITY_DISTRICT : PROVINCE_CITY;
// 绑定地区数据
const areaValue = ref([]);
// 监听value变化
watch(
() => props.value,
(newValue) => {
if (newValue) {
let array = [];
for (let index = 0; index < 3; index++) {
if (newValue[index]) {
array.push(newValue[index].value);
}
() => props.value,
(newValue) => {
if (newValue) {
let array = [];
for (let index = 0; index < 3; index++) {
if (newValue[index]) {
array.push(newValue[index].value);
}
}
areaValue.value = array;
} else {
areaValue.value = [];
@@ -78,14 +76,12 @@
}
);
function handleChange(value, selectedOptions){
emit("update:value", toRaw(selectedOptions));
emit("change", value, toRaw(selectedOptions));
function handleChange(value, selectedOptions) {
emit('update:value', toRaw(selectedOptions));
emit('change', value, toRaw(selectedOptions));
}
const filter = (inputValue, path) => {
return path.some(
(option) => option.label.toLowerCase().indexOf(inputValue.toLowerCase()) > -1
);
return path.some((option) => option.label.toLowerCase().indexOf(inputValue.toLowerCase()) > -1);
};
</script>

View File

@@ -73,7 +73,7 @@
console.log('boolean enum select', value);
let booleanResult = null;
if (!_.isUndefined(value)) {
booleanResult = value === 1 ? true : false;
booleanResult = value === 1;
}
emit('update:value', booleanResult);
emit('change', booleanResult);

View File

@@ -9,7 +9,7 @@
-->
<template>
<div>
<a-popover v-model:visible="visible" placement="bottomLeft" trigger="click">
<a-popover v-model:open="visible" placement="bottomLeft" trigger="click">
<template #title>
<a-form-item>
<a-radio-group @change="updateSelectIconArray" v-model:value="iconStyle" style="margin: 8px">

View File

@@ -24,7 +24,7 @@
<script setup>
import { shallowRef, onBeforeUnmount, watch, ref } from 'vue';
import { FILE_FOLDER_TYPE_ENUM } from '/@/constants/support/file-const';
import { fileApi } from '/@/api/support/file/file-api';
import { fileApi } from '/src/api/support/file-api';
import '@wangeditor/editor/dist/css/style.css';
import { Editor, Toolbar } from '@wangeditor/editor-for-vue';
import { smartSentry } from '/@/lib/smart-sentry';

View File

@@ -0,0 +1,97 @@
<!--
* 数据变更记录以table形式显示
*
* @Author: 1024创新实验室-主任卓大
* @Date: 2022-08-12 21:01:52
* @Wechat: zhuda1024
* @Email: lab1024@163.com
* @Copyright 1024创新实验室 https://1024lab.net Since 2012
-->
<template>
<a-table size="small" :dataSource="tableData" :columns="columns" rowKey="dataTracerId" :pagination="false" bordered>
<template #bodyCell="{ record, index, column }">
<template v-if="column.dataIndex === 'dataTracerId'">
<div>{{ index + 1 }}</div>
</template>
<template v-if="column.dataIndex === 'userName'">
<div>{{ record.userName }} ({{ $smartEnumPlugin.getDescByValue('USER_TYPE_ENUM', record.userType) }})</div>
</template>
<template v-if="column.dataIndex === 'userAgent'">
<div>{{ record.browser }} / {{ record.os }} / {{ record.device }}</div>
</template>
<template v-if="column.dataIndex === 'content'">
<div class="operate-content" v-html="record.content"></div>
</template>
<template v-else-if="column.dataIndex === 'action'">
<a-button v-if="record.diffOld || record.diffNew" @click="showDetail(record)" type="link">详情 </a-button>
</template>
</template>
</a-table>
</template>
<script setup>
import { reactive } from 'vue';
const props = defineProps({
tableData: {
type: Array,
},
});
const emit = defineEmits(['showDetail']);
function showDetail(record) {
emit('showDetail', record);
}
const columns = reactive([
{
title: '序号',
dataIndex: 'dataTracerId',
width: 50,
},
{
title: '操作时间',
dataIndex: 'createTime',
width: 150,
},
{
title: '操作人',
dataIndex: 'userName',
width: 100,
ellipsis: true,
},
{
title: 'IP',
dataIndex: 'ip',
ellipsis: true,
width: 100,
},
{
title: 'IP地区',
dataIndex: 'ipRegion',
ellipsis: true,
width: 100,
},
{
title: '客户端',
dataIndex: 'userAgent',
ellipsis: true,
width: 150,
},
{
title: '操作内容',
dataIndex: 'content',
},
{
title: '操作',
dataIndex: 'action',
fixed: 'right',
width: 80,
},
]);
</script>
<style scoped lang="less">
.operate-content {
font-size: 14px;
display: inline;
}
</style>

View File

@@ -0,0 +1,50 @@
<!--
* 数据变更记录 timeline 形式显示
*
* @Author: 1024创新实验室-主任卓大
* @Date: 2022-08-12 21:01:52
* @Wechat: zhuda1024
* @Email: lab1024@163.com
* @Copyright 1024创新实验室 https://1024lab.net Since 2012
-->
<template>
<a-timeline>
<a-timeline-item v-for="record in tableData" :key="record.dataTracerId">
<div class="trace-div">
<div>
<!-- <div class="operate-content" >{{ record.content }}</div> -->
<div class="operate-content" v-html="record.content"></div>
<a href="javascript:void(0)" v-if="record.diffOld || record.diffNew" @click="showDetail(record)">查看修改</a>
</div>
<div class="ip-font">
{{ record.createTime }} | {{ record.userName }} | {{ record.ipRegion }} | {{ record.ip }} | {{ record.browser }} | {{ record.os }}
</div>
</div>
</a-timeline-item>
</a-timeline>
</template>
<script setup>
const props = defineProps({
tableData: {
type: Array,
},
});
const emit = defineEmits(['showDetail']);
function showDetail(record) {
emit('showDetail', record);
}
</script>
<style scoped lang="less">
.operate-content {
font-size: 14px;
display: inline;
}
.ip-font {
margin-top: 5px;
font-size: 12px;
color: #999;
display: block;
}
</style>

View File

@@ -35,42 +35,26 @@
</a-form>
<a-card size="small" :bordered="false">
<a-table size="small" :dataSource="tableData" :columns="columns" rowKey="dataTracerId" :pagination="false" bordered>
<template #bodyCell="{ record, index, column }">
<template v-if="column.dataIndex === 'dataTracerId'">
<div>{{ index + 1 }}</div>
</template>
<template v-if="column.dataIndex === 'userName'">
<div>{{record.userName}} ({{ $smartEnumPlugin.getDescByValue('USER_TYPE_ENUM', record.userType) }})</div>
</template>
<template v-if="column.dataIndex === 'userAgent'">
<div>{{ record.browser }} / {{ record.os }} / {{ record.device }}</div>
</template>
<template v-if="column.dataIndex === 'content'">
<div class="operate-content" v-html="record.content"></div>
</template>
<template v-else-if="column.dataIndex === 'action'">
<a-button v-if="record.diffOld || record.diffNew" @click="showDetail(record)" type="link">详情 </a-button>
</template>
</template>
</a-table>
<!---以表格形式 显示-->
<!-- <DataTracerTable :tableData="tableData" @showDetail="showDetail" /> -->
<div class="smart-query-table-page">
<a-pagination
showSizeChanger
showQuickJumper
show-less-items
:pageSizeOptions="PAGE_SIZE_OPTIONS"
:defaultPageSize="queryForm.pageSize"
v-model:current="queryForm.pageNum"
v-model:pageSize="queryForm.pageSize"
:total="total"
@change="onSearch"
@showSizeChange="onSearch"
:show-total="(total) => `${total}`"
/>
</div>
<a-modal v-model:visible="visibleDiff" width="90%" title="数据比对" :footer="null">
<!--- timeline 时间轴形式 显示-->
<DataTracerTimeline :tableData="tableData" @showDetail="showDetail" />
<a-pagination
showSizeChanger
showQuickJumper
show-less-items
:pageSizeOptions="PAGE_SIZE_OPTIONS"
:defaultPageSize="queryForm.pageSize"
v-model:current="queryForm.pageNum"
v-model:pageSize="queryForm.pageSize"
:total="total"
@change="ajaxQuery"
@showSizeChange="ajaxQuery"
:show-total="(total) => `${total}`"
/>
<a-modal v-model:open="visibleDiff" width="90%" title="数据比对" :footer="null">
<div v-html="prettyHtml"></div>
</a-modal>
</a-card>
@@ -80,10 +64,11 @@
import * as Diff2Html from 'diff2html';
import 'diff2html/bundles/css/diff2html.min.css';
import uaparser from 'ua-parser-js';
import { nextTick, reactive, ref, watch } from 'vue';
import { dataTracerApi } from '/@/api/support/data-tracer/data-tracer-api';
import { nextTick, reactive, ref, watch } from 'vue';
import { dataTracerApi } from '/src/api/support/data-tracer-api';
import { PAGE_SIZE, PAGE_SIZE_OPTIONS } from '/@/constants/common-const';
import { smartSentry } from '/@/lib/smart-sentry';
import DataTracerTimeline from './data-tracer-timeline.vue';
let props = defineProps({
// 数据id
@@ -96,47 +81,6 @@
},
});
const columns = reactive([
{
title: '序号',
dataIndex: 'dataTracerId',
width: 50,
},
{
title: '操作时间',
dataIndex: 'createTime',
width: 150,
},
{
title: '操作人',
dataIndex: 'userName',
width: 100,
ellipsis: true,
},
{
title: 'IP',
dataIndex: 'ip',
ellipsis: true,
width: 100,
},
{
title: '客户端',
dataIndex: 'userAgent',
ellipsis: true,
width: 150,
},
{
title: '操作内容',
dataIndex: 'content',
},
{
title: '操作',
dataIndex: 'action',
fixed: 'right',
width: 80,
},
]);
// --------------- 查询表单、查询方法 ---------------
const queryFormState = {
@@ -155,7 +99,12 @@
onSearch();
}
async function onSearch() {
function onSearch() {
queryForm.pageNum = 1;
ajaxQuery();
}
async function ajaxQuery() {
try {
tableLoading.value = true;
let responseModel = await dataTracerApi.queryList(Object.assign({}, queryForm, { dataId: props.dataId, type: props.type }));
@@ -163,6 +112,7 @@
if (!e.userAgent) {
continue;
}
// e.content = e.content.replaceAll('<br/>','');
let ua = uaparser(e.userAgent);
e.browser = ua.browser.name;
e.os = ua.os.name;
@@ -190,17 +140,14 @@
{ immediate: true }
);
// --------------- diff 特效 ---------------
// diff
const visibleDiff = ref(false);
let prettyHtml = ref('');
function showDetail(record) {
visibleDiff.value = true;
let diffOld = record.diffOld.replaceAll('<br/>','\r\n');
let diffNew = record.diffNew.replaceAll('<br/>','\r\n');
console.log(diffOld)
console.log(diffNew)
let diffOld = record.diffOld.replaceAll('<br/>', '\r\n');
let diffNew = record.diffNew.replaceAll('<br/>', '\r\n');
const args = ['', diffOld, diffNew, '变更前', '变更后'];
let diffPatch = Diff.createPatch(...args);
@@ -218,12 +165,12 @@
let left = diffDiv[0],
right = diffDiv[1];
left.addEventListener('scroll', function (e) {
if (left.scrollLeft != right.scrollLeft) {
if (left.scrollLeft !== right.scrollLeft) {
right.scrollLeft = left.scrollLeft;
}
});
right.addEventListener('scroll', function (e) {
if (left.scrollLeft != right.scrollLeft) {
if (left.scrollLeft !== right.scrollLeft) {
left.scrollLeft = right.scrollLeft;
}
});
@@ -231,9 +178,3 @@
});
}
</script>
<style scoped lang="less">
.operate-content {
line-height: 20px;
margin: 5px 0px;
}
</style>

View File

@@ -28,7 +28,7 @@
<script setup>
import { computed, onMounted, ref, watch } from 'vue';
import { dictApi } from '/@/api/support/dict/dict-api';
import { dictApi } from '/src/api/support/dict-api';
const props = defineProps({
value: [Array, String],

View File

@@ -29,7 +29,7 @@
<script setup>
import { computed, onMounted, ref, watch } from 'vue';
import { dictApi } from '/@/api/support/dict/dict-api';
import { dictApi } from '/src/api/support/dict-api';
const props = defineProps({
keyCode: String,

View File

@@ -24,8 +24,8 @@
<script setup>
import { ref } from 'vue';
import { download } from '/@/lib/axios';
import { fileApi } from '/@/api/support/file/file-api';
import { getDownload } from '/@/lib/axios';
import { fileApi } from '/src/api/support/file-api';
import { smartSentry } from '/@/lib/smart-sentry';
import { SmartLoading } from '/@/components/framework/smart-loading';
@@ -62,7 +62,7 @@
setVisible(true);
return;
}
download(fileItem.fileName, fileItem.fileUrl);
getDownload(fileItem.fileName, fileItem.fileUrl);
}
// 判断图片类型

View File

@@ -9,11 +9,11 @@
*
-->
<template>
<div >
<template v-if="type == 'text'">
<div>
<template v-if="type === 'text'">
<a v-for="(item, index) in fileList" :key="index" @click="preview(item, index)">
{{ item.fileName }}
<span v-if="index != fileList.length - 1" v-html="separator"></span>
<span v-if="index !== fileList.length - 1" v-html="separator"></span>
</a>
</template>
<a-space>
@@ -22,7 +22,7 @@
v-for="(item, index) in fileList"
:key="index"
:src="item.fileUrl"
:style="{ display: type == 'text' ? 'none' : '' }"
:style="{ display: type === 'text' ? 'none' : '' }"
:width="width"
/>
</a-image-preview-group>
@@ -31,7 +31,7 @@
</template>
<script setup>
import { ref } from 'vue';
import { download } from '/@/lib/axios';
import { getDownload } from '/@/lib/axios';
let props = defineProps({
fileList: {
@@ -64,7 +64,7 @@
previewCurrent.value = index;
visible.value = true;
} else {
download(file.fileName, file.fileUrl);
getDownload(file.fileName, file.fileUrl);
}
}

View File

@@ -22,13 +22,13 @@
@remove="handleRemove"
>
<div v-if="fileList.length < props.maxUploadSize">
<template v-if="listType == 'picture-card'">
<template v-if="listType === 'picture-card'">
<PlusOutlined />
<div class="ant-upload-text">
{{ buttonText }}
</div>
</template>
<template v-if="listType == 'text'">
<template v-if="listType === 'text'">
<a-button>
<upload-outlined />
{{ buttonText }}
@@ -36,7 +36,7 @@
</template>
</div>
</a-upload>
<a-modal :footer="null" :visible="previewVisible" @cancel="handleCancel">
<a-modal :footer="null" :open="previewVisible" @cancel="handleCancel">
<img :src="previewUrl" alt="example" style="width: 100%" />
</a-modal>
</div>
@@ -44,11 +44,11 @@
<script setup>
import { computed, ref, watch } from 'vue';
import { message } from 'ant-design-vue';
import { fileApi } from '/@/api/support/file/file-api';
import { fileApi } from '/src/api/support/file-api';
import { useUserStore } from '/@/store/modules/system/user';
import { SmartLoading } from '/@/components/framework/smart-loading';
import { FILE_FOLDER_TYPE_ENUM } from '/@/constants/support/file-const';
import { download } from '/@/lib/axios';
import { getDownload } from '/@/lib/axios';
import { smartSentry } from '/@/lib/smart-sentry';
const props = defineProps({
value: String,
@@ -149,9 +149,9 @@
function handleChange(info) {
let fileStatus = info.file.status;
let file = info.file;
if (fileStatus == 'removed') {
let index = fileList.value.findIndex((e) => e.fileId == file.fileId);
if (index != -1) {
if (fileStatus === 'removed') {
let index = fileList.value.findIndex((e) => e.fileId === file.fileId);
if (index !== -1) {
fileList.value.splice(index, 1);
emit('change', fileList.value);
}
@@ -179,7 +179,7 @@
previewUrl.value = file.url || file.preview;
previewVisible.value = true;
} else {
download(file.fileName, file.fileUrl);
getDownload(file.fileName, file.fileUrl);
}
};

View File

@@ -37,7 +37,7 @@
<script setup>
import _ from 'lodash';
import { tableColumnApi } from '/@/api/support/table/table-column-api';
import { tableColumnApi } from '/src/api/support/table-column-api';
import { onMounted, reactive, ref, watch } from 'vue';
import SmartTableColumnModal from './smart-table-column-modal.vue';
import { message } from 'ant-design-vue';

View File

@@ -9,7 +9,7 @@
*
-->
<template>
<a-modal :width="700" :visible="visible" title="设置列" :destroyOnClose="true" :closable="false">
<a-modal :width="700" :open="visible" title="设置列" :destroyOnClose="true" :closable="false">
<a-alert type="info" show-icon class="smart-margin-bottom10">
<template #icon><smile-outlined /></template>
<template #message> 可以通过拖拽行直接修改顺序哦 <pushpin-outlined />为固定列不可拖拽 </template>
@@ -54,8 +54,8 @@
</template>
<script setup>
import { SmartLoading } from '/@/components/framework/smart-loading';
import { tableColumnApi } from '/@/api/support/table/table-column-api';
import { ref, reactive, nextTick, computed } from 'vue';
import { tableColumnApi } from '/src/api/support/table-column-api';
import { nextTick, ref } from 'vue';
import _ from 'lodash';
import Sortable from 'sortablejs';
import { message, Modal } from 'ant-design-vue';
@@ -107,7 +107,6 @@
for (const item of tableData.value) {
if (item.showFlag) {
selectedRowKeyList.value.push(item.columnKey);
continue;
}
}
@@ -148,7 +147,7 @@
chosenClass: 'smart-ghost-class', //设置选中样式类名
handle: '.handle',
onEnd({ newIndex, oldIndex }) {
if (newIndex == oldIndex) {
if (newIndex === oldIndex) {
return;
}
moveTableData(oldIndex, newIndex);
@@ -240,7 +239,7 @@
if (item.width) {
column.width = item.width;
}
column.showFlag = selectedRowKeyList.value.indexOf(item.columnKey) > -1 ? true : false;
column.showFlag = selectedRowKeyList.value.indexOf(item.columnKey) > -1;
columnList.push(column);
}

View File

@@ -26,7 +26,7 @@
<script setup>
import { onMounted, ref } from 'vue';
import _ from 'lodash';
import { departmentApi } from '/@/api/system/department/department-api';
import { departmentApi } from '/src/api/system/department-api';
const props = defineProps({
// 绑定值

View File

@@ -26,7 +26,7 @@
<script setup>
import { onMounted, ref, watch } from 'vue';
import { employeeApi } from '/@/api/system/employee/employee-api';
import { employeeApi } from '/src/api/system/employee-api';
import { smartSentry } from '/@/lib/smart-sentry';
// =========== 属性定义 和 事件方法暴露 =============

View File

@@ -8,7 +8,7 @@
* @Copyright 1024创新实验室 https://1024lab.net Since 2012
-->
<template>
<a-modal v-model:visible="visible" :width="900" title="选择人员" @cancel="closeModal" @ok="onSelectEmployee">
<a-modal v-model:open="visible" :width="900" title="选择人员" @cancel="closeModal" @ok="onSelectEmployee">
<a-form class="smart-query-form">
<a-row class="smart-query-form-row">
<a-form-item label="关键字" class="smart-query-form-item">
@@ -24,7 +24,7 @@
</a-select>
</a-form-item>
<a-form-item class="smart-query-form-item smart-margin-left10">
<a-button type="primary" @click="queryEmployee">
<a-button type="primary" @click="onSearch">
<template #icon>
<SearchOutlined />
</template>
@@ -80,13 +80,13 @@
<script setup>
import { message } from 'ant-design-vue';
import { computed, reactive, ref } from 'vue';
import { employeeApi } from '/@/api/system/employee/employee-api';
import { employeeApi } from '/src/api/system/employee-api';
import { PAGE_SIZE, PAGE_SIZE_OPTIONS } from '/@/constants/common-const';
import DepartmentTreeSelect from '/@/components/system/department-tree-select/index.vue';
import { smartSentry } from '/@/lib/smart-sentry';
// ----------------------- 以下是字段定义 emits props ---------------------
const emits = defineEmits('selectData');
const emits = defineEmits(['selectData']);
defineExpose({
showModal,
});
@@ -97,7 +97,7 @@
async function showModal(selectEmployeeId) {
selectedRowKeyList.value = selectEmployeeId || [];
visible.value = true;
queryEmployee();
onSearch();
}
function closeModal() {
Object.assign(params, defaultParams);
@@ -124,6 +124,12 @@
Object.assign(params, defaultParams);
queryEmployee();
}
function onSearch() {
params.pageNum = 1;
queryEmployee();
}
async function queryEmployee() {
tableLoading.value = true;
try {

View File

@@ -25,7 +25,7 @@
<script setup>
import { onMounted, ref } from 'vue';
import _ from 'lodash';
import { menuApi } from '/@/api/system/menu/menu-api';
import { menuApi } from '/src/api/system/menu-api';
import { buildMenuTableTree } from '/@/views/system/menu/menu-data-handler';
import { MENU_TYPE_ENUM } from '/@/constants/system/menu-const';

View File

@@ -10,12 +10,14 @@
export const appDefaultConfig = {
// i18n 语言选择
language: 'zh_CN',
// 布局: side 或者 side-expand
// 布局: side 或者 side-expand 或者 top
layout: 'side',
// 侧边菜单宽度 默认为200px
sideMenuWidth: 200,
// 菜单主题
sideMenuTheme: 'dark',
// 顶部菜单页面宽度
pageWidth: '99%',
// 标签页
pageTagFlag: true,
// 面包屑
@@ -24,6 +26,10 @@ export const appDefaultConfig = {
footerFlag: true,
// 帮助文档
helpDocFlag: true,
// 水印
watermarkFlag: true,
// 网站名称
websiteName: 'SmartAdmin 2.X',
websiteName: 'SmartAdmin 3.X',
// 主题颜色
primaryColor: 'red',
};

View File

@@ -10,7 +10,7 @@
export const PAGE_SIZE = 10;
export const PAGE_SIZE_OPTIONS = ['10', '15', '20', '30', '40', '50', '75', '100', '150', '200', '300', '500'];
export const PAGE_SIZE_OPTIONS = ['5', '10', '15', '20', '30', '40', '50', '75', '100', '150', '200', '300', '500'];
//登录页面名字
export const PAGE_PATH_LOGIN = '/login';
@@ -56,3 +56,15 @@ export const USER_TYPE_ENUM = {
};
export const DATA_TYPE_ENUM = {
NORMAL: {
value: 1,
desc: '普通',
},
ENCRYPT: {
value: 10,
desc: '加密',
},
};

View File

@@ -8,12 +8,16 @@
* @Copyright 1024创新实验室 https://1024lab.net Since 2012
*/
export const LAYOUT_ENUM = {
SIDE_EXPAND: {
value: 'side-expand',
desc: '展开菜单',
},
SIDE: {
value: 'side',
desc: '传统菜单',
desc: '传统',
},
SIDE_EXPAND: {
value: 'side-expand',
desc: '展开',
},
TOP: {
value: 'top',
desc: '顶部',
},
};

View File

@@ -26,14 +26,10 @@ export const MENU_TYPE_ENUM = {
* 权限类型
*/
export const MENU_PERMS_TYPE_ENUM = {
SPRING_SECURITY: {
SA_TOKEN: {
value: 1,
desc: 'Security模式',
},
URL: {
value: 2,
desc: 'URL模式',
},
desc: 'Sa-Token模式',
}
};
/**

View File

@@ -9,7 +9,7 @@
*/
import { useUserStore } from '/@/store/modules/system/user';
import lodash from 'lodash';
import _ from 'lodash';
export function privilegeDirective(el, binding) {
// 超级管理员
@@ -22,7 +22,7 @@ export function privilegeDirective(el, binding) {
return false;
}
// 如果有权限,删除节点
if (!lodash.some(userPointsList,['webPerms',binding.value])) {
if (!_.some(userPointsList, ['webPerms', binding.value])) {
el.parentNode.removeChild(el);
}
return true;

View File

@@ -7,7 +7,7 @@
* @Email: lab1024@163.com
* @Copyright 1024创新实验室 https://1024lab.net Since 2012
*/
import antd from 'ant-design-vue/es/locale-provider/en_US';
import antd from 'ant-design-vue/es/locale/en_US';
import dayjs from 'dayjs/locale/eu';
export default {
@@ -17,8 +17,10 @@ export default {
'setting.menu.layout': 'Menu Layout',
'setting.menu.width': 'Menu Width',
'setting.menu.theme': 'Menu Theme',
'setting.page.width': 'Page Width',
'setting.bread': 'Show Bread',
'setting.pagetag': 'Show PageTag',
'setting.footer': 'Show Footer',
'setting.helpdoc': 'Show Helpdoc',
'setting.watermark': 'Show Watermark',
};

View File

@@ -7,7 +7,7 @@
* @Email: lab1024@163.com
* @Copyright 1024创新实验室 https://1024lab.net Since 2012
*/
import antd from 'ant-design-vue/es/locale-provider/zh_CN';
import antd from 'ant-design-vue/es/locale/zh_CN';
import dayjs from 'dayjs/locale/zh-cn';
export default {
@@ -17,8 +17,10 @@ export default {
'setting.menu.layout': '菜单布局',
'setting.menu.width': '菜单宽度',
'setting.menu.theme': '菜单主题',
'setting.page.width': '页面宽度',
'setting.bread': '面包屑',
'setting.pagetag': '标签页',
'setting.footer': '页脚',
'setting.helpdoc': '帮助文档',
'setting.watermark': '水印',
};

View File

@@ -18,9 +18,6 @@
</div>
<template #overlay>
<a-menu :class="['avatar-menu']">
<a-menu-item @click="onRefresh">
<span>刷新权限</span>
</a-menu-item>
<a-menu-item @click="showUpdatePwdModal">
<span>修改密码</span>
</a-menu-item>
@@ -34,7 +31,7 @@
</template>
<script setup>
import { computed, ref, onMounted } from 'vue';
import { loginApi } from '/@/api/system/login/login-api';
import { loginApi } from '/src/api/system/login-api';
import { useUserStore } from '/@/store/modules/system/user';
import { clearAllCoolies } from '/@/utils/cookie-util';
import { localClear } from '/@/utils/local-util';
@@ -59,12 +56,6 @@
}
}
// 刷新用户信息(包含用户基础信息、权限信息等等)
async function onRefresh() {
await loginApi.refresh();
location.reload();
}
// ------------------------ 修改密码 ------------------------
const resetPasswordRef = ref();

View File

@@ -9,7 +9,7 @@
-->
<template>
<a-dropdown trigger="click" v-model:visible="show">
<a-dropdown trigger="click" v-model:open="show">
<div @click="fetchMessage">
<a-badge count="12">
<div style="width: 26px; height: 26px">
@@ -110,7 +110,6 @@
.dropdown-tabs {
background-color: @base-bg-color;
box-shadow: 0 2px 8px @shadow-color;
border-radius: 4px;
}
</style>

View File

@@ -8,7 +8,7 @@
* @Copyright 1024创新实验室 https://1024lab.net Since 2012
-->
<template>
<a-modal :visible="visible" title="修改密码" ok-text="确认" cancel-text="取消" @ok="updatePwd" @cancel="cancelModal">
<a-modal :open="visible" title="修改密码" ok-text="确认" cancel-text="取消" @ok="updatePwd" @cancel="cancelModal">
<a-form ref="formRef" :model="form" :rules="rules" :label-col="{ span: 5 }">
<a-form-item label="原密码" name="oldPassword">
<a-input v-model:value.trim="form.oldPassword" type="password" placeholder="请输入原密码" />
@@ -25,19 +25,19 @@
<script setup>
import { ref, reactive } from 'vue';
import { message } from 'ant-design-vue';
import { employeeApi } from '/@/api/system/employee/employee-api';
import { employeeApi } from '/src/api/system/employee-api';
import { SmartLoading } from '/@/components/framework/smart-loading';
import { smartSentry } from '/@/lib/smart-sentry';
const visible = ref(false);
const formRef = ref();
const tips = '字母(不限大小写)+数字组合6-15位'; //校验规则
const reg = /(^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{6,15}$)/; //校验正则
const tips = '密码长度8-20位且包含大写字母、小写字母、数字三种'; //校验规则
const reg = /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)[a-zA-Z\d]{8,20}$/;
const rules = {
oldPassword: [{ required: true, message: '请输入原密码' }],
newPassword: [{ type: 'string', pattern: reg, message: '密码格式错误' }],
confirmPwd: [{ type: 'string', pattern: reg, message: '请输入确认密码' }],
newPassword: [{ type: 'string', pattern: reg, message: '密码格式错误' }],
confirmPwd: [{ type: 'string', pattern: reg, message: '请输入确认密码' }],
};
const formDefault = {
@@ -75,6 +75,9 @@
function showModal() {
visible.value = true;
form.oldPassword = '';
form.newPassword = '';
form.confirmPwd = '';
}
function cancelModal() {

View File

@@ -9,7 +9,7 @@
-->
<template>
<a-drawer :title="$t('setting.title')" placement="right" :visible="visible" @close="close">
<a-drawer :title="$t('setting.title')" placement="right" :open="visible" @close="close">
<a-form layout="horizontal" :label-col="{ span: 8 }">
<a-form-item label="语言/Language">
<a-select v-model:value="formState.language" @change="changeLanguage" style="width: 120px">
@@ -27,6 +27,10 @@
<a-input-number @change="changeSideMenuWidth" v-model:value="formState.sideMenuWidth" :min="1" />
像素px
</a-form-item>
<a-form-item :label="$t('setting.page.width')" v-if="formState.layout === LAYOUT_ENUM.TOP.value">
<a-input @change="changePageWidth" v-model:value="formState.pageWidth" />
像素px或者 百分比
</a-form-item>
<a-form-item :label="$t('setting.menu.theme')">
<a-radio-group v-model:value="formState.sideMenuTheme" button-style="solid" @change="changeMenuTheme">
<a-radio-button value="dark">Dark</a-radio-button>
@@ -45,6 +49,9 @@
<a-form-item :label="$t('setting.helpdoc')">
<a-switch @change="changeHelpDocFlag" v-model:checked="formState.helpDocFlag" checked-children="显示" un-checked-children="隐藏" />
</a-form-item>
<a-form-item :label="$t('setting.watermark')">
<a-switch @change="changeWatermarkFlag" v-model:checked="formState.watermarkFlag" checked-children="显示" un-checked-children="隐藏" />
</a-form-item>
</a-form>
<div class="footer">
<a-button style="margin-right: 8px" type="primary" @click="copy">复制配置信息</a-button>
@@ -121,6 +128,8 @@
language: appConfigStore.language,
// 布局: side 或者 side-expand
layout: appConfigStore.layout,
// 页面宽度
pageWidth: appConfigStore.pageWidth,
// 侧边菜单宽度
sideMenuWidth: appConfigStore.sideMenuWidth,
// 菜单主题
@@ -133,6 +142,8 @@
footerFlag: appConfigStore.footerFlag,
// 帮助文档
helpDocFlag: appConfigStore.helpDocFlag,
// 水印
watermarkFlag: appConfigStore.watermarkFlag,
};
let formState = reactive({ ...formValue });
@@ -156,6 +167,13 @@
sideMenuWidth: value,
});
}
function changePageWidth(e) {
appConfigStore.$patch({
pageWidth: e.target.value,
});
}
function changeMenuTheme(e) {
appConfigStore.$patch({
sideMenuTheme: e.target.value,
@@ -185,6 +203,12 @@
helpDocFlag: e,
});
}
function changeWatermarkFlag(e) {
appConfigStore.$patch({
watermarkFlag: e,
});
}
</script>
<style lang="less" scoped>
.footer {

View File

@@ -13,7 +13,7 @@
<a-input-search
@click="search"
style="margin-right: 30px; width: 250px"
placeholder="1024创新实验室、小镇程序员"
placeholder="搜索六边形工程师、1024"
enter-button="搜索"
size="small"
/>

View File

@@ -8,7 +8,7 @@
* @Copyright 1024创新实验室 https://1024lab.net Since 2012
-->
<template>
<a-breadcrumb separator=">" style="display: inline" v-if="breadCrumbFlag">
<a-breadcrumb separator=">" v-if="breadCrumbFlag" class="breadcrumb">
<a-breadcrumb-item v-for="(item, index) in parentMenuList" :key="index">{{ item.title }}</a-breadcrumb-item>
<a-breadcrumb-item>{{ currentRoute.meta.title }}</a-breadcrumb-item>
</a-breadcrumb>
@@ -33,3 +33,8 @@
return menuParentIdListMap.get(currentName) || [];
});
</script>
<style scoped lang="less">
.breadcrumb{
line-height: @page-tag-height;
}
</style>

View File

@@ -12,7 +12,7 @@
<a-row style="border-bottom: 1px solid #eeeeee; position: relative" v-show="pageTagFlag">
<a-dropdown :trigger="['contextmenu']">
<div class="smart-page-tag">
<a-tabs :tab-position="mode" v-model:activeKey="selectedKey" size="small" @tabClick="selectTab">
<a-tabs style="width: 100%" :tab-position="mode" v-model:activeKey="selectedKey" size="small" @tabClick="selectTab" >
<a-tab-pane v-for="item in tagNav" :key="item.menuName">
<template #tab>
<span>
@@ -23,7 +23,7 @@
</a-tab-pane>
</a-tabs>
</div>
<template #overlay>
<template #rightExtra>
<a-menu>
<a-menu-item @click="closeByMenu(false)">关闭其他</a-menu-item>
<a-menu-item @click="closeByMenu(true)">关闭所有</a-menu-item>
@@ -56,6 +56,12 @@
import { useAppConfigStore } from '/@/store/modules/system/app-config';
import { useUserStore } from '/@/store/modules/system/user';
// //样式
// const tagOperateWidth = ref(40);
// const tabBarStyle = {
// width: 'calc(100% - 80px)'
// }
//标签页 是否显示
const pageTagFlag = computed(() => useAppConfigStore().$state.pageTagFlag);
@@ -84,7 +90,8 @@
router.push({ name: HOME_PAGE_NAME });
return;
}
router.push({ name, query: tag.menuQuery, params: { keepAlive: 1 } });
// router.push({ name, query: Object.assign({ _keepAlive: 1 }, tag.menuQuery) });
router.push({ name, query: tag.menuQuery });
}
//通过菜单关闭
@@ -116,7 +123,8 @@
goQuery = leftTagNav.menuQuery;
}
}
router.push({ name: goName, query: goQuery, params: { keepAlive: 1 } });
// router.push({ name: goName, query: Object.assign({ _keepAlive: 1 }, goQuery) });
router.push({ name: goName, query: goQuery });
} else if (!item && closeAll) {
// 关闭所有tag
router.push({ name: HOME_PAGE_NAME });
@@ -173,13 +181,6 @@
background: #fff;
width: calc(100% - @smart-page-tag-operate-width);
.smart-page-tag-tabs {
width: calc(100% - 100px);
height: 26px;
background-color: red;
margin: 2px;
}
.smart-page-tag-close {
margin-left: 5px;
font-size: 10px;

View File

@@ -9,40 +9,64 @@
-->
<template>
<div class="menu-container">
<!-- logo 第一列一级导航 -->
<TopMenu ref="topMenu" class="topMenu" :menuTree="menuTree" />
<!-- 第二列导航 -->
<RecursionMenu v-if="showRecursionMenu" class="recursion-menu" :selectedMenu="selectedMenu" />
<!-- 第一列一级导航 -->
<TopMenu ref="topMenuRef" class="top-menu" />
<!-- 第二列二级导航 -->
<RecursionMenu ref="recursionMenuRef" class="recursion-menu" />
</div>
</template>
<script setup>
import { computed, ref } from 'vue';
import { onMounted, ref, watch } from 'vue';
import { useRoute } from 'vue-router';
import RecursionMenu from './recursion-menu.vue';
import TopMenu from './top-menu.vue';
import { useUserStore } from '/@/store/modules/system/user';
defineEmits(['update:value']);
const menuTree = computed(() => useUserStore().getMenuTree || []);
const topMenu = ref();
const selectedMenu = computed(() => {
if (topMenu.value) {
return topMenu.value.selectedMenu;
}
return {};
const props = defineProps({
placeholder: {
type: String,
default: '请选择',
},
});
const showRecursionMenu = computed(() => {
return selectedMenu.value && selectedMenu.value.children && selectedMenu.value.children.some((e) => e.visibleFlag);
// 选中的顶级菜单
const topMenuRef = ref();
// 二级菜单引用
const recursionMenuRef = ref();
let currentRoute = useRoute();
// 根据路由更新菜单展开和选中状态
function updateSelectKeyAndOpenKey() {
// 第一步,根据路由 更新选中 顶级菜单
let parentList = useUserStore().menuParentIdListMap.get(currentRoute.name) || [];
if (parentList.length === 0) {
topMenuRef.value.updateSelectKey(currentRoute.name);
return;
}
topMenuRef.value.updateSelectKey(parentList[0].name);
//第二步,根据路由 更新 二级菜单的selectKey和openKey
recursionMenuRef.value.updateSelectKeyAndOpenKey(parentList, currentRoute.name);
}
onMounted(updateSelectKeyAndOpenKey);
//监听路由的变化,进行更新菜单展开项目
watch(currentRoute, () => {
updateSelectKeyAndOpenKey();
});
</script>
<style scoped lang="less">
.menu-container {
display: flex;
height: 100%;
.topMenu {
.top-menu {
width: 114px;
flex-shrink: 0;
}
.recursion-menu {
min-width: 126px;
flex: 1;

View File

@@ -8,14 +8,14 @@
* @Copyright 1024创新实验室 https://1024lab.net Since 2012
-->
<template>
<div class="resursion-container">
<div class="recursion-container" v-show="topMenu.children && topMenu.children.length > 0">
<!-- 顶部顶级菜单名称 -->
<div class="top-menu">
<span class="ant-menu">{{ props.selectedMenu.menuName }}</span>
<span class="ant-menu">{{ topMenu.menuName }}</span>
</div>
<!-- 次级菜单展示 -->
<a-menu :selectedKeys="selectedKeys" :openKeys="openKeys" mode="inline">
<template v-for="item in props.selectedMenu.children" :key="item.menuId">
<template v-for="item in topMenu.children" :key="item.menuId">
<template v-if="item.visibleFlag">
<template v-if="$lodash.isEmpty(item.children)">
<a-menu-item :key="item.menuId.toString()" @click="turnToPage(item)">
@@ -34,59 +34,60 @@
</div>
</template>
<script setup>
import { computed } from 'vue';
import { useRoute } from 'vue-router';
import { router } from '/@/router';
import SubMenu from './sub-menu.vue';
import { ref } from 'vue';
import { HOME_PAGE_NAME } from '/@/constants/system/home-const';
import { useUserStore } from '/@/store/modules/system/user';
import SubMenu from './sub-menu.vue';
import { router } from '/@/router';
import _ from 'lodash';
import menuEmitter from './side-expand-menu-mitt';
import { useUserStore } from '/@/store/modules/system/user';
let props = defineProps({
selectedMenu: Object,
});
// 选中的顶级菜单
let topMenu = ref({});
menuEmitter.on('selectTopMenu', onSelectTopMenu);
defineEmits('update:value');
// 监听选中顶级菜单事件
function onSelectTopMenu(selectedTopMenu) {
topMenu.value = selectedTopMenu;
if (selectedTopMenu.children && selectedTopMenu.children.length > 0) {
openKeys.value = _.map(selectedTopMenu.children, 'menuId').map((e) => e.toString());
} else {
openKeys.value = [];
}
selectedKeys.value = [];
}
//展开的菜单
let currentRoute = useRoute();
const selectedKeys = computed(() => {
return [currentRoute.name];
});
const selectedKeys = ref([]);
const openKeys = ref([]);
const parentMenuList = computed(() => {
let currentName = currentRoute.name;
if (!currentName || typeof currentName !== 'string') {
return [];
function updateSelectKeyAndOpenKey(parentList, currentSelectKey) {
if (!parentList) {
return;
}
let menuParentIdListMap = useUserStore().getMenuParentIdListMap;
return menuParentIdListMap.get(currentName) || [];
});
//获取需要展开的menu key集合
openKeys.value = _.map(parentList, 'name');
selectedKeys.value = [currentSelectKey];
}
const openKeys = computed(() => {
// // 仅展开当前页面
// return parentMenuList.value.map((e) => e.name);
// 展开所有
let children = props.selectedMenu.children;
if (!children || _.isEmpty(children)) {
return [];
}
return children.map((e) => e.menuId.toString());
});
// 页面跳转
function turnToPage(route) {
useUserStore().deleteKeepAliveIncludes(route.menuId.toString());
router.push({ name: route.menuId.toString() });
}
function goHome() {
router.push({ name: HOME_PAGE_NAME });
}
defineExpose({ updateSelectKeyAndOpenKey });
</script>
<style scoped lang="less">
.resursion-container {
.recursion-container {
height: 100%;
background: #ffffff;
}
.top-menu {
overflow: hidden;
display: flex;

View File

@@ -1,5 +1,5 @@
/*
* 部门event bus
* 展开菜单 event bus
*
* @Author: 1024创新实验室-主任卓大
* @Date: 2022-07-12 23:32:48

View File

@@ -32,7 +32,7 @@
</template>
<script setup>
let props = defineProps({
menuInfo: Array,
menuInfo: Object,
});
const emits = defineEmits(['turnToPage']);
const turnToPage = (route) => {

View File

@@ -12,11 +12,11 @@
<!-- 顶部logo区域 -->
<div class="logo" @click="onGoHome">
<img class="logo-img" :src="logoImg" />
<div class="title">SmartAdmin 2.X</div>
<div class="title">{{ websiteName }}</div>
</div>
<!-- 一级菜单展示 -->
<a-menu :selectedKeys="selectedKeys" mode="inline" :theme="theme">
<template v-for="item in props.menuTree" :key="item.menuId">
<template v-for="item in menuTree" :key="item.menuId">
<template v-if="item.visibleFlag">
<a-menu-item :key="item.menuId.toString()" @click="onSelectMenu(item)">
<template #icon>
@@ -31,75 +31,52 @@
</template>
<script setup>
import _ from 'lodash';
import { computed, ref, watch } from 'vue';
import { useRoute } from 'vue-router';
import logoImg from '/@/assets/images/logo/smart-admin-logo.png';
import { computed, ref } from 'vue';
import { HOME_PAGE_NAME } from '/@/constants/system/home-const';
import { MENU_TYPE_ENUM } from '/@/constants/system/menu-const';
import { router } from '/@/router';
import { useAppConfigStore } from '/@/store/modules/system/app-config';
import { useUserStore } from '/@/store/modules/system/user';
import logoImg from '/@/assets/images/logo/smart-admin-logo.png';
import menuEmitter from './side-expand-menu-mitt';
const websiteName = computed(() => useAppConfigStore().websiteName);
const theme = computed(() => useAppConfigStore().$state.sideMenuTheme);
const props = defineProps({
menuTree: Array,
});
const selectedMenu = ref();
let currentRoute = useRoute();
const parentMenuList = computed(() => {
let currentName = currentRoute.name;
if (!currentName || typeof currentName !== 'string') {
return [];
}
let menuParentIdListMap = useUserStore().getMenuParentIdListMap;
return menuParentIdListMap.get(currentName) || [];
});
const selectedKeys = computed(() => {
if (selectedMenu.value) {
return [selectedMenu.value.menuId.toString()];
}
return parentMenuList.value.map((e) => e.name);
});
const menuTree = computed(() => useUserStore().getMenuTree || []);
// 展开菜单的顶级目录名字适配,只展示两个字为好
function menuNameAdapter(name){
return name.substr(0,2);
function menuNameAdapter(name) {
return name.substr(0, 2);
}
//监听路由的变化,进行更新菜单展开项目
watch(
currentRoute,
() => {
selectedMenu.value = undefined;
let menuList = props.menuTree.map((e) => e.menuId.toString());
let parentIdList = _.intersection(menuList, selectedKeys.value);
if (parentIdList.length > 0) {
let parentId = parentIdList[0];
let parentItem = props.menuTree.find((e) => e.menuId == Number(parentId));
selectedMenu.value = parentItem;
}
},
{
immediate: true,
}
);
// 选中的顶级菜单
const selectedKeys = ref([]);
// 选中菜单,页面跳转
function onSelectMenu(route) {
selectedMenu.value = route;
if (route.menuType == MENU_TYPE_ENUM.MENU.value && (_.isEmpty(route.children) || route.children.every((e) => !e.visibleFlag))) {
router.push({ name: route.menuId.toString() });
function onSelectMenu(menuItem) {
selectedKeys.value = [menuItem.menuId.toString()];
if (menuItem.menuType === MENU_TYPE_ENUM.MENU.value && (_.isEmpty(menuItem.children) || menuItem.children.every((e) => !e.visibleFlag))) {
useUserStore().deleteKeepAliveIncludes(menuItem.menuId.toString());
router.push({ name: menuItem.menuId.toString() });
}
menuEmitter.emit('selectTopMenu', menuItem);
}
// 更新选中的菜单
function updateSelectKey(key) {
selectedKeys.value = [key];
let selectMenu = _.find(menuTree.value, { menuId: Number(key) });
if (selectMenu) {
menuEmitter.emit('selectTopMenu', selectMenu);
}
}
//点击logo回到首页
function onGoHome() {
router.push({ name: HOME_PAGE_NAME });
}
defineExpose({
selectedMenu,
});
defineExpose({ updateSelectKey });
</script>
<style scoped lang="less">
.top-menu-container {
@@ -110,7 +87,7 @@
line-height: @header-user-height;
padding: 0px 15px 0px 15px;
width: 100%;
z-index: 9999;
z-index: 100;
display: flex;
justify-content: space-between;
cursor: pointer;

View File

@@ -8,8 +8,8 @@
* @Copyright 1024创新实验室 https://1024lab.net Since 2012
-->
<template>
<a-modal :visible="visible" width="600px" title="联系客服人员" :closable="false" :maskClosable="true">
<a-row><div style="margin-left: 180px">客服(卓大)电话18637925892 ;</div> </a-row>
<a-modal :open="visible" width="600px" title="联系客服人员" :closable="false" :maskClosable="true">
<a-row><div style="margin-left: 180px;font-weight:bolder">客服(卓大)电话18637925892 ;</div> </a-row>
<br />
<div class="app-qr-box">
<div class="app-qr">
@@ -19,8 +19,8 @@
</div>
<div class="app-qr">
<img :src="xiaozhen" />
<span class="qr-desc strong"> 关注小镇程序员 </span>
<span class="qr-desc"> 程序员的工作生活 </span>
<span class="qr-desc strong"> 六边形工程师 </span>
<span class="qr-desc"> 赚钱代码生活 </span>
</div>
<div class="app-qr">
<img :src="lab1024" />
@@ -37,7 +37,7 @@
import { ref, reactive, nextTick, computed } from 'vue';
import zhuoda from '/@/assets/images/1024lab/zhuoda-wechat.jpg';
import lab1024 from '/@/assets/images/1024lab/1024lab-gzh.jpg';
import xiaozhen from '/@/assets/images/1024lab/xiaozhen-gzh.jpg';
import xiaozhen from '/@/assets/images/1024lab/gzh.jpg';
defineExpose({
show,

View File

@@ -8,7 +8,7 @@
* @Copyright 1024创新实验室 https://1024lab.net Since 2012
-->
<template>
<a-modal :visible="visible" title="意见反馈" :closable="false" :maskClosable="true" >
<a-modal :open="visible" title="意见反馈" :closable="false" :maskClosable="true" >
<a-form :labelCol="{ span: 6 }">
<a-form-item label="我要吐槽/建议:">
<a-textarea v-model:value="form.feedbackContent" placeholder="请输入让您不满意的点,我们争取做到更好~" :rows="3"/>
@@ -34,7 +34,7 @@
<script setup>
import { reactive, ref } from 'vue';
import { SmartLoading } from '/@/components/framework/smart-loading';
import { feedbackApi } from '/@/api/support/feedback/feedback-api';
import { feedbackApi } from '/src/api/support/feedback-api';
import { message } from 'ant-design-vue';
import { FILE_FOLDER_TYPE_ENUM } from '/@/constants/support/file-const';
import Upload from '/@/components/support/file-upload/index.vue';

View File

@@ -42,7 +42,7 @@
<!-----文档列表---->
<div class="help-doc-list">
<div class="help-doc-item-all">
<router-link tag="a" target="_blank" :to="{ path: '/help-doc/detail' }">系统手册文档 >></router-link>
<router-link tag="a" target="_blank" :to="{ path: '/help-doc/detail' }">系统帮助文档 >></router-link>
</div>
<div class="help-doc-item" v-for="item in helpDocList" :key="item.helpDocId">
<router-link tag="a" target="_blank" :to="{ path: '/help-doc/detail', query: { helpDocId: item.helpDocId } }">{{ item.title }}</router-link>
@@ -59,11 +59,11 @@
import { onMounted, ref, watch, reactive } from 'vue';
import { useRoute } from 'vue-router';
import _ from 'lodash';
import { helpDocApi } from '/@/api/support/help-doc/help-doc-api';
import { helpDocApi } from '/src/api/support/help-doc-api';
import ContactModal from './components/contact-modal.vue';
import FeedbackModal from './components/feedback-modal.vue';
import { useAppConfigStore } from '/@/store/modules/system/app-config';
import { feedbackApi } from '/@/api/support/feedback/feedback-api';
import { feedbackApi } from '/src/api/support/feedback-api';
import { HOME_PAGE_NAME } from '/@/constants/system/home-const';
import { smartSentry } from '/@/lib/smart-sentry';
@@ -92,7 +92,7 @@
}
scheduleShowInterval = setInterval(() => {
if (feedbackList.length == 0) {
if (feedbackList.length === 0) {
return;
}
@@ -187,6 +187,7 @@
justify-content: space-between;
.help-doc-contact-left {
width: 30px;
margin-top: 10px;
}
.help-doc-contact-right {
margin-top: 10px;
@@ -194,19 +195,20 @@
.help-doc-contac-time {
color: #888;
font-size: 12px;
margin-top: 10px;
}
}
}
.feedback {
.feedback-message-list {
margin: 6px 0px;
height: 40px;
margin: 12px 0px;
height: 70px;
position: relative;
overflow: hidden;
.feedback-message {
margin: 2px 2px;
color: #888;
margin: 10px 2px;
color: #a9a9a9;
font-size: 12px;
}
}

View File

@@ -13,19 +13,19 @@
<!-- 1顶部logo区域 -->
<div class="logo" @click="onGoHome" :style="sideMenuWidth" v-if="!collapsed">
<img class="logo-img" :src="logoImg" />
<div class="title title-light" v-if="sideMenuTheme === 'light'">{{websiteName}}</div>
<div class="title title-dark" v-if="sideMenuTheme === 'dark'">{{websiteName}}</div>
<div class="title title-light" v-if="sideMenuTheme === 'light'">{{ websiteName }}</div>
<div class="title title-dark" v-if="sideMenuTheme === 'dark'">{{ websiteName }}</div>
</div>
<div class="min-logo" @click="onGoHome" v-if="collapsed">
<img class="logo-img" :src="logoImg" />
</div>
<!-- 2下方菜单区域 这里使用一个递归菜单解决 -->
<RecursionMenu :collapsed="collapsed" ref="menu" />
<RecursionMenu :collapsed="collapsed" ref="menuRef" />
</template>
<script setup>
import { computed, ref, watch } from 'vue';
import { computed, nextTick, ref, watch } from 'vue';
import { useRouter } from 'vue-router';
import RecursionMenu from './recursion-menu.vue';
import logoImg from '/@/assets/images/logo/smart-admin-logo.png';
@@ -44,14 +44,14 @@
},
});
const menu = ref();
const menuRef = ref();
watch(
() => props.collapsed,
(newValue, oldValue) => {
// 如果是展开菜单的话,重新获取更新菜单的展开项: openkeys和selectKeys
if (!newValue) {
menu.value.updateOpenKeysAndSelectKeys();
nextTick(() => menuRef.value.updateOpenKeysAndSelectKeys());
}
}
);
@@ -76,7 +76,7 @@
line-height: @header-user-height;
padding: 0px 15px 0px 15px;
width: 100%;
z-index: 9999;
z-index: 21;
display: flex;
justify-content: center;
.logo-img {
@@ -89,10 +89,10 @@
height: @header-user-height;
line-height: @header-user-height;
padding: 0px 15px 0px 15px;
z-index: 9999;
z-index: 21;
display: flex;
cursor: pointer;
justify-content:space-around;
justify-content: center;
.logo-img {
width: 40px;
@@ -102,13 +102,13 @@
.title {
font-size: 16px;
font-weight: 600;
margin-left:8px;
margin-left: 8px;
}
.title-light {
color:#001529;
color: #001529;
}
.title-dark {
color:#ffffff;
color: #ffffff;
}
}
}

View File

@@ -14,7 +14,7 @@
class="smart-menu"
mode="inline"
:theme="theme"
:inlineCollapsed="inlineCollapsed"
:inlineCollapsed="collapsed"
>
<template v-for="item in menuTree" :key="item.menuId">
<template v-if="item.visibleFlag && !item.disabledFlag">
@@ -45,7 +45,7 @@
const theme = computed(() => useAppConfigStore().$state.sideMenuTheme);
const props = defineProps({
inlineCollapsed: {
collapsed: {
type: Boolean,
default: false,
},
@@ -60,6 +60,7 @@
// 页面跳转
function turnToPage(menu) {
useUserStore().deleteKeepAliveIncludes(menu.menuId.toString());
router.push({ path: menu.path });
}
@@ -77,9 +78,13 @@
//获取需要展开的menu key集合
let menuParentIdListMap = useUserStore().getMenuParentIdListMap;
let parentList = menuParentIdListMap.get(currentRoute.name) || [];
let needOpenKeys = _.map(parentList, 'name').map(Number);
// 使用lodash的union函数进行 去重合并两个数组
openKeys.value = _.union(openKeys.value, needOpenKeys);
// 如果是折叠菜单的话则不需要设置openkey
if(!props.collapsed){
// 使用lodash的union函数进行 去重合并两个数组
let needOpenKeys = _.map(parentList, 'name').map(Number);
openKeys.value = _.union(openKeys.value, needOpenKeys);
}
}
watch(

View File

@@ -8,10 +8,8 @@
* @Copyright 1024创新实验室 https://1024lab.net Since 2012
-->
<template>
<div class="version" >
<a target="_blank" href="https://www.1024lab.net">
SmartAdmin V2.x @copyright 河南·洛阳1024创新实验室 Since 2012-{{ currentYear }}
</a>
<div class="version">
<a target="_blank" href="javascript:void(0)"> SmartAdmin V3.x @copyright 河南·洛阳1024创新实验室 Since 2012-{{ currentYear }} </a>
</div>
</template>
<script setup>

Some files were not shown because too many files have changed in this diff Show More