Compare commits
264 Commits
11fb0576ac
...
dev-cl
| Author | SHA1 | Date | |
|---|---|---|---|
| 2f34778ee0 | |||
|
|
7df45d6703 | ||
| c4df756715 | |||
|
|
cb2deeb142 | ||
|
|
831c343448 | ||
|
|
c0be75b6fd | ||
|
|
9b323b68f9 | ||
|
|
6ebe33e48c | ||
|
|
c34623287c | ||
| 2e19a4c6f6 | |||
|
|
240224823e | ||
|
|
e3ccfd9721 | ||
|
|
461d36dc5d | ||
|
|
65af79e9a1 | ||
|
|
07850f1233 | ||
|
|
7e54b14103 | ||
|
|
2add57162e | ||
|
|
be9a9d77be | ||
|
|
8f4da16e81 | ||
|
|
b4a5c36fb0 | ||
|
|
cd3a39fa47 | ||
|
|
126853ad45 | ||
| d74161b8ce | |||
|
|
4735da7362 | ||
|
|
4b030babe2 | ||
|
|
3aaa26fdc2 | ||
|
|
78cd9f04bc | ||
|
|
dc3292982a | ||
| e8ec9bdc47 | |||
|
|
6726bd7756 | ||
|
|
a8bf678f2e | ||
|
|
3ec039050f | ||
|
|
6baa78a94f | ||
|
|
770d700ba1 | ||
|
|
039ab28c15 | ||
|
|
f75140e135 | ||
|
|
467e1eceb7 | ||
|
|
47bac0315f | ||
|
|
ce0da69b5f | ||
|
|
0d99fbac80 | ||
|
|
06681658fc | ||
| 6a07c0c711 | |||
|
|
3abe367954 | ||
| b3435a9a86 | |||
|
|
2eac9d0fc9 | ||
|
|
f7924d7cb1 | ||
|
|
6ac19b825e | ||
| 6d83198a9f | |||
|
|
e10fedb4dc | ||
|
|
f70cdfb074 | ||
| 29ee948cbb | |||
|
|
ac70a128c1 | ||
| f044dbbe7b | |||
|
|
21ff3718bd | ||
| 1c0f0651d8 | |||
|
|
1778ea9fb4 | ||
| b052af5507 | |||
|
|
e4ae5e275f | ||
| f7e81fad0e | |||
|
|
df3a4b9f46 | ||
|
|
fc22c16cb1 | ||
| c6b6602181 | |||
|
|
9b7543f65f | ||
| f2cea1585d | |||
|
|
1d1f1762f8 | ||
| 32bda88a41 | |||
|
|
ffc7691b47 | ||
|
|
c01fea9c5b | ||
|
|
beb12193b3 | ||
|
|
b09ba1547c | ||
|
|
72341a96a5 | ||
| 6d866b7e7c | |||
|
|
9cdfa01d33 | ||
|
|
af84640a4b | ||
|
|
15179707d9 | ||
|
|
fe4270178f | ||
| bbecf28819 | |||
|
|
cd22e26589 | ||
| 5740ca00d1 | |||
| 206315c642 | |||
|
|
b475af8dd3 | ||
|
|
3022106428 | ||
|
|
d4641eacb5 | ||
|
|
d3b4a360dd | ||
| b9a3424d98 | |||
|
|
91a509d49d | ||
|
|
7e771a89e4 | ||
|
|
24e540f151 | ||
| 16cb210988 | |||
|
|
0ef7703f7d | ||
| bc3c4f2ebc | |||
|
|
fa39fd8492 | ||
|
|
b8bc124162 | ||
|
|
e1036fd2c3 | ||
|
|
014bb14170 | ||
| 6ba54c8bcd | |||
|
|
eaaceb9595 | ||
| acccadd43a | |||
|
|
1ab365efae | ||
| 0f04d7e80c | |||
|
|
f74ed7e62d | ||
| 02af7babc4 | |||
|
|
8fc9dd449b | ||
| 505139cfe2 | |||
|
|
9c7ba2fb87 | ||
| 6246d46d53 | |||
|
|
2406bcb8e4 | ||
|
|
41c20623d4 | ||
|
|
a8ea0e4b26 | ||
| 98a5d374a4 | |||
|
|
8de29b754a | ||
|
|
5f63709c2f | ||
| dd049320f6 | |||
|
|
a89bd1b59c | ||
| 696e96a0c0 | |||
|
|
4daf01a21b | ||
|
|
83d04e7333 | ||
| ee770b9e60 | |||
| a81d21dd3b | |||
|
|
f6ed6575c4 | ||
|
|
cab0b3f2eb | ||
|
|
f415e0cfce | ||
|
|
90f7513ca8 | ||
|
|
cad9fbb0e0 | ||
|
|
187c156e88 | ||
| 842e6ea24b | |||
| 6908183a36 | |||
|
|
fb466e207c | ||
|
|
8a857e03af | ||
|
|
7de4adeaad | ||
|
|
3e714a0bc8 | ||
| af9bcb7024 | |||
|
|
3678c5fcc4 | ||
| 5c6c3df4d0 | |||
| acdcc670de | |||
|
|
ecc89f47bb | ||
|
|
41e256aabb | ||
|
|
cc5648414e | ||
|
|
0555c0e42e | ||
|
|
7665389a8d | ||
|
|
0540513894 | ||
|
|
0673721ad7 | ||
|
|
71f6dacba4 | ||
|
|
735d638b49 | ||
|
|
f7980cf66a | ||
|
|
a72db9307d | ||
| 9472c5ea56 | |||
|
|
9ebd81cc2c | ||
| 4f150b0912 | |||
|
|
efe4cf000c | ||
|
|
fa526a8471 | ||
|
|
076f301920 | ||
| f76d6dce66 | |||
|
|
5eccb83e3f | ||
|
|
e25d507bd0 | ||
| dd4bdb0786 | |||
|
|
51f7a85542 | ||
|
|
baf325cda6 | ||
|
|
e3e5fa7eeb | ||
| 477a279867 | |||
| 45f4c4c8af | |||
|
|
2c5d239311 | ||
|
|
03d7c87934 | ||
|
|
42fec8b681 | ||
|
|
4bc0e006f0 | ||
|
|
230e4bf577 | ||
| c87637cc78 | |||
|
|
a01363dba2 | ||
|
|
31f3df9932 | ||
|
|
347069dbee | ||
|
|
57d6aa3a0e | ||
|
|
d6be0488c4 | ||
| a544840679 | |||
|
|
c2e4bfe609 | ||
| 247c6ed4a0 | |||
|
|
e6906818e8 | ||
|
|
004915e956 | ||
|
|
2cf95c4e5d | ||
|
|
db22a8ae8a | ||
| 769c901954 | |||
|
|
1be86c7699 | ||
|
|
a5e1a97d93 | ||
|
|
a3dc76e6a8 | ||
|
|
e60eb51f45 | ||
|
|
183794746b | ||
| 18bfc7d353 | |||
|
|
29f9dc5661 | ||
| fb6b341242 | |||
|
|
78d9f0649e | ||
| fea69da8ed | |||
|
|
22bc22c00a | ||
| 125f6f28ad | |||
|
|
925887f4c9 | ||
|
|
605151c5c8 | ||
|
|
feccb2a1fa | ||
| 39cddaa8e0 | |||
|
|
6922d1cb4c | ||
|
|
440dfe8747 | ||
|
|
48689642d8 | ||
| ffd15e2433 | |||
|
|
1e40357e51 | ||
|
|
60231e4005 | ||
|
|
252f23f96d | ||
|
|
904d76208d | ||
|
|
8d9c426773 | ||
|
|
2be616917e | ||
|
|
b2a7fa8dc4 | ||
|
|
98fc520e27 | ||
|
|
97b941055e | ||
|
|
ec14af1351 | ||
|
|
160f7c959e | ||
| 2bebd0480e | |||
|
|
cbfe115e88 | ||
|
|
a35a88d970 | ||
|
|
ed4522b043 | ||
|
|
e1285ed9c3 | ||
| 3036140859 | |||
|
|
72accc0ab2 | ||
|
|
d31f4b4f8b | ||
|
|
18ed17b131 | ||
|
|
46c66e19aa | ||
|
|
e3e24f4939 | ||
|
|
f2064d99ad | ||
|
|
08ada50d1a | ||
|
|
ab0c770167 | ||
|
|
e1ff8213bf | ||
|
|
8f1b89cc91 | ||
|
|
87a2fe09de | ||
|
|
a4c5143ee5 | ||
|
|
c2eac572c0 | ||
|
|
7e049dfd08 | ||
|
|
2e30a103fd | ||
|
|
ac83a22ca6 | ||
|
|
cb44360b8a | ||
|
|
ac0c15a1a2 | ||
|
|
6a414d07df | ||
|
|
a33cbab7e3 | ||
|
|
2048796798 | ||
|
|
4d45196895 | ||
|
|
fa2481ea3d | ||
|
|
31f028d8d8 | ||
|
|
ed0727fa43 | ||
|
|
906b63feee | ||
|
|
bae1f2608a | ||
|
|
6f4067d50c | ||
|
|
848830a21b | ||
|
|
f63104591b | ||
|
|
93d7f2b43d | ||
|
|
b6bd32430b | ||
|
|
43b95e3a10 | ||
|
|
16e3ac5c6d | ||
|
|
25e13bd975 | ||
|
|
44e45349c2 | ||
|
|
013a93e668 | ||
|
|
37818cb1e6 | ||
|
|
8df1f7d25a | ||
|
|
ea7fae45e3 | ||
|
|
2017baaf03 | ||
|
|
5aab5c0f82 | ||
|
|
e3c85cbaae | ||
|
|
1c37dbc5f8 | ||
|
|
35598b4d6d | ||
|
|
c1cd205267 | ||
|
|
4c692c48e3 |
22
.env.base
22
.env.base
@@ -4,16 +4,30 @@ VITE_NODE_ENV=development
|
|||||||
VITE_DEV=true
|
VITE_DEV=true
|
||||||
|
|
||||||
# 请求路径
|
# 请求路径
|
||||||
VITE_BASE_URL='http://118.31.23.45:48080'
|
VITE_BASE_URL='http://localhost:48080'
|
||||||
|
# VITE_BASE_URL='http://47.98.161.246:48080'
|
||||||
|
#VITE_BASE_URL='http://114.215.207.150:48080'
|
||||||
|
|
||||||
|
# 高德地图key密钥
|
||||||
|
# 1寻驾
|
||||||
|
VITE_AMAP_KEY=ec6b7ebe38f7ff27126f7088d87a9091
|
||||||
|
# 2莳松
|
||||||
|
# VITE_AMAP_KEY=9233a9d4ffe95fb335e70834503460fa
|
||||||
|
|
||||||
|
# 小程序接口请求路劲
|
||||||
|
VITE_APPLET_URL='https://cloud.ahduima.com'
|
||||||
|
# 题库路径
|
||||||
|
VITE_TIKU_URL = 'http://47.98.161.246'
|
||||||
|
|
||||||
# 上传路径
|
# 上传路径
|
||||||
VITE_UPLOAD_URL='http://118.31.23.45:48080/admin-api/system/file/upload'
|
VITE_UPLOAD_URL='http://47.98.161.246:48080/admin-api/system/file/upload'
|
||||||
|
# VITE_UPLOAD_URL='http://114.55.169.15:48080/admin-api/system/file/upload'
|
||||||
|
|
||||||
# 接口前缀
|
# 接口前缀
|
||||||
VITE_API_BASEPATH=/dev-api
|
VITE_API_BASEPATH=/crm-api
|
||||||
|
|
||||||
# 接口地址
|
# 接口地址
|
||||||
VITE_API_URL=/admin-api
|
VITE_API_URL=/admin-api
|
||||||
|
|
||||||
# 打包路径
|
# 打包路径
|
||||||
VITE_BASE_PATH=/
|
VITE_BASE_PATH=/crm/
|
||||||
|
|||||||
6
.env.dev
6
.env.dev
@@ -7,16 +7,16 @@ VITE_DEV=false
|
|||||||
VITE_BASE_URL='http://localhost:48080'
|
VITE_BASE_URL='http://localhost:48080'
|
||||||
|
|
||||||
# 上传路径
|
# 上传路径
|
||||||
VITE_UPLOAD_URL='http://118.31.23.45:48080/admin-api/system/file/upload'
|
VITE_UPLOAD_URL='http://47.98.161.246:48080/admin-api/system/file/upload'
|
||||||
|
|
||||||
# 接口前缀
|
# 接口前缀
|
||||||
VITE_API_BASEPATH=/dev-api
|
VITE_API_BASEPATH=/crm-api
|
||||||
|
|
||||||
# 接口地址
|
# 接口地址
|
||||||
VITE_API_URL=/admin-api
|
VITE_API_URL=/admin-api
|
||||||
|
|
||||||
# 打包路径
|
# 打包路径
|
||||||
VITE_BASE_PATH=/
|
VITE_BASE_PATH=/crm/
|
||||||
|
|
||||||
# 是否删除debugger
|
# 是否删除debugger
|
||||||
VITE_DROP_DEBUGGER=false
|
VITE_DROP_DEBUGGER=false
|
||||||
|
|||||||
@@ -4,19 +4,20 @@ VITE_NODE_ENV=development
|
|||||||
VITE_DEV=true
|
VITE_DEV=true
|
||||||
|
|
||||||
# 请求路径
|
# 请求路径
|
||||||
VITE_BASE_URL='http://118.31.23.45:48080'
|
#VITE_BASE_URL='http://47.98.161.246:48080'
|
||||||
|
VITE_BASE_URL='http://localhost:48080'
|
||||||
|
|
||||||
# 上传路径
|
# 上传路径
|
||||||
VITE_UPLOAD_URL='http://118.31.23.45:48080/admin-api/system/file/upload'
|
VITE_UPLOAD_URL='http://47.98.161.246:48080/admin-api/system/file/upload'
|
||||||
|
|
||||||
# 接口前缀
|
# 接口前缀
|
||||||
VITE_API_BASEPATH=/dev-api
|
VITE_API_BASEPATH=/crm-api
|
||||||
|
|
||||||
# 接口地址
|
# 接口地址
|
||||||
VITE_API_URL=/admin-api
|
VITE_API_URL=/admin-api
|
||||||
|
|
||||||
# 打包路径
|
# 打包路径
|
||||||
VITE_BASE_PATH=/
|
VITE_BASE_PATH=/crm/
|
||||||
|
|
||||||
# 项目本地运行端口号, 与.vscode/launch.json配合
|
# 项目本地运行端口号, 与.vscode/launch.json配合
|
||||||
VITE_PORT=80
|
VITE_PORT=80
|
||||||
|
|||||||
13
.env.pro
13
.env.pro
@@ -4,13 +4,18 @@ VITE_NODE_ENV=production
|
|||||||
VITE_DEV=false
|
VITE_DEV=false
|
||||||
|
|
||||||
# 请求路径
|
# 请求路径
|
||||||
VITE_BASE_URL='http://localhost:48080'
|
VITE_BASE_URL='/crm-api'
|
||||||
|
# 高德地图key密钥
|
||||||
|
# 1寻驾
|
||||||
|
VITE_AMAP_KEY=ec6b7ebe38f7ff27126f7088d87a9091
|
||||||
|
# 2莳松
|
||||||
|
# VITE_AMAP_KEY=9233a9d4ffe95fb335e70834503460fa
|
||||||
|
|
||||||
# 上传路径
|
# 上传路径
|
||||||
VITE_UPLOAD_URL='http://118.31.23.45:48080/admin-api/system/file/upload'
|
VITE_UPLOAD_URL='/crm-api/admin-api/system/file/upload'
|
||||||
|
|
||||||
# 接口前缀
|
# 接口前缀
|
||||||
VITE_API_BASEPATH=
|
VITE_API_BASEPATH=/crm-api
|
||||||
|
|
||||||
# 接口地址
|
# 接口地址
|
||||||
VITE_API_URL=/admin-api
|
VITE_API_URL=/admin-api
|
||||||
@@ -25,7 +30,7 @@ VITE_DROP_CONSOLE=true
|
|||||||
VITE_SOURCEMAP=false
|
VITE_SOURCEMAP=false
|
||||||
|
|
||||||
# 打包路径
|
# 打包路径
|
||||||
VITE_BASE_PATH=/
|
VITE_BASE_PATH=/crm/
|
||||||
|
|
||||||
# 输出路径
|
# 输出路径
|
||||||
VITE_OUT_DIR=dist-pro
|
VITE_OUT_DIR=dist-pro
|
||||||
|
|||||||
@@ -7,10 +7,10 @@ VITE_DEV=false
|
|||||||
VITE_BASE_URL='http://api-dashboard.yudao.iocoder.cn'
|
VITE_BASE_URL='http://api-dashboard.yudao.iocoder.cn'
|
||||||
|
|
||||||
# 上传路径
|
# 上传路径
|
||||||
VITE_UPLOAD_URL='http://118.31.23.45:48080/admin-api/system/file/upload'
|
VITE_UPLOAD_URL='http://47.98.161.246:48080/admin-api/system/file/upload'
|
||||||
|
|
||||||
# 接口前缀
|
# 接口前缀
|
||||||
VITE_API_BASEPATH=
|
VITE_API_BASEPATH=/crm-api
|
||||||
|
|
||||||
# 接口地址
|
# 接口地址
|
||||||
VITE_API_URL=/admin-api
|
VITE_API_URL=/admin-api
|
||||||
@@ -25,7 +25,7 @@ VITE_DROP_CONSOLE=true
|
|||||||
VITE_SOURCEMAP=false
|
VITE_SOURCEMAP=false
|
||||||
|
|
||||||
# 打包路径
|
# 打包路径
|
||||||
VITE_BASE_PATH='http://static-vue3.yudao.iocoder.cn/'
|
VITE_BASE_PATH='/crm'
|
||||||
|
|
||||||
# 输出路径
|
# 输出路径
|
||||||
VITE_OUT_DIR=dist-stage
|
VITE_OUT_DIR=dist-stage
|
||||||
|
|||||||
@@ -7,10 +7,10 @@ VITE_DEV=false
|
|||||||
VITE_BASE_URL='http://localhost:48080'
|
VITE_BASE_URL='http://localhost:48080'
|
||||||
|
|
||||||
# 上传路径
|
# 上传路径
|
||||||
VITE_UPLOAD_URL='http://118.31.23.45:48080/admin-api/system/file/upload'
|
VITE_UPLOAD_URL='http://47.98.161.246:48080/admin-api/system/file/upload'
|
||||||
|
|
||||||
# 接口前缀
|
# 接口前缀
|
||||||
VITE_API_BASEPATH=
|
VITE_API_BASEPATH=/crm-api
|
||||||
|
|
||||||
# 接口地址
|
# 接口地址
|
||||||
VITE_API_URL=/admin-api
|
VITE_API_URL=/admin-api
|
||||||
@@ -25,7 +25,7 @@ VITE_DROP_CONSOLE=true
|
|||||||
VITE_SOURCEMAP=false
|
VITE_SOURCEMAP=false
|
||||||
|
|
||||||
# 打包路径
|
# 打包路径
|
||||||
VITE_BASE_PATH=/admin-ui-vue3/
|
VITE_BASE_PATH=/crm/
|
||||||
|
|
||||||
# 输出路径
|
# 输出路径
|
||||||
VITE_OUT_DIR=dist-dev
|
VITE_OUT_DIR=dist-dev
|
||||||
|
|||||||
@@ -7,10 +7,10 @@ VITE_DEV=false
|
|||||||
VITE_BASE_URL='http://localhost:48080'
|
VITE_BASE_URL='http://localhost:48080'
|
||||||
|
|
||||||
# 上传路径
|
# 上传路径
|
||||||
VITE_UPLOAD_URL='http://118.31.23.45:48080/admin-api/system/file/upload'
|
VITE_UPLOAD_URL='http://47.98.161.246:48080/admin-api/system/file/upload'
|
||||||
|
|
||||||
# 接口前缀
|
# 接口前缀
|
||||||
VITE_API_BASEPATH=
|
VITE_API_BASEPATH=/crm-api
|
||||||
|
|
||||||
# 接口地址
|
# 接口地址
|
||||||
VITE_API_URL=/admin-api
|
VITE_API_URL=/admin-api
|
||||||
@@ -25,7 +25,7 @@ VITE_DROP_CONSOLE=false
|
|||||||
VITE_SOURCEMAP=true
|
VITE_SOURCEMAP=true
|
||||||
|
|
||||||
# 打包路径
|
# 打包路径
|
||||||
VITE_BASE_PATH=/
|
VITE_BASE_PATH=/crm/
|
||||||
|
|
||||||
# 输出路径
|
# 输出路径
|
||||||
VITE_OUT_DIR=dist-test
|
VITE_OUT_DIR=dist-test
|
||||||
|
|||||||
15
.vscode/extensions.json
vendored
15
.vscode/extensions.json
vendored
@@ -1,15 +0,0 @@
|
|||||||
{
|
|
||||||
"recommendations": [
|
|
||||||
"voorjaar.windicss-intellisense",
|
|
||||||
"vscode-icons-team.vscode-icons",
|
|
||||||
"davidanson.vscode-markdownlint",
|
|
||||||
"stylelint.vscode-stylelint",
|
|
||||||
"dbaeumer.vscode-eslint",
|
|
||||||
"esbenp.prettier-vscode",
|
|
||||||
"vue.volar",
|
|
||||||
"lokalise.i18n-ally",
|
|
||||||
"mikestead.dotenv",
|
|
||||||
"eamodio.gitlens",
|
|
||||||
"antfu.iconify"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
16
.vscode/launch.json
vendored
16
.vscode/launch.json
vendored
@@ -1,16 +0,0 @@
|
|||||||
{
|
|
||||||
// Use IntelliSense to learn about possible attributes.
|
|
||||||
// Hover to view descriptions of existing attributes.
|
|
||||||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
|
||||||
"version": "0.2.0",
|
|
||||||
"configurations": [
|
|
||||||
{
|
|
||||||
"type": "msedge",
|
|
||||||
"request": "launch",
|
|
||||||
"name": "Launch Edge against localhost",
|
|
||||||
"url": "http://localhost",
|
|
||||||
"webRoot": "${workspaceFolder}/src",
|
|
||||||
"sourceMaps": true
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
54
.vscode/settings.json
vendored
54
.vscode/settings.json
vendored
@@ -1,54 +0,0 @@
|
|||||||
{
|
|
||||||
"typescript.tsdk": "node_modules/typescript/lib",
|
|
||||||
"prettier.enable": true,
|
|
||||||
"editor.formatOnType": true,
|
|
||||||
"editor.formatOnSave": true,
|
|
||||||
"editor.formatOnPaste": true,
|
|
||||||
"editor.codeActionsOnSave": {
|
|
||||||
"source.fixAll.eslint": "explicit"
|
|
||||||
},
|
|
||||||
"[vue]": {
|
|
||||||
"editor.defaultFormatter": "rvest.vs-code-prettier-eslint"
|
|
||||||
},
|
|
||||||
"[javascript]": {
|
|
||||||
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
|
||||||
},
|
|
||||||
"[typescript]": {
|
|
||||||
"editor.defaultFormatter": "rvest.vs-code-prettier-eslint"
|
|
||||||
},
|
|
||||||
"[json]": {
|
|
||||||
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
|
||||||
},
|
|
||||||
"[jsonc]": {
|
|
||||||
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
|
||||||
},
|
|
||||||
"[html]": {
|
|
||||||
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
|
||||||
},
|
|
||||||
"[css]": {
|
|
||||||
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
|
||||||
},
|
|
||||||
"[scss]": {
|
|
||||||
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
|
||||||
},
|
|
||||||
"i18n-ally.localesPaths": ["src/locales"],
|
|
||||||
"i18n-ally.keystyle": "nested",
|
|
||||||
"i18n-ally.sortKeys": true,
|
|
||||||
"i18n-ally.namespace": true,
|
|
||||||
"i18n-ally.enabledParsers": ["ts"],
|
|
||||||
"i18n-ally.sourceLanguage": "en",
|
|
||||||
"i18n-ally.displayLanguage": "zh-CN",
|
|
||||||
"i18n-ally.enabledFrameworks": ["vue", "react"],
|
|
||||||
"god.tsconfig": "./tsconfig.json",
|
|
||||||
"vue-i18n.i18nPaths": "src/locales",
|
|
||||||
"explorer.fileNesting.enabled": true,
|
|
||||||
"explorer.fileNesting.expand": false,
|
|
||||||
"explorer.fileNesting.patterns": {
|
|
||||||
"*.ts": "$(capture).test.ts, $(capture).test.tsx",
|
|
||||||
"*.tsx": "$(capture).test.ts, $(capture).test.tsx",
|
|
||||||
"*.env": "$(capture).env.*",
|
|
||||||
"CHANGELOG.md": "CHANGELOG*",
|
|
||||||
"package.json": "pnpm-lock.yaml,pnpm-workspace.yaml,LICENSE,.gitattributes,.gitignore,.gitpod.yml,CNAME,README*,.npmrc,.browserslistrc,vite.config.*,windi.*,tailwind.*,tsconfig.*,postcss*",
|
|
||||||
".eslintrc.js": ".eslintignore,.eslintrc-*,.prettierignore,.stylelintignore,.commitlintrc.js,.prettierrc.js,.stylelint*,stylelint*,prettier.*,.editorconfig"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -141,7 +141,9 @@
|
|||||||
<script type="module" src="/src/main.js"></script>
|
<script type="module" src="/src/main.js"></script>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
window._AMapSecurityConfig = {
|
window._AMapSecurityConfig = {
|
||||||
securityJsCode: 'a2f0d14a4c5c1e387f9271b1045a781d' // 你的密钥
|
// securityJsCode: 'f653df5a2c5f44ae68faaab6f6a6b8ab' // 你的密钥
|
||||||
|
securityJsCode: '420463f2f8c849ab78b9d29548aff7d3' // 寻驾密钥
|
||||||
|
// securityJsCode: 'ab6bcce5d153c4e5353b40e5b0ce6fee' // 莳松密钥
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
@@ -39,6 +39,7 @@
|
|||||||
"@vueuse/core": "^10.1.2",
|
"@vueuse/core": "^10.1.2",
|
||||||
"@wangeditor/editor": "^5.1.23",
|
"@wangeditor/editor": "^5.1.23",
|
||||||
"@wangeditor/editor-for-vue": "^5.1.10",
|
"@wangeditor/editor-for-vue": "^5.1.10",
|
||||||
|
"@wangeditor/plugin-upload-attachment": "^1.1.0",
|
||||||
"@zxcvbn-ts/core": "^3.0.1",
|
"@zxcvbn-ts/core": "^3.0.1",
|
||||||
"animate.css": "^4.1.1",
|
"animate.css": "^4.1.1",
|
||||||
"axios": "^1.4.0",
|
"axios": "^1.4.0",
|
||||||
@@ -51,7 +52,7 @@
|
|||||||
"diagram-js": "^11.6.0",
|
"diagram-js": "^11.6.0",
|
||||||
"echarts": "^5.4.2",
|
"echarts": "^5.4.2",
|
||||||
"echarts-wordcloud": "^2.1.0",
|
"echarts-wordcloud": "^2.1.0",
|
||||||
"element-plus": "2.3.4",
|
"element-plus": "2.9.4",
|
||||||
"fast-xml-parser": "^4.2.2",
|
"fast-xml-parser": "^4.2.2",
|
||||||
"highlight.js": "^11.8.0",
|
"highlight.js": "^11.8.0",
|
||||||
"intro.js": "^7.0.1",
|
"intro.js": "^7.0.1",
|
||||||
@@ -69,9 +70,11 @@
|
|||||||
"vue": "3.3.4",
|
"vue": "3.3.4",
|
||||||
"vue-amap": "^0.5.10",
|
"vue-amap": "^0.5.10",
|
||||||
"vue-dompurify-html": "^5.0.1",
|
"vue-dompurify-html": "^5.0.1",
|
||||||
|
"vue-draggable-plus": "^0.6.0",
|
||||||
"vue-i18n": "9.2.2",
|
"vue-i18n": "9.2.2",
|
||||||
"vue-router": "^4.2.1",
|
"vue-router": "^4.2.1",
|
||||||
"vue-types": "^5.0.3",
|
"vue-types": "^5.0.3",
|
||||||
|
"vue3-tree-org": "^4.2.2",
|
||||||
"vuedraggable": "^4.1.0",
|
"vuedraggable": "^4.1.0",
|
||||||
"web-storage-cache": "^1.1.1",
|
"web-storage-cache": "^1.1.1",
|
||||||
"xe-utils": "^3.5.7",
|
"xe-utils": "^3.5.7",
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 7.7 KiB |
@@ -2,19 +2,19 @@
|
|||||||
import { isDark } from '@/utils/is'
|
import { isDark } from '@/utils/is'
|
||||||
import { useAppStore } from '@/store/modules/app'
|
import { useAppStore } from '@/store/modules/app'
|
||||||
import { useDesign } from '@/hooks/web/useDesign'
|
import { useDesign } from '@/hooks/web/useDesign'
|
||||||
import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
|
import { CACHE_KEY } from '@/hooks/web/useCache'
|
||||||
import routerSearch from '@/components/RouterSearch/index.vue'
|
import routerSearch from '@/components/RouterSearch/index.vue'
|
||||||
|
import cache from '@/plugins/cache'
|
||||||
|
|
||||||
const { getPrefixCls } = useDesign()
|
const { getPrefixCls } = useDesign()
|
||||||
const prefixCls = getPrefixCls('app')
|
const prefixCls = getPrefixCls('app')
|
||||||
const appStore = useAppStore()
|
const appStore = useAppStore()
|
||||||
const currentSize = computed(() => appStore.getCurrentSize)
|
const currentSize = computed(() => appStore.getCurrentSize)
|
||||||
const greyMode = computed(() => appStore.getGreyMode)
|
const greyMode = computed(() => appStore.getGreyMode)
|
||||||
const { wsCache } = useCache()
|
|
||||||
|
|
||||||
// 根据浏览器当前主题设置系统主题色
|
// 根据浏览器当前主题设置系统主题色
|
||||||
const setDefaultTheme = () => {
|
const setDefaultTheme = () => {
|
||||||
let isDarkTheme = wsCache.get(CACHE_KEY.IS_DARK)
|
let isDarkTheme = cache.local.get(CACHE_KEY.IS_DARK)
|
||||||
if (isDarkTheme === null) {
|
if (isDarkTheme === null) {
|
||||||
isDarkTheme = isDark()
|
isDarkTheme = isDark()
|
||||||
}
|
}
|
||||||
|
|||||||
39
src/api/clue/afterSale.js
Normal file
39
src/api/clue/afterSale.js
Normal file
@@ -0,0 +1,39 @@
|
|||||||
|
import request from '@/config/axios'
|
||||||
|
|
||||||
|
// 查询(精简)列表
|
||||||
|
export const getAfterSaleList = async (params) => {
|
||||||
|
return await request.get({ url: '/admin-api/crm/sign-after-sale/list', params })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 查询(精简)列表
|
||||||
|
export const getAfterSalePage = async (params) => {
|
||||||
|
return await request.get({ url: '/admin-api/crm/sign-after-sale/page', params })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 新增
|
||||||
|
export const createAfterSale = async (data) => {
|
||||||
|
return await request.post({
|
||||||
|
url: '/admin-api/crm/sign-after-sale/create',
|
||||||
|
data,
|
||||||
|
isSubmitForm: true
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 审核
|
||||||
|
export const auditAfterSale = async (data) => {
|
||||||
|
return await request.post({ url: '/admin-api/crm/sign-after-sale/check', data })
|
||||||
|
}
|
||||||
|
|
||||||
|
export const batchAuditAfterSale = async (data) => {
|
||||||
|
return await request.post({ url: '/admin-api/crm/sign-after-sale/batch/check', data })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 撤销
|
||||||
|
export const cancelApplyAfterSale = async (data) => {
|
||||||
|
return await request.post({ url: '/admin-api/crm/sign-after-sale/revoke', params: data })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 查询详情
|
||||||
|
export const getAfterSaleDetail = async (params) => {
|
||||||
|
return await request.get({ url: '/admin-api/crm/sign-after-sale/get', params })
|
||||||
|
}
|
||||||
@@ -2,32 +2,32 @@ import request from '@/config/axios'
|
|||||||
|
|
||||||
// 创建
|
// 创建
|
||||||
export const createField = (data) => {
|
export const createField = (data) => {
|
||||||
return request.post({ url: '/admin-api/crm/clue-param/create', data })
|
return request.post({ url: '/admin-api/crm/param/create', data: { ...data, module: 1 } })
|
||||||
}
|
}
|
||||||
|
|
||||||
// 更新
|
// 更新
|
||||||
export const updateField = (data) => {
|
export const updateField = (data) => {
|
||||||
return request.put({ url: '/admin-api/crm/clue-param/update', data })
|
return request.put({ url: '/admin-api/crm/param/update', data })
|
||||||
}
|
}
|
||||||
|
|
||||||
// 删除
|
// 删除
|
||||||
export const deleteField = (id) => {
|
export const deleteField = (id) => {
|
||||||
return request.delete({ url: `/admin-api/crm/clue-param/delete?id=${id}` })
|
return request.delete({ url: `/admin-api/crm/param/delete?id=${id}` })
|
||||||
}
|
}
|
||||||
|
|
||||||
// 获得
|
// 获得
|
||||||
export const getField = (id) => {
|
export const getField = (id) => {
|
||||||
return request.get({ url: `/admin-api/crm/clue-param/get?id=${id}` })
|
return request.get({ url: `/admin-api/crm/param/get?id=${id}` })
|
||||||
}
|
}
|
||||||
|
|
||||||
// 获得精简信息列表
|
// 获得精简信息列表
|
||||||
export const getSimpleFieldList = () => {
|
export const getSimpleFieldList = () => {
|
||||||
return request.get({ url: '/admin-api/crm/clue-param/simple-list' })
|
return request.get({ url: '/admin-api/crm/param/simple-list', params: { module: 1 } })
|
||||||
}
|
}
|
||||||
|
|
||||||
// 获取自定义字段
|
// 获取自定义字段
|
||||||
export const getDiyFieldList = () => {
|
export const getDiyFieldList = () => {
|
||||||
return request.get({ url: '/admin-api/crm/clue-param/get-diy-param' })
|
return request.get({ url: '/admin-api/crm/param/get-diy-param', params: { module: 1 } })
|
||||||
}
|
}
|
||||||
|
|
||||||
// 状态修改
|
// 状态修改
|
||||||
@@ -36,5 +36,5 @@ export const updateFieldStatus = (signParamId, status) => {
|
|||||||
signParamId,
|
signParamId,
|
||||||
status
|
status
|
||||||
}
|
}
|
||||||
return request.put({ url: '/admin-api/crm/clue-param/status/update', data: data })
|
return request.put({ url: '/admin-api/crm/param/status/update', data: data })
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,9 +10,14 @@ export const deleteClueGainRule = (id) => {
|
|||||||
return request.delete({ url: `/admin-api/crm/sch-clue-gain-rule/delete?id=${id}` })
|
return request.delete({ url: `/admin-api/crm/sch-clue-gain-rule/delete?id=${id}` })
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 线索获取规则保存
|
||||||
|
export const saveClueGainRule = (data) => {
|
||||||
|
return request.put({ url: '/admin-api/crm/sch-clue-gain-rule/batchUpdate', data })
|
||||||
|
}
|
||||||
|
|
||||||
// 线索规则
|
// 线索规则
|
||||||
export const getClueDistributeRuleList = () => {
|
export const getClueDistributeRuleByUser = (params) => {
|
||||||
return request.get({ url: '/admin-api/crm/sch-clue-gain-rule/list' })
|
return request.get({ url: '/admin-api/crm/sch-clue-distribution-rule/queryByUserId', params })
|
||||||
}
|
}
|
||||||
|
|
||||||
// 删除
|
// 删除
|
||||||
|
|||||||
21
src/api/clue/delivery.js
Normal file
21
src/api/clue/delivery.js
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
import request from '@/config/axios'
|
||||||
|
|
||||||
|
// 查询(精简)列表
|
||||||
|
export const getDeliveryList = async (params) => {
|
||||||
|
return await request.get({ url: '/admin-api/crm/sign-send/list', params })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 查询分页列表
|
||||||
|
export const getDeliveryPage = async (params) => {
|
||||||
|
return await request.get({ url: '/admin-api/crm/sign-send/page', params })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 新增
|
||||||
|
export const createDelivery = async (data) => {
|
||||||
|
return await request.post({ url: '/admin-api/crm/sign-send/create', data, isSubmitForm: true })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 查询详情
|
||||||
|
export const getDeliveryDetail = async (params) => {
|
||||||
|
return await request.get({ url: '/admin-api/crm/sign-send/get', params })
|
||||||
|
}
|
||||||
30
src/api/clue/extraFee.js
Normal file
30
src/api/clue/extraFee.js
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
import request from '@/config/axios'
|
||||||
|
|
||||||
|
// 获得列表
|
||||||
|
export const getExtraFeePage = (params) => {
|
||||||
|
return request.get({ url: '/admin-api/crm/extra-pay/page', params })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 创建
|
||||||
|
export const createExtraFee = (data) => {
|
||||||
|
return request.post({ url: '/admin-api/crm/extra-pay/create', data, isSubmitForm: true })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 更新
|
||||||
|
export const updateExtraFee = (data) => {
|
||||||
|
return request.put({ url: '/admin-api/crm/extra-pay/update', data })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 删除
|
||||||
|
export const deleteExtraFee = (id) => {
|
||||||
|
return request.delete({ url: `/admin-api/crm/extra-pay/delete?id=${id}` })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 获得
|
||||||
|
export const getExtraFee = (id) => {
|
||||||
|
return request.get({ url: `/admin-api/crm/extra-pay/get?id=${id}` })
|
||||||
|
}
|
||||||
|
|
||||||
|
export const getExtraFeeSimpleList = async () => {
|
||||||
|
return await request.get({ url: '/admin-api/crm/extra-pay/simple-list' })
|
||||||
|
}
|
||||||
@@ -7,7 +7,11 @@ export const getFollowList = async (params) => {
|
|||||||
|
|
||||||
// 新增
|
// 新增
|
||||||
export const createFollow = async (data) => {
|
export const createFollow = async (data) => {
|
||||||
return await request.post({ url: '/admin-api/crm/clue-follow-record/create', data: data })
|
return await request.post({
|
||||||
|
url: '/admin-api/crm/clue-follow-record/create',
|
||||||
|
data: data,
|
||||||
|
isSubmitForm: true
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
// 删除
|
// 删除
|
||||||
|
|||||||
@@ -6,8 +6,8 @@ export const getSimpleClueList = async () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 查询列表
|
// 查询列表
|
||||||
export const getCluePage = async (params) => {
|
export const getCluePage = async (data) => {
|
||||||
return await request.get({ url: '/admin-api/crm/sch-clue/page', params })
|
return await request.post({ url: '/admin-api/crm/sch-clue/page', data })
|
||||||
}
|
}
|
||||||
|
|
||||||
// 查询详情
|
// 查询详情
|
||||||
@@ -17,7 +17,11 @@ export const getClue = async (id) => {
|
|||||||
|
|
||||||
// 新增
|
// 新增
|
||||||
export const createClue = async (data) => {
|
export const createClue = async (data) => {
|
||||||
return await request.post({ url: '/admin-api/crm/sch-clue/create', data: data })
|
return await request.post({
|
||||||
|
url: '/admin-api/crm/sch-clue/create',
|
||||||
|
data: data,
|
||||||
|
isSubmitForm: true
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
// 修改
|
// 修改
|
||||||
@@ -44,3 +48,17 @@ export const getClueCount = async () => {
|
|||||||
export const getOpearateRecord = async (params) => {
|
export const getOpearateRecord = async (params) => {
|
||||||
return await request.get({ url: '/admin-api/crm/clue-operate-record/list', params })
|
return await request.get({ url: '/admin-api/crm/clue-operate-record/list', params })
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 获取公海线索
|
||||||
|
export const getPublicClue = async (data) => {
|
||||||
|
return await request.put({ url: '/admin-api/crm/sch-clue/public/save', data })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 获得线索跟进用户信息
|
||||||
|
export const getFollowUserList = async (params) => {
|
||||||
|
return await request.get({ url: '/admin-api/crm/sch-clue/get-follow-user', params })
|
||||||
|
}
|
||||||
|
|
||||||
|
export const batchUpdateFollowUser = async (data) => {
|
||||||
|
return await request.put({ url: '/admin-api/crm/sch-clue/batchUpdateFollowUser', data })
|
||||||
|
}
|
||||||
|
|||||||
@@ -2,32 +2,32 @@ import request from '@/config/axios'
|
|||||||
|
|
||||||
// 创建
|
// 创建
|
||||||
export const createField = (data) => {
|
export const createField = (data) => {
|
||||||
return request.post({ url: '/admin-api/crm/sign-param/create', data })
|
return request.post({ url: '/admin-api/crm/param/create', data: { ...data, module: 2 } })
|
||||||
}
|
}
|
||||||
|
|
||||||
// 更新
|
// 更新
|
||||||
export const updateField = (data) => {
|
export const updateField = (data) => {
|
||||||
return request.put({ url: '/admin-api/crm/sign-param/update', data })
|
return request.put({ url: '/admin-api/crm/param/update', data })
|
||||||
}
|
}
|
||||||
|
|
||||||
// 删除
|
// 删除
|
||||||
export const deleteField = (id) => {
|
export const deleteField = (id) => {
|
||||||
return request.delete({ url: `/admin-api/crm/sign-param/delete?id=${id}` })
|
return request.delete({ url: `/admin-api/crm/param/delete?id=${id}` })
|
||||||
}
|
}
|
||||||
|
|
||||||
// 获得
|
// 获得
|
||||||
export const getField = (id) => {
|
export const getField = (id) => {
|
||||||
return request.get({ url: `/admin-api/crm/sign-param/get?id=${id}` })
|
return request.get({ url: `/admin-api/crm/param/get?id=${id}` })
|
||||||
}
|
}
|
||||||
|
|
||||||
// 获得精简信息列表
|
// 获得精简信息列表
|
||||||
export const getSimpleFieldList = () => {
|
export const getSimpleFieldList = () => {
|
||||||
return request.get({ url: '/admin-api/crm/sign-param/simple-list' })
|
return request.get({ url: '/admin-api/crm/param/simple-list', params: { module: 2 } })
|
||||||
}
|
}
|
||||||
|
|
||||||
// 获取自定义字段
|
// 获取自定义字段
|
||||||
export const getDiyFieldList = () => {
|
export const getDiyFieldList = () => {
|
||||||
return request.get({ url: '/admin-api/crm/sign-param/get-diy-param' })
|
return request.get({ url: '/admin-api/crm/param/get-diy-param', params: { module: 2 } })
|
||||||
}
|
}
|
||||||
|
|
||||||
// 状态修改
|
// 状态修改
|
||||||
@@ -36,5 +36,5 @@ export const updateFieldStatus = (signParamId, status) => {
|
|||||||
signParamId,
|
signParamId,
|
||||||
status
|
status
|
||||||
}
|
}
|
||||||
return request.put({ url: '/admin-api/crm/sign-param/status/update', data: data })
|
return request.put({ url: '/admin-api/crm/param/status/update', data: data })
|
||||||
}
|
}
|
||||||
|
|||||||
52
src/api/clue/payment.js
Normal file
52
src/api/clue/payment.js
Normal file
@@ -0,0 +1,52 @@
|
|||||||
|
import request from '@/config/axios'
|
||||||
|
|
||||||
|
// 查询(精简)列表
|
||||||
|
export const getPaymentList = async (params) => {
|
||||||
|
return await request.get({ url: '/admin-api/crm/sign-pay-record/list', params })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 查询列表
|
||||||
|
export const getPaymentPage = async (params) => {
|
||||||
|
return await request.get({ url: '/admin-api/crm/sign-pay-record/page', params })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 新增
|
||||||
|
export const createPayment = async (data) => {
|
||||||
|
return await request.post({
|
||||||
|
url: '/admin-api/crm/sign-pay-record/create',
|
||||||
|
data,
|
||||||
|
isSubmitForm: true
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 审核
|
||||||
|
export const auditPayment = async (data) => {
|
||||||
|
return await request.post({ url: '/admin-api/crm/sign-pay-record/check', data })
|
||||||
|
}
|
||||||
|
|
||||||
|
export const batchAuditPayment = async (data) => {
|
||||||
|
return await request.post({ url: '/admin-api/crm/sign-pay-record/batch/check', data })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 撤销
|
||||||
|
export const cancelApplyPayment = async (data) => {
|
||||||
|
return await request.post({ url: '/admin-api/crm/sign-pay-record/revoke', params: data })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 查询详情
|
||||||
|
export const getPaymentDetail = async (params) => {
|
||||||
|
return await request.get({ url: '/admin-api/crm/sign-pay-record/get', params })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 撤销
|
||||||
|
export const updateApplyPayment = async (data) => {
|
||||||
|
return await request.post({
|
||||||
|
url: '/admin-api/crm/sign-pay-record/updateRecordMoney',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 导出
|
||||||
|
export const exportPayment = async (params) => {
|
||||||
|
return await request.download({ url: '/admin-api/crm/sign-pay-record/export-excel', params })
|
||||||
|
}
|
||||||
31
src/api/clue/settle.js
Normal file
31
src/api/clue/settle.js
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
import request from '@/config/axios'
|
||||||
|
|
||||||
|
// 查询招生结算列表
|
||||||
|
export const getSchoolSettlePage = async (params) => {
|
||||||
|
return await request.get({ url: '/admin-api/crm/sign-settlement/sch/page', params })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 查询招生结算详情
|
||||||
|
export const getSchoolSettleDetail = async (id) => {
|
||||||
|
return await request.get({ url: '/admin-api/crm/sign-settlement/sch/get?id=' + id })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 查询进销存结算列表
|
||||||
|
export const getMallSettlePage = async (params) => {
|
||||||
|
return await request.get({ url: '/admin-api/crm/sign-settlement/erp/page', params })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 查询进销存结算详情
|
||||||
|
export const getMallSettleDetail = async (id) => {
|
||||||
|
return await request.get({ url: '/admin-api/crm/sign-settlement/erp/get?id=' + id })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 批量结算
|
||||||
|
export const batchSaveSettle = async (data) => {
|
||||||
|
return await request.post({ url: '/admin-api/crm/sign-settlement/batch/save', data })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 修改结算
|
||||||
|
export const updateSettle = async (data) => {
|
||||||
|
return await request.post({ url: '/admin-api/crm/sign-settlement/update/money', data })
|
||||||
|
}
|
||||||
63
src/api/clue/sign.js
Normal file
63
src/api/clue/sign.js
Normal file
@@ -0,0 +1,63 @@
|
|||||||
|
import request from '@/config/axios'
|
||||||
|
|
||||||
|
// 查询列表
|
||||||
|
export const getSignPage = async (data) => {
|
||||||
|
return await request.post({ url: '/admin-api/crm/sign/page', data })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 查询详情
|
||||||
|
export const getSign = async (id) => {
|
||||||
|
return await request.get({ url: '/admin-api/crm/sign/get?id=' + id })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 新增
|
||||||
|
export const createSign = async (data) => {
|
||||||
|
return await request.post({ url: '/admin-api/crm/sign/create', data: data, isSubmitForm: true })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 取消登记
|
||||||
|
export const cancelDeal = async (id) => {
|
||||||
|
return await request.delete({ url: '/admin-api/crm/sign/delete?id=' + id })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 新增支出
|
||||||
|
export const signAddPay = async (data) => {
|
||||||
|
return await request.post({ url: '/admin-api/crm/sign/extra-pay/save', data: data })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 查询支出
|
||||||
|
export const getSignExtraPayList = async (params) => {
|
||||||
|
return await request.get({ url: '/admin-api/crm/sign/extra-pay/get', params })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 安装状态修改
|
||||||
|
export const updateInstallStatus = (signIdList, installStatus) => {
|
||||||
|
const data = {
|
||||||
|
signIdList,
|
||||||
|
installStatus
|
||||||
|
}
|
||||||
|
return request.post({ url: '/admin-api/crm/sign/install-status/batchSave', data: data })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 修改生产状态
|
||||||
|
export const updateProduceStatus = (data) => {
|
||||||
|
return request.put({ url: '/admin-api/crm/sign-prodcut/update', data: data })
|
||||||
|
}
|
||||||
|
|
||||||
|
export const updateProduceSort = (data) => {
|
||||||
|
return request.post({ url: '/admin-api/crm/sign-prodcut/adjust/sort', data: data })
|
||||||
|
}
|
||||||
|
|
||||||
|
export const getSignProfit = (params) => {
|
||||||
|
return request.get({ url: '/admin-api/crm/sign/profit', params })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 新增产品
|
||||||
|
export const addOrderProduct = (data) => {
|
||||||
|
return request.post({ url: '/admin-api/crm/sign-prodcut/create', data })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 新增产品
|
||||||
|
export const removeOrderProduct = (id) => {
|
||||||
|
return request.delete({ url: '/admin-api/crm/sign-prodcut/delete?id=' + id })
|
||||||
|
}
|
||||||
@@ -7,7 +7,7 @@ export const getSkillPage = (params) => {
|
|||||||
|
|
||||||
// 创建
|
// 创建
|
||||||
export const createSkill = (data) => {
|
export const createSkill = (data) => {
|
||||||
return request.post({ url: '/admin-api/crm/skill/create', data })
|
return request.post({ url: '/admin-api/crm/skill/create', data, isSubmitForm: true })
|
||||||
}
|
}
|
||||||
|
|
||||||
// 更新
|
// 更新
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ export const getSource = async (id) => {
|
|||||||
|
|
||||||
// 新增
|
// 新增
|
||||||
export const createSource = async (data) => {
|
export const createSource = async (data) => {
|
||||||
return await request.post({ url: '/admin-api/crm/source/create', data: data })
|
return await request.post({ url: '/admin-api/crm/source/create', data: data, isSubmitForm: true })
|
||||||
}
|
}
|
||||||
|
|
||||||
// 修改
|
// 修改
|
||||||
|
|||||||
20
src/api/home/index.js
Normal file
20
src/api/home/index.js
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
import request from '@/config/axios'
|
||||||
|
// 线索情况
|
||||||
|
export const getUserClueCount = async (params) => {
|
||||||
|
return await request.get({ url: '/admin-api/crm/home/get-user-count', params })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 成交率
|
||||||
|
export const getClueSignSignRate = async (params) => {
|
||||||
|
return await request.get({ url: '/admin-api/crm/home/get-sign-rate', params })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 成交率
|
||||||
|
export const getClueSignSignRank = async (params) => {
|
||||||
|
return await request.get({ url: '/admin-api/crm/home/get-sign-top10', params })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 成交率
|
||||||
|
export const getClueFollowRank = async (params) => {
|
||||||
|
return await request.get({ url: '/admin-api/crm/home/get-follow-top10', params })
|
||||||
|
}
|
||||||
8
src/api/home/reportChannel.js
Normal file
8
src/api/home/reportChannel.js
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
import request from '@/config/axios'
|
||||||
|
export const getList = async (data) => {
|
||||||
|
return await request.post({ url: '/admin-api/crm/sch-clue/clueQuality/report', data })
|
||||||
|
}
|
||||||
|
|
||||||
|
export const getPeriodList = async (data) => {
|
||||||
|
return await request.post({ url: '/admin-api/crm/sch-clue/clueQuality/period/report', data })
|
||||||
|
}
|
||||||
8
src/api/home/reportSaler.js
Normal file
8
src/api/home/reportSaler.js
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
import request from '@/config/axios'
|
||||||
|
export const getInfo = async (data) => {
|
||||||
|
return await request.post({ url: '/admin-api/crm/sch-clue/sale/report/detail', data })
|
||||||
|
}
|
||||||
|
|
||||||
|
export const getList = async (data) => {
|
||||||
|
return await request.post({ url: '/admin-api/crm/sch-clue/sale/report', data })
|
||||||
|
}
|
||||||
8
src/api/home/reportSignDetail.js
Normal file
8
src/api/home/reportSignDetail.js
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
import request from '@/config/axios'
|
||||||
|
export const getInfo = async (data) => {
|
||||||
|
return await request.post({ url: '/admin-api/crm/sch-clue/signData/report/one', data })
|
||||||
|
}
|
||||||
|
|
||||||
|
export const getList = async (data) => {
|
||||||
|
return await request.post({ url: '/admin-api/crm/sch-clue/signData/report/two', data })
|
||||||
|
}
|
||||||
4
src/api/home/reportSignRate.js
Normal file
4
src/api/home/reportSignRate.js
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
import request from '@/config/axios'
|
||||||
|
export const getList = async (data) => {
|
||||||
|
return await request.post({ url: '/admin-api/crm/sch-clue/signRate/report', data })
|
||||||
|
}
|
||||||
42
src/api/kpi/index.js
Normal file
42
src/api/kpi/index.js
Normal file
@@ -0,0 +1,42 @@
|
|||||||
|
import request from '@/config/axios'
|
||||||
|
|
||||||
|
// 创建
|
||||||
|
export const createKpi = (data) => {
|
||||||
|
return request.post({
|
||||||
|
url: '/admin-api/oa/examine-configuration/create',
|
||||||
|
data,
|
||||||
|
isSubmitForm: true
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 修改
|
||||||
|
export const updateKpi = (data) => {
|
||||||
|
return request.put({ url: '/admin-api/oa/examine-configuration/update', data })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 修改状态
|
||||||
|
export const updateKpiStatus = (data) => {
|
||||||
|
return request.put({ url: '/admin-api/oa/examine-configuration/status/update', data })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 分页
|
||||||
|
export const getKpiPage = (params) => {
|
||||||
|
return request.get({ url: '/admin-api/oa/examine-configuration/page', params })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 详情
|
||||||
|
export const getKpiDetail = (id) => {
|
||||||
|
return request.get({ url: '/admin-api/oa/examine-configuration/get', params: { id } })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 删除
|
||||||
|
export const deleteKpi = (id) => {
|
||||||
|
return request.delete({ url: '/admin-api/oa/examine-configuration/delete', params: { id } })
|
||||||
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
export const getKpiEmployees = () => {
|
||||||
|
return request.get({
|
||||||
|
url: '/admin-api/oa/employee/examinedEmployees'
|
||||||
|
})
|
||||||
|
}
|
||||||
41
src/api/kpi/score.js
Normal file
41
src/api/kpi/score.js
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
import request from '@/config/axios'
|
||||||
|
|
||||||
|
// 打分数据
|
||||||
|
export const getKpiEmployees = (params) => {
|
||||||
|
return request.get({ url: '/admin-api/oa/examine-score/getExamineUserExamineScore', params })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 保存考勤打分数据
|
||||||
|
export const saveKpiScore = (data) => {
|
||||||
|
return request.put({ url: '/admin-api/oa/examine-score/update', data })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 删除考核项
|
||||||
|
export const deleteKpiItem = (params) => {
|
||||||
|
return request.delete({ url: '/admin-api/oa/examine-score/delete', params })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 考评分页数据
|
||||||
|
export const getScorePage = (params) => {
|
||||||
|
return request.get({ url: '/admin-api/oa/examine-period/page', params })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 封存
|
||||||
|
export const saveScoreRecord = (params) => {
|
||||||
|
return request.get({ url: '/admin-api/oa/examine-period/confirm', params })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 查询周期是否已封存
|
||||||
|
export const getKpiPeriodStatus = (params) => {
|
||||||
|
return request.get({ url: '/admin-api/oa/examine-period/getExaminePeriodByPeriod', params })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 查询考核记录
|
||||||
|
export const getScoreRecord = (data) => {
|
||||||
|
return request.post({ url: '/admin-api/oa/examine-result/periodPage', data })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 查详情
|
||||||
|
export const getScoreDetail = (params) => {
|
||||||
|
return request.get({ url: '/admin-api/oa/examine-result/detail', params })
|
||||||
|
}
|
||||||
@@ -71,3 +71,10 @@ export const getAppInfo = (instanceId: number) => {
|
|||||||
url: '/admin-api/system/serviceInstance/getInstanceInfo?instanceId=' + instanceId
|
url: '/admin-api/system/serviceInstance/getInstanceInfo?instanceId=' + instanceId
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export const bindWx = (data: any) => {
|
||||||
|
return request.post({
|
||||||
|
url: '/admin-api/system/user/bind/wx',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ export interface BrandVO {
|
|||||||
|
|
||||||
// 创建商品品牌
|
// 创建商品品牌
|
||||||
export const createBrand = (data: BrandVO) => {
|
export const createBrand = (data: BrandVO) => {
|
||||||
return request.post({ url: '/admin-api/crm/erp-product-brand/create', data })
|
return request.post({ url: '/admin-api/crm/erp-product-brand/create', data, isSubmitForm: true })
|
||||||
}
|
}
|
||||||
|
|
||||||
// 更新商品品牌
|
// 更新商品品牌
|
||||||
|
|||||||
@@ -36,7 +36,11 @@ export interface CategoryVO {
|
|||||||
|
|
||||||
// 创建商品分类
|
// 创建商品分类
|
||||||
export const createCategory = (data: CategoryVO) => {
|
export const createCategory = (data: CategoryVO) => {
|
||||||
return request.post({ url: '/admin-api/crm/erp-product-category/create', data })
|
return request.post({
|
||||||
|
url: '/admin-api/crm/erp-product-category/create',
|
||||||
|
data,
|
||||||
|
isSubmitForm: true
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
// 更新商品分类
|
// 更新商品分类
|
||||||
|
|||||||
@@ -11,7 +11,11 @@ export const getProduct = async (id) => {
|
|||||||
|
|
||||||
// 新增
|
// 新增
|
||||||
export const createProduct = async (data) => {
|
export const createProduct = async (data) => {
|
||||||
return await request.post({ url: '/admin-api/crm/erp-product/create', data: data })
|
return await request.post({
|
||||||
|
url: '/admin-api/crm/erp-product/create',
|
||||||
|
data: data,
|
||||||
|
isSubmitForm: true
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
// 修改
|
// 修改
|
||||||
|
|||||||
44
src/api/mall/product/productField.js
Normal file
44
src/api/mall/product/productField.js
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
import request from '@/config/axios'
|
||||||
|
|
||||||
|
// 创建
|
||||||
|
export const createField = (data) => {
|
||||||
|
return request.post({
|
||||||
|
url: '/admin-api/crm/param/create',
|
||||||
|
data: { ...data, module: 3 },
|
||||||
|
isSubmitForm: true
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 更新
|
||||||
|
export const updateField = (data) => {
|
||||||
|
return request.put({ url: '/admin-api/crm/param/update', data })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 删除
|
||||||
|
export const deleteField = (id) => {
|
||||||
|
return request.delete({ url: `/admin-api/crm/param/delete?id=${id}` })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 获得
|
||||||
|
export const getField = (id) => {
|
||||||
|
return request.get({ url: `/admin-api/crm/param/get?id=${id}` })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 获得精简信息列表
|
||||||
|
export const getSimpleFieldList = () => {
|
||||||
|
return request.get({ url: '/admin-api/crm/param/simple-list', params: { module: 3 } })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 获取自定义字段
|
||||||
|
export const getDiyFieldList = () => {
|
||||||
|
return request.get({ url: '/admin-api/crm/param/get-diy-param', params: { module: 3 } })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 状态修改
|
||||||
|
export const updateFieldStatus = (signParamId, status) => {
|
||||||
|
const data = {
|
||||||
|
signParamId,
|
||||||
|
status
|
||||||
|
}
|
||||||
|
return request.put({ url: '/admin-api/crm/param/status/update', data: data })
|
||||||
|
}
|
||||||
@@ -42,7 +42,11 @@ export interface PropertyValueDetailVO {
|
|||||||
|
|
||||||
// 创建属性项
|
// 创建属性项
|
||||||
export const createProperty = (data: PropertyVO) => {
|
export const createProperty = (data: PropertyVO) => {
|
||||||
return request.post({ url: '/admin-api/crm/erp-product-property/create', data })
|
return request.post({
|
||||||
|
url: '/admin-api/crm/erp-product-property/create',
|
||||||
|
data,
|
||||||
|
isSubmitForm: true
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
// 更新属性项
|
// 更新属性项
|
||||||
|
|||||||
@@ -6,7 +6,11 @@ export const getPurchasePage = async (params) => {
|
|||||||
|
|
||||||
// 新增
|
// 新增
|
||||||
export const createPurchase = async (data) => {
|
export const createPurchase = async (data) => {
|
||||||
return await request.post({ url: '/admin-api/crm/erp-purchase/create', data: data })
|
return await request.post({
|
||||||
|
url: '/admin-api/crm/erp-purchase/create',
|
||||||
|
data: data,
|
||||||
|
isSubmitForm: true
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
// 修改
|
// 修改
|
||||||
@@ -20,6 +24,6 @@ export const deletePurchase = async (id) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 审核
|
// 审核
|
||||||
export const auditPurchase = async (params) => {
|
export const auditPurchase = async (data) => {
|
||||||
return await request.get({ url: '/admin-api/crm/erp-purchase/audit', params })
|
return await request.post({ url: '/admin-api/crm/erp-purchase/audit', data })
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,7 +6,11 @@ export const getWarehousePage = async (params) => {
|
|||||||
|
|
||||||
// 新增
|
// 新增
|
||||||
export const createWarehouse = async (data) => {
|
export const createWarehouse = async (data) => {
|
||||||
return await request.post({ url: '/admin-api/crm/erp-warehouse/create', data: data })
|
return await request.post({
|
||||||
|
url: '/admin-api/crm/erp-warehouse/create',
|
||||||
|
data: data,
|
||||||
|
isSubmitForm: true
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
// 修改
|
// 修改
|
||||||
@@ -38,3 +42,8 @@ export const getInventoryList = async (params) => {
|
|||||||
export const getInventoryRecord = async (params) => {
|
export const getInventoryRecord = async (params) => {
|
||||||
return await request.get({ url: '/admin-api/crm/erp-inventory-record/page', params })
|
return await request.get({ url: '/admin-api/crm/erp-inventory-record/page', params })
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 获取剩余库存
|
||||||
|
export const getRemainInventoryList = async (params) => {
|
||||||
|
return await request.get({ url: '/admin-api/crm/erp-inventory-detail/list', params })
|
||||||
|
}
|
||||||
|
|||||||
38
src/api/okr/comment.js
Normal file
38
src/api/okr/comment.js
Normal file
@@ -0,0 +1,38 @@
|
|||||||
|
import request from '@/config/axios'
|
||||||
|
|
||||||
|
// 创建
|
||||||
|
export const createComment = (data) => {
|
||||||
|
return request.post({
|
||||||
|
url: '/admin-api/okr/comments/create',
|
||||||
|
data,
|
||||||
|
isSubmitForm: true
|
||||||
|
// headers: { 'instance-id': 1016 }
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 分页
|
||||||
|
export const getCommentPage = (params) => {
|
||||||
|
return request.get({
|
||||||
|
url: '/admin-api/okr/comments/page',
|
||||||
|
params
|
||||||
|
// headers: { 'instance-id': 1016 }
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 获取评论类型
|
||||||
|
export const getCommentTypeOptions = () => {
|
||||||
|
return request.get({
|
||||||
|
url: '/admin-api/okr/dict-data/get-by-type',
|
||||||
|
params: { dictType: 'comment_type' }
|
||||||
|
// headers: { 'instance-id': 1016 }
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 点赞评论
|
||||||
|
export const likeComment = (commentId) => {
|
||||||
|
return request.put({
|
||||||
|
url: '/admin-api/okr/comments-likes/update',
|
||||||
|
data: { commentId }
|
||||||
|
// headers: { 'instance-id': 1016 }
|
||||||
|
})
|
||||||
|
}
|
||||||
61
src/api/okr/meeting.js
Normal file
61
src/api/okr/meeting.js
Normal file
@@ -0,0 +1,61 @@
|
|||||||
|
import request from '@/config/axios'
|
||||||
|
|
||||||
|
export const createMeeting = (data) => {
|
||||||
|
return request.post({
|
||||||
|
url: '/admin-api/okr/meeting/add',
|
||||||
|
data,
|
||||||
|
isSubmitForm: true
|
||||||
|
// headers: { 'instance-id': 1016 }
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 修改
|
||||||
|
export const updateMeeting = (data) => {
|
||||||
|
return request.put({
|
||||||
|
url: '/admin-api/okr/meeting/update',
|
||||||
|
data
|
||||||
|
// headers: { 'instance-id': 1016 }
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 查询详情
|
||||||
|
export const getMeetingDetail = (params) => {
|
||||||
|
return request.get({
|
||||||
|
url: '/admin-api/okr/meeting/get',
|
||||||
|
params
|
||||||
|
// headers: { 'instance-id': 1016 }
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 取消会议
|
||||||
|
export const cancelMeeting = (data) => {
|
||||||
|
return request.put({
|
||||||
|
url: '/admin-api/okr/meeting/cancel',
|
||||||
|
data
|
||||||
|
// headers: { 'instance-id': 1016 }
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 分页查询
|
||||||
|
export const getMeetingPage = (params) => {
|
||||||
|
return request.get({
|
||||||
|
url: '/admin-api/okr/meeting/page',
|
||||||
|
params
|
||||||
|
// headers: { 'instance-id': 1016 }
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 刷新微信群列表
|
||||||
|
export const refreshWxGroupList = () => {
|
||||||
|
return request.get({
|
||||||
|
url: '/admin-api/system/wx/reFreshWeChatGroupList'
|
||||||
|
// headers: { 'instance-id': 1016 }
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 获取微信群聊列表
|
||||||
|
export const getWxGroupList = () => {
|
||||||
|
return request.get({
|
||||||
|
url: '/admin-api/system/wx/getWeChatGroupList'
|
||||||
|
// headers: { 'instance-id': 1016 }
|
||||||
|
})
|
||||||
|
}
|
||||||
154
src/api/okr/okr.js
Normal file
154
src/api/okr/okr.js
Normal file
@@ -0,0 +1,154 @@
|
|||||||
|
import request from '@/config/axios'
|
||||||
|
|
||||||
|
// 创建
|
||||||
|
export const createOkrNode = (data) => {
|
||||||
|
return request.post({
|
||||||
|
url: '/admin-api/okr/node/add',
|
||||||
|
data,
|
||||||
|
isSubmitForm: true
|
||||||
|
// headers: { 'instance-id': 1016 }
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 修改
|
||||||
|
export const updateOkrNode = (data) => {
|
||||||
|
return request.put({
|
||||||
|
url: '/admin-api/okr/node/update',
|
||||||
|
data
|
||||||
|
// headers: { 'instance-id': 1016 }
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 查询详情
|
||||||
|
export const getOkrNodeDetail = (params) => {
|
||||||
|
return request.get({
|
||||||
|
url: '/admin-api/okr/node/get',
|
||||||
|
params
|
||||||
|
// headers: { 'instance-id': 1016 }
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 我负责的 - 节点树
|
||||||
|
export const getMyNodeTree = (params) => {
|
||||||
|
return request.get({
|
||||||
|
url: '/admin-api/okr/node/my/list',
|
||||||
|
params
|
||||||
|
// headers: { 'instance-id': 1016 }
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 我负责的 - okr列表
|
||||||
|
export const getMyOkrPage = (params) => {
|
||||||
|
return request.get({
|
||||||
|
url: '/admin-api/okr/node/my/object/list',
|
||||||
|
params
|
||||||
|
// headers: { 'instance-id': 1016 }
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 全部目标 - 节点树
|
||||||
|
export const getAllNodeTree = (params) => {
|
||||||
|
return request.get({
|
||||||
|
url: '/admin-api/okr/node/all/list',
|
||||||
|
params
|
||||||
|
// headers: { 'instance-id': 1016 }
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 全部目标 - okr列表
|
||||||
|
export const getAllOkrPage = (params) => {
|
||||||
|
return request.get({
|
||||||
|
url: '/admin-api/okr/node/all/object/list',
|
||||||
|
params
|
||||||
|
// headers: { 'instance-id': 1016 }
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 获取节点操作历史
|
||||||
|
export const getOkrNodeHistory = (nodeId) => {
|
||||||
|
return request.get({
|
||||||
|
url: '/admin-api/okr/record/list',
|
||||||
|
params: { nodeId }
|
||||||
|
// headers: { 'instance-id': 1016 }
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 获取系统默认的关键成果内容
|
||||||
|
export const getDefaultOkrOptions = () => {
|
||||||
|
return request.get({
|
||||||
|
url: '/admin-api/okr/dict-data/get-by-type',
|
||||||
|
params: { dictType: 'key_result_source' }
|
||||||
|
// headers: { 'instance-id': 1016 }
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 更新OKR进度
|
||||||
|
export const updateOkrProgress = (data) => {
|
||||||
|
return request.put({
|
||||||
|
url: '/admin-api/okr/node/progress/update',
|
||||||
|
data
|
||||||
|
// headers: { 'instance-id': 1016 }
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 获取目标关系树一级节点
|
||||||
|
export const getOkrRelationTree = (params) => {
|
||||||
|
return request.get({
|
||||||
|
url: '/admin-api/okr/node/first-node',
|
||||||
|
params
|
||||||
|
// headers: { 'instance-id': 1016 }
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 获取目标关系树下级节点数据
|
||||||
|
export const getOkrRelationTreeChildren = (params) => {
|
||||||
|
return request.get({
|
||||||
|
url: '/admin-api/okr/node/node-tree',
|
||||||
|
params
|
||||||
|
// headers: { 'instance-id': 1016 }
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 获取我的组员
|
||||||
|
export const getMyMemberList = (params) => {
|
||||||
|
return request.get({
|
||||||
|
url: '/admin-api/okr/node/my-members',
|
||||||
|
params
|
||||||
|
// headers: { 'instance-id': 1016 }
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 获取我的组员节点树
|
||||||
|
export const getMySonNodeTree = (params) => {
|
||||||
|
return request.get({
|
||||||
|
url: '/admin-api/okr/node/member/node/list',
|
||||||
|
params
|
||||||
|
// headers: { 'instance-id': 1016 }
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 获取我的组员OKR列表
|
||||||
|
export const getMySonOkrPage = (params) => {
|
||||||
|
return request.get({
|
||||||
|
url: '/admin-api/okr/node/member/objective/list',
|
||||||
|
params
|
||||||
|
// headers: { 'instance-id': 1016 }
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 获取渠道
|
||||||
|
export const getChannelOptions = () => {
|
||||||
|
return request.get({
|
||||||
|
url: '/admin-api/okr/node/source'
|
||||||
|
// headers: { 'instance-id': 1016 }
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 获取统计表中的合计信息
|
||||||
|
export const getOkrStatisticsTotal = (params) => {
|
||||||
|
return request.get({
|
||||||
|
url: '/admin-api/okr/node/data/count',
|
||||||
|
params
|
||||||
|
// headers: { 'instance-id': 1016 }
|
||||||
|
})
|
||||||
|
}
|
||||||
83
src/api/okr/wait.js
Normal file
83
src/api/okr/wait.js
Normal file
@@ -0,0 +1,83 @@
|
|||||||
|
import request from '@/config/axios'
|
||||||
|
|
||||||
|
// 创建
|
||||||
|
export const createWait = (data) => {
|
||||||
|
return request.post({
|
||||||
|
url: '/admin-api/okr/agent-work/create',
|
||||||
|
data,
|
||||||
|
isSubmitForm: true
|
||||||
|
// headers: { 'instance-id': 1016 }
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 修改
|
||||||
|
export const updateWait = (data) => {
|
||||||
|
return request.put({
|
||||||
|
url: '/admin-api/okr/agent-work/update',
|
||||||
|
data
|
||||||
|
// headers: { 'instance-id': 1016 }
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 分页
|
||||||
|
export const getWaitPage = (params) => {
|
||||||
|
return request.get({
|
||||||
|
url: '/admin-api/okr/agent-work/page',
|
||||||
|
params
|
||||||
|
// headers: { 'instance-id': 1016 }
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 详情
|
||||||
|
export const getWaitDetail = (id) => {
|
||||||
|
return request.get({
|
||||||
|
url: '/admin-api/okr/agent-work/get',
|
||||||
|
params: { id }
|
||||||
|
// headers: { 'instance-id': 1016 }
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 删除
|
||||||
|
export const deleteWait = (id) => {
|
||||||
|
return request.delete({
|
||||||
|
url: '/admin-api/okr/agent-work/delete',
|
||||||
|
params: { id }
|
||||||
|
// headers: { 'instance-id': 1016 }
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 催办
|
||||||
|
export const urgeWait = (workId) => {
|
||||||
|
return request.get({
|
||||||
|
url: '/admin-api/okr/agent-work/urge',
|
||||||
|
params: { workId }
|
||||||
|
// headers: { 'instance-id': 1016 }
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 跟进待办
|
||||||
|
export const followWait = (data) => {
|
||||||
|
return request.post({
|
||||||
|
url: '/admin-api/okr/agent-work-follow/create',
|
||||||
|
data,
|
||||||
|
isSubmitForm: true
|
||||||
|
// headers: { 'instance-id': 1016 }
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 查询跟进记录
|
||||||
|
export const getFollowWaitPage = (params) => {
|
||||||
|
return request.get({
|
||||||
|
url: '/admin-api/okr/agent-work-follow/list',
|
||||||
|
params
|
||||||
|
// headers: { 'instance-id': 1016 }
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const getWaitCount = (params) => {
|
||||||
|
return request.get({
|
||||||
|
url: '/admin-api/okr/agent-work/getAgentWorkNum',
|
||||||
|
params
|
||||||
|
// headers: { 'instance-id': 1016 }
|
||||||
|
})
|
||||||
|
}
|
||||||
36
src/api/pers/attendancePlan.js
Normal file
36
src/api/pers/attendancePlan.js
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
import request from '@/config/axios'
|
||||||
|
|
||||||
|
// 创建
|
||||||
|
export const createPlan = (data) => {
|
||||||
|
return request.post({ url: '/admin-api/oa/attendance-setting/create', data, isSubmitForm: true })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 修改
|
||||||
|
export const updatePlan = (data) => {
|
||||||
|
return request.put({ url: '/admin-api/oa/attendance-setting/update', data })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 修改状态
|
||||||
|
export const updatePlanStatus = (data) => {
|
||||||
|
return request.put({ url: '/admin-api/oa/attendance-setting/status/update', data })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 分页
|
||||||
|
export const getPlanPage = (params) => {
|
||||||
|
return request.get({ url: '/admin-api/oa/attendance-setting/page', params })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 列表
|
||||||
|
export const getPlanSimpleList = (params) => {
|
||||||
|
return request.get({ url: '/admin-api/oa/attendance-setting/simple-list', params })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 详情
|
||||||
|
export const getPlanDetail = (id) => {
|
||||||
|
return request.get({ url: '/admin-api/oa/attendance-setting/get', params: { id } })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 删除
|
||||||
|
export const deletePlan = (id) => {
|
||||||
|
return request.delete({ url: '/admin-api/oa/attendance-setting/delete', params: { id } })
|
||||||
|
}
|
||||||
41
src/api/pers/employee.js
Normal file
41
src/api/pers/employee.js
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
import request from '@/config/axios'
|
||||||
|
|
||||||
|
// 创建
|
||||||
|
export const createEmployee = (data) => {
|
||||||
|
return request.post({ url: '/admin-api/oa/employee/create', data, isSubmitForm: true })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 分页
|
||||||
|
export const getEmployeeSimpleList = (params) => {
|
||||||
|
return request.get({ url: '/admin-api/oa/employee/list-all-simple', params })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 修改
|
||||||
|
export const updateEmployee = (data) => {
|
||||||
|
return request.put({ url: '/admin-api/oa/employee/update', data })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 修改状态
|
||||||
|
export const updateEmployeeStatus = (data) => {
|
||||||
|
return request.put({ url: '/admin-api/oa/employee/status/update', data })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 分页
|
||||||
|
export const getEmployeePage = (params) => {
|
||||||
|
return request.get({ url: '/admin-api/oa/employee/page', params })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 详情
|
||||||
|
export const getEmployeeDetail = (id) => {
|
||||||
|
return request.get({ url: '/admin-api/oa/employee/get', params: { id } })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 删除
|
||||||
|
export const deleteEmployee = (id) => {
|
||||||
|
return request.delete({ url: '/admin-api/oa/employee/delete', params: { id } })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 获取钉钉id
|
||||||
|
export const getDingUserId = (params) => {
|
||||||
|
return request.get({ url: '/admin-api/oa/employee/getDingTalkUserIdByMobile', params })
|
||||||
|
}
|
||||||
@@ -5,6 +5,10 @@ export const getClassTypePage = async (params) => {
|
|||||||
return await request.get({ url: '/admin-api/crm/sch-class-type/page', params })
|
return await request.get({ url: '/admin-api/crm/sch-class-type/page', params })
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export const getClassTypeList = async (params) => {
|
||||||
|
return await request.get({ url: '/admin-api/crm/sch-class-type/list', params })
|
||||||
|
}
|
||||||
|
|
||||||
// 查询详情
|
// 查询详情
|
||||||
export const getClassType = async (id) => {
|
export const getClassType = async (id) => {
|
||||||
return await request.get({ url: '/admin-api/crm/sch-class-type/get?id=' + id })
|
return await request.get({ url: '/admin-api/crm/sch-class-type/get?id=' + id })
|
||||||
@@ -12,7 +16,11 @@ export const getClassType = async (id) => {
|
|||||||
|
|
||||||
// 新增
|
// 新增
|
||||||
export const createClassType = async (data) => {
|
export const createClassType = async (data) => {
|
||||||
return await request.post({ url: '/admin-api/crm/sch-class-type/create', data: data })
|
return await request.post({
|
||||||
|
url: '/admin-api/crm/sch-class-type/create',
|
||||||
|
data: data,
|
||||||
|
isSubmitForm: true
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
// 修改
|
// 修改
|
||||||
@@ -22,7 +30,7 @@ export const updateClassType = async (params) => {
|
|||||||
|
|
||||||
// 删除
|
// 删除
|
||||||
export const deleteClassType = async (id) => {
|
export const deleteClassType = async (id) => {
|
||||||
return await request.delete({ url: '/admin-api/crm/sch-class-type/delete?typeId=' + id })
|
return await request.delete({ url: '/admin-api/crm/sch-class-type/delete?id=' + id })
|
||||||
}
|
}
|
||||||
|
|
||||||
// 修改状态
|
// 修改状态
|
||||||
|
|||||||
@@ -17,7 +17,11 @@ export const getPlace = async (id) => {
|
|||||||
|
|
||||||
// 新增
|
// 新增
|
||||||
export const createPlace = async (data) => {
|
export const createPlace = async (data) => {
|
||||||
return await request.post({ url: '/admin-api/crm/sch-place/create', data: data })
|
return await request.post({
|
||||||
|
url: '/admin-api/crm/sch-place/create',
|
||||||
|
data: data,
|
||||||
|
isSubmitForm: true
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
// 修改
|
// 修改
|
||||||
@@ -30,10 +34,10 @@ export const deletePlace = async (id) => {
|
|||||||
return await request.delete({ url: '/admin-api/crm/sch-place/delete?id=' + id })
|
return await request.delete({ url: '/admin-api/crm/sch-place/delete?id=' + id })
|
||||||
}
|
}
|
||||||
|
|
||||||
export const updatePlaceStatus = async (id, status) => {
|
export const updatePlaceStatus = async (placeId, status) => {
|
||||||
const data = {
|
const data = {
|
||||||
id,
|
placeId,
|
||||||
status
|
status
|
||||||
}
|
}
|
||||||
return request.put({ url: '/admin-api/crm/sch-place/update-status', data: data })
|
return request.put({ url: '/admin-api/crm/sch-place/status/update', data: data })
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,7 +11,11 @@ export const getSchool = async (id) => {
|
|||||||
|
|
||||||
// 新增
|
// 新增
|
||||||
export const createSchool = async (data) => {
|
export const createSchool = async (data) => {
|
||||||
return await request.post({ url: '/admin-api/crm/sch-school/create', data: data })
|
return await request.post({
|
||||||
|
url: '/admin-api/crm/sch-school/create',
|
||||||
|
data: data,
|
||||||
|
isSubmitForm: true
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
// 修改
|
// 修改
|
||||||
@@ -24,10 +28,10 @@ export const deleteSchool = async (id) => {
|
|||||||
return await request.delete({ url: '/admin-api/crm/sch-school/delete?id=' + id })
|
return await request.delete({ url: '/admin-api/crm/sch-school/delete?id=' + id })
|
||||||
}
|
}
|
||||||
|
|
||||||
export const updateSchoolStatus = async (id, status) => {
|
export const updateSchoolStatus = async (schoolId, status) => {
|
||||||
const data = {
|
const data = {
|
||||||
id,
|
schoolId,
|
||||||
status
|
status
|
||||||
}
|
}
|
||||||
return request.put({ url: '/admin-api/crm/sch-school/update-status', data: data })
|
return request.put({ url: '/admin-api/crm/sch-school/status/update', data: data })
|
||||||
}
|
}
|
||||||
|
|||||||
33
src/api/school/setting/area.js
Normal file
33
src/api/school/setting/area.js
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
import request from '@/config/axios'
|
||||||
|
// 查询列表
|
||||||
|
export const getAreaPage = async (params) => {
|
||||||
|
return await request.get({ url: '/admin-api/crm/area/page', params })
|
||||||
|
}
|
||||||
|
|
||||||
|
export const getAreaSimpleList = async (params) => {
|
||||||
|
return await request.get({ url: '/admin-api/crm/area/simple-list', params })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 查询详情
|
||||||
|
export const getArea = async (id) => {
|
||||||
|
return await request.get({ url: '/admin-api/crm/area/get?id=' + id })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 新增
|
||||||
|
export const createArea = async (data) => {
|
||||||
|
return await request.post({
|
||||||
|
url: '/admin-api/crm/area/create',
|
||||||
|
data: data,
|
||||||
|
isSubmitForm: true
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 修改
|
||||||
|
export const updateArea = async (params) => {
|
||||||
|
return await request.put({ url: '/admin-api/crm/area/update', data: params })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 删除
|
||||||
|
export const deleteArea = async (id) => {
|
||||||
|
return await request.delete({ url: '/admin-api/crm/area/delete?id=' + id })
|
||||||
|
}
|
||||||
33
src/api/school/setting/supplier.js
Normal file
33
src/api/school/setting/supplier.js
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
import request from '@/config/axios'
|
||||||
|
// 查询列表
|
||||||
|
export const getSupplierPage = async (params) => {
|
||||||
|
return await request.get({ url: '/admin-api/crm/erp-supplier/page', params })
|
||||||
|
}
|
||||||
|
|
||||||
|
export const getSupplierSimpleList = async (params) => {
|
||||||
|
return await request.get({ url: '/admin-api/crm/erp-supplier/simple-list', params })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 查询详情
|
||||||
|
export const getSupplier = async (id) => {
|
||||||
|
return await request.get({ url: '/admin-api/crm/erp-supplier/get?id=' + id })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 新增
|
||||||
|
export const createSupplier = async (data) => {
|
||||||
|
return await request.post({
|
||||||
|
url: '/admin-api/crm/erp-supplier/create',
|
||||||
|
data: data,
|
||||||
|
isSubmitForm: true
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 修改
|
||||||
|
export const updateSupplier = async (params) => {
|
||||||
|
return await request.put({ url: '/admin-api/crm/erp-supplier/update', data: params })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 删除
|
||||||
|
export const deleteSupplier = async (id) => {
|
||||||
|
return await request.delete({ url: '/admin-api/crm/erp-supplier/delete?id=' + id })
|
||||||
|
}
|
||||||
@@ -41,3 +41,13 @@ export const updateDept = async (params: DeptVO) => {
|
|||||||
export const deleteDept = async (id: number) => {
|
export const deleteDept = async (id: number) => {
|
||||||
return await request.delete({ url: '/admin-api/system/dept/delete?id=' + id })
|
return await request.delete({ url: '/admin-api/system/dept/delete?id=' + id })
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 获取部门业务指标
|
||||||
|
export const getDeptTarget = async (deptId: number) => {
|
||||||
|
return await request.get({ url: '/admin-api/crm/dept-target/get', params: { deptId } })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 更新部门业务指标
|
||||||
|
export const updateDeptTarget = async (data: any) => {
|
||||||
|
return await request.put({ url: '/admin-api/crm/dept-target/save', data, isSubmitForm: true })
|
||||||
|
}
|
||||||
|
|||||||
@@ -44,6 +44,11 @@ export const deleteDictData = (id: number) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 导出字典类型数据
|
// 导出字典类型数据
|
||||||
export const exportDictData = (params) => {
|
export const exportDictData = (params: any) => {
|
||||||
return request.get({ url: '/admin-api/crm/dict-data/export', params })
|
return request.get({ url: '/admin-api/crm/dict-data/export', params })
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 获取通用字典数据
|
||||||
|
export const getGeneralSysDictData = (dictType: string) => {
|
||||||
|
return request.get({ url: '/admin-api/system/dict-data/get-by-type', params: { dictType } })
|
||||||
|
}
|
||||||
|
|||||||
@@ -17,7 +17,10 @@ export interface MenuVO {
|
|||||||
alwaysShow?: boolean
|
alwaysShow?: boolean
|
||||||
createTime: Date
|
createTime: Date
|
||||||
}
|
}
|
||||||
|
// 获取服务列表
|
||||||
|
export const getServiceAppList = () => {
|
||||||
|
return request.get({ url: '/admin-api/system/service/list' })
|
||||||
|
}
|
||||||
// 查询菜单(精简)列表
|
// 查询菜单(精简)列表
|
||||||
export const getSimpleMenusList = () => {
|
export const getSimpleMenusList = () => {
|
||||||
return request.get({ url: '/admin-api/system/menu/list-all-simple' })
|
return request.get({ url: '/admin-api/system/menu/list-all-simple' })
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
import request from '@/config/axios'
|
import request from '@/config/axios'
|
||||||
import qs from 'qs'
|
|
||||||
|
|
||||||
export interface NotifyMessageVO {
|
export interface NotifyMessageVO {
|
||||||
id: number
|
id: number
|
||||||
@@ -16,35 +15,39 @@ export interface NotifyMessageVO {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 查询站内信消息列表
|
// 查询站内信消息列表
|
||||||
export const getNotifyMessagePage = async (params: PageParam) => {
|
export const getNotifyMessagePage = async (params: any) => {
|
||||||
return await request.get({ url: '/admin-api/system/notify-message/page', params })
|
return await request.get({ url: '/admin-api/system/notify-message/page', params })
|
||||||
}
|
}
|
||||||
|
|
||||||
// 获得我的站内信分页
|
// 获得我的站内信分页
|
||||||
export const getMyNotifyMessagePage = async (params: PageParam) => {
|
export const getMyNotifyMessagePage = async (params: any) => {
|
||||||
return await request.get({ url: '/admin-api/system/notify-message/my-page', params })
|
return await request.get({ url: '/admin-api/system/notify-message/my-page', params })
|
||||||
}
|
}
|
||||||
|
|
||||||
// 批量标记已读
|
// 批量标记已读
|
||||||
export const updateNotifyMessageRead = async (ids) => {
|
export const updateNotifyMessageRead = async (data: any) => {
|
||||||
return await request.put({
|
return await request.put({
|
||||||
url:
|
url: '/admin-api/system/notify-message/update-read?',
|
||||||
'/admin-api/system/notify-message/update-read?' +
|
data
|
||||||
qs.stringify({ ids: ids }, { indices: false })
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
// 标记所有站内信为已读
|
// 标记所有站内信为已读
|
||||||
export const updateAllNotifyMessageRead = async () => {
|
export const updateAllNotifyMessageRead = async (data: any) => {
|
||||||
return await request.put({ url: '/admin-api/system/notify-message/update-all-read' })
|
return await request.put({ url: '/admin-api/system/notify-message/update-all-read', data })
|
||||||
}
|
}
|
||||||
|
|
||||||
// 获取当前用户的最新站内信列表
|
// 获取当前用户的最新站内信列表
|
||||||
export const getUnreadNotifyMessageList = async () => {
|
export const getUnreadNotifyMessageList = async (params: any) => {
|
||||||
return await request.get({ url: '/admin-api/system/notify-message/get-unread-list' })
|
return await request.get({ url: '/admin-api/system/notify-message/get-unread-list', params })
|
||||||
}
|
}
|
||||||
|
|
||||||
// 获得当前用户的未读站内信数量
|
// 获得当前用户的未读站内信数量
|
||||||
export const getUnreadNotifyMessageCount = async () => {
|
export const getUnreadNotifyMessageCount = async (params: any) => {
|
||||||
return await request.get({ url: '/admin-api/system/notify-message/get-unread-count' })
|
return await request.get({ url: '/admin-api/system/notify-message/get-unread-count', params })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 获取详情
|
||||||
|
export const getNotifyMessageDetail = async (id: number) => {
|
||||||
|
return await request.get({ url: '/admin-api/system/notify-message/get', params: { id } })
|
||||||
}
|
}
|
||||||
|
|||||||
25
src/api/system/role/daliyReport.js
Normal file
25
src/api/system/role/daliyReport.js
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
import request from '@/config/axios'
|
||||||
|
|
||||||
|
// 获取角色快报配置
|
||||||
|
export const getRoleDaliyReport = async (roleId) => {
|
||||||
|
return await request.get({
|
||||||
|
url: '/admin-api/system/role-message-setting/get',
|
||||||
|
params: { roleId }
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 保存角色每日快报配置
|
||||||
|
export const updateRoleDaliyReport = async (data) => {
|
||||||
|
return await request.post({
|
||||||
|
url: '/admin-api/system/role-message-setting/save',
|
||||||
|
data,
|
||||||
|
isSubmitForm: true
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 获取每日快报发送内容
|
||||||
|
export const getDaliyReportContent = async () => {
|
||||||
|
return await request.get({
|
||||||
|
url: '/admin-api/system/message-item/list-all-simple'
|
||||||
|
})
|
||||||
|
}
|
||||||
16
src/api/system/set/index.js
Normal file
16
src/api/system/set/index.js
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
import request from '@/config/axios'
|
||||||
|
|
||||||
|
// 通过key,查询内容
|
||||||
|
export const getConfigByConfigKey = (params) => {
|
||||||
|
return request.get({ url: '/admin-api/crm/config/getConfigByConfigKey', params })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 保存配置项
|
||||||
|
export const updateConfig = (data) => {
|
||||||
|
return request.put({ url: '/admin-api/crm/config/batchUpdateConfigValue', data })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 根据模块获取配置列表
|
||||||
|
export const getConfigList = (params) => {
|
||||||
|
return request.get({ url: '/admin-api/crm/config/query', params })
|
||||||
|
}
|
||||||
@@ -12,9 +12,11 @@ export interface UserVO {
|
|||||||
avatar: string
|
avatar: string
|
||||||
loginIp: string
|
loginIp: string
|
||||||
status: number
|
status: number
|
||||||
|
hireStatus: number
|
||||||
remark: string
|
remark: string
|
||||||
loginDate: Date
|
loginDate: Date
|
||||||
createTime: Date
|
createTime: Date
|
||||||
|
retireDate: string
|
||||||
}
|
}
|
||||||
|
|
||||||
// 查询用户管理列表
|
// 查询用户管理列表
|
||||||
@@ -62,10 +64,17 @@ export const resetUserPwd = (id: number, password: string) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 用户状态修改
|
// 用户状态修改
|
||||||
export const updateUserStatus = (id: number, status: number) => {
|
export const updateUserStatus = (
|
||||||
|
id: number,
|
||||||
|
status: number,
|
||||||
|
retireDate: string,
|
||||||
|
hireStatus: number
|
||||||
|
) => {
|
||||||
const data = {
|
const data = {
|
||||||
id,
|
id,
|
||||||
status
|
status,
|
||||||
|
retireDate,
|
||||||
|
hireStatus
|
||||||
}
|
}
|
||||||
return request.put({ url: '/admin-api/system/user/update-status', data: data })
|
return request.put({ url: '/admin-api/system/user/update-status', data: data })
|
||||||
}
|
}
|
||||||
@@ -74,3 +83,18 @@ export const updateUserStatus = (id: number, status: number) => {
|
|||||||
export const getSimpleUserList = (): Promise<UserVO[]> => {
|
export const getSimpleUserList = (): Promise<UserVO[]> => {
|
||||||
return request.get({ url: '/admin-api/system/user/list-all-simple' })
|
return request.get({ url: '/admin-api/system/user/list-all-simple' })
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 获取所有用户列表-无权限限制
|
||||||
|
export const getAllUserList = (): Promise<UserVO[]> => {
|
||||||
|
return request.get({ url: '/admin-api/system/user/no/permission/list-all-simple' })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 获取所有包括离职的用户
|
||||||
|
export const getAllUserListWithHire = (): Promise<UserVO[]> => {
|
||||||
|
return request.get({ url: '/admin-api/system/user/no/permission/list-all' })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 获取钉钉id
|
||||||
|
export const getDDIdByPhone = (params) => {
|
||||||
|
return request.get({ url: '/admin-api/system/user/getDingTalkUserIdByMobile', params })
|
||||||
|
}
|
||||||
|
|||||||
23
src/api/system/wechat/index.js
Normal file
23
src/api/system/wechat/index.js
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
import request from '@/config/axios'
|
||||||
|
|
||||||
|
// 更新
|
||||||
|
export const updateWechatConfig = (data) => {
|
||||||
|
return request.post({ url: '/admin-api/system/wx-robot-message-setting/save', data })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 更新发送时间
|
||||||
|
export const updateWechatSendTime = (data) => {
|
||||||
|
return request.put({ url: '/admin-api/system/wx-robot-message-setting/update-send-time', data })
|
||||||
|
}
|
||||||
|
// 更新微信群
|
||||||
|
export const updateWechatGroup = (data) => {
|
||||||
|
return request.put({ url: '/admin-api/system/wx-robot-message-setting/update-wx-group', data })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 获得列表
|
||||||
|
export const getWechatConfigList = (params) => {
|
||||||
|
return request.get({
|
||||||
|
url: '/admin-api/system/wx-robot-message-setting/list',
|
||||||
|
params
|
||||||
|
})
|
||||||
|
}
|
||||||
48
src/api/xjapplet/discount.js
Normal file
48
src/api/xjapplet/discount.js
Normal file
@@ -0,0 +1,48 @@
|
|||||||
|
import request from '@/config/axios'
|
||||||
|
|
||||||
|
export const getVipDiscountList = async (params) => {
|
||||||
|
return await request.get({
|
||||||
|
url: '/admin-api/applet/xunjia/member/discount/list',
|
||||||
|
params: params
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const addVipDiscount = async (data) => {
|
||||||
|
return await request.post({
|
||||||
|
url: '/admin-api/applet/xunjia/member/discount/add',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const updateVipDiscount = async (data) => {
|
||||||
|
return await request.post({
|
||||||
|
url: '/admin-api/applet/xunjia/member/discount/update',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const deleteVipDiscount = async (id) => {
|
||||||
|
return await request.delete({
|
||||||
|
url: '/admin-api/applet/xunjia/member/discount/delete?discountId=' + id
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const getVipDiscountOptions = async () => {
|
||||||
|
return await request.get({
|
||||||
|
url: '/admin-api/applet/xunjia/member/discount/simple-list'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const getUserDiscountList = async (params) => {
|
||||||
|
return await request.get({
|
||||||
|
url: '/admin-api/applet/xunjia/user/discount/list',
|
||||||
|
params: params
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const giveUserDiscount = async (data) => {
|
||||||
|
return await request.post({
|
||||||
|
url: '/admin-api/applet/xunjia/user/discount/send',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
39
src/api/xjapplet/resell.js
Normal file
39
src/api/xjapplet/resell.js
Normal file
@@ -0,0 +1,39 @@
|
|||||||
|
import request from '@/config/axios'
|
||||||
|
|
||||||
|
export const getResellList = async (params) => {
|
||||||
|
return await request.get({
|
||||||
|
url: '/admin-api/applet/xunjia/distribution/list',
|
||||||
|
params: params
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const addResell = async (data) => {
|
||||||
|
return await request.post({
|
||||||
|
url: '/admin-api/applet/xunjia/distribution/add',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const updateResell = async (data) => {
|
||||||
|
return await request.put({
|
||||||
|
url: '/admin-api/applet/xunjia/distribution/update',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
export const deleteResell = async (id) => {
|
||||||
|
return await request.delete({
|
||||||
|
url: '/admin-api/applet/xunjia/distribution/delete?distributionId=' + id
|
||||||
|
})
|
||||||
|
}
|
||||||
|
export const getResellDetail = async (id) => {
|
||||||
|
return await request.get({
|
||||||
|
url: '/admin-api/applet/xunjia/distribution/' + id
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const getResellSimpleList = async (params) => {
|
||||||
|
return await request.get({
|
||||||
|
url: '/admin-api/applet/xunjia/distribution/simple-list',
|
||||||
|
params: params
|
||||||
|
})
|
||||||
|
}
|
||||||
56
src/api/xjapplet/vip.js
Normal file
56
src/api/xjapplet/vip.js
Normal file
@@ -0,0 +1,56 @@
|
|||||||
|
import request from '@/config/axios'
|
||||||
|
|
||||||
|
export const getUserMemberList = async (params) => {
|
||||||
|
return await request.get({
|
||||||
|
url: '/admin-api/applet/xunjia/user/member/list',
|
||||||
|
params: params
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const giveUserMember = async (data) => {
|
||||||
|
return await request.post({
|
||||||
|
url: '/admin-api/applet/xunjia/user/member/add',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const getVipTypeList = async (params) => {
|
||||||
|
return await request.get({
|
||||||
|
url: '/admin-api/applet/xunjia/member/list',
|
||||||
|
params: params
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const addVipType = async (data) => {
|
||||||
|
return await request.post({
|
||||||
|
url: '/admin-api/applet/xunjia/member/add',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const updateVipType = async (data) => {
|
||||||
|
return await request.post({
|
||||||
|
url: '/admin-api/applet/xunjia/member/update',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const deleteVipType = async (id) => {
|
||||||
|
return await request.delete({
|
||||||
|
url: '/admin-api/applet/xunjia/member/delete?memberId=' + id
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const getVipTypeOptions = async (params) => {
|
||||||
|
return await request.get({
|
||||||
|
url: '/admin-api/applet/xunjia/member/simple-list',
|
||||||
|
params: params
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const getRechargeRecords = async (params) => {
|
||||||
|
return await request.get({
|
||||||
|
url: '/admin-api/applet/xunjia/pay/list',
|
||||||
|
params: params
|
||||||
|
})
|
||||||
|
}
|
||||||
67
src/api/xjapplet/vipdatabase.js
Normal file
67
src/api/xjapplet/vipdatabase.js
Normal file
@@ -0,0 +1,67 @@
|
|||||||
|
import request from '@/config/axios'
|
||||||
|
|
||||||
|
export const addJx = async (data) => {
|
||||||
|
return await request.post({
|
||||||
|
url: '/admin-api/applet/xunjia/question/jx/add',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const getJxQuestionList = async (params) => {
|
||||||
|
return await request.get({
|
||||||
|
url: '/admin-api/applet/xunjia/question/jx/list',
|
||||||
|
params: params
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const delJxData = async (id) => {
|
||||||
|
return await request.delete({
|
||||||
|
url: `/admin-api/applet/xunjia/question/jx/delete?id=${id}`
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const addMj = async (data) => {
|
||||||
|
return await request.post({
|
||||||
|
url: '/admin-api/applet/xunjia/secret/add',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const getMjList = async (params) => {
|
||||||
|
return await request.get({
|
||||||
|
url: '/admin-api/applet/xunjia/secret/list',
|
||||||
|
params: params
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const delMj = async (secretId) => {
|
||||||
|
return await request.delete({
|
||||||
|
url: `/admin-api/applet/xunjia/secret/delete?secretId=${secretId}`
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const clearMj = async (secretId) => {
|
||||||
|
return await request.delete({
|
||||||
|
url: `/admin-api/applet/xunjia/secret/clear?secretId=${secretId}`
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const getMjQuestionList = async (params) => {
|
||||||
|
return await request.get({
|
||||||
|
url: '/admin-api/applet/xunjia/secret/question/list',
|
||||||
|
params: params
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const addMjQuestion = async (data) => {
|
||||||
|
return await request.post({
|
||||||
|
url: '/admin-api/applet/xunjia/secret/question/add',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const delMjQuestion = async (id) => {
|
||||||
|
return await request.delete({
|
||||||
|
url: `/admin-api/applet/xunjia/secret/question/delete?id=${id}`
|
||||||
|
})
|
||||||
|
}
|
||||||
48
src/api/xjapplet/xjdatabase.js
Normal file
48
src/api/xjapplet/xjdatabase.js
Normal file
@@ -0,0 +1,48 @@
|
|||||||
|
import request from '@/config/axios'
|
||||||
|
export const searchQuestion = async (param) => {
|
||||||
|
return await request.get({
|
||||||
|
url: '/admin-api/applet/xunjia/question/list',
|
||||||
|
params: param
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const updateQuestion = async (data) => {
|
||||||
|
return await request.put({
|
||||||
|
url: '/admin-api/applet/xunjia/question/update',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const addQuestion = async (data) => {
|
||||||
|
return await request.post({
|
||||||
|
url: '/admin-api/applet/xunjia/question/add',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const deleteQuestion = async (id) => {
|
||||||
|
return await request.delete({
|
||||||
|
url: '/admin-api/applet/xunjia/question/delete?id=' + id
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const uploadFile = async (data) => {
|
||||||
|
return await request.post({
|
||||||
|
url: '/admin-api/applet/xunjia/question/upload',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const getQuestionSort = async (param) => {
|
||||||
|
return await request.get({
|
||||||
|
url: '/admin-api/applet/xunjia/question/sort/list',
|
||||||
|
params: param
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const getMjList = async (params) => {
|
||||||
|
return await request.get({
|
||||||
|
url: 'http://localhost/tiku-api/tiku/xunjia/secret/list',
|
||||||
|
params: params
|
||||||
|
})
|
||||||
|
}
|
||||||
BIN
src/assets/imgs/login2.gif
Normal file
BIN
src/assets/imgs/login2.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 309 KiB |
BIN
src/assets/imgs/shisong.jpg
Normal file
BIN
src/assets/imgs/shisong.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 192 KiB |
@@ -22,13 +22,13 @@ onMounted(() => {
|
|||||||
appStore.setCssVarTheme()
|
appStore.setCssVarTheme()
|
||||||
})
|
})
|
||||||
|
|
||||||
const { width } = useWindowSize()
|
const { width, height } = useWindowSize()
|
||||||
|
|
||||||
// 监听窗口变化
|
// 监听窗口变化
|
||||||
watch(
|
watch(
|
||||||
() => width.value,
|
() => width.value,
|
||||||
(width: number) => {
|
(width: number) => {
|
||||||
if (width < 768) {
|
if (width < 768 || height.value < 450) {
|
||||||
!appStore.getMobile ? appStore.setMobile(true) : undefined
|
!appStore.getMobile ? appStore.setMobile(true) : undefined
|
||||||
setCssVar('--left-menu-min-width', '0')
|
setCssVar('--left-menu-min-width', '0')
|
||||||
appStore.setCollapse(true)
|
appStore.setCollapse(true)
|
||||||
|
|||||||
@@ -27,7 +27,8 @@ const props = defineProps({
|
|||||||
data: {
|
data: {
|
||||||
type: Object as PropType<any>,
|
type: Object as PropType<any>,
|
||||||
default: () => ({})
|
default: () => ({})
|
||||||
}
|
},
|
||||||
|
defaultShow: propTypes.bool.def(true)
|
||||||
})
|
})
|
||||||
|
|
||||||
const { getPrefixCls } = useDesign()
|
const { getPrefixCls } = useDesign()
|
||||||
@@ -57,7 +58,7 @@ const getBindItemValue = (item: DescriptionsSchema) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 折叠
|
// 折叠
|
||||||
const show = ref(true)
|
const show = ref(props.defaultShow)
|
||||||
|
|
||||||
const toggleClick = () => {
|
const toggleClick = () => {
|
||||||
if (props.collapse) {
|
if (props.collapse) {
|
||||||
@@ -77,7 +78,7 @@ const toggleClick = () => {
|
|||||||
v-if="title"
|
v-if="title"
|
||||||
:class="[
|
:class="[
|
||||||
`${prefixCls}-header`,
|
`${prefixCls}-header`,
|
||||||
'h-50px flex justify-between items-center border-bottom-1 border-solid border-[var(--tags-view-border-color)] px-10px cursor-pointer dark:border-[var(--el-border-color)]'
|
'h-40px flex justify-between items-center border-bottom-1 border-solid border-[var(--tags-view-border-color)] px-10px cursor-pointer dark:border-[var(--el-border-color)]'
|
||||||
]"
|
]"
|
||||||
@click="toggleClick"
|
@click="toggleClick"
|
||||||
>
|
>
|
||||||
@@ -131,7 +132,7 @@ const toggleClick = () => {
|
|||||||
<DictTag :type="item.dictType" :value="data[item.field] + ''" />
|
<DictTag :type="item.dictType" :value="data[item.field] + ''" />
|
||||||
</slot>
|
</slot>
|
||||||
<slot v-else-if="item.isEditor">
|
<slot v-else-if="item.isEditor">
|
||||||
<div v-dompurify-html="data[item.field]"></div>
|
<div v-if="data[item.field]" v-dompurify-html="data[item.field]"></div>
|
||||||
</slot>
|
</slot>
|
||||||
<slot v-else :name="item.field" :row="data">{{ data[item.field] }}</slot>
|
<slot v-else :name="item.field" :row="data">{{ data[item.field] }}</slot>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -67,6 +67,7 @@ const emit = defineEmits(['close'])
|
|||||||
destroy-on-close
|
destroy-on-close
|
||||||
draggable
|
draggable
|
||||||
lock-scroll
|
lock-scroll
|
||||||
|
append-to-body
|
||||||
v-bind="getBindValue"
|
v-bind="getBindValue"
|
||||||
@close="emit('close')"
|
@close="emit('close')"
|
||||||
>
|
>
|
||||||
@@ -75,13 +76,16 @@ const emit = defineEmits(['close'])
|
|||||||
<slot name="title">
|
<slot name="title">
|
||||||
{{ title }}
|
{{ title }}
|
||||||
</slot>
|
</slot>
|
||||||
<Icon
|
<div class="flex items-center">
|
||||||
v-if="fullscreen"
|
<slot name="btn"></slot>
|
||||||
:icon="isFullscreen ? 'zmdi:fullscreen-exit' : 'zmdi:fullscreen'"
|
<Icon
|
||||||
class="mr-22px cursor-pointer is-hover mt-2px z-10"
|
v-if="fullscreen"
|
||||||
color="var(--el-color-info)"
|
:icon="isFullscreen ? 'zmdi:fullscreen-exit' : 'zmdi:fullscreen'"
|
||||||
@click="toggleFull"
|
class="mr-22px cursor-pointer is-hover z-10"
|
||||||
/>
|
color="var(--el-color-info)"
|
||||||
|
@click="toggleFull"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ export default defineComponent({
|
|||||||
name: 'DictTag',
|
name: 'DictTag',
|
||||||
props: {
|
props: {
|
||||||
type: {
|
type: {
|
||||||
type: String as PropType<string>,
|
type: String,
|
||||||
required: true
|
required: true
|
||||||
},
|
},
|
||||||
value: {
|
value: {
|
||||||
@@ -42,7 +42,7 @@ export default defineComponent({
|
|||||||
return (
|
return (
|
||||||
<ElTag
|
<ElTag
|
||||||
style={dictData.value?.cssClass ? 'color: #fff' : ''}
|
style={dictData.value?.cssClass ? 'color: #fff' : ''}
|
||||||
type={dictData.value?.colorType}
|
type={dictData.value?.colorType || 'primary'}
|
||||||
color={
|
color={
|
||||||
dictData.value?.cssClass && isHexColor(dictData.value?.cssClass)
|
dictData.value?.cssClass && isHexColor(dictData.value?.cssClass)
|
||||||
? dictData.value?.cssClass
|
? dictData.value?.cssClass
|
||||||
|
|||||||
@@ -66,6 +66,7 @@ watch(
|
|||||||
(options) => {
|
(options) => {
|
||||||
if (echartRef) {
|
if (echartRef) {
|
||||||
echartRef?.setOption(options)
|
echartRef?.setOption(options)
|
||||||
|
resizeHandler()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -21,10 +21,34 @@ const props = defineProps({
|
|||||||
height: propTypes.oneOfType([Number, String]).def('40vh'),
|
height: propTypes.oneOfType([Number, String]).def('40vh'),
|
||||||
editorConfig: {
|
editorConfig: {
|
||||||
type: Object as PropType<Partial<IEditorConfig>>,
|
type: Object as PropType<Partial<IEditorConfig>>,
|
||||||
default: () => undefined
|
default: () => ({})
|
||||||
},
|
},
|
||||||
readonly: propTypes.bool.def(false),
|
readonly: propTypes.bool.def(false),
|
||||||
modelValue: propTypes.string.def('')
|
modelValue: propTypes.string.def(''),
|
||||||
|
toolbarConfig: {
|
||||||
|
type: Object,
|
||||||
|
default: () => ({
|
||||||
|
excludeKeys: [
|
||||||
|
'insertVideo', // 网络视频
|
||||||
|
'insertImage', // 网络图片
|
||||||
|
'insertLink', // 链接
|
||||||
|
'codeBlock', // 代码块
|
||||||
|
'headerSelect', // 标题
|
||||||
|
'blockquote', // 引用
|
||||||
|
'fontFamily', // 字体
|
||||||
|
'todo', // 代办
|
||||||
|
'group-indent', // 缩进
|
||||||
|
'emotion', // 表情
|
||||||
|
'undo', // 撤销
|
||||||
|
'redo', // 重做
|
||||||
|
'fullScreen'
|
||||||
|
],
|
||||||
|
insertKeys: {
|
||||||
|
index: 20, // 自定义插入的位置
|
||||||
|
keys: ['uploadAttachment'] // “上传附件”菜单
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
const emit = defineEmits(['change', 'update:modelValue'])
|
const emit = defineEmits(['change', 'update:modelValue'])
|
||||||
@@ -84,6 +108,12 @@ const editorConfig = computed((): IEditorConfig => {
|
|||||||
},
|
},
|
||||||
autoFocus: false,
|
autoFocus: false,
|
||||||
scroll: true,
|
scroll: true,
|
||||||
|
// 在编辑器中,点击选中“附件”节点时,要弹出的菜单
|
||||||
|
hoverbarKeys: {
|
||||||
|
attachment: {
|
||||||
|
menuKeys: ['downloadAttachment'] // “下载附件”菜单
|
||||||
|
}
|
||||||
|
},
|
||||||
MENU_CONF: {
|
MENU_CONF: {
|
||||||
['uploadImage']: {
|
['uploadImage']: {
|
||||||
server: import.meta.env.VITE_UPLOAD_URL,
|
server: import.meta.env.VITE_UPLOAD_URL,
|
||||||
@@ -198,6 +228,52 @@ const editorConfig = computed((): IEditorConfig => {
|
|||||||
customInsert(res: any, insertFn: InsertFnType) {
|
customInsert(res: any, insertFn: InsertFnType) {
|
||||||
insertFn(res.data, 'video', res.data)
|
insertFn(res.data, 'video', res.data)
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
uploadAttachment: {
|
||||||
|
server: import.meta.env.VITE_UPLOAD_URL,
|
||||||
|
timeout: 20 * 1000, // 2s
|
||||||
|
|
||||||
|
fieldName: 'file',
|
||||||
|
// meta: { token: 'xxx', a: 100 }, // 请求时附加的数据
|
||||||
|
// metaWithUrl: true, // meta 拼接到 url 上
|
||||||
|
// headers: { Accept: 'text/x-json' },
|
||||||
|
// 自定义增加 http header
|
||||||
|
headers: {
|
||||||
|
Accept: '*',
|
||||||
|
Authorization: 'Bearer ' + getAccessToken(),
|
||||||
|
'tenant-id': getTenantId(),
|
||||||
|
'instance-id': getAppId()
|
||||||
|
},
|
||||||
|
|
||||||
|
maxFileSize: 20 * 1024 * 1024, // 20M
|
||||||
|
|
||||||
|
onBeforeUpload(file: File) {
|
||||||
|
console.log('onBeforeUpload', file)
|
||||||
|
return file // 上传 file 文件
|
||||||
|
// return false // 会阻止上传
|
||||||
|
},
|
||||||
|
onProgress(progress: number) {
|
||||||
|
console.log('onProgress', progress)
|
||||||
|
},
|
||||||
|
onSuccess(file: File, res: any) {
|
||||||
|
console.log('onSuccess', file, res)
|
||||||
|
},
|
||||||
|
onFailed(file: File, res: any) {
|
||||||
|
alert(res.message)
|
||||||
|
console.log('onFailed', file, res)
|
||||||
|
},
|
||||||
|
onError(file: File, err: Error, res: any) {
|
||||||
|
alert(err.message)
|
||||||
|
console.error('onError', file, err, res)
|
||||||
|
},
|
||||||
|
// 上传成功后,用户自定义插入文件
|
||||||
|
customInsert(res: any, file: File, insertFn: Function) {
|
||||||
|
console.log('customInsert', res)
|
||||||
|
|
||||||
|
// 插入附件到编辑器
|
||||||
|
insertFn(file.name, res.data)
|
||||||
|
// insertFn(res.data, `customInsert-${file.name}`, res.data)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
uploadImgShowBase64: true
|
uploadImgShowBase64: true
|
||||||
@@ -212,24 +288,6 @@ const editorStyle = computed(() => {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
const toolbarConfig = ref({
|
|
||||||
excludeKeys: [
|
|
||||||
'insertVideo', // 网络视频
|
|
||||||
'insertImage', // 网络图片
|
|
||||||
'insertLink', // 链接
|
|
||||||
'codeBlock', // 代码块
|
|
||||||
'headerSelect', // 标题
|
|
||||||
'blockquote', // 引用
|
|
||||||
'fontFamily', // 字体
|
|
||||||
'todo', // 代办
|
|
||||||
'group-indent', // 缩进
|
|
||||||
'emotion', // 表情
|
|
||||||
'undo', // 撤销
|
|
||||||
'redo', // 重做
|
|
||||||
'fullScreen'
|
|
||||||
]
|
|
||||||
})
|
|
||||||
|
|
||||||
// 回调函数
|
// 回调函数
|
||||||
const handleChange = (editor: IDomEditor) => {
|
const handleChange = (editor: IDomEditor) => {
|
||||||
emit('change', editor)
|
emit('change', editor)
|
||||||
|
|||||||
@@ -51,7 +51,8 @@ export default defineComponent({
|
|||||||
// 表单label宽度
|
// 表单label宽度
|
||||||
labelWidth: propTypes.oneOfType([String, Number]).def('auto'),
|
labelWidth: propTypes.oneOfType([String, Number]).def('auto'),
|
||||||
// 是否 loading 数据中 add by 芋艿
|
// 是否 loading 数据中 add by 芋艿
|
||||||
vLoading: propTypes.bool.def(false)
|
vLoading: propTypes.bool.def(false),
|
||||||
|
inlineBlock: propTypes.bool.def(false)
|
||||||
},
|
},
|
||||||
emits: ['register'],
|
emits: ['register'],
|
||||||
setup(props, { slots, expose, emit }) {
|
setup(props, { slots, expose, emit }) {
|
||||||
@@ -77,7 +78,10 @@ export default defineComponent({
|
|||||||
})
|
})
|
||||||
|
|
||||||
// 对表单赋值
|
// 对表单赋值
|
||||||
const setValues = (data: Recordable = {}) => {
|
const setValues = (data: Recordable = {}, isReset: Boolean = false) => {
|
||||||
|
if (isReset) {
|
||||||
|
formModel.value = initModel(unref(getProps).schema, unref(formModel))
|
||||||
|
}
|
||||||
formModel.value = Object.assign(unref(formModel), data)
|
formModel.value = Object.assign(unref(formModel), data)
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -232,6 +236,7 @@ export default defineComponent({
|
|||||||
vModel={formModel.value[item.field]}
|
vModel={formModel.value[item.field]}
|
||||||
{...(autoSetPlaceholder && setTextPlaceholder(item))}
|
{...(autoSetPlaceholder && setTextPlaceholder(item))}
|
||||||
{...setComponentProps(item)}
|
{...setComponentProps(item)}
|
||||||
|
filterable
|
||||||
format={item.component == 'DatePicker' ? 'YYYY-MM-DD' : null}
|
format={item.component == 'DatePicker' ? 'YYYY-MM-DD' : null}
|
||||||
value-format={item.component == 'DatePicker' ? 'YYYY-MM-DD' : null}
|
value-format={item.component == 'DatePicker' ? 'YYYY-MM-DD' : null}
|
||||||
style={baseSty + item.componentProps?.style}
|
style={baseSty + item.componentProps?.style}
|
||||||
@@ -289,6 +294,7 @@ export default defineComponent({
|
|||||||
model={props.isCustom ? props.model : formModel}
|
model={props.isCustom ? props.model : formModel}
|
||||||
class={prefixCls}
|
class={prefixCls}
|
||||||
v-loading={props.vLoading}
|
v-loading={props.vLoading}
|
||||||
|
style={props.inlineBlock ? 'display: inline' : ''}
|
||||||
>
|
>
|
||||||
{{
|
{{
|
||||||
// 如果需要自定义,就什么都不渲染,而是提供默认插槽
|
// 如果需要自定义,就什么都不渲染,而是提供默认插槽
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ export const useRenderRadio = () => {
|
|||||||
return item?.options?.map((option) => {
|
return item?.options?.map((option) => {
|
||||||
const { ...other } = option
|
const { ...other } = option
|
||||||
return (
|
return (
|
||||||
<Com {...other} label={option[valueAlias || 'value']}>
|
<Com {...other} label={option[valueAlias || 'value']} value={option[valueAlias || 'value']}>
|
||||||
{option[labelAlias || 'label']}
|
{option[labelAlias || 'label']}
|
||||||
</Com>
|
</Com>
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
v-model:page-size="pageSize"
|
v-model:page-size="pageSize"
|
||||||
:small="small"
|
:small="small"
|
||||||
:background="true"
|
:background="true"
|
||||||
:page-sizes="[10, 20, 30, 50, 100]"
|
:page-sizes="[10, 50, 100, 500, 1000]"
|
||||||
:pager-count="pagerCount"
|
:pager-count="pagerCount"
|
||||||
:total="total"
|
:total="total"
|
||||||
class="float-right mt-15px mb-15px"
|
class="float-right mt-15px mb-15px"
|
||||||
|
|||||||
@@ -1,7 +1,14 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<div class="flex">
|
<div class="flex">
|
||||||
<el-table :data="tableObject.tableList" border style="flex: 1">
|
<el-table
|
||||||
|
:data="tableObject.tableList"
|
||||||
|
:row-key="rowkey"
|
||||||
|
:expand-row-keys="expandRowKeys"
|
||||||
|
border
|
||||||
|
style="flex: 1"
|
||||||
|
@selection-change="handleSelectionChange"
|
||||||
|
>
|
||||||
<slot></slot>
|
<slot></slot>
|
||||||
</el-table>
|
</el-table>
|
||||||
<el-button
|
<el-button
|
||||||
@@ -28,7 +35,7 @@
|
|||||||
@end="onDragEnd"
|
@end="onDragEnd"
|
||||||
>
|
>
|
||||||
<template #item="{ element: item }">
|
<template #item="{ element: item }">
|
||||||
<el-checkbox :key="item.id" :label="item.id">
|
<el-checkbox :key="item.id" :label="item.id" :value="item.id">
|
||||||
{{ item.label }}
|
{{ item.label }}
|
||||||
</el-checkbox>
|
</el-checkbox>
|
||||||
</template>
|
</template>
|
||||||
@@ -53,10 +60,12 @@ import { useRoute } from 'vue-router'
|
|||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
tableObject: { type: Object, default: () => ({ tableList: [] }) },
|
tableObject: { type: Object, default: () => ({ tableList: [] }) },
|
||||||
tableColumns: { type: Array, default: () => [] }
|
tableColumns: { type: Array, default: () => [] },
|
||||||
|
rowkey: { type: String, default: 'id' },
|
||||||
|
expandRowKeys: { type: Array, default: () => [] }
|
||||||
})
|
})
|
||||||
|
|
||||||
const emit = defineEmits(['update:tableObject', 'getList', 'getCheckedColumns'])
|
const emit = defineEmits(['update:tableObject', 'getList', 'getCheckedColumns', 'selection-change'])
|
||||||
const route = useRoute()
|
const route = useRoute()
|
||||||
|
|
||||||
const pageNo = ref(props.tableObject?.pageNo || 1)
|
const pageNo = ref(props.tableObject?.pageNo || 1)
|
||||||
@@ -110,6 +119,10 @@ function onDragEnd() {
|
|||||||
emitColumns()
|
emitColumns()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function handleSelectionChange(val) {
|
||||||
|
emit('selection-change', val)
|
||||||
|
}
|
||||||
|
|
||||||
// 勾选确认
|
// 勾选确认
|
||||||
function confirm() {
|
function confirm() {
|
||||||
ClueCacheApi.setClueCache({
|
ClueCacheApi.setClueCache({
|
||||||
|
|||||||
@@ -38,6 +38,7 @@ const props = defineProps({
|
|||||||
// 伸缩的界限字段
|
// 伸缩的界限字段
|
||||||
expandField: propTypes.string.def(''),
|
expandField: propTypes.string.def(''),
|
||||||
inline: propTypes.bool.def(true),
|
inline: propTypes.bool.def(true),
|
||||||
|
inlineBlock: propTypes.bool.def(false),
|
||||||
model: {
|
model: {
|
||||||
type: Object as PropType<Recordable>,
|
type: Object as PropType<Recordable>,
|
||||||
default: () => ({})
|
default: () => ({})
|
||||||
@@ -58,6 +59,11 @@ const usedSchema = ref([])
|
|||||||
|
|
||||||
const newSchema = computed(() => {
|
const newSchema = computed(() => {
|
||||||
let schema: FormSchema[] = cloneDeep(usedSchema.value)
|
let schema: FormSchema[] = cloneDeep(usedSchema.value)
|
||||||
|
schema.forEach((item: FormSchema) => {
|
||||||
|
if (item.component == 'TreeSelect') {
|
||||||
|
item.componentProps['check-strictly'] = true
|
||||||
|
}
|
||||||
|
})
|
||||||
if (props.expand && props.expandField && !unref(visible)) {
|
if (props.expand && props.expandField && !unref(visible)) {
|
||||||
const index = findIndex(schema, (v: FormSchema) => v.field === props.expandField)
|
const index = findIndex(schema, (v: FormSchema) => v.field === props.expandField)
|
||||||
if (index > -1) {
|
if (index > -1) {
|
||||||
@@ -154,6 +160,7 @@ initSearch()
|
|||||||
<!-- update by 芋艿:class="-mb-15px" 用于降低和 ContentWrap 组件的底部距离,避免空隙过大 -->
|
<!-- update by 芋艿:class="-mb-15px" 用于降低和 ContentWrap 组件的底部距离,避免空隙过大 -->
|
||||||
<Form
|
<Form
|
||||||
:inline="inline"
|
:inline="inline"
|
||||||
|
:inlineBlock="inlineBlock"
|
||||||
:is-col="isCol"
|
:is-col="isCol"
|
||||||
:is-custom="false"
|
:is-custom="false"
|
||||||
isSearch
|
isSearch
|
||||||
@@ -176,7 +183,7 @@ initSearch()
|
|||||||
virtual-triggering
|
virtual-triggering
|
||||||
>
|
>
|
||||||
<el-checkbox-group v-model="checkedSchema" @change="changeSearch">
|
<el-checkbox-group v-model="checkedSchema" @change="changeSearch">
|
||||||
<el-checkbox v-for="item in schema" :key="item.id" :label="item.id">
|
<el-checkbox v-for="item in schema" :key="item.id" :label="item.id" :value="item.id">
|
||||||
{{ item.label }}
|
{{ item.label }}
|
||||||
</el-checkbox>
|
</el-checkbox>
|
||||||
</el-checkbox-group>
|
</el-checkbox-group>
|
||||||
|
|||||||
@@ -23,10 +23,10 @@
|
|||||||
>
|
>
|
||||||
<el-button type="primary"><Icon icon="ep:upload-filled" />选取文件</el-button>
|
<el-button type="primary"><Icon icon="ep:upload-filled" />选取文件</el-button>
|
||||||
<template v-if="isShowTip" #tip>
|
<template v-if="isShowTip" #tip>
|
||||||
<div style="font-size: 8px">
|
<div style="font-size: 12px">
|
||||||
大小不超过 <b style="color: #f56c6c">{{ fileSize }}MB</b>
|
大小不超过 <b style="color: #f56c6c">{{ fileSize }}MB</b>
|
||||||
</div>
|
</div>
|
||||||
<div style="font-size: 8px">
|
<div style="font-size: 12px">
|
||||||
格式为 <b style="color: #f56c6c">{{ fileType.join('/') }}</b> 的文件
|
格式为 <b style="color: #f56c6c">{{ fileType.join('/') }}</b> 的文件
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -44,9 +44,10 @@ const props = defineProps({
|
|||||||
modelValue: propTypes.oneOfType<string | string[]>([String, Array<String>]).isRequired,
|
modelValue: propTypes.oneOfType<string | string[]>([String, Array<String>]).isRequired,
|
||||||
title: propTypes.string.def('文件上传'),
|
title: propTypes.string.def('文件上传'),
|
||||||
updateUrl: propTypes.string.def(import.meta.env.VITE_UPLOAD_URL),
|
updateUrl: propTypes.string.def(import.meta.env.VITE_UPLOAD_URL),
|
||||||
fileType: propTypes.array.def(['doc', 'xls', 'ppt', 'txt', 'pdf']), // 文件类型, 例如['png', 'jpg', 'jpeg']
|
// fileType: propTypes.array.def(['doc', 'xls', 'ppt', 'txt', 'pdf']), // 文件类型, 例如['png', 'jpg', 'jpeg']
|
||||||
|
fileType: propTypes.array.def([]),
|
||||||
accept: propTypes.string.def('*'),
|
accept: propTypes.string.def('*'),
|
||||||
fileSize: propTypes.number.def(5), // 大小限制(MB)
|
fileSize: propTypes.number.def(100), // 大小限制(MB)
|
||||||
limit: propTypes.number.def(5), // 数量限制
|
limit: propTypes.number.def(5), // 数量限制
|
||||||
autoUpload: propTypes.bool.def(true), // 自动上传
|
autoUpload: propTypes.bool.def(true), // 自动上传
|
||||||
drag: propTypes.bool.def(false), // 拖拽上传
|
drag: propTypes.bool.def(false), // 拖拽上传
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
@import './process-designer.scss';
|
@import './process-designer.scss';
|
||||||
@import './process-panel.scss';
|
@import './process-panel.scss';
|
||||||
@@ -7,7 +7,7 @@ const config: {
|
|||||||
/**
|
/**
|
||||||
* api请求基础路径
|
* api请求基础路径
|
||||||
*/
|
*/
|
||||||
base_url: 'http://localhost' + import.meta.env.VITE_API_BASEPATH,
|
base_url: import.meta.env.VITE_API_BASEPATH,
|
||||||
/**
|
/**
|
||||||
* 接口成功返回状态码
|
* 接口成功返回状态码
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -5,10 +5,11 @@ import { config } from './config'
|
|||||||
const { default_headers } = config
|
const { default_headers } = config
|
||||||
|
|
||||||
const request = (option: any) => {
|
const request = (option: any) => {
|
||||||
const { url, method, params, data, headersType, responseType } = option
|
const { url, method, params, data, headersType, responseType, isSubmitForm } = option
|
||||||
return service({
|
return service({
|
||||||
url: url,
|
url: url,
|
||||||
method,
|
method,
|
||||||
|
isSubmitForm,
|
||||||
params,
|
params,
|
||||||
data,
|
data,
|
||||||
responseType: responseType,
|
responseType: responseType,
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ import {
|
|||||||
import errorCode from './errorCode'
|
import errorCode from './errorCode'
|
||||||
|
|
||||||
import { resetRouter } from '@/router'
|
import { resetRouter } from '@/router'
|
||||||
import { useCache } from '@/hooks/web/useCache'
|
import cache from '@/plugins/cache'
|
||||||
|
|
||||||
const { result_code, base_url, request_timeout } = config
|
const { result_code, base_url, request_timeout } = config
|
||||||
|
|
||||||
@@ -62,15 +62,11 @@ service.interceptors.request.use(
|
|||||||
}
|
}
|
||||||
// 设置租户
|
// 设置租户
|
||||||
const tenantId = getTenantId()
|
const tenantId = getTenantId()
|
||||||
if (tenantId) {
|
if (tenantId) (config as Recordable).headers['tenant-id'] = tenantId
|
||||||
;(config as Recordable).headers['tenant-id'] = tenantId
|
|
||||||
}
|
|
||||||
|
|
||||||
// 设置实例
|
// 设置实例
|
||||||
const appId = getAppId()
|
const appId = getAppId()
|
||||||
if (appId) {
|
if (appId) (config as Recordable).headers['instance-id'] = appId
|
||||||
;(config as Recordable).headers['instance-id'] = appId
|
|
||||||
}
|
|
||||||
|
|
||||||
const params = config.params || {}
|
const params = config.params || {}
|
||||||
const data = config.data || false
|
const data = config.data || false
|
||||||
@@ -83,27 +79,39 @@ service.interceptors.request.use(
|
|||||||
}
|
}
|
||||||
// get参数编码
|
// get参数编码
|
||||||
if (config.method?.toUpperCase() === 'GET' && params) {
|
if (config.method?.toUpperCase() === 'GET' && params) {
|
||||||
let url = config.url + '?'
|
config.params = {}
|
||||||
for (const propName of Object.keys(params)) {
|
const paramsStr = qs.stringify(params, { allowDots: true })
|
||||||
const value = params[propName]
|
if (paramsStr) {
|
||||||
if (value !== void 0 && value !== null && typeof value !== 'undefined') {
|
config.url = config.url + '?' + paramsStr
|
||||||
if (typeof value === 'object') {
|
}
|
||||||
for (const val of Object.keys(value)) {
|
}
|
||||||
const params = propName + '[' + val + ']'
|
// 是否提交表单型的接口,如果是,不要频繁调接口
|
||||||
const subPart = encodeURIComponent(params) + '='
|
if (config?.isSubmitForm) {
|
||||||
url += subPart + encodeURIComponent(value[val]) + '&'
|
const requestObj = {
|
||||||
}
|
url: config.url,
|
||||||
} else {
|
data: typeof config.data === 'object' ? JSON.stringify(config.data) : config.data,
|
||||||
url += `${propName}=${encodeURIComponent(value)}&`
|
time: new Date().getTime()
|
||||||
}
|
}
|
||||||
|
const sessionObj = cache.session.get('sessionObj')
|
||||||
|
if (sessionObj === undefined || sessionObj === null || sessionObj === '') {
|
||||||
|
cache.session.set('sessionObj', requestObj)
|
||||||
|
} else {
|
||||||
|
const s_url = sessionObj.url // 请求地址
|
||||||
|
const s_data = sessionObj.data // 请求数据
|
||||||
|
const s_time = sessionObj.time // 请求时间
|
||||||
|
const interval = 1000 // 间隔时间(ms),小于此时间视为重复提交
|
||||||
|
if (
|
||||||
|
s_data === requestObj.data &&
|
||||||
|
requestObj.time - s_time < interval &&
|
||||||
|
s_url === requestObj.url
|
||||||
|
) {
|
||||||
|
const message = '数据正在处理,请勿重复提交'
|
||||||
|
console.warn(`[${s_url}]: ` + message)
|
||||||
|
return Promise.reject(new Error(message))
|
||||||
|
} else {
|
||||||
|
cache.session.set('sessionObj', requestObj)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// 给 get 请求加上时间戳参数,避免从缓存中拿数据
|
|
||||||
// const now = new Date().getTime()
|
|
||||||
// params = params.substring(0, url.length - 1) + `?_t=${now}`
|
|
||||||
url = url.slice(0, -1)
|
|
||||||
config.params = {}
|
|
||||||
config.url = url
|
|
||||||
}
|
}
|
||||||
return config
|
return config
|
||||||
},
|
},
|
||||||
@@ -124,6 +132,9 @@ service.interceptors.response.use(
|
|||||||
throw new Error()
|
throw new Error()
|
||||||
}
|
}
|
||||||
const { t } = useI18n()
|
const { t } = useI18n()
|
||||||
|
// if (data.code === undefined) {
|
||||||
|
// return response
|
||||||
|
// }
|
||||||
// 未设置状态码则默认成功状态
|
// 未设置状态码则默认成功状态
|
||||||
const code = data.code || result_code
|
const code = data.code || result_code
|
||||||
// 二进制数据则直接返回
|
// 二进制数据则直接返回
|
||||||
@@ -197,8 +208,23 @@ service.interceptors.response.use(
|
|||||||
if (msg === '无效的刷新令牌') {
|
if (msg === '无效的刷新令牌') {
|
||||||
// hard coding:忽略这个提示,直接登出
|
// hard coding:忽略这个提示,直接登出
|
||||||
console.log(msg)
|
console.log(msg)
|
||||||
|
} else if (code == 18888) {
|
||||||
|
return { data }
|
||||||
} else {
|
} else {
|
||||||
ElNotification.error({ title: msg })
|
ElNotification.error({ title: msg })
|
||||||
|
if (code == 403) {
|
||||||
|
ElMessageBox.confirm(`${msg},是否重新登陆`, '提示', {
|
||||||
|
type: 'warning'
|
||||||
|
}).then(() => {
|
||||||
|
// 无访问权限,退出登录
|
||||||
|
const tenantId = cache.local.get('TENANT_ID')
|
||||||
|
const appId = cache.local.get('App_ID')
|
||||||
|
resetRouter() // 重置静态路由表
|
||||||
|
cache.local.clear()
|
||||||
|
removeToken()
|
||||||
|
window.location.href = `/crm/login?tenantId=${tenantId}&appId=${appId}`
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return Promise.reject('error')
|
return Promise.reject('error')
|
||||||
} else {
|
} else {
|
||||||
@@ -236,16 +262,15 @@ const handleAuthorized = () => {
|
|||||||
confirmButtonText: t('login.relogin'),
|
confirmButtonText: t('login.relogin'),
|
||||||
type: 'warning'
|
type: 'warning'
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
const { wsCache } = useCache()
|
const tenantId = cache.local.get('TENANT_ID')
|
||||||
const tenantId = wsCache.get('TENANT_ID')
|
const appId = cache.local.get('App_ID')
|
||||||
const appId = wsCache.get('App_ID')
|
|
||||||
resetRouter() // 重置静态路由表
|
resetRouter() // 重置静态路由表
|
||||||
wsCache.clear()
|
cache.local.clear()
|
||||||
removeToken()
|
removeToken()
|
||||||
isRelogin.show = false
|
isRelogin.show = false
|
||||||
// 干掉token后再走一次路由让它过router.beforeEach的校验
|
// 干掉token后再走一次路由让它过router.beforeEach的校验
|
||||||
// window.location.href = window.location.href
|
// window.location.href = window.location.href
|
||||||
window.location.href = `/login?tenantId=${tenantId}&appId=${appId}`
|
window.location.href = `/crm/login?tenantId=${tenantId}&appId=${appId}`
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
return Promise.reject(t('sys.api.timeoutMessage'))
|
return Promise.reject(t('sys.api.timeoutMessage'))
|
||||||
|
|||||||
@@ -1,14 +1,14 @@
|
|||||||
import type { App } from 'vue'
|
import type { App } from 'vue'
|
||||||
import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
|
import { CACHE_KEY } from '@/hooks/web/useCache'
|
||||||
|
import cache from '@/plugins/cache'
|
||||||
|
|
||||||
const { t } = useI18n() // 国际化
|
const { t } = useI18n() // 国际化
|
||||||
|
|
||||||
export function hasPermi(app: App<Element>) {
|
export function hasPermi(app: App<Element>) {
|
||||||
app.directive('hasPermi', (el, binding) => {
|
app.directive('hasPermi', (el, binding) => {
|
||||||
const { wsCache } = useCache()
|
|
||||||
const { value } = binding
|
const { value } = binding
|
||||||
const all_permission = '*:*:*'
|
const all_permission = '*:*:*'
|
||||||
const permissions = wsCache.get(CACHE_KEY.USER).permissions
|
const permissions = cache.local.get(CACHE_KEY.USER)?.permissions || []
|
||||||
|
|
||||||
if (value && value instanceof Array && value.length > 0) {
|
if (value && value instanceof Array && value.length > 0) {
|
||||||
const permissionFlag = value
|
const permissionFlag = value
|
||||||
|
|||||||
@@ -1,14 +1,14 @@
|
|||||||
import type { App } from 'vue'
|
import type { App } from 'vue'
|
||||||
import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
|
import { CACHE_KEY } from '@/hooks/web/useCache'
|
||||||
|
import cache from '@/plugins/cache'
|
||||||
|
|
||||||
const { t } = useI18n() // 国际化
|
const { t } = useI18n() // 国际化
|
||||||
|
|
||||||
export function hasRole(app: App<Element>) {
|
export function hasRole(app: App<Element>) {
|
||||||
app.directive('hasRole', (el, binding) => {
|
app.directive('hasRole', (el, binding) => {
|
||||||
const { wsCache } = useCache()
|
|
||||||
const { value } = binding
|
const { value } = binding
|
||||||
const super_admin = 'admin'
|
const super_admin = 'admin'
|
||||||
const roles = wsCache.get(CACHE_KEY.USER).roles
|
const roles = cache.local.get(CACHE_KEY.USER).roles
|
||||||
|
|
||||||
if (value && value instanceof Array && value.length > 0) {
|
if (value && value instanceof Array && value.length > 0) {
|
||||||
const roleFlag = value
|
const roleFlag = value
|
||||||
|
|||||||
@@ -229,6 +229,7 @@ const filterFormSchema = (crudSchema: CrudSchema[], allSchemas: AllSchemas): For
|
|||||||
value: defaultValue,
|
value: defaultValue,
|
||||||
...schemaItem.form,
|
...schemaItem.form,
|
||||||
field: schemaItem.field,
|
field: schemaItem.field,
|
||||||
|
isRequired: schemaItem.isRequired,
|
||||||
label: schemaItem.form?.label || schemaItem.label
|
label: schemaItem.form?.label || schemaItem.label
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -265,7 +266,6 @@ const filterFormSchema = (crudSchema: CrudSchema[], allSchemas: AllSchemas): For
|
|||||||
// 过滤 descriptions 结构
|
// 过滤 descriptions 结构
|
||||||
const filterDescriptionsSchema = (crudSchema: CrudSchema[]): DescriptionsSchema[] => {
|
const filterDescriptionsSchema = (crudSchema: CrudSchema[]): DescriptionsSchema[] => {
|
||||||
const descriptionsSchema: FormSchema[] = []
|
const descriptionsSchema: FormSchema[] = []
|
||||||
|
|
||||||
eachTree(crudSchema, (schemaItem: CrudSchema) => {
|
eachTree(crudSchema, (schemaItem: CrudSchema) => {
|
||||||
// 判断是否显示
|
// 判断是否显示
|
||||||
if (schemaItem?.isDetail !== false && schemaItem.detail?.show !== false) {
|
if (schemaItem?.isDetail !== false && schemaItem.detail?.show !== false) {
|
||||||
@@ -274,6 +274,10 @@ const filterDescriptionsSchema = (crudSchema: CrudSchema[]): DescriptionsSchema[
|
|||||||
field: schemaItem.field,
|
field: schemaItem.field,
|
||||||
label: schemaItem.detail?.label || schemaItem.label
|
label: schemaItem.detail?.label || schemaItem.label
|
||||||
}
|
}
|
||||||
|
if (schemaItem.form?.component == 'Editor') {
|
||||||
|
descriptionsSchemaItem.span = 2
|
||||||
|
descriptionsSchemaItem.isEditor = true
|
||||||
|
}
|
||||||
if (schemaItem.dictType) {
|
if (schemaItem.dictType) {
|
||||||
descriptionsSchemaItem.dictType = schemaItem.dictType
|
descriptionsSchemaItem.dictType = schemaItem.dictType
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,7 +13,12 @@ export const useMessage = () => {
|
|||||||
},
|
},
|
||||||
// 成功消息
|
// 成功消息
|
||||||
success(content: string) {
|
success(content: string) {
|
||||||
ElMessage.success(content)
|
// ElMessage.success(content)
|
||||||
|
ElMessage({
|
||||||
|
message: content,
|
||||||
|
duration: 1500,
|
||||||
|
type: 'success'
|
||||||
|
})
|
||||||
},
|
},
|
||||||
// 警告消息
|
// 警告消息
|
||||||
warning(content: string) {
|
warning(content: string) {
|
||||||
|
|||||||
@@ -15,14 +15,14 @@ export function useWatermark(appendEl: HTMLElement | null = document.body) {
|
|||||||
clear()
|
clear()
|
||||||
|
|
||||||
const can = document.createElement('canvas')
|
const can = document.createElement('canvas')
|
||||||
can.width = 300
|
can.width = 500
|
||||||
can.height = 240
|
can.height = 240
|
||||||
|
|
||||||
const cans = can.getContext('2d')
|
const cans = can.getContext('2d')
|
||||||
if (cans) {
|
if (cans) {
|
||||||
cans.rotate((-20 * Math.PI) / 120)
|
cans.rotate((-20 * Math.PI) / 120)
|
||||||
cans.font = '15px Vedana'
|
cans.font = '15px Vedana'
|
||||||
cans.fillStyle = 'rgba(0, 0, 0, 0.15)'
|
cans.fillStyle = 'rgba(0, 0, 0, 0.05)'
|
||||||
cans.textAlign = 'left'
|
cans.textAlign = 'left'
|
||||||
cans.textBaseline = 'middle'
|
cans.textBaseline = 'middle'
|
||||||
cans.fillText(str, can.width / 20, can.height)
|
cans.fillText(str, can.width / 20, can.height)
|
||||||
|
|||||||
@@ -1,6 +1,9 @@
|
|||||||
<script lang="ts" name="Message" setup>
|
<script lang="ts" name="Message" setup>
|
||||||
import { formatDate } from '@/utils/formatTime'
|
import { formatDate } from '@/utils/formatTime'
|
||||||
import * as NotifyMessageApi from '@/api/system/notify/message'
|
import * as NotifyMessageApi from '@/api/system/notify/message'
|
||||||
|
import { useUserStore } from '@/store/modules/user'
|
||||||
|
|
||||||
|
const userStore = useUserStore()
|
||||||
|
|
||||||
const { push } = useRouter()
|
const { push } = useRouter()
|
||||||
const activeName = ref('notice')
|
const activeName = ref('notice')
|
||||||
@@ -9,22 +12,27 @@ const list = ref<any[]>([]) // 消息列表
|
|||||||
|
|
||||||
// 获得消息列表
|
// 获得消息列表
|
||||||
const getList = async () => {
|
const getList = async () => {
|
||||||
list.value = await NotifyMessageApi.getUnreadNotifyMessageList()
|
const data = await NotifyMessageApi.getUnreadNotifyMessageList({
|
||||||
|
roleId: userStore.getUser?.currentRole
|
||||||
|
})
|
||||||
|
list.value = data.list
|
||||||
// 强制设置 unreadCount 为 0,避免小红点因为轮询太慢,不消除
|
// 强制设置 unreadCount 为 0,避免小红点因为轮询太慢,不消除
|
||||||
unreadCount.value = 0
|
unreadCount.value = 0
|
||||||
}
|
}
|
||||||
|
|
||||||
// 获得未读消息数
|
// 获得未读消息数
|
||||||
const getUnreadCount = async () => {
|
const getUnreadCount = async () => {
|
||||||
NotifyMessageApi.getUnreadNotifyMessageCount().then((data) => {
|
NotifyMessageApi.getUnreadNotifyMessageCount({ roleId: userStore.getUser?.currentRole }).then(
|
||||||
unreadCount.value = data
|
(data) => {
|
||||||
})
|
unreadCount.value = data
|
||||||
|
}
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
// 跳转我的站内信
|
// 跳转我的站内信
|
||||||
const goMyList = () => {
|
const goMyList = () => {
|
||||||
push({
|
push({
|
||||||
name: 'MyNotifyMessage'
|
name: 'NotifyMessage'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -56,10 +64,9 @@ onUnmounted(() => {
|
|||||||
<div class="message-list">
|
<div class="message-list">
|
||||||
<template v-for="item in list" :key="item.id">
|
<template v-for="item in list" :key="item.id">
|
||||||
<div class="message-item">
|
<div class="message-item">
|
||||||
<img alt="" class="message-icon" src="@/assets/imgs/avatar.gif" />
|
|
||||||
<div class="message-content">
|
<div class="message-content">
|
||||||
<span class="message-title">
|
<span class="message-title">
|
||||||
{{ item.templateNickname }}:{{ item.templateContent }}
|
{{ item.title }}
|
||||||
</span>
|
</span>
|
||||||
<span class="message-date">
|
<span class="message-date">
|
||||||
{{ formatDate(item.createTime) }}
|
{{ formatDate(item.createTime) }}
|
||||||
@@ -94,7 +101,7 @@ onUnmounted(() => {
|
|||||||
.message-item {
|
.message-item {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
padding: 20px 0;
|
padding: 5px 0;
|
||||||
border-bottom: 1px solid var(--el-border-color-light);
|
border-bottom: 1px solid var(--el-border-color-light);
|
||||||
|
|
||||||
&:last-child {
|
&:last-child {
|
||||||
@@ -113,6 +120,7 @@ onUnmounted(() => {
|
|||||||
|
|
||||||
.message-title {
|
.message-title {
|
||||||
margin-bottom: 5px;
|
margin-bottom: 5px;
|
||||||
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
.message-date {
|
.message-date {
|
||||||
|
|||||||
@@ -2,8 +2,9 @@
|
|||||||
// import { ElMessage } from 'element-plus'
|
// import { ElMessage } from 'element-plus'
|
||||||
// import { useClipboard, useCssVar } from '@vueuse/core'
|
// import { useClipboard, useCssVar } from '@vueuse/core'
|
||||||
import { useCssVar } from '@vueuse/core'
|
import { useCssVar } from '@vueuse/core'
|
||||||
import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
|
import { CACHE_KEY } from '@/hooks/web/useCache'
|
||||||
import { useDesign } from '@/hooks/web/useDesign'
|
import { useDesign } from '@/hooks/web/useDesign'
|
||||||
|
import cache from '@/plugins/cache'
|
||||||
|
|
||||||
import { setCssVar, trim } from '@/utils'
|
import { setCssVar, trim } from '@/utils'
|
||||||
import { colorIsDark, hexToRGB, lighten } from '@/utils/color'
|
import { colorIsDark, hexToRGB, lighten } from '@/utils/color'
|
||||||
@@ -12,6 +13,13 @@ import { ThemeSwitch } from '@/layout/components/ThemeSwitch'
|
|||||||
import ColorRadioPicker from './components/ColorRadioPicker.vue'
|
import ColorRadioPicker from './components/ColorRadioPicker.vue'
|
||||||
// import InterfaceDisplay from './components/InterfaceDisplay.vue'
|
// import InterfaceDisplay from './components/InterfaceDisplay.vue'
|
||||||
// import LayoutRadioPicker from './components/LayoutRadioPicker.vue'
|
// import LayoutRadioPicker from './components/LayoutRadioPicker.vue'
|
||||||
|
import { useWatermark } from '@/hooks/web/useWatermark'
|
||||||
|
|
||||||
|
const { setWatermark } = useWatermark()
|
||||||
|
|
||||||
|
nextTick(() => {
|
||||||
|
setWatermark('安徽莳松科技有限公司')
|
||||||
|
})
|
||||||
|
|
||||||
const { t } = useI18n()
|
const { t } = useI18n()
|
||||||
const appStore = useAppStore()
|
const appStore = useAppStore()
|
||||||
@@ -188,16 +196,16 @@ watch(
|
|||||||
|
|
||||||
// 清空缓存
|
// 清空缓存
|
||||||
const clear = () => {
|
const clear = () => {
|
||||||
const { wsCache } = useCache()
|
cache.local.delete(CACHE_KEY.LAYOUT)
|
||||||
wsCache.delete(CACHE_KEY.LAYOUT)
|
cache.local.delete(CACHE_KEY.THEME)
|
||||||
wsCache.delete(CACHE_KEY.THEME)
|
cache.local.delete(CACHE_KEY.IS_DARK)
|
||||||
wsCache.delete(CACHE_KEY.IS_DARK)
|
|
||||||
window.location.reload()
|
window.location.reload()
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div
|
<div
|
||||||
|
v-if="false"
|
||||||
:class="prefixCls"
|
:class="prefixCls"
|
||||||
class="fixed top-[45%] right-0 w-40px h-40px text-center leading-40px bg-[var(--el-color-primary)] cursor-pointer"
|
class="fixed top-[45%] right-0 w-40px h-40px text-center leading-40px bg-[var(--el-color-primary)] cursor-pointer"
|
||||||
@click="drawer = true"
|
@click="drawer = true"
|
||||||
@@ -205,7 +213,9 @@ const clear = () => {
|
|||||||
<Icon color="#fff" icon="ep:setting" />
|
<Icon color="#fff" icon="ep:setting" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<ElDrawer v-model="drawer" :z-index="4000" direction="rtl" size="350px">
|
<div @click="drawer = true">主题配置</div>
|
||||||
|
|
||||||
|
<ElDrawer v-model="drawer" :z-index="4000" append-to-body direction="rtl" size="350px">
|
||||||
<template #header>
|
<template #header>
|
||||||
<span class="text-16px font-700">{{ t('setting.projectSetting') }}</span>
|
<span class="text-16px font-700">{{ t('setting.projectSetting') }}</span>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -124,7 +124,6 @@ const fixedMenuChange = (show: boolean) => {
|
|||||||
const setWater = () => {
|
const setWater = () => {
|
||||||
setWatermark(water.value)
|
setWatermark(water.value)
|
||||||
}
|
}
|
||||||
setWater()
|
|
||||||
|
|
||||||
const layout = computed(() => appStore.getLayout)
|
const layout = computed(() => appStore.getLayout)
|
||||||
|
|
||||||
|
|||||||
@@ -1,17 +1,18 @@
|
|||||||
<script lang="ts" name="UserInfo" setup>
|
<script lang="ts" name="UserInfo" setup>
|
||||||
import { ElMessageBox } from 'element-plus'
|
import { ElMessageBox } from 'element-plus'
|
||||||
|
|
||||||
import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
|
import { CACHE_KEY } from '@/hooks/web/useCache'
|
||||||
import { useDesign } from '@/hooks/web/useDesign'
|
import { useDesign } from '@/hooks/web/useDesign'
|
||||||
import avatarImg from '@/assets/imgs/avatar.gif'
|
import avatarImg from '@/assets/imgs/avatar.gif'
|
||||||
import { useUserStore } from '@/store/modules/user'
|
import { useUserStore } from '@/store/modules/user'
|
||||||
import { useTagsViewStore } from '@/store/modules/tagsView'
|
import { useTagsViewStore } from '@/store/modules/tagsView'
|
||||||
import { getTenantId, getAppId } from '@/utils/auth'
|
import { getTenantId, getAppId } from '@/utils/auth'
|
||||||
|
import cache from '@/plugins/cache'
|
||||||
|
|
||||||
|
import { Setting } from '@/layout/components/Setting'
|
||||||
|
|
||||||
const { t } = useI18n()
|
const { t } = useI18n()
|
||||||
|
|
||||||
const { wsCache } = useCache()
|
|
||||||
|
|
||||||
const { push, replace } = useRouter()
|
const { push, replace } = useRouter()
|
||||||
|
|
||||||
const userStore = useUserStore()
|
const userStore = useUserStore()
|
||||||
@@ -22,7 +23,7 @@ const { getPrefixCls } = useDesign()
|
|||||||
|
|
||||||
const prefixCls = getPrefixCls('user-info')
|
const prefixCls = getPrefixCls('user-info')
|
||||||
|
|
||||||
const user = wsCache.get(CACHE_KEY.USER)
|
const user = cache.local.get(CACHE_KEY.USER)
|
||||||
|
|
||||||
const avatar = user.user.avatar ? user.user.avatar : avatarImg
|
const avatar = user.user.avatar ? user.user.avatar : avatarImg
|
||||||
|
|
||||||
@@ -58,6 +59,10 @@ const toProfile = async () => {
|
|||||||
</div>
|
</div>
|
||||||
<template #dropdown>
|
<template #dropdown>
|
||||||
<ElDropdownMenu>
|
<ElDropdownMenu>
|
||||||
|
<ElDropdownItem>
|
||||||
|
<Icon icon="ep:tools" />
|
||||||
|
<Setting />
|
||||||
|
</ElDropdownItem>
|
||||||
<ElDropdownItem>
|
<ElDropdownItem>
|
||||||
<Icon icon="ep:tools" />
|
<Icon icon="ep:tools" />
|
||||||
<div @click="toProfile">{{ t('common.profile') }}</div>
|
<div @click="toProfile">{{ t('common.profile') }}</div>
|
||||||
|
|||||||
@@ -42,8 +42,13 @@ import '@/plugins/tongji' // 百度统计
|
|||||||
import Logger from '@/utils/Logger'
|
import Logger from '@/utils/Logger'
|
||||||
import VueDOMPurifyHTML from 'vue-dompurify-html'
|
import VueDOMPurifyHTML from 'vue-dompurify-html'
|
||||||
|
|
||||||
|
import { Boot } from '@wangeditor/editor'
|
||||||
|
import attachmentModule from '@wangeditor/plugin-upload-attachment'
|
||||||
|
|
||||||
// 创建实例
|
// 创建实例
|
||||||
const setupAll = async () => {
|
const setupAll = async () => {
|
||||||
|
// 注册。要在创建编辑器之前注册,且只能注册一次,不可重复注册。
|
||||||
|
Boot.registerModule(attachmentModule)
|
||||||
const app = createApp(App)
|
const app = createApp(App)
|
||||||
|
|
||||||
await setupI18n(app)
|
await setupI18n(app)
|
||||||
|
|||||||
@@ -7,25 +7,42 @@ import { usePageLoading } from '@/hooks/web/usePageLoading'
|
|||||||
import { useDictStoreWithOut } from '@/store/modules/dict'
|
import { useDictStoreWithOut } from '@/store/modules/dict'
|
||||||
import { useUserStoreWithOut } from '@/store/modules/user'
|
import { useUserStoreWithOut } from '@/store/modules/user'
|
||||||
import { usePermissionStoreWithOut } from '@/store/modules/permission'
|
import { usePermissionStoreWithOut } from '@/store/modules/permission'
|
||||||
import { getTenantId, getAppId } from '@/utils/auth'
|
import { useAppStoreWithOut } from '@/store/modules/app'
|
||||||
|
import { getTenantId, getAppId, setTenantId, setAppId } from '@/utils/auth'
|
||||||
|
|
||||||
const { start, done } = useNProgress()
|
const { start, done } = useNProgress()
|
||||||
|
|
||||||
const { loadStart, loadDone } = usePageLoading()
|
const { loadStart, loadDone } = usePageLoading()
|
||||||
// 路由不重定向白名单
|
// 路由不重定向白名单
|
||||||
const whiteList = ['/login', '/social-login', '/auth-redirect', '/bind', '/register', '/swagger']
|
const whiteList = [
|
||||||
|
'/login',
|
||||||
|
'/mp-login',
|
||||||
|
'/nm-detail',
|
||||||
|
'/social-login',
|
||||||
|
'/auth-redirect',
|
||||||
|
'/bind',
|
||||||
|
'/register',
|
||||||
|
'/swagger'
|
||||||
|
]
|
||||||
|
|
||||||
// 路由加载前
|
// 路由加载前
|
||||||
router.beforeEach(async (to, from, next) => {
|
router.beforeEach(async (to, from, next) => {
|
||||||
start()
|
start()
|
||||||
loadStart()
|
loadStart()
|
||||||
|
const userStore = useUserStoreWithOut()
|
||||||
|
if (to.path == '/login') {
|
||||||
|
userStore.resetState() // 重置用户信息状态
|
||||||
|
}
|
||||||
if (getAccessToken()) {
|
if (getAccessToken()) {
|
||||||
if (to.path === '/login') {
|
if (to.path === '/login') {
|
||||||
|
if (to.query?.tenantId && to.query?.appId) {
|
||||||
|
setApp(to.query.tenantId, to.query.appId)
|
||||||
|
await waitTime(1500)
|
||||||
|
}
|
||||||
next({ path: '/' })
|
next({ path: '/' })
|
||||||
} else {
|
} else {
|
||||||
// 获取所有字典
|
// 获取所有字典
|
||||||
const dictStore = useDictStoreWithOut()
|
const dictStore = useDictStoreWithOut()
|
||||||
const userStore = useUserStoreWithOut()
|
|
||||||
const permissionStore = usePermissionStoreWithOut()
|
const permissionStore = usePermissionStoreWithOut()
|
||||||
if (!dictStore.getIsSetDict) {
|
if (!dictStore.getIsSetDict) {
|
||||||
await dictStore.setDictMap()
|
await dictStore.setDictMap()
|
||||||
@@ -56,12 +73,29 @@ router.beforeEach(async (to, from, next) => {
|
|||||||
if (tenantId && appId) {
|
if (tenantId && appId) {
|
||||||
next(`/login?tenantId=${tenantId}&appId=${appId}&redirect=${to.fullPath}`) // 否则全部重定向到登录页
|
next(`/login?tenantId=${tenantId}&appId=${appId}&redirect=${to.fullPath}`) // 否则全部重定向到登录页
|
||||||
} else {
|
} else {
|
||||||
next(`/login?redirect=${to.fullPath}`) // 否则全部重定向到登录页
|
// next(`/login?redirect=${to.fullPath}`) // 否则全部重定向到登录页
|
||||||
|
window.location.href = 'https://cloud.ahduima.com/ss/login'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
async function waitTime(seconds) {
|
||||||
|
return new Promise((resolve) => {
|
||||||
|
setTimeout(() => {
|
||||||
|
resolve()
|
||||||
|
}, seconds)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
function setApp(tenantId, appId) {
|
||||||
|
setTenantId(tenantId)
|
||||||
|
|
||||||
|
setAppId(appId)
|
||||||
|
const appStore = useAppStoreWithOut()
|
||||||
|
appStore.setAppInfo(appId)
|
||||||
|
}
|
||||||
|
|
||||||
router.afterEach((to) => {
|
router.afterEach((to) => {
|
||||||
useTitle(to?.meta?.title)
|
useTitle(to?.meta?.title)
|
||||||
done() // 结束Progress
|
done() // 结束Progress
|
||||||
|
|||||||
8
src/plugins/cache/index.js
vendored
8
src/plugins/cache/index.js
vendored
@@ -26,7 +26,7 @@ const sessionCache = {
|
|||||||
let storage = storageStr ? JSON.parse(storageStr) : {}
|
let storage = storageStr ? JSON.parse(storageStr) : {}
|
||||||
return storage[key]
|
return storage[key]
|
||||||
},
|
},
|
||||||
remove(key) {
|
delete(key) {
|
||||||
if (!sessionStorage) {
|
if (!sessionStorage) {
|
||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
@@ -62,7 +62,7 @@ const localCache = {
|
|||||||
let storage = storageStr ? JSON.parse(storageStr) : {}
|
let storage = storageStr ? JSON.parse(storageStr) : {}
|
||||||
return storage[key]
|
return storage[key]
|
||||||
},
|
},
|
||||||
remove(key) {
|
delete(key) {
|
||||||
if (!localStorage) {
|
if (!localStorage) {
|
||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
@@ -73,6 +73,10 @@ const localCache = {
|
|||||||
let storage = storageStr ? JSON.parse(storageStr) : {}
|
let storage = storageStr ? JSON.parse(storageStr) : {}
|
||||||
delete storage[key]
|
delete storage[key]
|
||||||
localStorage.setItem(name, JSON.stringify(storage))
|
localStorage.setItem(name, JSON.stringify(storage))
|
||||||
|
},
|
||||||
|
clear() {
|
||||||
|
let storage = {}
|
||||||
|
localStorage.setItem(name, JSON.stringify(storage))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import remainingRouter from './modules/remaining'
|
|||||||
|
|
||||||
// 创建路由实例
|
// 创建路由实例
|
||||||
const router = createRouter({
|
const router = createRouter({
|
||||||
history: createWebHistory(), // createWebHashHistory URL带#,createWebHistory URL不带#
|
history: createWebHistory(import.meta.env.VITE_BASE_PATH), // createWebHashHistory URL带#,createWebHistory URL不带#
|
||||||
strict: true,
|
strict: true,
|
||||||
routes: remainingRouter as RouteRecordRaw[],
|
routes: remainingRouter as RouteRecordRaw[],
|
||||||
scrollBehavior: () => ({ left: 0, top: 0 })
|
scrollBehavior: () => ({ left: 0, top: 0 })
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ const remainingRouter: AppRouteRecordRaw[] = [
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '',
|
path: '/',
|
||||||
component: Layout,
|
component: Layout,
|
||||||
redirect: '/Home/index',
|
redirect: '/Home/index',
|
||||||
name: '',
|
name: '',
|
||||||
@@ -59,6 +59,20 @@ const remainingRouter: AppRouteRecordRaw[] = [
|
|||||||
title: '首页',
|
title: '首页',
|
||||||
hidden: true
|
hidden: true
|
||||||
}
|
}
|
||||||
|
// ,children: [
|
||||||
|
// {
|
||||||
|
// path: '/index',
|
||||||
|
// component: () => import('@/views/Basic/Menu/index.vue'),
|
||||||
|
// name: 'Home',
|
||||||
|
// meta: {
|
||||||
|
// title: '首页',
|
||||||
|
// icon: 'ep:home-filled',
|
||||||
|
// noTagsView: true,
|
||||||
|
// affix: true
|
||||||
|
// // hidden: true
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// ]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/swagger',
|
path: '/swagger',
|
||||||
@@ -94,8 +108,8 @@ const remainingRouter: AppRouteRecordRaw[] = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'notify-message',
|
path: 'notify-message',
|
||||||
component: () => import('@/views/system/notify/my/index.vue'),
|
component: () => import('@/views/Profile/NotifyMessage.vue'),
|
||||||
name: 'MyNotifyMessage',
|
name: 'NotifyMessage',
|
||||||
meta: {
|
meta: {
|
||||||
canTo: true,
|
canTo: true,
|
||||||
hidden: true,
|
hidden: true,
|
||||||
@@ -106,7 +120,6 @@ const remainingRouter: AppRouteRecordRaw[] = [
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
||||||
// {
|
// {
|
||||||
// path: '/dict',
|
// path: '/dict',
|
||||||
// component: Layout,
|
// component: Layout,
|
||||||
@@ -130,7 +143,27 @@ const remainingRouter: AppRouteRecordRaw[] = [
|
|||||||
// }
|
// }
|
||||||
// ]
|
// ]
|
||||||
// },
|
// },
|
||||||
|
// {
|
||||||
|
// path: '/Basic',
|
||||||
|
// component: Layout,
|
||||||
|
// name: 'Basic',
|
||||||
|
// redirect: '/Basic/menu',
|
||||||
|
// meta: { title: '菜单管理' },
|
||||||
|
// children: [
|
||||||
|
// {
|
||||||
|
// path: 'menu',
|
||||||
|
// component: () => import('@/views/Basic/Menu/index.vue'),
|
||||||
|
// name: 'Menu',
|
||||||
|
// meta: {
|
||||||
|
// canTo: true,
|
||||||
|
// hidden: true,
|
||||||
|
// noTagsView: false,
|
||||||
|
// icon: 'ep:user',
|
||||||
|
// title: '菜单管理'
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// ]
|
||||||
|
// },
|
||||||
{
|
{
|
||||||
path: '/login',
|
path: '/login',
|
||||||
component: () => import('@/views/Login/Login.vue'),
|
component: () => import('@/views/Login/Login.vue'),
|
||||||
@@ -141,6 +174,16 @@ const remainingRouter: AppRouteRecordRaw[] = [
|
|||||||
noTagsView: true
|
noTagsView: true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
path: '/mp-login',
|
||||||
|
component: () => import('@/views/Login/MPLogin.vue'),
|
||||||
|
name: 'MPLogin',
|
||||||
|
meta: {
|
||||||
|
hidden: true,
|
||||||
|
title: '用户绑定',
|
||||||
|
noTagsView: true
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
path: '/sso',
|
path: '/sso',
|
||||||
component: () => import('@/views/Login/Login.vue'),
|
component: () => import('@/views/Login/Login.vue'),
|
||||||
@@ -151,6 +194,16 @@ const remainingRouter: AppRouteRecordRaw[] = [
|
|||||||
noTagsView: true
|
noTagsView: true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
path: '/nm-detail',
|
||||||
|
component: () => import('@/views/Profile/NotifyMessageDetail.vue'),
|
||||||
|
name: 'NMDetail',
|
||||||
|
meta: {
|
||||||
|
hidden: true,
|
||||||
|
title: '通知详情',
|
||||||
|
noTagsView: true
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
path: '/403',
|
path: '/403',
|
||||||
component: () => import('@/views/Error/403.vue'),
|
component: () => import('@/views/Error/403.vue'),
|
||||||
|
|||||||
87
src/router/modules/static.ts
Normal file
87
src/router/modules/static.ts
Normal file
@@ -0,0 +1,87 @@
|
|||||||
|
const staticRouter: AppCustomRouteRecordRaw[] = [
|
||||||
|
{
|
||||||
|
icon: 'ep:calendar',
|
||||||
|
path: '/Okr',
|
||||||
|
component: '',
|
||||||
|
name: 'OKR',
|
||||||
|
componentName: '',
|
||||||
|
redirect: '',
|
||||||
|
parentId: 0,
|
||||||
|
visible: true,
|
||||||
|
alwaysShow: true,
|
||||||
|
children: [
|
||||||
|
{
|
||||||
|
icon: 'ep:finished',
|
||||||
|
path: 'okr-management',
|
||||||
|
name: 'OKR管理',
|
||||||
|
componentName: 'OkrManagement',
|
||||||
|
component: 'OKR/Management/index',
|
||||||
|
visible: true,
|
||||||
|
alwaysShow: true,
|
||||||
|
meta: {
|
||||||
|
title: 'OKR管理'
|
||||||
|
},
|
||||||
|
redirect: ''
|
||||||
|
},
|
||||||
|
{
|
||||||
|
icon: 'ep:alarm-clock',
|
||||||
|
path: 'okr-wait',
|
||||||
|
name: '待办事项',
|
||||||
|
componentName: 'OkrWait',
|
||||||
|
component: 'OKR/Wait/index',
|
||||||
|
meta: {
|
||||||
|
title: '待办事项'
|
||||||
|
},
|
||||||
|
visible: true,
|
||||||
|
alwaysShow: true,
|
||||||
|
redirect: ''
|
||||||
|
},
|
||||||
|
{
|
||||||
|
icon: 'ep:data-line',
|
||||||
|
path: 'okr-analysis',
|
||||||
|
name: 'Okr统计',
|
||||||
|
componentName: 'OkrAnalysis',
|
||||||
|
component: 'OKR/Analysis/index',
|
||||||
|
meta: {
|
||||||
|
title: 'Okr统计'
|
||||||
|
},
|
||||||
|
visible: true,
|
||||||
|
alwaysShow: true,
|
||||||
|
redirect: ''
|
||||||
|
},
|
||||||
|
{
|
||||||
|
icon: 'ep:data-board',
|
||||||
|
path: 'okr-meeting',
|
||||||
|
name: '会议管理',
|
||||||
|
componentName: 'OkrMeeting',
|
||||||
|
component: 'OKR/Meeting/index',
|
||||||
|
meta: {
|
||||||
|
title: '会议管理'
|
||||||
|
},
|
||||||
|
visible: true,
|
||||||
|
alwaysShow: true,
|
||||||
|
redirect: ''
|
||||||
|
},
|
||||||
|
{
|
||||||
|
icon: 'ep:data-board',
|
||||||
|
path: 'okr-meeting-info/:id',
|
||||||
|
name: '会议详情',
|
||||||
|
componentName: 'MeetingInfo',
|
||||||
|
component: 'OKR/Meeting/MeetingInfo',
|
||||||
|
meta: {
|
||||||
|
title: '会议详情'
|
||||||
|
},
|
||||||
|
visible: false,
|
||||||
|
alwaysShow: true,
|
||||||
|
redirect: '',
|
||||||
|
keepAlive: true
|
||||||
|
}
|
||||||
|
],
|
||||||
|
meta: {
|
||||||
|
title: 'OKR',
|
||||||
|
icon: 'ep:calendar'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
|
||||||
|
export default staticRouter
|
||||||
@@ -2,13 +2,12 @@ import { defineStore } from 'pinia'
|
|||||||
import { store } from '../index'
|
import { store } from '../index'
|
||||||
import { setCssVar, humpToUnderline } from '@/utils'
|
import { setCssVar, humpToUnderline } from '@/utils'
|
||||||
import { ElMessage } from 'element-plus'
|
import { ElMessage } from 'element-plus'
|
||||||
import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
|
import { CACHE_KEY } from '@/hooks/web/useCache'
|
||||||
import { ElementPlusSize } from '@/types/elementPlus'
|
import { ElementPlusSize } from '@/types/elementPlus'
|
||||||
import { LayoutType } from '@/types/layout'
|
import { LayoutType } from '@/types/layout'
|
||||||
import { ThemeTypes } from '@/types/theme'
|
import { ThemeTypes } from '@/types/theme'
|
||||||
import { getAppInfo } from '@/api/login'
|
import { getAppInfo } from '@/api/login'
|
||||||
|
import cache from '@/plugins/cache'
|
||||||
const { wsCache } = useCache()
|
|
||||||
|
|
||||||
interface AppState {
|
interface AppState {
|
||||||
breadcrumb: boolean
|
breadcrumb: boolean
|
||||||
@@ -46,7 +45,7 @@ export const useAppStore = defineStore('app', {
|
|||||||
sizeMap: ['default', 'large', 'small'],
|
sizeMap: ['default', 'large', 'small'],
|
||||||
mobile: false, // 是否是移动端
|
mobile: false, // 是否是移动端
|
||||||
title: import.meta.env.VITE_APP_TITLE, // 标题
|
title: import.meta.env.VITE_APP_TITLE, // 标题
|
||||||
appInfo: wsCache.get('appInfo'),
|
appInfo: cache.local.get('appInfo'),
|
||||||
pageLoading: false, // 路由跳转loading
|
pageLoading: false, // 路由跳转loading
|
||||||
|
|
||||||
breadcrumb: true, // 面包屑
|
breadcrumb: true, // 面包屑
|
||||||
@@ -64,12 +63,12 @@ export const useAppStore = defineStore('app', {
|
|||||||
fixedHeader: true, // 固定toolheader
|
fixedHeader: true, // 固定toolheader
|
||||||
footer: false, // 显示页脚
|
footer: false, // 显示页脚
|
||||||
greyMode: false, // 是否开始灰色模式,用于特殊悼念日
|
greyMode: false, // 是否开始灰色模式,用于特殊悼念日
|
||||||
fixedMenu: wsCache.get('fixedMenu') || false, // 是否固定菜单
|
fixedMenu: cache.local.get('fixedMenu') || false, // 是否固定菜单
|
||||||
|
|
||||||
layout: wsCache.get(CACHE_KEY.LAYOUT) || 'classic', // layout布局
|
layout: cache.local.get(CACHE_KEY.LAYOUT) || 'classic', // layout布局
|
||||||
isDark: wsCache.get(CACHE_KEY.IS_DARK) || false, // 是否是暗黑模式
|
isDark: cache.local.get(CACHE_KEY.IS_DARK) || false, // 是否是暗黑模式
|
||||||
currentSize: wsCache.get('default') || 'default', // 组件尺寸
|
currentSize: cache.local.get('default') || 'default', // 组件尺寸
|
||||||
theme: wsCache.get(CACHE_KEY.THEME) || {
|
theme: cache.local.get(CACHE_KEY.THEME) || {
|
||||||
// 主题色
|
// 主题色
|
||||||
elColorPrimary: '#409eff',
|
elColorPrimary: '#409eff',
|
||||||
// 左侧菜单边框颜色
|
// 左侧菜单边框颜色
|
||||||
@@ -225,7 +224,7 @@ export const useAppStore = defineStore('app', {
|
|||||||
this.greyMode = greyMode
|
this.greyMode = greyMode
|
||||||
},
|
},
|
||||||
setFixedMenu(fixedMenu: boolean) {
|
setFixedMenu(fixedMenu: boolean) {
|
||||||
wsCache.set('fixedMenu', fixedMenu)
|
cache.local.set('fixedMenu', fixedMenu)
|
||||||
this.fixedMenu = fixedMenu
|
this.fixedMenu = fixedMenu
|
||||||
},
|
},
|
||||||
setPageLoading(pageLoading: boolean) {
|
setPageLoading(pageLoading: boolean) {
|
||||||
@@ -237,7 +236,7 @@ export const useAppStore = defineStore('app', {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
this.layout = layout
|
this.layout = layout
|
||||||
wsCache.set(CACHE_KEY.LAYOUT, this.layout)
|
cache.local.set(CACHE_KEY.LAYOUT, this.layout)
|
||||||
},
|
},
|
||||||
setTitle(title: string) {
|
setTitle(title: string) {
|
||||||
this.title = title
|
this.title = title
|
||||||
@@ -251,18 +250,18 @@ export const useAppStore = defineStore('app', {
|
|||||||
document.documentElement.classList.add('light')
|
document.documentElement.classList.add('light')
|
||||||
document.documentElement.classList.remove('dark')
|
document.documentElement.classList.remove('dark')
|
||||||
}
|
}
|
||||||
wsCache.set(CACHE_KEY.IS_DARK, this.isDark)
|
cache.local.set(CACHE_KEY.IS_DARK, this.isDark)
|
||||||
},
|
},
|
||||||
setCurrentSize(currentSize: ElementPlusSize) {
|
setCurrentSize(currentSize: ElementPlusSize) {
|
||||||
this.currentSize = currentSize
|
this.currentSize = currentSize
|
||||||
wsCache.set('currentSize', this.currentSize)
|
cache.local.set('currentSize', this.currentSize)
|
||||||
},
|
},
|
||||||
setMobile(mobile: boolean) {
|
setMobile(mobile: boolean) {
|
||||||
this.mobile = mobile
|
this.mobile = mobile
|
||||||
},
|
},
|
||||||
setTheme(theme: ThemeTypes) {
|
setTheme(theme: ThemeTypes) {
|
||||||
this.theme = Object.assign(this.theme, theme)
|
this.theme = Object.assign(this.theme, theme)
|
||||||
wsCache.set(CACHE_KEY.THEME, this.theme)
|
cache.local.set(CACHE_KEY.THEME, this.theme)
|
||||||
},
|
},
|
||||||
setCssVarTheme() {
|
setCssVarTheme() {
|
||||||
for (const key in this.theme) {
|
for (const key in this.theme) {
|
||||||
@@ -274,7 +273,7 @@ export const useAppStore = defineStore('app', {
|
|||||||
},
|
},
|
||||||
async setAppInfo(appId: number) {
|
async setAppInfo(appId: number) {
|
||||||
const appInfo = await getAppInfo(appId)
|
const appInfo = await getAppInfo(appId)
|
||||||
wsCache.set('appInfo', appInfo)
|
cache.local.set('appInfo', appInfo)
|
||||||
this.appInfo = appInfo
|
this.appInfo = appInfo
|
||||||
return appInfo
|
return appInfo
|
||||||
}
|
}
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user