Compare commits

...

2067 Commits

Author SHA1 Message Date
“huailei000”
cf9da2353c perf: github flow 2023-03-08 17:04:00 +08:00
“huailei000”
3993b508bf perf: 调整其它设置表单显示内容 2023-03-08 16:33:49 +08:00
“huailei000”
73ee639542 perf: work flow 2023-03-08 16:01:21 +08:00
Bai
71726cedd9 fix: 修复组织管理员打开用户列表报错的问题 2023-03-08 14:40:28 +08:00
“huailei000”
bd959224d9 perf: 优化控制台仪表盘排名列表数据显示 2023-03-07 11:45:32 +08:00
“huailei000”
2877e5e6ac perf: 调整logo对齐 2023-03-06 15:14:42 +08:00
“huailei000”
b112a9c518 perf: table列表增加拖动效果 2023-03-02 18:51:26 +08:00
“huailei000”
e83afb02fb perf: 调整账号详情ssh指纹显示 2023-03-02 16:32:02 +08:00
“huailei000”
fadc3f8cb0 perf: 优化移动端模式下菜单样式 2023-03-02 11:08:24 +08:00
Aaron3S
fb4a940d2d fix: 修改权限依赖 2023-03-01 18:39:48 +08:00
“huailei000”
2d3d1396ce perf: 优化通告组件链接样式 2023-03-01 13:56:02 +08:00
“huailei000”
a231623e77 perf: 优化选择平台弹窗样式 2023-02-28 19:09:19 +08:00
Aaron3S
cdf46e6369 feat: 增加按钮提示 2023-02-28 18:46:22 +08:00
Aaron3S
e58cbb33ca fix: 增加运行用户为空时的提示 2023-02-28 18:30:27 +08:00
Aaron3S
26fcbb5bc7 fix: 修复作业无法执行的问题 2023-02-28 18:10:19 +08:00
“huailei000”
f8cad13091 perf: 优化移动端下切换组织组件样式 2023-02-28 17:33:22 +08:00
老广
62b1555922 Merge pull request #2832 from jumpserver/pr@v3.0@fix_version
fix: 修正版本获取不正确
2023-02-28 17:01:12 +08:00
“huailei000”
6ff32568bc perf: 优化移动端样式 2023-02-28 16:45:25 +08:00
吴小白
d0460c62df fix: 修正版本获取不正确 2023-02-28 16:38:43 +08:00
老广
d14957545a Merge pull request #2829 from jumpserver/pr@v3.0@perf_ztree_height
perf: 优化 tree 高度
2023-02-28 16:30:21 +08:00
ibuler
15b561a81e perf: 优化 tree 高度 2023-02-28 08:09:22 +00:00
“huailei000”
fd47bf0484 perf: about dialog 2023-02-28 14:06:11 +08:00
feng626
543dc1d31b Merge pull request #2823 from jumpserver/pr@v3.0@push_account_community
perf: 推送账号 社区版定时任务关闭
2023-02-28 13:37:09 +08:00
ibuler
980ffb14d1 perf: 优化 关于页面 2023-02-28 13:35:12 +08:00
feng
be9cef64af perf: 推送账号 社区版定时任务关闭 2023-02-28 12:46:53 +08:00
Aaron3S
c2706bbafa fix: 修复 term 组件上的按钮被覆盖的问题 2023-02-27 18:35:22 +08:00
老广
d65f5326ae Merge pull request #2816 from jumpserver/pr@v3.0@fix_platform_create
perf: 修改 assetMeta 调用
2023-02-27 17:56:09 +08:00
ibuler
5e048b5537 perf: 修改 assetMeta 调用 2023-02-27 09:46:31 +00:00
老广
5199bfb144 Merge pull request #2814 from jumpserver/pr@v3.0@fix_platform_create
fix: 修复平台创建
2023-02-27 17:44:10 +08:00
ibuler
415e01984a fix: 修复平台创建 2023-02-27 09:40:18 +00:00
feng
bca21fb11e perf: lina 提示优化 2023-02-27 16:27:54 +08:00
Aaron3S
f1d4bbe23c fix: 暂时隐藏参数设置字段 2023-02-27 16:11:51 +08:00
feng626
c425d3842a Merge pull request #2807 from jumpserver/revert-2799-pr@v3.0@lina_point_out
Revert "perf: lina 提示优化"
2023-02-27 16:01:45 +08:00
feng626
86147dc48e Revert "perf: lina 提示优化" 2023-02-27 16:00:03 +08:00
ibuler
656a76dae9 perf: 平台允许修改 2023-02-27 15:51:11 +08:00
ibuler
bad88b1543 perf: 添加accounts 搜索建议 2023-02-27 15:21:00 +08:00
feng626
71c58dcf8f Merge pull request #2799 from jumpserver/pr@v3.0@lina_point_out
perf: lina 提示优化
2023-02-27 13:28:55 +08:00
feng
7e953296c5 perf: lina 提示优化 2023-02-27 13:25:07 +08:00
Bai
e381a32954 perf: 优化 applet host 请求引起的 error 2023-02-26 12:37:50 +08:00
feng626
a4c239a79f Merge pull request #2793 from jumpserver/pr@v3.0@add_account_asset_required
perf: add account asset required
2023-02-24 16:26:41 +08:00
feng
645b3d96c4 perf: add account asset required 2023-02-24 16:25:31 +08:00
Jiangjie.Bai
36aea652d6 Merge pull request #2788 from jumpserver/dev
v3.0.0
2023-02-23 20:16:41 +08:00
“huailei000”
7deaf27526 perf: 验证MFA不显示错误提示 2023-02-23 20:06:49 +08:00
老广
fceb5904fe Merge pull request #2786 from jumpserver/pr@dev@perf_account_history1
perf: 修改 history versin
2023-02-23 20:02:29 +08:00
老广
fa86225ae3 Merge branch 'dev' into pr@dev@perf_account_history1 2023-02-23 20:01:11 +08:00
ibuler
7fe43ca0ff perf: 修改 history versin 2023-02-23 19:57:48 +08:00
“huailei000”
6511aca103 perf: 用户详情-授权资产过滤显示字段 2023-02-23 19:35:53 +08:00
feng626
833d530c2f Merge pull request #2784 from jumpserver/pr@dev@i18n
perf: i18n
2023-02-23 19:24:30 +08:00
feng
3acd8d179e perf: i18n 2023-02-23 19:23:44 +08:00
feng626
828bb76057 Merge pull request #2783 from jumpserver/pr@dev@feat_add_view_celerytask_dep
feat: 增加任务执行对日志查看的任务依赖
2023-02-23 19:08:03 +08:00
Aaron3S
d4ab4e3c7b feat: 增加任务执行对日志查看的任务依赖 2023-02-23 19:06:13 +08:00
“huailei000”
0346630f02 perf: 全局组织下资产详情不能模版添加账号 2023-02-23 19:05:55 +08:00
“huailei000”
d74e70893e perf: 优化全局组织下一些权限问题 2023-02-23 18:59:54 +08:00
老广
55c6202c5e Merge pull request #2780 from jumpserver/pr@dev@perf_change_msg
perf: 修改一些提示
2023-02-23 18:49:48 +08:00
ibuler
63cb48ed23 perf: 优化翻译 2023-02-23 18:48:44 +08:00
ibuler
c2d552362a perf: 优化 角色 2023-02-23 18:42:45 +08:00
ibuler
364c8998fa perf: 修改一些提示 2023-02-23 18:36:47 +08:00
“huailei000”
8cb4f9ccda fix: 修复站内信查看会话,会话详情不能下载录像问题 2023-02-23 17:41:16 +08:00
Bai
b46021db49 fix: 修复账号创建更新时 su-from api 的参数 2023-02-23 17:01:36 +08:00
feng626
7552fd7637 Merge pull request #2777 from jumpserver/pr@dev@perf
perf: 账号收集 web资产 字段优化
2023-02-23 16:39:44 +08:00
feng
6eaa21bf66 perf: 账号收集 web资产 字段优化 2023-02-23 16:38:51 +08:00
“huailei000”
a0658d93d8 perf: 优化创建资产时添加相同类型的账号过滤方法 2023-02-23 16:22:37 +08:00
老广
8d87c89da2 Merge pull request #2775 from jumpserver/pr@dev@fix_assetlisttest
fix: 修复资产列表测试按钮添加 auto_info 选项
2023-02-23 16:20:17 +08:00
Bai
6621da8639 fix: 修复资产列表测试按钮添加 auto_info 选项 2023-02-23 16:15:09 +08:00
Aaron3S
6e8c93657e perf: 增加作业中心系统错误显示 2023-02-23 15:32:28 +08:00
Bai
0b5d7c8ca1 fix: 修复 build 时设置版本号 2023-02-23 15:28:37 +08:00
老广
71c86a637c Merge pull request #2771 from jumpserver/pr@dev@perf_ticket2
perf: 优化账号历史数量
2023-02-23 14:12:53 +08:00
ibuler
4dc1102629 perf: 优化账号历史数量 2023-02-23 14:06:51 +08:00
Bai
7fdd463201 fix: 修复请求 profile api 返回 302 的问题 2023-02-23 13:59:29 +08:00
Bai
f3616f06e8 fix: 修复资产账号列表测试权限控制 2023-02-23 11:50:46 +08:00
“huailei000”
c1f0fbbfd9 perf: 优化快捷命令样式 2023-02-23 11:33:26 +08:00
feng626
3597c52af8 Merge pull request #2767 from jumpserver/pr@dev@termian_applet_perm
perf: terminal applet perm
2023-02-23 11:27:11 +08:00
feng
38eb45cc81 perf: terminal applet perm 2023-02-23 11:25:40 +08:00
“huailei000”
94b23241eb perf: 全局组织资产树不显示节点操作 2023-02-23 11:14:07 +08:00
“huailei000”
a851ccdfe7 perf: 优化全局组织下权限 2023-02-23 11:02:36 +08:00
“huailei000”
4b7b3b3507 perf: 全局组织下不能测试 2023-02-23 10:44:37 +08:00
Jiangjie.Bai
1a42ce90ab Merge pull request #2760 from jumpserver/dev
v3.0.0-rc-latest
2023-02-22 22:21:54 +08:00
“huailei000”
70a45bdb03 perf: 优化账号详情查看密码弹窗显示内容 2023-02-22 21:53:50 +08:00
老广
7644313bbf Merge pull request #2762 from jumpserver/pr@dev@perf_change_md_style
perf: 修改 markdown style
2023-02-22 21:31:44 +08:00
ibuler
e067419e00 perf: 修改 markdown style 2023-02-22 21:30:55 +08:00
“huailei000”
cadf057518 fix:修复创建资产报错后账号密码重复加密问题 2023-02-22 21:30:51 +08:00
fit2bot
4d534dabba perf: 优化账号历史 (#2748)
* perf: 优化账号历史

* perf: 修改对其

---------

Co-authored-by: ibuler <ibuler@qq.com>
2023-02-22 21:23:23 +08:00
Bai
e60e95c899 fix: 解决 system role detail user list 不显示 orgName 2023-02-22 21:08:41 +08:00
Bai
413e8dcf7f fix: 修复资产授权规则过滤 2023-02-22 21:08:23 +08:00
Bai
a0b6e9c00c fix: 修复云同步实例详情状态显示 2023-02-22 20:40:42 +08:00
Eric_Lee
25e649b4d8 Merge pull request #2755 from jumpserver/pr@dev@fix_cloudip
fix: 修复云同步执行列表 ip 字段显示
2023-02-22 20:12:04 +08:00
Bai
1146d9763a fix: 修复云同步执行列表 ip 字段显示 2023-02-22 20:11:02 +08:00
“huailei000”
afa8cbac88 perf: 优化资产详情账号列表显示字段 2023-02-22 19:45:09 +08:00
“huailei000”
2f97fbe65e perf: 优化列表字段翻译 2023-02-22 19:35:56 +08:00
“huailei000”
002efbc506 perf: 调整角色列表显示 2023-02-22 19:25:30 +08:00
Aaron3S
f67aa65fa2 fix: 增加一些helptext 2023-02-22 19:01:13 +08:00
“huailei000”
983cd266f5 perf: 账号详情增加查看密码 2023-02-22 18:40:07 +08:00
feng626
0fcd2c990b Merge pull request #2750 from jumpserver/pr@dev@fix_ops_delete_file_i18n
fix: 修复翻译错误
2023-02-22 18:19:57 +08:00
Aaron3S
0bb8bb9c01 fix: 修复翻译错误 2023-02-22 18:17:26 +08:00
“huailei000”
c8eead9f82 fix: 修复账号点击查看弹出错误提示 2023-02-22 17:26:30 +08:00
“huailei000”
29012dd05f fix: 修复创建资产时添加相同类型的账号报错问题 2023-02-22 16:49:05 +08:00
feng626
73dd61762f Merge pull request #2746 from jumpserver/pr@dev@push_account_task
perf: push account task
2023-02-22 16:46:58 +08:00
feng
0fedd033d3 perf: push account task 2023-02-22 16:46:09 +08:00
Bai
fc6ce53b8a fix: 修复 celery log 查看页面失败的问题 2023-02-22 16:14:18 +08:00
“huailei000”
02a735c53a perf: 优化导入导出图标 2023-02-22 15:46:07 +08:00
Bai
d6208eabd3 fix: 修复页面url跳转 任务日志页面跳转失败问题 2023-02-22 15:29:14 +08:00
老广
08faad0f41 Merge pull request #2741 from jumpserver/pr@dev@fix_indexurl
fix: 修复重定向 url 包含 /ui/# 前缀
2023-02-22 14:28:42 +08:00
Eric_Lee
a7ac4120f9 Merge pull request #2740 from jumpserver/pr@dev@fix_applethost
fix: 获取 发布机失败的问题
2023-02-22 14:27:17 +08:00
Bai
16236dda09 fix: 修复重定向 url 包含 /ui/# 前缀 2023-02-22 14:25:45 +08:00
Eric
0746879dd5 fix: 获取 发布机失败的问题 2023-02-22 14:23:39 +08:00
Bai
dabd26b604 fix: 修改资产详情页面 2023-02-22 13:56:20 +08:00
feng626
d6f0bcdb16 Merge pull request #2738 from jumpserver/pr@dev@automation_is_active
perf: automation is active
2023-02-22 12:47:39 +08:00
feng
e560455ef8 perf: automation is active 2023-02-22 12:46:53 +08:00
老广
fe5111a105 Merge pull request #2737 from jumpserver/pr@dev@perf_account_history
perf: 优化账号,去掉 version
2023-02-22 11:47:13 +08:00
ibuler
9924e5a0d9 perf: 优化账号,去掉 version 2023-02-22 11:35:55 +08:00
“huailei000”
3131bfa683 perf: 优化列表字段显示 2023-02-22 11:23:55 +08:00
Eric_Lee
5841095e08 Merge pull request #2735 from jumpserver/pr@dev@fix_applethost
fix: 修复发布机详情账号列表显示问题
2023-02-22 11:10:27 +08:00
Eric
8c64b81a12 fix: 修复发布机详情账号列表显示问题 2023-02-22 11:07:20 +08:00
“huailei000”
846c040cd6 perf: 账号改密详情资产和节点列表不显示更多操作 2023-02-22 11:03:31 +08:00
老广
d316d1bf1f Merge pull request #2729 from jumpserver/pr@dev@perf_template_add_account
perf: 修改 account template add error msg
2023-02-22 10:57:21 +08:00
“huailei000”
d0cd7915b7 perf: 资产详情账号列表点击查看列表显示变化问题 2023-02-21 22:55:40 +08:00
feng626
4cac6970f6 Merge pull request #2716 from jumpserver/pr@dev@fix_account_test
fix: 修复资产账号列表的测试可连接性禁用问题
2023-02-21 22:53:37 +08:00
huailei
f1f9a02816 Merge branch 'dev' into pr@dev@fix_account_test 2023-02-21 22:47:21 +08:00
Eric_Lee
34ad979dd0 Merge pull request #2731 from jumpserver/pr@dev@fix_applet_host
fix: 修复发布机账号查看跳转问题
2023-02-21 22:11:51 +08:00
“huailei000”
5e1971bfb8 perf: 修复账号收集点击页面不能跳转问题 2023-02-21 22:08:07 +08:00
Eric
a085b9b10a fix: 修复发布机账号查看跳转问题 2023-02-21 22:02:55 +08:00
ibuler
7c81c913cb perf: 修改 account template add error msg 2023-02-21 21:49:37 +08:00
Aaron3S
a65436c16b fix: ops 页面翻译问题 2023-02-21 21:27:13 +08:00
Aaron3S
40216397a6 fix: 修复所有审计日志日期选择bug 2023-02-21 21:25:30 +08:00
“huailei000”
7608b23131 perf: 修复创建资产账号密码重复加密问题 2023-02-21 20:43:26 +08:00
Eric
940ff7acfa perf: ticket icon 默认跳转到待我审批 2023-02-21 20:11:41 +08:00
“huailei000”
b2fa253fb4 perf:过滤远程应用搜索条件 2023-02-21 19:28:40 +08:00
feng626
1f5670bc39 Merge pull request #2723 from jumpserver/pr@dev@change_secret
perf: change secret is_active
2023-02-21 17:55:18 +08:00
feng
f6125f0e75 perf: change secret is_active 2023-02-21 17:52:45 +08:00
feng
0929d38d3e perf: web account privileged 2023-02-21 15:56:38 +08:00
feng626
11cba07198 Merge pull request #2719 from jumpserver/pr@dev@push_account_update
perf: push account update
2023-02-21 15:09:17 +08:00
feng
8a36398cb7 perf: push account update 2023-02-21 15:08:28 +08:00
老广
703f33629a Merge pull request #2718 from jumpserver/pr@dev@perf_account_detail
perf: 优化账号详情
2023-02-21 14:58:31 +08:00
ibuler
c716b20887 perf: remove detail 2023-02-21 14:56:23 +08:00
ibuler
41b333212d perf: 优化账号详情 2023-02-21 14:37:15 +08:00
Aaron3S
932cd5fb36 fix: 修改 dashboard rand 区域默认展示7天排行 2023-02-21 14:31:25 +08:00
老广
a3b62efa1c Merge pull request #2713 from jumpserver/pr@dev@fix_createupdateerror
fix: 修改创建更新表单报错显示问题
2023-02-21 14:21:56 +08:00
老广
282e7cce8c Merge pull request #2708 from jumpserver/pr@dev@perf_account_takss
perf: 优化 account tasks
2023-02-21 14:20:50 +08:00
ibuler
59fa67a999 merge: with dev 2023-02-21 14:20:22 +08:00
老广
c297c15139 Merge pull request #2710 from jumpserver/pr@fix@clone_ssl_asset_no_ssl_option
fix: SSL资产克隆无SSL等选项
2023-02-21 14:16:38 +08:00
ibuler
c5434df5e4 perf: account 2023-02-21 14:12:11 +08:00
Eric
5e8197cd88 fix: 修复资产账号列表的测试可连接性禁用问题 2023-02-21 14:02:30 +08:00
ibuler
651cb6c806 perf: 修改账号任务 2023-02-21 13:39:07 +08:00
ibuler
1ea005efaf perf: 修改权限位 2023-02-21 13:27:21 +08:00
ibuler
adbaefece9 perf: 优化账号任务 2023-02-21 13:00:19 +08:00
“huailei000”
1e1533a0c9 perf: 账号详情不显示特殊信息 2023-02-21 11:28:45 +08:00
“huailei000”
93431df62b perf: 网络设备、云服务、web不支持批量更新网域 2023-02-21 10:35:17 +08:00
Bai
76fcef69a4 fix: 修改创建更新表单报错显示问题 2023-02-20 20:11:37 +08:00
feng626
c05437f58c Merge pull request #2712 from jumpserver/pr@dev@applet_host_perm
perf: applet host perm
2023-02-20 19:45:29 +08:00
feng
90ac325cbb perf: applet host perm 2023-02-20 19:44:29 +08:00
“huailei000”
26508ae87b perf: 优化列表默认显示的字段 2023-02-20 19:32:36 +08:00
jiangweidong
385764c3be fix: SSL资产克隆无SSL等选项 2023-02-20 18:34:50 +08:00
ibuler
fea6155306 perf: 优化 account tasks 2023-02-20 17:59:57 +08:00
Aaron3S
174e7cb0e3 fix: 增加作业日志过滤列 2023-02-20 17:23:01 +08:00
Bai
413feb6372 fix: 修复资产info信息展示list数据 2023-02-20 17:22:15 +08:00
“huailei000”
494bb8ddcc perf: 优化资产列表字段显示 2023-02-20 17:21:32 +08:00
“huailei000”
71e73e9302 perf: 优化我的列表显示 2023-02-20 16:16:12 +08:00
Aaron3S
7a5bd01ed5 fix: 删除组织管理v2列 2023-02-20 15:28:32 +08:00
Bai
b6d9a20d8f fix: 修改翻译 2023-02-20 15:25:49 +08:00
Aaron3S
7d53d444bd fix: 删除 v2 的概念 2023-02-20 15:07:17 +08:00
Aaron3S
a8a726216e fix: 在全局组织下禁止更新和执行作业 2023-02-20 15:04:15 +08:00
“huailei000”
b6258dd32c fix: 修复删除组织后切换组织下拉列表还会显示问题 2023-02-20 14:48:53 +08:00
Bai
5a0d0f98d3 fix: 修复 rbac 权限位依赖 2023-02-20 12:18:55 +08:00
老广
b2cf5c3442 Merge pull request #2697 from jumpserver/pr@dev@perf_org_to_lang
perf: 组织名称过长显示优化
2023-02-19 16:18:31 +08:00
ibuler
47fe93cd19 perf: 组织名称过长显示优化 2023-02-19 16:05:14 +08:00
老广
f8b9b9e664 Merge pull request #2696 from jumpserver/pr@dev@perf_table_datepicker
perf: 优化 datepicker 时间
2023-02-19 15:25:16 +08:00
ibuler
2045351ebd perf: 优化 datepicker 时间 2023-02-19 14:26:43 +08:00
“huailei000”
265870eff7 perf: 优化工单账号组件 2023-02-17 20:58:55 +08:00
“huailei000”
63e51e0e45 perf: 替换图标 2023-02-17 20:22:03 +08:00
“huailei000”
858333bc57 perf: 优化审计台提示文案 2023-02-17 19:41:20 +08:00
Eric
965c6d4c92 perf: 移除无用的取消按钮 2023-02-17 19:32:39 +08:00
Bai
e82d444cf3 fix: 修复工单详情 account 显示 2023-02-17 18:47:53 +08:00
“huailei000”
49abdf52c2 perf: 优化树组件图标 2023-02-17 18:18:22 +08:00
jiangweidong
e5c9e339e9 fix: 调整格式 2023-02-17 17:22:59 +08:00
jiangweidong
d4debd20c4 fix: 调整格式 2023-02-17 17:22:59 +08:00
jiangweidong
ddd607e1ca fix: 路由还原 2023-02-17 17:22:59 +08:00
jiangweidong
4755bbd549 fix: 终端管理-终端详情中无法显示activity界面 2023-02-17 17:22:59 +08:00
jiangweidong
5566435964 fix: 解决一些资源的Activity日志无法查看问题 2023-02-17 17:22:26 +08:00
“huailei000”
6e29d1a1a7 perf: 更新部分图标 2023-02-17 17:09:21 +08:00
feng626
4f7f8e8315 Merge pull request #2686 from jumpserver/pr@dev@fix_account_backup_execution_button_perm
fix: 修复执行账号备份按钮权限问题
2023-02-17 16:23:02 +08:00
Aaron3S
9b79f46920 fix: 修复执行账号备份按钮权限问题 2023-02-17 16:18:34 +08:00
feng626
722dd4ad66 Merge pull request #2684 from jumpserver/pr@dev@fix_change_secret_execution_button_perm
fix: 修复改密页面执行按钮权限位
2023-02-17 15:32:38 +08:00
Aaron3S
c8f038aad8 fix: 修复改密页面执行按钮权限位 2023-02-17 15:24:48 +08:00
feng626
59336c3418 Merge pull request #2683 from jumpserver/pr@dev@fix_perms_dep
fix: 修复一些权限依赖问题
2023-02-17 15:24:35 +08:00
老广
5d028394d1 Merge pull request #2682 from jumpserver/revert-2680-revert-2678-pr@dev@perf_svg_color
Revert "Revert "perf:修改svg颜色""
2023-02-17 15:03:56 +08:00
Aaron3S
19212545c1 fix: 修复一些权限依赖问题 2023-02-17 15:03:53 +08:00
huailei
199d4abeb7 Revert "Revert "perf:修改svg颜色"" 2023-02-17 15:03:15 +08:00
老广
cdd8bd0477 Merge pull request #2681 from jumpserver/pr@dev@fix_operatelog_no_detail_err
fix: 点击操作日志详情空白的问题
2023-02-17 14:39:14 +08:00
老广
3b87a0f0f7 Merge pull request #2677 from jumpserver/pr@dev@fix_asset_select_tree_api_url
fix: 修复错误的api url 地址
2023-02-17 14:38:40 +08:00
老广
2ffbad8593 Merge pull request #2680 from jumpserver/revert-2678-pr@dev@perf_svg_color
Revert "perf:修改svg颜色"
2023-02-17 14:38:16 +08:00
jiangweidong
d42caccff8 fix: 点击操作日志详情空白的问题 2023-02-17 14:37:59 +08:00
huailei
8f4f34dc9f Revert "perf:修改svg颜色"
This reverts commit db6d36390e.
2023-02-17 14:37:23 +08:00
feng626
c2dfb09ec8 Merge pull request #2679 from jumpserver/pr@dev@tocket
perf: ticket
2023-02-17 14:34:35 +08:00
feng
89f524b186 perf: ticket 2023-02-17 14:34:13 +08:00
“huailei000”
db6d36390e perf:修改svg颜色 2023-02-17 14:16:54 +08:00
Aaron3S
2695aeb5a9 fix: 修复错误的api url 地址 2023-02-17 13:13:42 +08:00
老广
c385fd2f15 Merge pull request #2676 from jumpserver/pr@dev@perf_theme
perf: 修改 theme
2023-02-17 12:39:56 +08:00
ibuler
3d7ca884da perf: 修改 theme 2023-02-17 12:38:29 +08:00
老广
c4b3f3a58a Merge pull request #2674 from jumpserver/pr@dev@perf_theme
perf: 优化 theme
2023-02-17 10:39:15 +08:00
Aaron3S
2e92cc02ea perf: 优化审计台dashboard 2023-02-16 20:15:31 +08:00
ibuler
0a230dcea1 perf: 优化 theme 2023-02-16 20:15:24 +08:00
feng626
5bc0de8cff Merge pull request #2673 from jumpserver/pr@dev@ticket_step
perf: ticket step
2023-02-16 20:05:31 +08:00
feng
f647472325 perf: ticket step 2023-02-16 20:04:35 +08:00
Aaron3S
24682d70ce fix: 修复创建作业资产选择树问题 2023-02-16 19:58:44 +08:00
feng626
91b1ae1766 Merge pull request #2670 from jumpserver/pr@dev@perm
pr@dev@perm
2023-02-16 19:38:44 +08:00
feng
7671c7ec72 pr@dev@perm 2023-02-16 19:37:13 +08:00
老广
4847564447 Merge pull request #2669 from jumpserver/pr@dev@perf_clean_help_text
perf: 优化提示
2023-02-16 18:46:59 +08:00
“huailei000”
ac462e3a8e perf: 调整云同步实例详情删除之后跳转地址 2023-02-16 18:45:59 +08:00
ibuler
8469df52e2 perf: 优化提示 2023-02-16 18:45:56 +08:00
“huailei000”
9650c32faf perf: 修改审计台仪表盘快捷跳转 2023-02-16 18:28:18 +08:00
“huailei000”
129d8badd0 fix: 修复更新命令存储传参 2023-02-16 18:17:34 +08:00
“huailei000”
02b5df25f0 fix: 修复创建、更新录像存储跳转空白问题 2023-02-16 17:34:28 +08:00
jiangweidong
00fb4ffc85 perf: 修改PostgreSQL数据库参数为必填 2023-02-16 17:31:28 +08:00
“huailei000”
44ca4e7620 perf: 资产账号更新时不能修改用户名 2023-02-16 16:24:33 +08:00
老广
39d213d149 Merge pull request #2660 from jumpserver/pr@dev@perf_list_table_popover
perf: 修改 table popover
2023-02-16 16:06:58 +08:00
ibuler
bea73cd9c8 perf: 格式化 2023-02-16 16:06:38 +08:00
ibuler
8fe24a56ef perf: layout page 2023-02-16 15:56:05 +08:00
老广
723088b122 Merge pull request #2658 from jumpserver/pr@dev@fix_storage
fix: 修改提交命令存储表单hosts处理问题
2023-02-16 15:45:39 +08:00
老广
db7d64b9a1 Merge pull request #2661 from jumpserver/pr@dev@fix_endpoint_rule_error
fix: 修复创建端点规则报错问题
2023-02-16 15:44:44 +08:00
“huailei000”
45cfece1c0 fix: 修复创建端点规则报错问题 2023-02-16 15:31:20 +08:00
ibuler
9b5e964c68 perf: 修改 table popover 2023-02-16 15:16:11 +08:00
“huailei000”
1b0c89a704 perf: 调整审计台仪表盘字段 2023-02-16 14:58:35 +08:00
Bai
2b78e0bae5 fix: 修改提交命令存储表单hosts处理问题 2023-02-16 14:56:19 +08:00
“huailei000”
c661177de8 perf: 优化云同步列表显示 2023-02-16 14:50:23 +08:00
老广
02bf964622 Merge pull request #2656 from jumpserver/pr@dev@fix_playbook_upload_failer_error
fix: 修复 playbook 上传失败不显示消息的问题
2023-02-16 14:46:38 +08:00
老广
86baf16f2d Merge pull request #2655 from jumpserver/pr@dev@perf_account
perf: 没有 account secret 则不修改
2023-02-16 14:29:26 +08:00
ibuler
548ce2f981 perf: 没有 account secret 则不修改 2023-02-16 14:18:44 +08:00
Aaron3S
f473d47028 fix: 修复 playbook 上传失败不显示消息的问题 2023-02-16 14:11:46 +08:00
ibuler
6e76bcb0f4 perf: 没有 account secret 则不修改 2023-02-16 13:56:00 +08:00
“huailei000”
51101eba54 perf: 云同步详情列表查询条件不设置到url中 2023-02-16 11:14:21 +08:00
feng626
3dd4ccba17 Merge pull request #2654 from jumpserver/pr@dev@replay_storage
perf: replay storage update
2023-02-16 11:13:27 +08:00
feng
c3be0b01ca perf: replay storage update 2023-02-16 11:12:47 +08:00
“huailei000”
bf9a2179ae fix: 修复创建录像存储报错问题 2023-02-16 10:44:47 +08:00
老广
5e0cfdbfcd Merge pull request #2641 from jumpserver/pr@dev@perf_activities_log
perf: 优化Activity日志[操作日志、登录日志]显示
2023-02-15 20:44:06 +08:00
Bai
bfe9747658 fix: 修改翻译 2023-02-15 20:16:27 +08:00
“huailei000”
39ef4b08f8 fix: 修复创建资产重复加密问题 2023-02-15 20:09:27 +08:00
Aaron3S
f039d13bd2 fix: 修复若干rbac问题, 修复任务名字显示中心不友好问题 2023-02-15 19:20:16 +08:00
“huailei000”
1f95761d38 perf: 列表记录默认显示条数 2023-02-15 18:45:40 +08:00
Bai
c3e865b407 fix: 修改翻译 2023-02-15 16:53:53 +08:00
Bai
d4fe97860a fix: 修改翻译 2023-02-15 16:31:16 +08:00
Bai
041801a319 fix: 修改授权规则列表 accounts popover 显示优化 2023-02-15 16:02:44 +08:00
Bai
1e474b25f3 fix: 删除不用的授权搜索配置 2023-02-15 15:42:14 +08:00
Bai
222e230cc2 fix: 修复批量更新云资产时domain字段禁用 2023-02-15 15:36:04 +08:00
feng626
53f48e7483 Merge pull request #2643 from jumpserver/pr@dev@replay_storage
perf: replay storage
2023-02-15 15:14:02 +08:00
feng
4470dc96b7 perf: replay storage 2023-02-15 15:11:20 +08:00
jiangweidong
e998f92045 perf: 优化Activity日志[操作日志、登录日志]显示 2023-02-15 10:51:06 +08:00
feng626
62b88c2a0b Merge pull request #2640 from jumpserver/pr@dev@ticket
perf: ticket perm
2023-02-14 22:57:12 +08:00
feng
f865af018f perf: ticket perm 2023-02-14 22:56:11 +08:00
Aaron3S
84c5a9a019 feat: 增加作业中心开关 2023-02-14 19:54:46 +08:00
Bai
43fae83603 fix: 修复 rbac 相关权限位问题 2023-02-14 19:54:23 +08:00
“huailei000”
065d6f7ba8 perf: 全局组织下角色详情不能添加成员 2023-02-14 19:49:43 +08:00
Bai
2e6bb9ab66 fix: 修复 rbac 相关权限位问题 2023-02-14 19:04:43 +08:00
“huailei000”
d2226c0b00 perf: 优化工单流程详情显示 2023-02-14 18:59:00 +08:00
“huailei000”
b84bcfcfaa fix:修复账号执行列表跳转详情报错问题 2023-02-14 18:42:17 +08:00
Bai
c1ff1575a4 fix: 修复账号模版密钥查看权限的联动 2023-02-14 18:30:37 +08:00
Bai
a716cb1357 fix: 修复账号、账号密钥查看权限的联动 2023-02-14 18:25:51 +08:00
feng626
a02697d3aa Merge pull request #2631 from jumpserver/pr@dev@re
perf: add re
2023-02-14 18:13:21 +08:00
feng
a50b658f28 perf: add re 2023-02-14 18:12:27 +08:00
“huailei000”
179f74dbd0 fix: 修复创建资产授权时资产、节点没有自动选择问题 2023-02-14 18:07:37 +08:00
Bai
35f1f1f92c fix: 修改用户个人信息页面 connection-token,temp-token 过期权限位 2023-02-14 17:53:07 +08:00
feng626
f81128227c Merge pull request #2628 from jumpserver/pr@dev@button_display
perf: button display
2023-02-14 17:28:42 +08:00
feng
0a7caf71c7 perf: button display 2023-02-14 17:27:35 +08:00
“huailei000”
2d34c6962b perf: 账号密码加密 2023-02-14 17:27:29 +08:00
Bai
8797e8e869 fix: 删除一些不用的方法 2023-02-14 17:17:33 +08:00
Aaron3S
f416fdc875 fix: 修复任务详情白屏的问题 2023-02-14 16:42:11 +08:00
feng626
90e8c21182 Merge pull request #2625 from jumpserver/pr@dev@ldap_org
perf: ldap org
2023-02-14 16:41:31 +08:00
feng
a10e922a7c perf: ldap org 2023-02-14 16:39:55 +08:00
“huailei000”
49b1a3a29b fix: 修复工单流程设置2级审批不能设置问题 2023-02-14 16:11:22 +08:00
老广
f4c16a5377 Merge pull request #2621 from jumpserver/pr@dev@perf_redis_platform
perf: 优化 redis platform,并且增加 Platform protocols
2023-02-14 16:03:36 +08:00
ibuler
675c6586d2 Merge branch 'dev' into pr@dev@perf_redis_platform 2023-02-14 15:53:35 +08:00
ibuler
9570fc1cb6 perf: 优化 sub form disabled 2023-02-14 14:59:25 +08:00
Bai
cce5caec06 fix: 修复创建资产时删除一个账号会全部删除的问题 2023-02-14 14:57:56 +08:00
Bai
64f521ba00 fix: 修复创建资产时删除一个账号会全部删除的问题 2023-02-14 14:57:56 +08:00
ibuler
834739a878 perf: 优化 redis platform,并且增加 Platform protocols 2023-02-14 14:32:26 +08:00
feng626
8b29be3f72 Merge pull request #2620 from jumpserver/pr@dev@account_name_required
perf: account name required
2023-02-14 11:36:56 +08:00
feng
4d4e4299ab perf: account name required 2023-02-14 11:35:00 +08:00
“huailei000”
5d8e623e1e perf: 优化历史会话列表显示 2023-02-14 10:45:52 +08:00
Bai
f8c74c21b9 fix: 修复rbac授权节点同时授权资产、平台查看权限 2023-02-14 10:45:20 +08:00
“huailei000”
1b6a2938f4 fix: 修复资产详情导出账号列表不准确问题 2023-02-13 19:12:48 +08:00
“huailei000”
5bac6e3936 perf: 优化资产树菜单样式 2023-02-13 16:28:41 +08:00
feng626
fd18581841 Merge pull request #2615 from jumpserver/pr@dev@translate
perf: translate
2023-02-13 16:08:10 +08:00
feng
e380a9d0b0 perf: translate 2023-02-13 16:07:08 +08:00
Aaron3S
8e67f5544d fix: 修复 playbook 没有刷新 form 的问题 2023-02-13 15:19:06 +08:00
“huailei000”
b2323784ae perf: 调整我的资产列表显示 2023-02-13 14:50:59 +08:00
Aaron3S
48387ed576 fix: 修复快捷命令账号切换的问题 2023-02-13 14:32:16 +08:00
feng626
d4b101d4b0 Merge pull request #2611 from jumpserver/pr@dev@feishu_bind
perf: wecom feishu dingtalk
2023-02-13 11:43:27 +08:00
feng
063c19996b perf: wecom feishu dingtalk 2023-02-13 11:41:55 +08:00
老广
bf55efeb56 Merge pull request #2547 from jumpserver/pr@dev@perf_activity
perf: 增加Activity日志中此资源的任务执行及详情查看
2023-02-13 11:18:26 +08:00
jiangweidong
b2fe96600f perf: 解决冲突 2023-02-13 11:11:49 +08:00
“huailei000”
13a1356093 perf: 优化模版详情 2023-02-13 10:32:17 +08:00
“huailei000”
51c6f4321c perf: 工单流程设置-审批设置显示默认值 2023-02-10 19:53:03 +08:00
“huailei000”
49c8b24f6c perf: 操作日志弹窗不显示确认、取消 2023-02-10 19:52:40 +08:00
“huailei000”
f86af9c8b8 perf: 优化会话记录详情 2023-02-10 19:39:08 +08:00
Bai
b709333b1b fix: 修复自动详情页面默认去除 write_only 字段 2023-02-10 19:30:14 +08:00
feng626
5cf26dbd86 Merge pull request #2605 from jumpserver/pr@dev@ticket_nodes
perf: ticket node
2023-02-10 19:00:02 +08:00
feng
0ba28e14c8 perf: ticket node 2023-02-10 18:58:50 +08:00
“huailei000”
2457a88778 fix: 修复工单审批时资产显示不正确问题 2023-02-10 18:38:37 +08:00
feng
48aac68248 perf: perms actions 2023-02-10 18:18:48 +08:00
Bai
c39b5a5d79 fix: 修复云同步任务创建 protocols 问题 2023-02-10 18:17:11 +08:00
feng626
de7005a82d Merge pull request #2602 from jumpserver/pr@dev@ticket_type_filter
perf: ticket type filter
2023-02-10 18:02:05 +08:00
feng
70f76fd592 perf: ticket type filter 2023-02-10 18:01:09 +08:00
“huailei000”
7c5b9e128c fix: 修复工单审批提示错误问题 2023-02-10 17:12:09 +08:00
ibuler
de0e824b30 perf: auth backends 2023-02-10 16:47:31 +08:00
ibuler
870c84d318 perf: 修改 backends 2023-02-10 16:47:31 +08:00
Bai
016846b5b4 fix: 修改用户登录复核详情页面字段显示 2023-02-10 16:46:00 +08:00
Bai
4af8304798 fix: 修改rbac权限依赖关系 2023-02-10 16:41:06 +08:00
Bai
1399f1d197 fix: 修复创建云账号时必填字段的校验规则 RequiredChange 2023-02-10 16:40:41 +08:00
feng626
e8487b4786 Merge pull request #2598 from jumpserver/pr@dev@session_is_finished
perf: session is_finished
2023-02-10 16:33:29 +08:00
feng
a70b53b6e6 perf: session is_finished 2023-02-10 16:32:33 +08:00
feng626
00fe260108 Merge pull request #2596 from jumpserver/pr@dev@ticket
perf: 工单受理人 显示问题
2023-02-10 16:17:45 +08:00
feng626
03a88069db Merge branch 'dev' into pr@dev@ticket 2023-02-10 16:17:28 +08:00
feng
6322b27c94 perf: 工单受理人 显示问题 2023-02-10 16:15:54 +08:00
Aaron3S
ab85118e68 fix: 修复一些必填项的问题 2023-02-10 16:15:39 +08:00
Aaron3S
bacac276ff fix : 修复列显示错误的问题 2023-02-10 16:15:39 +08:00
Aaron3S
d0fa87009d fix: 去掉取消按钮 2023-02-10 16:15:39 +08:00
Aaron3S
17d79f4de9 fix: 修复重命名 playbook 文件的 bug 2023-02-10 16:15:39 +08:00
“huailei000”
7e5fcfe8d5 fix: 修复工单什么指定账号不显示输入框 2023-02-10 16:05:18 +08:00
feng626
6a57f5bfdf Merge pull request #2593 from jumpserver/pr@dev@cloud_asset
perf: cloud url 与 协议 同步
2023-02-10 15:47:20 +08:00
feng
0e576754bb perf: cloud url 与 协议 同步 2023-02-10 15:46:17 +08:00
“huailei000”
b54952855b perf: 命令记录详情列表不显示操作 2023-02-10 14:36:34 +08:00
Bai
15e650ef28 fix: 修复没有 push_now 权限的用户可以在创建资产、创建账号中开启推送 2023-02-10 11:12:35 +08:00
“huailei000”
d6de7cce24 perf: 优化控制台仪表盘显示 2023-02-10 10:34:06 +08:00
“huailei000”
8ecd2cfc6a perf: 优化仪表盘资产类型占比 2023-02-09 19:59:18 +08:00
feng626
4409c3e1d3 Merge pull request #2587 from jumpserver/pr@dev@cloud_sync
perf: cloud sync
2023-02-09 19:29:45 +08:00
feng
ac747bcf05 perf: cloud sync 2023-02-09 19:28:55 +08:00
“huailei000”
6def65bb0d perf: 优化关于显示 2023-02-09 18:20:44 +08:00
feng626
92677c4ad2 Merge pull request #2585 from jumpserver/pr@dev@ticket
perf: ticket bug
2023-02-09 18:07:28 +08:00
feng
847d3a331b perf: ticket bug 2023-02-09 18:05:43 +08:00
“huailei000”
51d30f3275 perf: 作业管理创建作业资产是必填项 2023-02-09 17:09:07 +08:00
“huailei000”
0f0d959118 fix: 修复资产时创建账号模版报错问题 2023-02-09 16:49:08 +08:00
“huailei000”
3582ca7c17 perf: 优化资产克隆时模版添加账号 2023-02-09 16:43:51 +08:00
feng626
6fd267a80a Merge pull request #2581 from jumpserver/pr@dev@profile_wecom_id_dingtalk_id_feishu_id
fix: 个人信息 字段重新调整
2023-02-09 15:38:27 +08:00
feng
932a5e2d47 fix: 个人信息 字段重新调整 2023-02-09 15:37:07 +08:00
“huailei000”
1d91d4d065 perf: 优化命令记录风险等级的显示 2023-02-09 14:35:14 +08:00
Bai
fa42ea7cdf fix: 修复翻译问题 2023-02-09 14:32:56 +08:00
“huailei000”
9e9dea6e57 perf: 账号模版查看不显示密码记录 2023-02-09 14:21:12 +08:00
Bai
a18520276a fix: 修复clone资产时 platform 没有获取到的问题 2023-02-09 12:10:18 +08:00
“huailei000”
667f163853 perf: 资产账号更新名称时用户名不自动同步更新 2023-02-09 11:47:03 +08:00
“huailei000”
4c49d0b32d fix: 修复创建资产时添加账号是否立即推送判断条件 2023-02-08 19:59:07 +08:00
Bai
b7cd39d373 fix: 修复账号详情su-from-account url 2023-02-08 19:05:58 +08:00
“huailei000”
4b06a29f10 fix: 修复资产详情创建、更新账号时error提示不准确问题 2023-02-08 18:12:36 +08:00
“huailei000”
ae4962eb45 perf: 优化资产详情创建账号后密文类型不显示问题 2023-02-08 17:26:33 +08:00
“huailei000”
19b7a36aa1 fix: 修复创建平台成功后点击链接跳转报错问题 2023-02-08 16:55:37 +08:00
“huailei000”
1040cca267 perf: 优化资产选择弹窗样式 2023-02-08 16:49:54 +08:00
“huailei000”
58e8145f0e feat: 添加版本信息弹窗展示 2023-02-08 16:27:15 +08:00
Bai
5b3dc2bc48 fix: 修复 connection token 页面信息字段 actions 2023-02-08 15:32:23 +08:00
“huailei000”
8d3a3587d1 perf: 优化ip正则 2023-02-08 14:00:27 +08:00
Bai
b0731d4fbd fix: 修改interface登录标题和logo文案 2023-02-08 13:26:32 +08:00
“huailei000”
4b57c78c8e fix: 修复更新云同步-实例任务参数格式 2023-02-08 11:41:03 +08:00
“huailei000”
241eef173f fix: 创建网域时对选择的资产类型限制 2023-02-08 11:13:25 +08:00
“huailei000”
b0b2954311 fix: 修复云同步创建实例任务没有协议问题 2023-02-07 19:57:08 +08:00
feng626
83c21e2304 Merge pull request #2560 from jumpserver/pr@dev@gather_account
perf: gather account
2023-02-07 19:45:30 +08:00
feng
30369de1f5 perf: gather account 2023-02-07 19:42:31 +08:00
Bai
1f5a8f7694 fix: 修复同步任务实例列表动作字段 2023-02-07 19:40:16 +08:00
Bai
6e060c9038 fix: 修复同步任务历史列表动作字段 2023-02-07 19:31:15 +08:00
“huailei000”
70da1a3a5b fix: 修复账号列表第一次验证mfa后导出弹窗不能关闭问题 2023-02-07 19:30:38 +08:00
Bai
9d7244131f fix: 修复点击账号列表导出两次时,第二次显示导出弹窗的问题(第一次提示需要MFA认证) 2023-02-07 17:58:07 +08:00
“huailei000”
9f0923c955 perf: 资产授权列表显示操作 2023-02-07 16:57:36 +08:00
“huailei000”
c383c2cc54 fix: 修复资产创建时模版添加账号,账号重复问题 2023-02-07 16:42:19 +08:00
“huailei000”
586f8c2c18 fix:修复资产账号无法导入问题 2023-02-07 15:00:17 +08:00
Bai
40554eb93e fix: 修复只授权创建网关权限时,创建网关提示没有权限的问题;add/change_gateway dep view_node view_platform 2023-02-07 14:57:40 +08:00
Bai
963fc97f61 fix: 账号详情增加 激活 按钮 2023-02-07 14:34:08 +08:00
Bai
049bc928ce fix: 修改终端列表批量更新的问题 2023-02-07 14:27:17 +08:00
Aaron3S
288afeeb1f feat: 补充翻译 2023-02-07 11:51:05 +08:00
Aaron3S
6661583a0f 增加任务历史再次执行的功能 2023-02-07 11:51:05 +08:00
“huailei000”
8f5df65f0e perf: 优化tree组件url参数 2023-02-07 11:33:06 +08:00
“huailei000”
5112af8ba1 perf: 批量更新资产添加提示 2023-02-07 11:31:17 +08:00
jiangweidong
0f39a1c1fa perf: 增加登录日志详情 2023-02-07 09:50:02 +08:00
jiangweidong
07f23e4d3b perf: 解决冲突 2023-02-07 09:04:27 +08:00
jiangweidong
6f7e1dbf18 perf: 优化Activity日志 2023-02-07 09:00:17 +08:00
“huailei000”
960f5a6c66 fix: 修复角色详情删除提示不准确问题 2023-02-06 19:42:01 +08:00
“huailei000”
0cf1d64e32 fix: 账号详情操作disabled 2023-02-06 19:09:19 +08:00
“huailei000”
fda8c36867 perf: 账号列表更新类型资产(如Web、网络设备、云服务、数据库)账号密码表单去掉切换至 2023-02-06 19:04:25 +08:00
老广
4bf9d9081e Merge pull request #2542 from jumpserver/pr@dev@perf_icon
perf: 优化 icon
2023-02-06 17:53:12 +08:00
ibuler
54a38cd645 perf: 优化 icon 2023-02-06 17:49:15 +08:00
“huailei000”
66c4d3da91 fix: 修复弹窗显示时导航栏有空白问题 2023-02-06 17:47:43 +08:00
“huailei000”
46e79e5a53 fix: 资产树添加添加、移动资产弹窗关闭后资产树无法刷新问题 2023-02-06 17:42:37 +08:00
老广
9436ee048d Merge pull request #2539 from jumpserver/pr@dev@perf_icon
perf: 优化图标
2023-02-06 17:20:14 +08:00
老广
2da9fcdedd Merge branch 'dev' into pr@dev@perf_icon 2023-02-06 17:19:47 +08:00
ibuler
0b34504abf perf: 优化图标 2023-02-06 17:13:33 +08:00
“huailei000”
610f056dfd perf: ztree config 2023-02-06 17:06:00 +08:00
“huailei000”
49f1ca2329 fix: 修复资产列表-添加资产到节点后资产树无法刷新问题 2023-02-06 16:53:43 +08:00
dependabot[bot]
494138719f build(deps): bump http-cache-semantics from 4.1.0 to 4.1.1
Bumps [http-cache-semantics](https://github.com/kornelski/http-cache-semantics) from 4.1.0 to 4.1.1.
- [Release notes](https://github.com/kornelski/http-cache-semantics/releases)
- [Commits](https://github.com/kornelski/http-cache-semantics/compare/v4.1.0...v4.1.1)

---
updated-dependencies:
- dependency-name: http-cache-semantics
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-06 16:42:21 +08:00
fit2bot
291b15956b perf: 修改 tree menu (#2536)
* perf: 修改 ztree

* perf: 修改 tree menu

---------

Co-authored-by: ibuler <ibuler@qq.com>
2023-02-06 16:41:42 +08:00
ibuler
fa72cd0f7b perf: 修改 tree menu 2023-02-06 16:35:18 +08:00
Bai
5cd45f3493 fix: 修改翻译 LAN 局域网 2023-02-06 16:30:34 +08:00
feng626
3befab9964 Merge pull request #2534 from jumpserver/pr@dev@account_spac_info
perf: account exclude spec info
2023-02-06 16:12:14 +08:00
feng
ff219c0675 perf: account exclude spec info 2023-02-06 16:10:32 +08:00
fit2bot
2f79fa2d50 perf: 优化 i18n-util 工具, apply 后删除 diff 文件; (#2533)
* perf: 添加 npm run diff-i18n | npm run apply-i18n 脚本执行

* perf: 优化 i18n-util 工具, apply 后删除 diff 文件;

---------

Co-authored-by: Bai <baijiangjie@gmail.com>
Co-authored-by: Jiangjie.Bai <bugatti_it@163.com>
2023-02-06 16:04:29 +08:00
ibuler
ff182a23e8 perf: 修改 ztree 2023-02-06 15:51:41 +08:00
Bai
71ac63b0c5 perf: 添加 npm run diff-i18n | npm run apply-i18n 脚本执行 2023-02-06 15:50:15 +08:00
“huailei000”
8675da453f perf: 优化table组件默认的翻译 2023-02-06 15:37:51 +08:00
feng626
1c2a8690fc Merge pull request #2529 from jumpserver/pr@dev@yarn_lock
perf: yarn.lock
2023-02-06 15:37:20 +08:00
feng
afe21f9930 perf: yarn.lock 2023-02-06 15:34:52 +08:00
Bai
311b15cd1c perf: 修改翻译信息 2023-02-06 15:19:43 +08:00
Bai
bbe2346bd0 perf: 修改翻译信息 2023-02-06 15:19:43 +08:00
fit2bot
2e7df28b9e perf: 增加i18n翻译 (#2524)
Co-authored-by: Aaron3S <chenyang@fit2cloud.com>
Co-authored-by: Jiangjie.Bai <bugatti_it@163.com>
2023-02-06 15:11:44 +08:00
feng626
1401875bca Merge pull request #2527 from jumpserver/pr@dev@account_isActive
perf: account is active
2023-02-06 15:09:54 +08:00
Bai
de176466df perf: 修改翻译信息 2023-02-06 15:09:18 +08:00
Bai
6ce2a475a9 perf: 完善 ja.json 翻译文件 2023-02-06 15:09:18 +08:00
Bai
ac998a6082 perf: 完善 en.json 翻译文件 2023-02-06 15:09:18 +08:00
Bai
a6467ee773 perf: 完善 en.json 翻译文件 2023-02-06 15:09:18 +08:00
Bai
77fc2dee89 perf: 完善 en.json 翻译文件 2023-02-06 15:09:18 +08:00
Bai
ef82831e99 perf: 优化 (i18n-util.py) 工具,添加脚本说明信息 2023-02-06 15:09:18 +08:00
Bai
7a4ec597dd perf: 优化 (i18n-util.py) 工具,添加脚本说明信息 2023-02-06 15:09:18 +08:00
Bai
05c2425bc6 feat: 添加 i18n 自动 diff 和 update 工具 (i18n-util.py) 2023-02-06 15:09:18 +08:00
feng
e7619d01a7 perf: account is active 2023-02-06 15:09:11 +08:00
“huailei000”
be6e1a3449 fix: 修复远程应用-账号列表跳转报错问题 2023-02-06 14:39:32 +08:00
feng626
4a003cf617 Merge pull request #2525 from jumpserver/pr@dev@asset_automation_filter
perf: asset automation filter
2023-02-06 13:36:43 +08:00
feng
5bcb6eafb1 perf: asset automation filter 2023-02-06 13:35:05 +08:00
“huailei000”
5c0d0cf598 perf: 优化上传远程应用弹窗清空列表 2023-02-06 11:13:56 +08:00
“huailei000”
46e1fd4d0b perf: 修改工单图标 2023-02-06 10:33:14 +08:00
“huailei000”
295198bad0 fix: 远程应用账号列表资产不能跳转 2023-02-03 19:04:21 +08:00
ibuler
92e5475afb perf: 优化显示 actions 的方法 2023-02-03 18:40:38 +08:00
feng626
026f78f686 Merge pull request #2518 from jumpserver/pr@dev@host_info
perf: 主机硬件信息
2023-02-03 18:23:54 +08:00
feng
42b89944df perf: 主机硬件信息 2023-02-03 18:18:22 +08:00
老广
7a877b0d9b Merge pull request #2516 from jumpserver/pr@dev@perf_protocols_and_conn
pref: 优化一波 lina
2023-02-03 16:12:50 +08:00
ibuler
e5189ed623 merge: with dev 2023-02-03 16:11:34 +08:00
“huailei000”
a4f59d6096 perf: 导入列表每行限制最大高度 2023-02-03 15:32:03 +08:00
ibuler
2470f8cba7 pref: 优化一波 lina 2023-02-03 15:12:56 +08:00
fit2bot
9cb97c68ed perf: 优化账号策略样式 (#2505)
Co-authored-by: Aaron3S <chenyang@fit2cloud.com>
Co-authored-by: Jiangjie.Bai <bugatti_it@163.com>
2023-02-03 15:08:54 +08:00
Bai
7f8dd45c21 fix: 修复资产详情-账号列表-模版账号列表跳转问题 2023-02-03 15:07:33 +08:00
“huailei000”
39fa5bb997 fix: 修复批量更新资产网域报错问题 2023-02-03 14:56:59 +08:00
“huailei000”
0d69a3ee9a perf: 资产详情授权用户-查看授权列表筛选条件添加不保存到url中 2023-02-03 14:35:52 +08:00
ibuler
f9ea0cd1a1 perf: 优化任务菜单 2023-02-03 13:28:45 +08:00
“huailei000”
ad51b03296 fix: 修复权限树不显示问题 2023-02-03 11:37:46 +08:00
“huailei000”
cb6139c736 fix: 修复角色详情授权用户不能删除问题 2023-02-03 11:10:40 +08:00
“huailei000”
4bae678f69 perf: 数据库类型切换账号disabled为false 2023-02-03 10:38:50 +08:00
“huailei000”
e8ae9e2fe5 perf: 网络设备详情添加资产不显示切换自 2023-02-03 10:18:33 +08:00
feng626
d3f4c62550 Merge pull request #2507 from jumpserver/pr@dev@risk_level
perf: command log risk_level
2023-02-02 23:03:52 +08:00
feng
06e7e4482c perf: command log risk_level 2023-02-02 23:02:39 +08:00
Aaron3S
3099889cff perf: 添加选择账号input类型的label 2023-02-02 20:13:07 +08:00
Aaron3S
e842246202 perf: 优化账号策略样式 2023-02-02 19:58:28 +08:00
“huailei000”
406d159852 fix: 修复资产详情添加账号时先更新账号后无法继续添加新账号问题 2023-02-02 19:53:06 +08:00
feng626
e3ad602add Merge pull request #2502 from jumpserver/pr@dev@task_perm
perf: task perm
2023-02-02 19:50:51 +08:00
feng
8019d4457b perf: task perm 2023-02-02 19:49:53 +08:00
Bai
7e4d2ac1d0 fix: 修复资产详情-账号列表-模版账号列表跳转问题 2023-02-02 18:56:10 +08:00
Bai
1401b59b13 fix: 修复系统设置认证设置中 attr_map 字段保存问题 2023-02-02 18:06:03 +08:00
Bai
efdfd0af67 fix: 修复系统设置认证设置中 attr_map 字段保存问题 2023-02-02 18:06:03 +08:00
feng626
3e1af7ef57 Merge pull request #2499 from jumpserver/pr@dev@not_show_builtin_tree
perf: 授权不展示类型树
2023-02-02 17:44:40 +08:00
feng
f6724b2d8c perf: 授权不展示类型树 2023-02-02 17:40:03 +08:00
“huailei000”
ea611a518d fix: 修复批量更新资产标签可以自定义输入 2023-02-02 17:14:01 +08:00
老广
6b550a2cfa Merge pull request #2497 from jumpserver/pr@dev@perf_table_select
pref: 优化表单选择,搜索后,已选择的会清空
2023-02-02 16:40:01 +08:00
ibuler
fe7997b7b1 pref: 去掉 Debug msg 2023-02-02 16:23:43 +08:00
ibuler
3ea28ee963 pref: 优化表单选择,搜索后,已选择的会清空 2023-02-02 16:22:38 +08:00
“huailei000”
f18a7fe6fa perf: 资产选择组件去掉操作 2023-02-02 16:08:12 +08:00
“huailei000”
cece17cbe6 fix:修复资产授权不能导入问题 2023-02-02 15:54:25 +08:00
老广
d808aca25e Merge pull request #2494 from jumpserver/pr@dev@perf_perms_accounts
pref: 优化 perms 账号输入,增加 help text 等
2023-02-02 15:43:29 +08:00
ibuler
eb90e036ca pref: 优化 perms 账号输入,增加 help text 等 2023-02-02 15:41:33 +08:00
Eric
559fc8b837 perf: 新增发布机的部署设置 2023-02-02 15:37:38 +08:00
“huailei000”
059aa62ed8 perf: 创建账号时创建模版不显示保存并继续按钮 2023-02-02 15:36:19 +08:00
Aaron3S
6e6dfc6912 fix: 修复发布日期不显示的问题 2023-02-02 15:32:08 +08:00
Aaron3S
6200512cae perf: 优化冲突的变量名 2023-02-02 15:32:08 +08:00
Aaron3S
171ee84c1b perf: 优化playbook 翻译文本 2023-02-02 15:32:08 +08:00
“huailei000”
5a27662f47 fix: 资产授权批量更新添加账号字段 2023-02-02 15:23:41 +08:00
Bai
a569ffa003 fix: 所有资产列表页面不支持文件导入, 解决导入其他类型的资产时对象不存在的问题(因为后端没有保存到 Database,Host 表中) 2023-02-02 15:20:55 +08:00
“huailei000”
1ea52433d5 fix: 修复资产授权添加用户、资产操作不能点击问题 2023-02-02 15:02:32 +08:00
“huailei000”
a9f65ddc81 perf: 添加翻译 2023-02-02 11:21:55 +08:00
“huailei000”
222c76bdae fix: 修复创建资产时有报错信息页面没有提示问题 2023-02-02 10:52:32 +08:00
“huailei000”
7d46392174 fix: 修复资产详情查看账号密码报错问题 2023-02-02 10:40:07 +08:00
老广
13089e80f8 Merge pull request #2482 from jumpserver/pr@dev@perf_account_create_error
perf: 修改 acounts 创建提示
2023-02-01 19:40:16 +08:00
ibuler
a484fc4e2a perf:修改冲突 2023-02-01 19:37:19 +08:00
“huailei000”
8f9c186343 perf: 资产详情-账号列表导入增加创建 2023-02-01 19:16:23 +08:00
ibuler
c9065c88f3 perf: 修改 acounts 创建提示 2023-02-01 18:55:08 +08:00
“huailei000”
52e34c5e75 perf: 远程应用详情显示兼容 2023-02-01 18:50:43 +08:00
“huailei000”
a4acc55994 perf: 优化资产详情里账号弹窗标题 2023-02-01 17:21:42 +08:00
Bai
2c2fac2ac1 fix: 主机详情显示资产硬件信息 2023-02-01 17:05:59 +08:00
老广
2ded71fa90 Merge pull request #2475 from jumpserver/pr@dev@perf_delete_playbook_detail_field
perf: 隐藏保留字段
2023-02-01 16:58:25 +08:00
“huailei000”
9a5700b48b fix: 修复应用开发机详情点击更新跳转不准确问题 2023-02-01 16:56:30 +08:00
老广
0bc3a9f0e7 Merge pull request #2477 from jumpserver/pr@dev@perf_user_create
perf: 优化 site msg
2023-02-01 16:51:00 +08:00
ibuler
2ff292b55f perf: 修改 site msg icon 颜色 2023-02-01 16:49:29 +08:00
ibuler
1f8ef33c5c perf: 优化 site msg 2023-02-01 16:36:35 +08:00
“huailei000”
b37ef2d144 perf: 平台类型为网络设备时切换账号不可点击 2023-02-01 16:34:11 +08:00
Aaron3S
b045fb1c8a perf: 隐藏保留字段 2023-02-01 16:23:18 +08:00
Bai
9b3c75f0a6 fix: 修改认证设置中 json 字段的校验问题 2023-02-01 16:21:24 +08:00
Aaron3S
3e171e20c3 fix: 修改 terminal 颜色,修复文字被背景色覆盖的问题
feat: 增加检测命令长度

Nan

feat: 增加playbook ide

playbook ide

fix: 修复创建 playbook 后页面不刷新
2023-02-01 16:01:01 +08:00
feng626
a6200e07f3 Merge pull request #2473 from jumpserver/pr@dev@user_group
perf: user group
2023-02-01 15:28:07 +08:00
feng
a4ec078c17 perf: user group 2023-02-01 15:26:25 +08:00
“huailei000”
ab5f6abd9e perf: 仪表盘切换日期按钮添加阴影效果 2023-02-01 14:48:41 +08:00
ibuler
b3d41b5fc2 perf: 优化用户创建 2023-02-01 14:30:21 +08:00
“huailei000”
ad870fe837 perf: 克隆资产时克隆账号,template为false 2023-02-01 14:30:09 +08:00
“huailei000”
88c4d9e56f perf:创建资产-添加模版账号调整参数 2023-02-01 13:02:21 +08:00
老广
b4414bcaf2 Merge pull request #2469 from jumpserver/pr@dev@perf_audit
perf: 优化 operate log
2023-02-01 12:13:59 +08:00
ibuler
3212d90436 perf: 优化 operate log 2023-02-01 12:12:26 +08:00
“huailei000”
117b237bda fix: 修复资产无法批量从节点移除 2023-02-01 11:44:48 +08:00
Bai
0616b0bc7c perf: 修改导入文件敏感字段进行加密 2023-02-01 11:18:26 +08:00
“huailei000”
4e04675dfe fix: 修复新建用户第一次登录切换路由跳转地址不正确问题 2023-01-31 19:57:37 +08:00
老广
6a5cf5f35d Merge pull request #2461 from jumpserver/pr@dev@perf_assets_select_dialog
perf: 优化 asset detail spec info 和 统一 asset select dialog
2023-01-31 19:41:16 +08:00
ibuler
d0f9b272f1 merge: with dev 2023-01-31 19:40:38 +08:00
ibuler
2e7ffb217e perf: 修改一些翻译 2023-01-31 19:38:27 +08:00
Jiangjie.Bai
31a401b55d Merge pull request #2463 from jumpserver/dev
v3.0.0-rc4
2023-01-31 18:55:34 +08:00
jiangweidong
c16be0a85c fix: 使用type值 2023-01-31 18:30:33 +08:00
jiangweidong
15cf13d4de fix: 使用type 2023-01-31 18:30:33 +08:00
jiangweidong
6257b7fdc1 fix: mongodb无指定数据库时,一些自动化任务会失败 2023-01-31 18:30:33 +08:00
jiangweidong
3b17b44de5 fix: 使用type 2023-01-31 18:30:01 +08:00
jiangweidong
7a724e76b7 fix: 自定义平台(Redis/MongoDB)无ssl选项 2023-01-31 18:30:01 +08:00
“huailei000”
8b3399351c perf: 数据库类型的资产,添加账号时不显示切换自 2023-01-31 18:29:01 +08:00
ibuler
3d9b034ab8 perf: 优化 asset detail spec info 和 统一 asset select dialog 2023-01-31 17:41:33 +08:00
“huailei000”
bd1fb83325 perf: 资产列表批量激活、禁用后刷新列表 2023-01-31 17:32:46 +08:00
“huailei000”
b20386cd18 perf: 菜单临时密码添加图标 2023-01-31 17:03:17 +08:00
Aaron3S
c4512dc3a9 fix: 隐藏 task 列表中行内的 action 按钮 2023-01-31 16:50:03 +08:00
“huailei000”
7064a48744 perf: 优化快捷命令页-上传下载图标位置 2023-01-31 15:55:50 +08:00
“huailei000”
4e1ade34b8 perf: 优化资产详情-账号列表布局 2023-01-31 15:40:10 +08:00
“huailei000”
4a014a338d perf: 仪表盘标题组件不显示提示 2023-01-31 15:39:45 +08:00
Bai
523c31d3ad perf: 修改终端列表不能根据负载状态进行排序 2023-01-31 15:05:03 +08:00
“huailei000”
7a627a5bfc perf: 调整工单详情审批人容器高度 2023-01-31 14:32:38 +08:00
feng626
9864d43e95 Merge pull request #2452 from jumpserver/pr@dev@role_update
fix: role update
2023-01-31 13:23:07 +08:00
feng
cf2a16a746 fix: role update 2023-01-31 13:21:39 +08:00
Bai
25df2096fd perf: 优化用户列表导入时密码字段进行加密回显 2023-01-31 11:32:56 +08:00
“huailei000”
47f5cd892a fix: 修复站内信弹窗样式 2023-01-31 11:01:24 +08:00
“huailei000”
2aa3451c24 perf: 命令记录列表不显示操作 2023-01-30 19:50:46 +08:00
“huailei000”
f3f679831b perf: 命令记录列表显示折叠功能 2023-01-30 19:44:44 +08:00
“huailei000”
4bf00fac7c perf: 优化添加账号提示文案 2023-01-30 19:10:11 +08:00
“huailei000”
e867277a7f perf: 创建资产类型为web时,资产详情添加账号过滤掉切换字、特权账号等字段 2023-01-30 19:01:44 +08:00
Bai
c9a3fe625c perf: 优化资产授权详情授权账号更新卡片 2023-01-30 19:01:17 +08:00
“huailei000”
7e3db76c9f perf: 创建资产模版添加账号带id 2023-01-30 18:59:34 +08:00
Bai
5fef193029 perf: 优化资产授权详情授权账号更新卡片 2023-01-30 18:52:25 +08:00
Bai
2289b43516 fix: 修改资产树节点 url / 问题 2023-01-30 18:26:19 +08:00
“huailei000”
affca62d1a perf: 调整列表操作里按钮高度 2023-01-30 17:33:55 +08:00
Bai
3041dee3ce fix: 修改用户列表角色字段不显示的问题 2023-01-30 17:17:15 +08:00
老广
ecde3f6375 Merge pull request #2435 from jumpserver/pr@dev@fix_create_job_select_assets
fix: 修复创建作业选择树权限不对的问题
2023-01-30 17:15:18 +08:00
老广
b2823f6978 Merge pull request #2436 from jumpserver/pr@dev@perf_theme_color
pref: 修改 theme color
2023-01-30 16:41:00 +08:00
Bai
06b0b748a7 perf: 修改创建平台时 ansible_config 字段传递 dict 对象 2023-01-30 16:26:33 +08:00
ibuler
6313184711 pref: 修改 theme color 2023-01-30 15:58:50 +08:00
Aaron3S
a04c613905 fix: 修复创建作业选择树权限不对的问题 2023-01-30 15:54:28 +08:00
“huailei000”
26d106ca9e perf: 优化账号收集详情翻译问题 2023-01-30 15:29:59 +08:00
“huailei000”
6ce6fd6c21 feat: 资产详情-账号列表添加账号模版 2023-01-30 15:16:31 +08:00
老广
5c68d786ce Merge pull request #2432 from jumpserver/pr@dev@perf_run_job
perf: 修改作业执行为弹窗
2023-01-30 15:09:22 +08:00
Aaron3S
ac5ec22d5e perf: 修改作业执行为弹窗 2023-01-30 15:04:26 +08:00
老广
bb431bf58b Merge pull request #2430 from jumpserver/pr@dev@perf_add_yarn_lock_css
perf: 添加 lock
2023-01-30 14:24:29 +08:00
ibuler
bb7030d6e7 perf: 添加 lock 2023-01-30 14:23:43 +08:00
老广
08e5996705 Merge pull request #2425 from jumpserver/pr@dev@pref_applet_list_detail
perf: 优化 applet list 和 detail
2023-01-30 14:17:47 +08:00
ibuler
01e4edc7d8 merge: 解决冲突 2023-01-30 14:17:09 +08:00
feng626
524e3499a1 Merge pull request #2429 from jumpserver/pr@dev@user_profile
perf: user profile
2023-01-30 13:41:25 +08:00
feng
1b417549d6 perf: user profile 2023-01-30 13:39:30 +08:00
ibuler
443617e66e perf: 优化 applet list 和 detail 2023-01-30 12:31:21 +08:00
feng626
df5f1097e6 Merge pull request #2428 from jumpserver/pr@dev@login_password
fix: 重制密码 disabled
2023-01-30 11:39:02 +08:00
feng
5a8e4027c6 fix: 重制密码 disabled 2023-01-30 11:37:57 +08:00
“huailei000”
77d1acd691 fix: 修复克隆自定义平台后创建资产-添加账号密文类型为空问题 2023-01-30 11:25:29 +08:00
v-hleihuai
615df0e77a feat: markdown 2023-01-30 10:13:08 +08:00
ibuler
4496f58d84 perf: 优化 applet list 和 detail 2023-01-29 19:47:07 +08:00
feng626
90d5022933 Merge pull request #2424 from jumpserver/pr@dev@ticket_user
perf: 工作台 工单列表url
2023-01-29 19:05:47 +08:00
feng
c3a298739b perf: 工作台 工单列表url 2023-01-29 19:04:36 +08:00
老广
2775d32ca0 Merge pull request #2414 from jumpserver/pr@dev@perf_remoteapp_view
perf: 优化远程应用界面
2023-01-29 18:29:18 +08:00
ibuler
2aa712f72b merge: with dev 2023-01-29 18:27:02 +08:00
老广
48e64534b4 Merge pull request #2422 from jumpserver/pr@dev@change_some_name
perf: 修改 activity
2023-01-29 18:18:17 +08:00
ibuler
504d0050c8 perf: 修改 taginput placeholder 2023-01-29 18:16:45 +08:00
ibuler
d840d2d38d perf: 修改 activity 2023-01-29 17:57:58 +08:00
“huailei000”
891309ee9f perf: 优化折叠后菜单显示的高度 2023-01-29 16:45:38 +08:00
“huailei000”
e307ec2744 perf: 资产授权-AccountFormatter组件增加helpText参数 2023-01-29 16:14:05 +08:00
ibuler
1aa325b429 perf: 修改组件 Asset Tree Table 名称 2023-01-29 16:07:32 +08:00
jiangweidong
5bf3f726e8 feat: 解决冲突 2023-01-29 15:26:46 +08:00
“huailei000”
906ef63a50 perf: 优化远程应用列表协议展示 2023-01-29 15:08:16 +08:00
feng626
dbc5656555 Merge pull request #2418 from jumpserver/pr@dev@ansible_enabled_disables
perf: ansible enabled disabled
2023-01-29 13:30:37 +08:00
feng
91a2cc075a perf: ansible enabledt disabled 2023-01-29 13:29:49 +08:00
“huailei000”
098eabf308 fix: 上传远程应用弹窗清空上次上传内容 2023-01-28 15:08:28 +08:00
“huailei000”
5de8c055c1 perf: 发布机详情去掉网域 2023-01-28 14:04:43 +08:00
“huailei000”
3acb1b9a10 fix: 修复远程应用-应用发布机详情页按钮没有权限问题 2023-01-28 11:15:26 +08:00
jiangweidong
929a394bee perf: 去掉打印 2023-01-20 18:03:43 +08:00
jiangweidong
e835e0a671 Merge branch 'dev' of https://github.com/jumpserver/lina into pr@dev@perf_remoteapp_view 2023-01-20 17:53:14 +08:00
jiangweidong
2b1c44b6f5 perf: 优化远程应用界面 2023-01-20 17:53:06 +08:00
jiangweidong
fbc94ac4f2 perf: 修改远程应用的列表界面 2023-01-19 18:00:19 +08:00
“huailei000”
14a76db7d8 fix: 修复创建改密会自动填写上次的账号问题 2023-01-19 10:18:19 +08:00
“huailei000”
f2cec72378 perf: ip字段增加正则过滤 2023-01-18 15:47:07 +08:00
“huailei000”
2fe14c7257 fix: 修复网域-网关更新后页面undefined问题 2023-01-18 15:10:46 +08:00
“huailei000”
5cebef0f59 fix: 修复平台详情-自动化提示没有权限问题 2023-01-18 11:04:00 +08:00
“huailei000”
49eeb7e8a2 perf: 优化创建用户form的字段label显示 2023-01-17 17:13:50 +08:00
“huailei000”
bba4750ec3 fix: 修复修改资产协议端口不生效问题 2023-01-17 15:00:34 +08:00
jiangweidong
8049e0d965 fix: 去掉title 2023-01-17 13:44:33 +08:00
jiangweidong
45ff13c7ce perf: 优化操作日志详情界面 2023-01-17 13:44:33 +08:00
“huailei000”
449d4ae18e fix: 修复工单动作组件不回显问题 2023-01-17 12:29:31 +08:00
“huailei000”
db457d169c perf: 添加动作组件 2023-01-17 12:29:31 +08:00
“huailei000”
17efdb8096 fix: 修复平台更新字段格式 2023-01-17 10:50:31 +08:00
feng626
f13031d120 Merge pull request #2404 from jumpserver/pr@dev@ticket_asset
perf: ticket asset
2023-01-16 20:40:20 +08:00
feng
d751a23df1 perf: ticket asset 2023-01-16 20:37:01 +08:00
“huailei000”
b8b22a6f8e perf: 使用xss 2023-01-16 19:15:16 +08:00
fit2bot
b891be3607 v3.0.0-rc1 (#2400)
* feat: 资产选择优化

* perf: 修改用户列表显示字段

* perf: 修改 改密 收集账号名字

* perf: 添加AssetTreeTable组件;资产列表、资产选择、资产账号、资产授权使用AssetTreeTable组件

* perf: 修改资产列表 tab

* perf: 修改路径

* perf: 修改 tree

* perf: 修改 tab icon

* fix: 修复资产列表点击创建按钮页面空白问题

* feat: 支持超时时间设置

* perf: 改密去除tab

* perf: table column添加属性showFullContent: 折行显示全部内容

* perf: 添加 account push

* perf: 修改 asset select padding

* perf: 账号收集

* feat: terminal 页面增加padding

* perf: account list source

* perf: AssetTreeTable配置默认不显示右键菜单

* perf: 修改账号

* fix: 修复用户登录规则动作是审批时没有显示审批人选项

* refactor: 修改列表显示字段1 (#2309)

* refactor: 修改列表显示字段(用户组列表)

* refactor: 修改列表显示字段(角色列表)

* perf: 修改列表显示字段(资产列表); 修改DataTable showOverflowTooltip 参数默认为 true;  优化 ArrayFormatter 组件, 支持传递 delimiter 参数;

* perf: 修改列表显示字段(主机列表、网络设备、数据库、云服务、Web)

* perf: 修改列表字段显示(云同步,同步实例任务列表,云账号列表)

* perf: 修改列表字段显示(网域列表,网关列表)

* perf: 修改列表字段显示(平台列表)

* perf: 修改列表字段显示(标签列表)

* perf: 修改 SyncInstanceTask 组件; 删除 GatheredUserList.vue 页面;

Co-authored-by: Bai <baijiangjie@gmail.com>

* feat: 修复一些页面上的问题

* fix: 修复资产详情协议修改端口不生效问题

* perf: 用户组详情不显示授权的资产

* fix: 修复账号收集详情key相同控制台报错问题

* fix: 修复显示密码组件样式布局问题

* feat: 增加 terminal 滚动控制和清屏按钮

* feat: 增加 terminal 滚动控制和清屏按钮

* perf: 调整terminal 按钮样式

* feat: 优化detail 字段

* perf: 资产批量更新去掉特权用户

* feat: 修改按钮样式

* fix: 修复节点选择错误的问题

* perf: 修改账号推送

* perf: 优化列表显示字段2 (#2322)

* perf: 优化表格字段允许显示 ID 列

* perf: 修改列表字段显示(账号列表)

* perf: 修改列表字段显示(账号模版)

* perf: 修改列表字段显示(收集账号)

* perf: 修改列表字段显示(账号改密)

* perf: 修改列表字段显示(账号备份)

* perf: 修改列表字段显示(授权列表)

* perf: 修改列表字段显示(授权详情页面-用户/用户组,资产/节点,授权账号)

* perf: 修改权限位

* perf: 修改账号地址

* feat: 防止xss攻击;可以自定义配置xss

* perf: 修改账号

* perf: 修改列表字段显示(资产登录ACL, 命令过滤ACL)

* perf: 优化xss过滤规则判断

* fix: 远程应用修改操作选项

* perf: 修改对应权限位 各种

* perf: 修改账号

* perf: 优化TreeTable组件布局

* perf: 远程应用不进入详情页

* perf: 修改列表字段显示(命令过滤, 命令组)

* perf: 修改列表字段显示(用户详情, 授权的资产, 资产授权规则, 用户登录规则)

* perf: 修改列表字段显示(任务列表,任务执行历史列表)

* perf: 上传远程应用接口报错时给出提示

* perf: 修改 applet host

* perf: 修改 accounts 添加

* feat: ops增加rbac

* perf: 修改 assets 结构

* perf: 修改列表字段显示(会话列表, 在线会话, 历史会话)

* perf: 修改列表字段显示(命令列表)

* perf: 修改列表字段显示(文件传输)

* perf: 修改列表字段显示(登录日志,操作日志,改密日志,作业日志)

* perf: 优化PageHeading组件标题对齐

* perf: 修改列表字段显示(工作台,概览,我的资产,作业中心,作业管理,模版管理,执行历史)

* perf: 修改翻译

* perf: 修改 tag search

* fix: 修复账号改密更新、克隆页面空白问题

* perf: 修改列表字段显示(系统设置,终端列表,命令存储,录像存储,终端端点,终端规则)

* perf: 修改列表字段显示(工单管理,我的申请,待我审批,流程设置)

* perf: 修改列表字段显示(个人信息,API Key,连接令牌)

* perf: 修改列表字段显示(远程应用,应用发布机)

* perf: 修改 tableConfig 字段 excludes -> columnsExclude, extraColumns -> columnsExtra

* perf: 修改 ConnectionToken 组件

* perf: 修改 AutoDataTable 组件

* perf: 修改 AssetAclCreateUpdate 组件 reviewers 字段

* feat: 修改字段

* perf: 优化table组件表头高度对齐

* fix: 修复资产列表-所有列表不能导入问题

* perf: 我的资产收藏资产添加提示

* feat: 修改列顺序

* perf: automation

* merge: v3

* perf: 修改账号自创建

* perf: 快捷命令select组件筛选功能

* perf: select参数兼容

* feat: 修改选择用户样式

* perf: 修改账号自动化路由

* perf: 修改 form json editor

* perf: account gather 翻译

* fix: 修复平台列表上传功能

* feat: 支持账号、资产在详情页查看活动(Activities)时间线

* fix: 修复 powershell 不能选择问题

* fix: 修复 powershell 不能选择问题

* perf: 优化云资产同步

* perf: account 翻译

* fix: 修复账号列表导出报错问题

* fix: 修复账号列表测试功能权限位

* fix: 修复角色列表权限位不准确问题

* feat: 增加快捷命令页面刷新后续接功能

* fix: 应用发布机的测试

* fix: 修复账号列表不能批量删除问题

* perf: 修改 form tree

* perf: account 翻译

* fix: 修复资产树组件搜索后关闭搜索框无法显示搜索框问题

* perf: 移除发布机和应用的导入导出

* perf: 树组件关闭按钮增加刷新树功能

* fix: 修复资产树显示当前节点资产报错问题

* perf: 优化资产树组件关闭按钮执行事件顺序

* perf: upload applet and reload table list

* perf: 优化显示发布机的远程应用

* perf: 修改 settings 组织

* perf: 系统设置-远程应用详情资产不能跳转

* perf: 修改 applet status

* perf: 修改 applet status

* perf: account

* perf: account backup

* perf: verify code ttl

* perf: 修改菜单

* perf: 修改网关创建

* perf: asset ping api

* perf: 再次优化 menu

* perf: 优化菜单

* perf: menu 去掉一下 css

* perf: 资产创建、更新标签支持自定义输入创建

* perf: 修改 gateway

* perf: account change secret

* fix: 修复资产详情标签不显示问题

* perf: 修改 accounts 路由

* perf: gateway test perm

* fix: 修复账号备份-创建、更新、删除跳转到空白页面问题

* fix: 修复账号收集创建、删除后跳转到空白页面问题

* perf: 修改 choices formattor

* fix: 修改资产详情页面字段 spec_info

* fix: 修复资产详情-授权用户-查看授权字段显示不全问题

* fix: 修复工作台列表字段显示

* perf: gateways

* feat: ops 修改一些交互细节

* feat: 删除模版执行的功能

* perf: 修改 endpoint 端口监听

* perf: gateway ui

* perf: 优化字段显示

* feat: 支持资源用户在详情页查看活动(Activities)时间线

* perf: 细化权限

* fix: 修改审计日志列

* Merge remote-tracking branch 'origin/v3' into v3

# Conflicts:
#	src/views/assets/Domain/DomainDetail/GatewayList.vue

* perf: 控制台仪表盘资产类型占比取消hover效果

* perf: gateway

* fix: 修改工单详情 type.value 参数

* perf: gateway dialog

* perf: 优化ProtoSelector组件逻辑

* fix: 修改 terminal 颜色,修复文字被背景色覆盖的问题

* feat: 增加检测命令长度

* fix: 修复账号收集-执行列表详情报错问题

* fix: 修复资产列表-数据库克隆没有协议问题

* perf: push_account_enabled

* fix: 修复资产授权详情用户、资产不能删除问题

* feat: Redis/MongoDB 支持SSL

* perf: push account

* fix: 修复命令过滤-命令组克隆页面跳转不准确问题

* fix: 修改授权规则列表过滤字段 asset_name,node_name;

* fix: 修复测试连接报错问题

* perf: account platform

* perf: 调整平台详情展示字段

* perf: account push

* fix: 修复detail 详情页面 404

* pref: 修改 assets 布局

* pref: 去掉页面滚动

* pref: 暂时修改 choice left align

* perf: account template access_key

* perf: 优化activity记录都保存至operatelog中

* perf: 优化页面布局

* perf: asset add account template

* fix: 修复table搜索项重复问题

* perf: 账号收集详情

* pref: table -

* perf: 创建资产-模版添加列表增加刷新按钮

* fix: 修复任务列表操作内容显示

* perf: 先去掉自动创建

* perf: change secret

* perf: 优化账号列表资产树数量按照账号进行计算

* perf: account change secret

* pref: 修改 select hover 效果

* pref: 去掉视图 icon

* perf: executed amount

* pref: 修改 set pre org,避免回到 system

* perf: 创建资产-创建账号模版弹窗显示

* perf: account task 修改

* perf: account trigger

* perf: user reset password

* fix: 修复平台克隆失败问题

* fix: 修复资产授权批量更新报错问题

* perf: 优化账号列表资产树数量按照账号进行计算增加默认值 asset

* fix: 修复用户详情-资产授权规则跳转页面报错问题

* perf: 资产树-类型树关闭搜索功能

* fix: 修复执行窗口有空白问题

* fix: 修复账号改密详情权限不准确问题

* fix: 文件传输列表不显示操作

Co-authored-by: Aaron3S <chenyang@fit2cloud.com>
Co-authored-by: Bai <baijiangjie@gmail.com>
Co-authored-by: feng <1304903146@qq.com>
Co-authored-by: feng626 <57284900+feng626@users.noreply.github.com>
Co-authored-by: “huailei000” <2280131253@qq.com>
Co-authored-by: ibuler <ibuler@qq.com>
Co-authored-by: Jiangjie.Bai <bugatti_it@163.com>
Co-authored-by: jiangweidong <weidong.jiang@fit2cloud.com>
Co-authored-by: Eric <xplzv@126.com>
Co-authored-by: huailei <31801270+huailei000@users.noreply.github.com>
2023-01-16 18:57:40 +08:00
老广
a4840aa2a6 Merge pull request #2201 from jumpserver/pr@dev@fix_yui_cve
fix: jsencrypt包含YUI引发的漏洞问题
2022-12-23 19:29:18 +08:00
halo
b1c2645ab0 fix: 解决v-html的xss注入问题 2022-12-13 14:39:21 +08:00
halo
3d90ee0b41 fix: 解决v-html的xss注入问题 2022-12-13 14:39:21 +08:00
“huailei000”
3da57560e7 perf: 调整布局 2022-12-06 18:11:24 +08:00
Jiangjie.Bai
d4dbd8a535 Merge pull request #2251 from jumpserver/pr@dev@dev_merged_v3
merge: with v3
2022-12-06 17:07:32 +08:00
fit2bot
791f173cea merge: with v3 (#2250)
* perf: 增加celery输出

* fix: 修复网域列表资产选中后更新时不显示选中问题

* fix: 选择资产时会根据接口返回状态设置disabled

* feat: 资产选择form 匹配正确的字段

* feat: 资产选择form 匹配正确的字段

* perf: 优化仪表盘环形图数据显示

* feat: 修改资产选择组件支持我的资产选择

* fix: 改密计划选择资产组件添加disabled状态

* fix: 修复资产账号点击资产树接口500问题

* fix: 更新网域选择资产组件添加disabled状态

* perf: 优化显示

* perf: 修改 Domain 列表页面

* perf: 修改网域列表网关字段跳转

* perf: 修改 GatewayList 页面

* perf: 选择资产组件弹窗显示资产详情

* perf: 修改资产详情账号列表页面

* perf: 修改资产账号详情

* fix: 修复改密详情页面报错误提示问题

* fix: 修复资产树点击资产接口报错问题

Co-authored-by: Aaron3S <chenyang@fit2cloud.com>
Co-authored-by: “huailei000” <2280131253@qq.com>
Co-authored-by: Bai <baijiangjie@gmail.com>
2022-12-06 17:04:53 +08:00
Bai
7b5ab3defe merge: with v3 2022-12-06 16:53:43 +08:00
Bai
a272fbb542 perf: 资产账号详情添加 su_from 选择 2022-12-06 16:44:21 +08:00
Bai
d754acf77d perf: 修改 yarn.lock 文件 2022-12-06 13:16:21 +08:00
老广
454ef107ae Merge pull request #2247 from jumpserver/pr@dev@v3_to_dev
merge: with v3
2022-12-06 11:37:41 +08:00
ibuler
68b1234e81 merge: with v3 2022-12-06 11:31:38 +08:00
“huailei000”
6349ae2c17 fix: 修复资产树点击资产接口报错问题 2022-12-06 11:16:18 +08:00
“huailei000”
ca9c467644 fix: 修复改密详情页面报错误提示问题 2022-12-06 10:44:39 +08:00
Bai
b2e87d7457 perf: 修改资产账号详情 2022-12-05 19:42:46 +08:00
Bai
ba6750d7d6 Merge branch 'v3' of github.com:jumpserver/lina into v3 2022-12-05 19:31:21 +08:00
Bai
d6518019dd perf: 修改资产详情账号列表页面 2022-12-05 19:31:00 +08:00
“huailei000”
fa77a95d93 perf: 选择资产组件弹窗显示资产详情 2022-12-05 19:25:13 +08:00
Bai
d66c6b59a2 perf: 修改 GatewayList 页面 2022-12-05 19:11:49 +08:00
Bai
9e3fbbad10 perf: 修改网域列表网关字段跳转 2022-12-05 18:51:46 +08:00
Bai
9623264e56 Merge branch 'v3' of github.com:jumpserver/lina into v3 2022-12-05 17:45:01 +08:00
Bai
bef1e8f49a perf: 修改 Domain 列表页面 2022-12-05 17:44:52 +08:00
Aaron3S
47ef7120f7 perf: 优化显示 2022-12-05 17:36:51 +08:00
“huailei000”
7f0924fb52 fix: 更新网域选择资产组件添加disabled状态 2022-12-05 17:24:30 +08:00
“huailei000”
7312a899e1 fix: 修复资产账号点击资产树接口500问题 2022-12-05 16:52:21 +08:00
“huailei000”
94955cb0d8 fix: 改密计划选择资产组件添加disabled状态 2022-12-05 16:30:09 +08:00
Aaron3S
2ec9c02d0c feat: 修改资产选择组件支持我的资产选择 2022-12-05 15:59:25 +08:00
“huailei000”
208c7c0aa8 perf: 优化仪表盘环形图数据显示 2022-12-05 15:39:35 +08:00
Aaron3S
5e321e9a27 feat: 资产选择form 匹配正确的字段 2022-12-05 15:28:36 +08:00
Aaron3S
1dfe004370 feat: 资产选择form 匹配正确的字段 2022-12-05 15:11:28 +08:00
“huailei000”
5aec4f3f44 fix: 选择资产时会根据接口返回状态设置disabled 2022-12-05 14:15:46 +08:00
“huailei000”
b12aaf003e fix: 修复网域列表资产选中后更新时不显示选中问题 2022-12-05 11:12:34 +08:00
Aaron3S
1c80faede4 perf: 增加celery输出 2022-12-05 10:54:59 +08:00
Bai
4c8819c039 perf: 提取 CommandACL 和 LoginAssetACL 对于 User Asset Account 公共数据和处理逻辑 2022-12-04 21:50:44 +08:00
Bai
d3c297d24f feat: 添加 CommandFilterAclDetail, CommandGroupDetail 页面 2022-12-04 20:01:35 +08:00
Bai
18150eb8ab perf: 修改命令组的创建更新问题 2022-12-04 18:48:15 +08:00
Bai
1c00db1978 feat: 权限管理中增加命令过滤菜单; 路由中添加CommandFilterACL,CommandGroup; 添加CommandFilterAclList,Create,Update;添加CommandGroupList,Create,Update; 2022-12-04 18:30:37 +08:00
ibuler
0ea46e9ee2 Merge branch 'v3' of github.com:jumpserver/lina into v3 2022-12-02 20:29:06 +08:00
ibuler
70e9b26c4d pref: asset accounts 添加 name 2022-12-02 20:19:47 +08:00
“huailei000”
6af2ee0555 fix: 修复作业管理创建作业参数组件输入样式问题 2022-12-02 19:06:59 +08:00
“huailei000”
b68a3b27fa perf: 审计台仪表盘筛选日期储存到localStorage中 2022-12-02 18:51:23 +08:00
“huailei000”
3ee819dd4c fix: 调整作业管理-创建作业时参数组件样式 2022-12-02 17:44:43 +08:00
feng626
de29a07c35 Merge pull request #2233 from jumpserver/pr@v3@gateways
perf: 网关优化
2022-12-02 17:27:21 +08:00
feng
59bbd4d743 perf: 网关优化 2022-12-02 17:20:58 +08:00
“huailei000”
790a3573e9 perf: 调整柱状图组件参数,调整不同主题下柱体颜色;审计台仪 表盘增加翻译 2022-12-02 16:58:48 +08:00
ibuler
023f4fde09 Merge branch 'v3' of github.com:jumpserver/lina into v3 2022-12-02 16:39:04 +08:00
ibuler
e29a4db922 perf: 修改 ztree 2022-12-02 16:38:52 +08:00
Aaron3S
df06fbe85e perf: 持续优化job 页面 2022-12-02 12:23:05 +08:00
feng626
7a315a056a Merge pull request #2230 from jumpserver/pr@v3@gateway
perf: gateway
2022-12-02 11:26:34 +08:00
feng
e51d13a47b perf: gateway 2022-12-02 11:19:21 +08:00
“huailei000”
917c22a9eb fix: 修复账号模版删除后列表不自动刷新问题 2022-12-02 11:13:18 +08:00
“huailei000”
650b5ded35 fix: 修复收集用户-删除任务后,浏览器后退会进入到详情在此执行删除接口404问题 2022-12-02 10:54:06 +08:00
Bai
92c53cbfc1 fix: 删除 <用户详情-授权账号> 页面, 删除UserGrantedAccounts 组件 2022-12-01 20:46:02 +08:00
Bai
2ce02c54b6 Merge branch 'v3' of github.com:jumpserver/lina into v3 2022-12-01 20:42:48 +08:00
Bai
2ed6ddb92a fix: 修改用户授权相关的API,使用 self 2022-12-01 20:42:13 +08:00
“huailei000”
efdbc001ff perf: 调整审计台仪表盘显示内容 2022-12-01 19:05:50 +08:00
Bai
bbc43b7ec6 Merge branch 'v3' of github.com:jumpserver/lina into v3 2022-12-01 12:10:00 +08:00
Bai
41d07fd670 perf: 修改<工作台-我的资产>页面;修改<控制台-用户详情>页面;修改<GrantedSystemUsersShowFormatter>为<GrantedAccountShowFormatter>组件; 2022-12-01 12:09:43 +08:00
“huailei000”
66a33d0c44 perf: 拆分控制台仪表盘、审计台仪表盘 2022-12-01 10:54:25 +08:00
Bai
179c420e9d perf: 优化 Login Asset ACL 详情页面 2022-11-30 22:09:12 +08:00
“huailei000”
bd4811c485 perf: 优化移动端下菜单显示效果 2022-11-30 20:51:38 +08:00
feng
7ea639c078 perf: update account template 2022-11-30 20:43:05 +08:00
吴小白
105230eeb0 perf: 添加代码构建测试 actions 2022-11-30 17:07:53 +08:00
Bai
93ec844121 Merge branch 'v3' of github.com:jumpserver/lina into v3 2022-11-30 16:19:03 +08:00
Bai
fd84c73d6b perf: 修改 acl assets name,address 2022-11-30 16:18:40 +08:00
Aaron3S
1af963337b feat: 修改部分交互 2022-11-30 16:03:57 +08:00
ibuler
c99505f39f perf: merge with remove 2022-11-30 15:27:48 +08:00
ibuler
d886a5e607 perf: 优化菜单左侧视图对接 2022-11-30 15:25:08 +08:00
Bai
cc21e63b5b Merge branch 'v3' of github.com:jumpserver/lina into v3 2022-11-30 15:10:08 +08:00
Bai
d18cd3d254 perf: 移动 Acl 到 perms 2022-11-30 15:09:31 +08:00
“huailei000”
b01133020d feat: 设置默认展开的子菜单 2022-11-30 14:51:15 +08:00
老广
cc9b4ea2bd Merge pull request #2221 from jumpserver/revert-2220-pr@v3@feaat_router_submenu_open
Revert "feat: 仪表盘、工作台默认展开子菜单"
2022-11-30 14:29:17 +08:00
huailei
006477172b Revert "feat: 仪表盘、工作台默认展开子菜单"
This reverts commit 3b2f4cddea.
2022-11-30 14:28:23 +08:00
“huailei000”
3b2f4cddea feat: 仪表盘、工作台默认展开子菜单 2022-11-30 13:30:57 +08:00
“huailei000”
01fb9f5411 perf: 仪表盘增加翻译;混合生成仪表盘颜色 2022-11-30 12:15:27 +08:00
“huailei000”
4281e02f95 perf: 调整切换二级菜单触发方式为hover显示 2022-11-29 23:10:30 +08:00
“huailei000”
fc0ee3d4f8 perf: 调整仪表盘显示内容 2022-11-29 23:04:52 +08:00
feng626
f79121724d Merge pull request #2215 from jumpserver/pr@v3@gateway
perf: geteway
2022-11-29 20:07:45 +08:00
feng
f50191d538 perf: geteway 2022-11-29 20:04:41 +08:00
Aaron3S
5b1bc4478c perf: 重新设计菜单和交互流程 2022-11-29 19:43:26 +08:00
feng
bb910aa447 perf: del domain node 2022-11-29 19:16:54 +08:00
feng626
f13afff928 Merge pull request #2214 from jumpserver/pr@v3@domian_add_node
perf: domian add node
2022-11-29 17:08:14 +08:00
feng
a003e20e51 perf: domian add node 2022-11-29 17:03:25 +08:00
ibuler
33d5d725d3 Merge branch 'v3' of github.com:jumpserver/lina into v3 2022-11-29 15:48:42 +08:00
ibuler
8fb0485887 perf: 还原 nav 20 2022-11-29 15:48:28 +08:00
“huailei000”
4850dce79b perf: 替换头像;修改导航栏气泡样式 2022-11-29 12:34:33 +08:00
ibuler
2097e8a361 perf: 颜色再深点 2022-11-29 12:06:06 +08:00
“huailei000”
ad27c4b9fe fix: 设置导航栏背景颜色 2022-11-29 11:58:12 +08:00
“huailei000”
2230177680 perf: 根据系统颜色混合导航栏颜色 2022-11-29 11:43:13 +08:00
ibuler
1279015c28 pref: 修改主题颜色 2022-11-29 11:21:11 +08:00
ibuler
23c66964cd pref: 修改主题 2022-11-29 11:12:34 +08:00
“huailei000”
a180265585 fix: 修复修改主题报错问题 2022-11-29 10:35:00 +08:00
“huailei000”
4af602b706 perf: 修改菜单主题颜色配置 2022-11-28 18:55:23 +08:00
feng626
d445019131 Merge pull request #2207 from jumpserver/pr@v3@pr@v3@history_account_secret_perm
perf: history account secret
2022-11-28 18:44:26 +08:00
feng
f97105ede0 perf: history account secret 2022-11-28 18:41:23 +08:00
feng626
76a63f2be5 Merge pull request #2206 from jumpserver/perf_dashboard
Perf dashboard
2022-11-28 17:14:29 +08:00
“huailei000”
b5d30129f2 Merge branch 'v3' into perf_dashboard 2022-11-28 17:12:24 +08:00
“huailei000”
26c021fc77 perf: 调试接口 2022-11-28 17:11:18 +08:00
ibuler
672db6380d pref: 修改 dev 模式下的连接 web terminal url 2022-11-28 14:54:56 +08:00
吴小白
feb428356c perf: 优化构建 2022-11-28 09:50:43 +08:00
吴小白
212c4e5bd7 perf: 去掉不使用的变量 2022-11-28 09:50:43 +08:00
吴小白
1029d0cfa1 perf: 优化构建 2022-11-27 21:03:56 +08:00
Aaron3S
e55272180d feat: 实时命令页面 2022-11-26 02:51:02 +08:00
ibuler
332112e4dd Merge branch 'v3' of github.com:jumpserver/lina into v3 2022-11-25 21:19:35 +08:00
ibuler
5f65099af5 pref: 修改主题 2022-11-25 21:19:19 +08:00
“huailei000”
ebe85219eb perf: 调整仪表盘显示内容 2022-11-25 18:15:42 +08:00
Chenyang Shen
a8a1c99312 Merge pull request #2202 from jumpserver/revert-2199-pr@v3@feat_org_select_width
Revert "feat: 切换组织选择器宽度自适应"
2022-11-25 16:42:11 +08:00
huailei
adec7f4020 Revert "feat: 切换组织选择器宽度自适应"
This reverts commit 3fa33e482a.
2022-11-25 16:40:22 +08:00
ibuler
02e744d833 Merge branch 'v3' of github.com:jumpserver/lina into v3 2022-11-25 11:18:10 +08:00
ibuler
e70b5cb2c4 perf: 修改一些图标 2022-11-25 11:17:48 +08:00
feng
30213bc4c0 Merge remote-tracking branch 'origin/v3' into v3 2022-11-25 10:10:05 +08:00
feng
acc919b0e7 perf: gateway 2022-11-24 21:15:18 +08:00
halo
8e21eb0a97 fix: jsencrypt包含YUI引发的漏洞问题 2022-11-24 18:29:39 +08:00
“huailei000”
3fa33e482a feat: 切换组织选择器宽度自适应 2022-11-24 12:37:43 +08:00
jiangweidong
d88ff02fa8 fix: 解决命令过滤获取不到一些应用的系统用户问题 2022-11-24 09:37:30 +08:00
Aaron3S
d46e49df2a perf: 优化job 页面 2022-11-24 00:54:18 +08:00
ibuler
608b8b727f Merge branch 'v3' of github.com:jumpserver/lina into v3 2022-11-23 16:54:34 +08:00
ibuler
fd3191ad09 perf: 修改 logo 2022-11-23 16:53:54 +08:00
“huailei000”
0b270fe3bb perf: 替换概览图标 2022-11-23 16:28:10 +08:00
“huailei000”
9ad0ee6c24 fix: 调整header组件图标对其方式 2022-11-23 15:56:21 +08:00
“huailei000”
c05a01e46f perf: 调整页面布局为上下布局;不显示footer组件 2022-11-23 14:45:09 +08:00
ibuler
4f68d57666 pref: 修改左侧菜单样式 2022-11-22 19:38:43 +08:00
jiangweidong
fd05028cff fix: 隐藏clickhouse改密入口 2022-11-22 18:39:00 +08:00
“huailei000”
a28dd9cf6f perf: 调整菜单样式 2022-11-22 18:13:35 +08:00
ibuler
7e7bcae8e7 perf: 修改 header 高度 2022-11-22 13:13:54 +08:00
老广
218ef50ff7 Merge pull request #2189 from jumpserver/feat_add_theme
Feat add theme
2022-11-22 12:37:15 +08:00
“huailei000”
18a9d99f08 feat: 修改系统图标 2022-11-22 12:16:27 +08:00
feng
53a763f3c1 perf: accout backup types 2022-11-21 15:55:16 +08:00
feng
cfd1b1e550 perf: change secret timedelta 2022-11-21 15:17:32 +08:00
feng
f8b6df9487 perf: change secre atutomation 2022-11-21 11:47:00 +08:00
“huailei000”
6d8b45817e feat: 修复head图标 2022-11-18 19:32:30 +08:00
Aaron3S
fc9b44db21 feat: 支持作业定时执行 2022-11-18 19:01:32 +08:00
“huailei000”
100405e080 feat: 修改主题样式 2022-11-18 12:21:35 +08:00
Aaron3S
4b84a77a5a feat: Job 支持运行参数 2022-11-17 20:11:15 +08:00
“huailei000”
119b494cc6 feat: 修改header组件样式 2022-11-17 19:37:04 +08:00
feng
95945a3b20 perf: ticket 2022-11-17 19:21:46 +08:00
Jiangjie.Bai
582a84178d Merge pull request #2187 from jumpserver/dev
v2.28.0
2022-11-17 17:44:19 +08:00
feng626
1b613a82f9 Merge pull request #2186 from jumpserver/pr@v3@ticket_optimization
perf: ticket optimization
2022-11-17 17:34:45 +08:00
feng
c691a93ee5 perf: ticket optimization 2022-11-17 17:27:52 +08:00
“huailei000”
73de782756 fix: 修复绑定企业微信弹窗时input样式遮挡问题 2022-11-17 16:55:11 +08:00
Jiangjie.Bai
9b9f7c936c Merge pull request #2184 from jumpserver/dev
v2.28.0-rc5
2022-11-17 14:18:15 +08:00
jiangweidong
55100e64a1 perf: 翻译用户的[邮件]改为[邮箱] 2022-11-17 14:16:00 +08:00
jiangweidong
6d74959b64 perf: 翻译用户的[邮件]改为[邮箱] 2022-11-17 14:16:00 +08:00
Aaron3S
16e7e548b3 feat: 创建作业支持参数 2022-11-16 21:11:14 +08:00
Jiangjie.Bai
2a6100957f Merge pull request #2182 from jumpserver/dev
v2.28.0-rc4
2022-11-16 21:08:55 +08:00
feng
3704e4d478 perf: ticket 2022-11-16 21:05:45 +08:00
feng
c16ff3e894 perf: ticket list 2022-11-16 17:19:08 +08:00
feng
47006a2a88 perf: user confirm dialog css 2022-11-16 15:56:05 +08:00
feng626
952a968d3c Merge pull request #2181 from jumpserver/pr@v3@ticket
perf: ticket
2022-11-16 15:51:56 +08:00
feng
d7f3274b59 perf: ticket 2022-11-16 15:50:46 +08:00
Aaron3S
cfedd153c8 perf: 任务列表优化 2022-11-16 14:25:11 +08:00
feng
b21d1533de perf: update yarn.lock 2022-11-15 18:16:06 +08:00
feng626
6a3f6f8914 Merge pull request #2180 from jumpserver/pr@dev@ticket_expire_time
pef: ticket expire time
2022-11-15 17:34:08 +08:00
“huailei000”
704ae0b294 fix: 修复改密计划详情中列表和资产树添加资产到节点时table会获取url中参数问题 2022-11-15 17:11:40 +08:00
feng
9bf4597d8d pef: ticket expire time 2022-11-15 16:54:45 +08:00
Eric
5f7237309c perf: add host depolyment view 2022-11-15 16:03:20 +08:00
吴小白
e30b15ceec perf: 添加 yarn build 2022-11-15 15:32:37 +08:00
吴小白
2d62fc5429 perf: 优化 Dockerfile 2022-11-15 15:07:20 +08:00
“huailei000”
cd710f37a5 perf: update yarn.lock 2022-11-15 10:36:18 +08:00
ibuler
b55d2208ae pref: 修改 ticket detail 2022-11-15 10:33:02 +08:00
ibuler
ec8a3cee21 pref: 修改 ticket detail 2022-11-14 20:25:06 +08:00
ibuler
1c30a646dc pref: 修改工单详情 2022-11-14 20:13:26 +08:00
ibuler
24357c486a Merge branch 'v3' of github.com:jumpserver/lina into v3 2022-11-14 19:19:08 +08:00
ibuler
f6d00a5030 pref: 修改 ticket actions 2022-11-14 19:18:57 +08:00
Eric
b52cd1200a perf: publish applets 2022-11-14 19:05:32 +08:00
“huailei000”
1819dfb311 fix: 修复资产克隆失败问题 2022-11-14 15:39:13 +08:00
feng
eeb1aed26a perf: change secret router 2022-11-14 13:51:53 +08:00
feng
b63d6cd748 perf: yarn lock 2022-11-14 10:50:13 +08:00
Jiangjie.Bai
16606d6a27 Merge pull request #2176 from jumpserver/dev
v2.28.0-rc2
2022-11-14 10:01:05 +08:00
jiangweidong
bb1d19610e perf: 优化操作日志界面显示随主题变化 2022-11-14 09:47:12 +08:00
ibuler
da808ca007 Merge branch 'v3' of github.com:jumpserver/lina into v3 2022-11-11 19:41:23 +08:00
ibuler
aa351f0c2d pref: 修改 asset table 2022-11-11 19:40:21 +08:00
老广
ca871b16c4 Revert "perf: 优化刷新页面方法,避免刷新时页面出现空白"
This reverts commit a514e88b78.
2022-11-11 19:39:14 +08:00
Aaron3S
9636cbace0 feat: ops页面 2022-11-11 19:27:07 +08:00
feng626
188ff04ec7 Merge pull request #2172 from jumpserver/pr@v3@change_secret
perf: change secret
2022-11-11 19:12:02 +08:00
feng
057bb73405 perf: change secret 2022-11-11 19:06:27 +08:00
“huailei000”
5d2e826bae fix: 修复创建平台时,切换方式默认值显示不准确问题 2022-11-11 18:22:57 +08:00
ibuler
166adbb7ba Merge branch 'v3' of github.com:jumpserver/lina into v3 2022-11-11 18:04:46 +08:00
ibuler
8213aa8a68 pref: 修改 perms actions组件 2022-11-11 17:28:52 +08:00
feng
fc08f54394 perf: change secret 2022-11-11 16:39:11 +08:00
“huailei000”
9ec45a889f fix: 改密计划创建表单增加用户名字段;抽离TagInput公共组件 2022-11-11 16:32:04 +08:00
ibuler
ae6c7d33a8 pref: 修改 asset permission 2022-11-11 15:02:17 +08:00
“huailei000”
21b61f22f7 更新改密计划表单字段;暴露form获取meta方法 2022-11-11 14:47:49 +08:00
“huailei000”
9516fb4963 perf: update yarn.lock 2022-11-10 18:37:35 +08:00
Jiangjie.Bai
0a612f50e6 Merge pull request #2164 from jumpserver/dev
v2.28.0-rc1
2022-11-10 17:45:47 +08:00
“huailei000”
d566adb644 fix: 修复账号信息更新消息订阅从新进入页面状态没有改变问题 2022-11-10 17:43:28 +08:00
jiangweidong
242f958428 feat: 云资产同步支持选择IP类型 2022-11-10 17:42:14 +08:00
ibuler
a5a3a47a69 pref: 修改授权详情 2022-11-09 20:58:26 +08:00
ibuler
8b38d45883 pref: 修改 item value 2022-11-09 19:01:21 +08:00
ibuler
5d8a9251e5 Merge branch 'v3' of github.com:jumpserver/lina into v3 2022-11-09 17:02:09 +08:00
“huailei000”
84fb2da1d2 perf: 优化资产授权-账号表单组件 2022-11-09 17:01:34 +08:00
ibuler
46d61151f2 Merge branch 'v3' of github.com:jumpserver/lina into v3 2022-11-09 17:00:41 +08:00
ibuler
bd84b44175 pref: 修改我的资产 2022-11-09 17:00:29 +08:00
feng626
253673fc9a Merge pull request #2157 from jumpserver/pr@v3@gather_account
perf: gather account page
2022-11-09 16:02:01 +08:00
feng
7f6f9ec285 perf: gather account page 2022-11-09 15:57:58 +08:00
ibuler
88d108f85c pref: 优化授权列表 2022-11-09 11:43:23 +08:00
ibuler
a9925bcf28 pref: 修改 perms account 2022-11-08 21:00:03 +08:00
ibuler
f601a45700 pref: 修改 perms account 2022-11-08 20:58:01 +08:00
ibuler
283d321307 Merge branch 'v3' of github.com:jumpserver/lina into v3 2022-11-08 20:52:26 +08:00
ibuler
ef27cd7862 pref: 修改授权表单 2022-11-08 20:51:57 +08:00
“huailei000”
4c1be1aa68 feat: 资产列表增加测试;账号详测试可连接性 2022-11-08 20:26:54 +08:00
老广
eb550aeec3 Merge pull request #2155 from jumpserver/pr@v3@perf_account
pref: 继续优化 accounts view
2022-11-08 19:10:44 +08:00
ibuler
14c4d4fe00 pref: 继续优化 accounts view 2022-11-08 19:06:38 +08:00
“huailei000”
eec62c12ff fix: 修复平台详情-更新平台信息设置为false后不能点击问题 2022-11-08 18:53:21 +08:00
ibuler
b84e191d31 pref: 修改一些 css 2022-11-08 17:28:41 +08:00
ibuler
ac7994b631 Merge branch 'v3' of github.com:jumpserver/lina into v3 2022-11-08 17:14:42 +08:00
ibuler
ab345ee4ef pref: 修改账号详情 2022-11-08 17:14:02 +08:00
“huailei000”
beced802f0 fix: eslint 2022-11-08 17:03:55 +08:00
ibuler
b4331b7758 perf: 修改支持 date filter 2022-11-08 16:47:04 +08:00
ibuler
ae112ab7d9 pref: 优化 css 2022-11-08 15:39:12 +08:00
“huailei000”
f97d46814d perf: update yarn.lock 2022-11-08 15:28:11 +08:00
ibuler
84985b85e0 Merge branch 'v3' of github.com:jumpserver/lina into v3 2022-11-08 14:43:29 +08:00
ibuler
78d4867f25 pref: 更新 table pager 2022-11-08 14:41:40 +08:00
“huailei000”
dbf44cdfd8 fix: 修复平台详情中更新协议,协议不能添加问题 2022-11-08 14:22:39 +08:00
ibuler
73d03fecaf Merge branch 'v3' of github.com:jumpserver/lina into v3 2022-11-08 11:33:06 +08:00
ibuler
392ab31b1f perf: 优化 choices table formattor 2022-11-08 11:32:48 +08:00
“huailei000”
f05c773bc7 perf: 优化表单复杂组件错误提示 2022-11-08 11:03:53 +08:00
ibuler
3b8ae66db5 Merge branch 'v3' of github.com:jumpserver/lina into v3 2022-11-07 20:13:28 +08:00
ibuler
03ee1b0513 pref: 修改一些布局颜色 2022-11-07 20:13:07 +08:00
Jiangjie.Bai
5cc501f5af perf: 优化优先使用系统设置中的 rdp_resolution 配置 2022-11-07 18:47:29 +08:00
“huailei000”
f013194265 feat: 平台详情添加自动化页面 2022-11-07 17:01:04 +08:00
“huailei000”
9322c4e7ae fix: 修复更新平台时有多个协议只显示一个协议问题 2022-11-07 10:15:14 +08:00
“huailei000”
aafc6af69c perf: 优化选择协议组件;增加翻译 2022-11-04 16:04:37 +08:00
ibuler
fbcb522f6c pref: 优化 action fa 2022-11-04 15:51:04 +08:00
jiangweidong
31fd0ecde0 feat: 显示部分资源的批量删除操作按钮 2022-11-04 14:34:14 +08:00
jiangweidong
9d6ac3907a feat: 重构操作日志 (#2088)
* feat: 操作日志重构-支持查看变更资源信息

* feat: 修改界面

* feat: 优化操作日志详情界面

* feat: 修改显示样式
2022-11-04 14:33:02 +08:00
jiangweidong
784bd16e87 feat: 支持纳管 clickhouse[Web Terminal] (#2112) 2022-11-04 14:31:54 +08:00
jiangweidong
4a11ea2c57 feat: 云同步支持金山云 (#2125) 2022-11-04 14:31:20 +08:00
ibuler
4f628e9b33 Merge branch 'v3' of github.com:jumpserver/lina into v3 2022-11-04 11:40:28 +08:00
ibuler
3366540521 pref: 修改组件的状态 2022-11-04 11:39:59 +08:00
Jiangjie.Bai
262f77da9c Merge branch 'v3' of github.com:jumpserver/lina into v3 2022-11-03 16:23:15 +08:00
Jiangjie.Bai
cde1c8bf79 feat: 用户详情中添加授权给用户所有账号列表 2022-11-03 16:22:54 +08:00
feng626
c39f0a0aba Merge pull request #2142 from jumpserver/pr@v3@perf_backup_update_typeurl
perf: 更新账号备份类型接口
2022-11-03 16:21:37 +08:00
“huailei000”
476cfb1f9c perf: AutoDataTable组件columns参数为空时默认显示所有 2022-11-03 16:21:13 +08:00
“huailei000”
e6915c669b perf: 更新账号备份类型接口 2022-11-03 16:20:10 +08:00
“huailei000”
b2987e1d4f perf: 调整资产账号-查看密码展示字段 2022-11-03 15:23:39 +08:00
ibuler
5eb6a4307d Merge branch 'v3' of github.com:jumpserver/lina into v3 2022-11-02 17:23:45 +08:00
ibuler
a26b42fef8 preff: 修改 applets hosts 详情 2022-11-02 17:23:25 +08:00
feng626
24c8661453 Merge pull request #2139 from jumpserver/pr@v3@feat_add_account_detail
merge v3
2022-11-02 15:47:29 +08:00
“huailei000”
4f2a8149fe merge v3 2022-11-02 15:44:03 +08:00
“huailei000”
aba8a3cc55 feat: 增加资产账号详情 2022-11-02 15:34:34 +08:00
ibuler
7f6edc2749 pref: 修改表哥的 style 2022-11-02 15:26:20 +08:00
ibuler
7f28629748 pref: 修改 switch icon 2022-11-02 14:47:52 +08:00
ibuler
2ac9b885c9 pref: 修改 remote applet 2022-11-02 14:13:13 +08:00
ibuler
6d756eab5d Merge branch 'v3' of github.com:jumpserver/lina into v3 2022-11-01 20:37:58 +08:00
ibuler
8649bb86e9 pref: 修改 accounts 2022-11-01 20:37:40 +08:00
“huailei000”
7b0e41d478 fix: 修复资产账号不能更新问题 2022-11-01 20:23:30 +08:00
Jiangjie.Bai
3127afbbc2 Merge branch 'v3' of github.com:jumpserver/lina into v3 2022-11-01 19:53:09 +08:00
Jiangjie.Bai
0d993c0b90 feat: 资产授权规则详情页面添加授权账号tab页,显示所有授权的账号列表 2022-11-01 19:52:58 +08:00
“huailei000”
424f688406 perf: 优化账号创建更新组件 2022-11-01 18:47:00 +08:00
ibuler
f2f0661ed3 Merge branch 'v3' of github.com:jumpserver/lina into v3 2022-11-01 17:19:59 +08:00
ibuler
14fd1a06fd pref: 修改 remote app deployments 2022-11-01 17:19:40 +08:00
Jiangjie.Bai
4a2ffc754f fix: 修复创建第三方用户时 need_update_password 默认为 true 的问题 2022-11-01 16:38:06 +08:00
“huailei000”
4c94694e78 perf: 调整账号历史密码展示字段 2022-11-01 14:15:38 +08:00
ibuler
f1b5a26f2d merge: with remote 2022-11-01 11:50:21 +08:00
ibuler
357daf2756 pref: 修改 applet host 2022-11-01 11:48:23 +08:00
“huailei000”
97f708b9ef fix: 修改快速更新参数 2022-10-31 20:04:07 +08:00
“huailei000”
91f6fe3965 perf: component UpdateToken 2022-10-31 19:58:29 +08:00
“huailei000”
85abb5937c perf: 优化账号模版创建、更新显示字段 2022-10-31 19:29:42 +08:00
feng
c03b08e8f2 perf: history secret 2022-10-31 17:37:21 +08:00
“huailei000”
f5cc891cc4 fix: 修改历史密码接口 2022-10-31 17:29:21 +08:00
“huailei000”
89de63edcd perf: 优化创建资产时模版导入账号 2022-10-31 17:07:52 +08:00
“huailei000”
8551426619 feat: 增加账号模版模块 2022-10-28 19:12:52 +08:00
Aaron3S
d8deab799e feat: 拆分ops 和task 菜单 2022-10-28 19:01:53 +08:00
“huailei000”
f4b09a76b8 fix: 修复创建资产时添加账号控制台报错问题 2022-10-28 15:38:13 +08:00
ibuler
32ec05e04c Merge branch 'v3' of github.com:jumpserver/lina into v3 2022-10-27 20:00:04 +08:00
ibuler
ca6e20573f pref: 添加 applet host detail 2022-10-27 19:59:45 +08:00
Aaron3S
ae7e8df986 Merge remote-tracking branch 'origin/v3' into v3 2022-10-27 19:30:59 +08:00
Aaron3S
dc90a13671 feat: 任务列表 2022-10-27 19:30:15 +08:00
ibuler
f294cb4e9a Merge branch 'v3' of github.com:jumpserver/lina into v3 2022-10-27 19:06:04 +08:00
ibuler
ba5a19582e pref: 修改 Applet Host 创建 2022-10-27 19:05:43 +08:00
“huailei000”
da4cc3de20 perf: 优化ZTree组件选择完左侧资产后进入资产详情在返回列表页面还保持之前选择的状态 2022-10-27 15:12:33 +08:00
ibuler
7b6ccf3f30 pref: 修改 dialog 布局 2022-10-26 16:04:38 +08:00
“huailei000”
13122b07d4 fix: 修复资产账号创建、更新报错问题 2022-10-25 16:43:57 +08:00
feng626
4effc3c3b4 Merge pull request #2121 from jumpserver/pr@v3@feat_account_password_history
feat: 资产账号增加查看历史密码
2022-10-25 14:00:13 +08:00
“huailei000”
fcc74f0ca3 merge v3 2022-10-25 13:55:24 +08:00
“huailei000”
8950d57ff8 feat: 资产账号增加查看历史密码 2022-10-24 14:57:45 +08:00
吴小白
d31929eb33 perf: 优化构建 2022-10-24 09:51:15 +08:00
ibuler
6398c54b49 perf: 拆分到不同组件 2022-10-20 18:03:31 +08:00
ibuler
0da88c6a61 Merge branch 'v3' of github.com:jumpserver/lina into v3 2022-10-20 15:43:23 +08:00
ibuler
e62bffd20a pref: 修改查看 account 2022-10-20 15:40:05 +08:00
“huailei000”
537cb70a89 fix: 创建资产时如果选择了节点显示默认节点 2022-10-20 14:49:19 +08:00
ibuler
173bbe52bd Merge branch 'v3' of github.com:jumpserver/lina into v3 2022-10-20 14:48:37 +08:00
ibuler
b924fdc308 pref: 修改账号更新 2022-10-20 14:23:46 +08:00
“huailei000”
84a04ecfca fix: 修复资产账号创建账号失败问题 2022-10-20 11:13:45 +08:00
ibuler
3935643e35 pref: 修改资产创建 2022-10-19 18:21:04 +08:00
ibuler
91df9c8f1e pref: 修改 accounts 2022-10-19 11:40:33 +08:00
ibuler
e8db62f900 Merge branch 'v3' of github.com:jumpserver/lina into v3 2022-10-19 10:09:09 +08:00
Jiangjie.Bai
fe36fa9390 Merge pull request #2117 from jumpserver/dev
v2.27.0-rc4
2022-10-18 21:02:10 +08:00
“huailei000”
a97de8afb4 perf: 重置element-ui的message组件,防止重复点击重复弹出提示 2022-10-18 20:59:39 +08:00
“huailei000”
239d06bbcc fix: 资产账号创建、更新报错问题 2022-10-18 15:13:11 +08:00
Jiangjie.Bai
ba109900ec Merge pull request #2113 from jumpserver/dev
v2.27.0-rc3
2022-10-18 11:20:57 +08:00
“huailei000”
f8649457d6 perf: 优化页面布局 2022-10-18 10:34:18 +08:00
“huailei000”
8863693541 fix: 修复平台列表修复克隆名称带空格不能创建问题 2022-10-18 10:29:15 +08:00
ibuler
47a423284b perf: 修改平台 2022-10-17 17:21:59 +08:00
“huailei000”
c2cbd3f5b0 fix: 修复切换组织下拉框icon图标颜色不明显 2022-10-17 16:32:07 +08:00
“huailei000”
0b84b96afb fix: 修复终端设置-创建录像存储设置默认存储字段不生效问题 2022-10-17 14:50:43 +08:00
“huailei000”
2669c8fff0 feat: 调整资产详情账号列表显示字段 2022-10-14 18:00:00 +08:00
Jiangjie.Bai
ec7768267f Merge pull request #2105 from jumpserver/dev
v2.27.0-rc2
2022-10-14 11:01:32 +08:00
吴小白
4aefb6779f fix: 修正错误的构建参数 2022-10-14 10:52:14 +08:00
吴小白
06fd007c62 Revert "revert: 还原 dockerfile"
This reverts commit 6f4e029537.
2022-10-14 10:52:14 +08:00
ibuler
6f4e029537 revert: 还原 dockerfile 2022-10-14 10:29:27 +08:00
Jiangjie.Bai
cc58b374ab Merge pull request #2101 from jumpserver/dev
v2.27.0-rc1
2022-10-13 17:44:53 +08:00
“huailei000”
07f35dbbb2 fix: jQuery undefined 2022-10-13 17:41:08 +08:00
“huailei000”
ebaf97a495 perf: update account list 2022-10-13 16:06:03 +08:00
Jiangjie.Bai
04ffbb8fd6 Merge pull request #2097 from jumpserver/dev
v2.27.0-rc1
2022-10-13 15:14:40 +08:00
“huailei000”
12a501d559 perf: update jquery 2022-10-13 11:20:29 +08:00
feng626
7dcd4490ba Merge pull request #2093 from jumpserver/pr@dev@task_log
fix: 修复任务列表无法查看日志信息bug
2022-10-13 10:54:48 +08:00
feng626
dd1ac7c7f8 fix: 修复任务列表无法查看日志信息bug 2022-10-13 10:50:53 +08:00
“huailei000”
471910e0b8 pref: 作业中心任务详情添加查看输出快捷键 2022-10-12 19:13:08 +08:00
“huailei000”
4afb282ca2 fix: 修复创建资产时平台不准确问题 2022-10-12 16:26:46 +08:00
“huailei000”
a514e88b78 perf: 优化刷新页面方法,避免刷新时页面出现空白 2022-10-11 16:21:02 +08:00
“huailei000”
25f4f15e76 fix: 修复平台详情跳转到更新页面路由不准确问题 2022-10-10 18:22:42 +08:00
“huailei000”
60286f69ad fix: 添加默认菜单激活状态的文字颜色 2022-10-10 18:00:04 +08:00
“huailei000”
addd22ec6c fix: 修复平台详情操作权限不准确问题 2022-10-10 11:34:56 +08:00
Jiangjie.Bai
b79fefdee8 feat: 命令过滤器支持关联节点; 2022-10-09 19:02:17 +08:00
“huailei000”
0bab09e48e fix: 修复从平台列表页进入其他页面返回后列表数据显示不正确问题 2022-10-09 17:46:30 +08:00
Jiangjie.Bai
d2b3025709 perf: 优化用户创建默认勾选登录后需要修改密码 2022-10-09 16:57:02 +08:00
“huailei000”
cf234ca067 fix: 修复公共弹窗组件嵌套时遮罩层遮挡问题 2022-10-09 15:46:46 +08:00
“huailei000”
a908cc61c9 perf: update platform detail 2022-10-09 11:30:46 +08:00
吴小白
386e2417e3 Merge pull request #2075 from YonezawaYukar/dev
fix: 修正 Dockerfile
2022-10-08 09:38:21 +08:00
米泽由香里
fd57b37cea Update Dockerfile
修改一处错误
RUN重复两次 导致无法正常build
2022-10-04 03:28:10 +08:00
“huailei000”
b19c79f48c feat: 平台详情增加快速更新模块 2022-09-30 14:20:46 +08:00
吴小白
a6222f87d2 fix: 编译时修改版本 2022-09-30 10:08:14 +08:00
吴小白
5cd4e5b40b perf: 使用 yarn 构建 2022-09-30 10:08:14 +08:00
吴小白
eb3d9089e0 perf: 构建时使用缓存 2022-09-30 10:08:14 +08:00
Jiangjie.Bai
14f0fe1160 feat: 授权规则创建 2022-09-29 20:40:41 +08:00
feng626
21c8fd6e98 perf: 资产详情bug 2022-09-29 16:33:27 +08:00
“huailei000”
803ff92976 fix: 修复资产详情里账号创建不成功问题;资产里不显示系统用户 2022-09-29 11:05:34 +08:00
“huailei000”
5d74a975df fix: 修复资产详情字段展示;创建、更新资产页面报错问题 2022-09-27 14:49:55 +08:00
ibuler
25802db0d8 perf: 修改 platform 支持设置 ansible 2022-09-26 18:04:03 +08:00
ibuler
537a3d3ce8 pref: 修改平台创建 2022-09-26 17:23:04 +08:00
jiangweidong
56c22cffe6 perf: 优化短信配置错误提示不友好问题 2022-09-26 14:53:03 +08:00
“huailei000”
fe1e26957a fix: 修复全局组织下更新、删除:用户、端点、端点规则、组织权限 2022-09-26 14:52:16 +08:00
“huailei000”
bc366947f0 fix: 实例同步列表不显示多选框;设置云同步详情页面的菜单高亮显示;云同步进入详情不主动激活detail页卡 2022-09-26 14:51:06 +08:00
“huailei000”
86150cc571 fix: 修复账号信息内容更新不及时问题 2022-09-26 14:49:56 +08:00
ibuler
a0e124717b Merge branch 'v3' of github.com:jumpserver/lina into v3 2022-09-23 19:00:00 +08:00
ibuler
320ba89aea perf: 修改资产中的账号创建 2022-09-23 18:59:42 +08:00
Jiangjie.Bai
f11fc947af feat: 修改 Endpoint 的创建页面; 修改 Oracle 数据库创建不包含版本号字段 2022-09-22 19:24:15 +08:00
feng626
8514444508 perf: ticket 2022-09-22 14:59:48 +08:00
ibuler
b194c0100f perf: change cateogory data strucature 2022-09-21 20:13:13 +08:00
ibuler
d7dedf15f1 perf: 修改平台选择 2022-09-21 19:59:18 +08:00
ibuler
c491fb6c40 perf: 优化平台 2022-09-21 18:48:52 +08:00
ibuler
0e3af4df5d perf: 修改资产创建 2022-09-21 11:17:35 +08:00
ibuler
32188dcef4 Merge branch 'v3' of github.com:jumpserver/lina into v3 2022-09-20 21:19:45 +08:00
ibuler
0a199a2588 perf: 优化平台 2022-09-20 21:19:29 +08:00
feng626
8f1893f665 Merge pull request #2067 from jumpserver/feat_component_cascader
perf: 修改账号备份表单字段配置
2022-09-20 19:36:10 +08:00
“huailei000”
4f765fe527 perf: 修改账号备份表单字段配置 2022-09-20 19:33:51 +08:00
ibuler
7eeb917e16 Merge branch 'v3' of github.com:jumpserver/lina into v3 2022-09-20 17:36:27 +08:00
ibuler
93d8d0f5bf perf: 优化平台 2022-09-20 17:32:58 +08:00
feng626
6db7cb4a6e perf 账号列表展示 2022-09-19 20:57:31 +08:00
feng626
602ea51bbf perf: account filter 2022-09-19 19:48:55 +08:00
feng626
ec3eab6e72 perf: 账号管理相关权限 2022-09-19 11:36:21 +08:00
ibuler
a8bb7811ed perf: 修改平台类别 2022-09-15 21:20:44 +08:00
Jiangjie.Bai
49880f6739 Merge pull request #2059 from jumpserver/dev
v2.26.0
2022-09-15 17:49:44 +08:00
“huailei000”
82faf0f99e perf: 资产详情-授权用户没有数据时显示暂无数据 2022-09-15 17:48:41 +08:00
ibuler
9ef9e656e2 perf: 修改资产创建 2022-09-15 17:29:29 +08:00
fit2bot
c4bc4a1d9b perf: 封装资产创建基本组件 (#2053)
Co-authored-by: “huailei000” <2280131253@qq.com>
Co-authored-by: 老广 <ibuler@qq.com>
2022-09-15 17:27:12 +08:00
ibuler
f50445032f perf: 修改 platform 的创建 2022-09-15 16:46:04 +08:00
Jiangjie.Bai
e6f98d58c4 Merge pull request #2057 from jumpserver/dev
v2.26.0-rc4
2022-09-15 16:18:03 +08:00
“huailei000”
3536a94976 fix: 修复全局组织下命令过滤不能创建 2022-09-15 15:59:53 +08:00
“huailei000”
45276010e0 fix: 创建数据库端口设置为必填项 2022-09-15 15:34:00 +08:00
“huailei000”
2e47f42366 fix: 修复批量命令列表可点击链接颜色 2022-09-15 15:33:41 +08:00
“huailei000”
dd6e9a1512 fix: 修复批量命令列表可点击链接颜色 2022-09-15 15:33:41 +08:00
ibuler
af00517102 merge: with remote 2022-09-13 19:47:55 +08:00
“huailei000”
9a3c251867 perf: 资产创建封装公共的初始化函数 2022-09-13 19:43:07 +08:00
ibuler
daa662ac27 perf: 修改 accounts 创建 2022-09-13 19:42:51 +08:00
Jiangjie.Bai
fd1f16d43c Merge pull request #2050 from jumpserver/dev
v2.26.0-rc2
2022-09-13 17:41:39 +08:00
feng626
24931a9f5a perf: 工单新增相关过滤 2022-09-13 15:33:22 +08:00
ibuler
f51924bf1d perf: 优化密码加密,如果没有key就不加密了 2022-09-13 15:32:53 +08:00
“huailei000”
f82257edb8 fix: 修复创建、更新用户后点击邀请用户接口404问题 2022-09-13 15:31:53 +08:00
jiangweidong
286e9894c0 perf: 屏蔽--secure参数,目前redis-cli版本为6.0,暂时用不到 2022-09-13 11:50:06 +08:00
ibuler
0157c42c52 perf: 平台影响资产创建 2022-09-08 21:19:18 +08:00
ibuler
ccfb7356eb perf: 修改平台和资产 2022-09-08 20:29:56 +08:00
ibuler
7fa7096d91 perf: 优化协议选择 2022-09-08 16:03:52 +08:00
Jiangjie.Bai
968b2415b1 Merge pull request #2043 from jumpserver/dev
v2.26.0-rc1
2022-09-08 15:46:44 +08:00
“huailei000”
e0f6fb305d perf: cas用户属性映射不能为空,至少设置username 2022-09-08 15:46:08 +08:00
jiangweidong
e0fd33f376 fix: 修复数据库创建页面有多个mongdob的问题 (#2041) 2022-09-08 15:16:54 +08:00
ibuler
c5972f1b59 perf: 解决 form group 不隐藏的问题 2022-09-08 15:11:18 +08:00
ibuler
c2d97b58ee perf: 修改 protocols 2022-09-07 18:22:25 +08:00
ibuler
c97b3ffbdf perf: 修改 protocol selector 2022-09-07 17:19:40 +08:00
jiangweidong
7ad86062b4 perf: 支持连接开启ssl且自签证书的Redis/MongoDB (#2039)
* perf: 支持连接开启ssl且自签证书的Redis/MongoDB

* 修改字段文案

* 修改字段名称

* 修改变量名
2022-09-07 16:09:07 +08:00
“huailei000”
3ec02a299c fix: 修复所有资产创建显示问题 2022-09-07 15:03:38 +08:00
“huailei000”
1fce7561db fix: 修复用户首次登录页面翻译 2022-09-06 19:38:49 +08:00
“huailei000”
3b17235b6e fix: 批量更新不请求接口 2022-09-06 19:06:14 +08:00
jiangweidong
52c9b9503b feat: 支持MFA可配置华为云平台短信对接 2022-09-06 17:33:42 +08:00
Jiangjie.Bai
48a2b20320 Merge pull request #2025 from jumpserver/pr@dev@feat_cloud_support_ctyun_private
feat: 云同步支持同步天翼私有云平台资产
2022-09-06 17:31:01 +08:00
Jiangjie.Bai
e6cc8cd2e8 Merge branch 'dev' into pr@dev@feat_cloud_support_ctyun_private 2022-09-06 17:30:47 +08:00
jiangweidong
3a183ddf53 feat: 支持OAuth2协议自定义注销功能 2022-09-06 17:27:11 +08:00
jiangweidong
7eb77487d1 feat: feat: 支持连接开启了ssl的Redis数据库 2022-09-06 16:55:37 +08:00
“huailei000”
2cffb5c952 fix: 修复克隆路由问题;批量更新显示问题 2022-09-06 16:47:58 +08:00
jiangweidong
a5da581317 feat: 云同步支持资产同步腾讯云(轻量应用服务器) 2022-09-06 16:19:58 +08:00
“huailei000”
03ca2d614f fix: 修复资产详情更新路由跳转地址 2022-09-06 14:14:18 +08:00
“huailei000”
17bf2b0611 fix: 修复资产列表baseList传参 2022-09-06 10:47:25 +08:00
ibuler
8c178d92de Merge branch 'v3' of github.com:jumpserver/lina into v3 2022-09-05 20:57:15 +08:00
ibuler
c0a3251f44 perf: 配合后端升级 object related field 2022-09-05 20:17:51 +08:00
“huailei000”
bfdc6b4504 fix: 修复资产列表table组件点击资产树列表不刷新问题 2022-09-05 17:05:47 +08:00
“huailei000”
6bda9a372e fix: moment.js 插件升级修复官方漏洞 2022-09-05 13:55:52 +08:00
jiangweidong
a8de087137 feat: 云同步支持同步天翼私有云平台资产 2022-09-02 17:37:27 +08:00
ibuler
bfdf09908e perf: 修改 host 2022-09-01 20:59:46 +08:00
ibuler
80afe04aa9 perf: 修改平台创建 2022-09-01 17:42:30 +08:00
ibuler
a9e38b2be6 perf: 修改 v3 2022-09-01 15:06:39 +08:00
ibuler
22738982cb Merge remote-tracking branch 'origin/v3' into v3 2022-08-31 16:16:19 +08:00
“huailei000”
757c6ef44c fix: 修复切换tab路由参数不能添加问题;修复创建云平台页面空白问题; 2022-08-31 16:04:37 +08:00
ibuler
bf6025c971 Merge branch 'v3' of github.com:jumpserver/lina into v3 2022-08-31 10:33:04 +08:00
“huailei000”
4252fb6533 feat: 平台选择添加最近选择的平台;云同步只在主机中保留;平台选择某种类型时不带类别; 2022-08-31 10:32:37 +08:00
ibuler
e451930e7b perf: 添加支持新的 choice 2022-08-31 10:00:12 +08:00
ibuler
09d6f7b82b Merge remote-tracking branch 'origin/v3' into v3 2022-08-30 17:25:48 +08:00
feng626
0f9bcda6ca 账号备份类型 2022-08-30 15:31:09 +08:00
ibuler
cd367fb0d5 perf: 修改 platform ops 2022-08-30 14:54:12 +08:00
ibuler
cd7010dccb Merge branch 'v3' of github.com:jumpserver/lina into v3 2022-08-29 18:30:54 +08:00
ibuler
3136319352 perf: 修改平台 2022-08-29 18:30:47 +08:00
“huailei000”
eb00b5f1ca feat: 创建资产相关页面;配置路由; 2022-08-29 18:20:28 +08:00
ibuler
b4377e0746 perf: 修改 platform ops 2022-08-29 15:59:28 +08:00
“huailei000”
5f1d67ee21 feat: 创建表单分类选择 2022-08-29 10:42:51 +08:00
ibuler
e932cb2456 perf: 修改 hostname 为 name 2022-08-24 19:32:20 +08:00
ibuler
85abefff74 perf: 去掉 applications perm 2022-08-24 16:17:36 +08:00
jiangweidong
34d9790a04 feat: MongoDB支持连接SSL类型 2022-08-24 15:00:56 +08:00
“huailei000”
5bfe2497fd fix: 修复新建用户个人信息确认后跳转路由还会返回个人信息确认页问题 2022-08-24 14:48:08 +08:00
jiangweidong
e16a775037 feat: 改密计划支持MongoDB改密 2022-08-24 14:47:46 +08:00
ibuler
ee4a9a967b perf: 去掉 applications 2022-08-23 20:01:51 +08:00
ibuler
a3d3dcc44c perf: 修改资产 2022-08-23 13:43:13 +08:00
ibuler
75fbfab95d perf: 修改 asset 2022-08-19 19:42:14 +08:00
ibuler
d48a61c597 perf: 修改 platform list 和 asset list 2022-08-19 19:38:24 +08:00
“huailei000”
42fab92237 fix: 调整按钮大小 2022-08-19 16:24:29 +08:00
Jiangjie.Bai
e2eac83615 fix: 修复上传json文件上传问题 2022-08-19 13:36:22 +08:00
“huailei000”
04465a1da3 fix: 修复LDAP用户导入失败弹出提示 2022-08-19 11:05:31 +08:00
“huailei000”
2adb1ee980 fix: 升级lodash 2022-08-19 11:04:43 +08:00
ibuler
01919a496e perf: 修改平台和资产 2022-08-18 17:59:18 +08:00
Jiangjie.Bai
776090d6ba Merge pull request #2001 from jumpserver/dev
v2.25.0
2022-08-18 16:12:45 +08:00
feng626
2c66bec7c9 Merge pull request #2000 from jumpserver/pr@dev@ticket_translate
fix: 修复工单翻译
2022-08-18 15:10:45 +08:00
feng626
b10f7faf25 fix: 修复工单翻译 2022-08-18 15:09:26 +08:00
feng626
450014ab16 Merge pull request #1999 from jumpserver/pr@dev@batch_command_filter
perf: 批量命令搜索优化
2022-08-18 11:48:22 +08:00
feng626
8ad0d2ac58 perf: 批量命令搜索优化 2022-08-18 11:44:45 +08:00
Jiangjie.Bai
bd41f96df3 fix: 修复属性映射字段值不显示的问题 2022-08-18 11:01:13 +08:00
Jiangjie.Bai
3a37952288 Merge pull request #1996 from jumpserver/dev
v2.25.0-rc4
2022-08-17 16:53:23 +08:00
Jiangjie.Bai
5346eb1ef1 fix: 修复云同步 lan attrs ip_group 必填项问题,gcp 上传文件不显示问题 2022-08-17 16:46:32 +08:00
Jiangjie.Bai
62b8fc0e3b Merge pull request #1994 from jumpserver/dev
v2.25.0-rc3
2022-08-16 19:08:23 +08:00
“huailei000”
f532d624e0 fix: 字段设置为必填项 2022-08-16 16:31:13 +08:00
“huailei000”
4ce6f49b30 fix: 修复应用授权远程应用以外的类型不显示字段说明 2022-08-16 15:55:19 +08:00
Jiangjie.Bai
2fb160b5f7 fix: 修改表单默认值的设置,gcp 的 attrs 字段中是 child 不是 children 2022-08-16 15:53:25 +08:00
“huailei000”
4ed9fb2acc fix: 取消树搜索input自动提示最近输入 2022-08-16 14:25:54 +08:00
“huailei000”
722fc083cb perf: 替换资产树title 2022-08-16 12:24:35 +08:00
ibuler
1bfe5eed15 perf: 修改账号创建 2022-08-15 18:32:13 +08:00
Jiangjie.Bai
4356b79ecc perf: 优化 attrs 字段 default 值的返回 2022-08-15 16:23:13 +08:00
feng626
5eff817b05 Merge pull request #1987 from jumpserver/pr@dev@update_TICKET_AUTHORIZE_DEFAULT_TIME
fix: 配置工单授权时间后更新vuex
2022-08-15 11:28:12 +08:00
feng626
4f08fef25a fix: 配置工单授权时间后更新vuex 2022-08-15 11:27:13 +08:00
Jiangjie.Bai
b2028869cb Merge pull request #1986 from jumpserver/dev
v2.25.0-rc2
2022-08-12 18:06:56 +08:00
feng626
325f21f8b5 Merge pull request #1985 from jumpserver/fix_tree_search_url
fix: 资产树默认关闭搜索;调整搜索url携带的参数
2022-08-12 16:53:33 +08:00
“huailei000”
802d6f6cd3 fix: 资产树默认关闭搜索;调整搜索url携带的参数 2022-08-12 16:49:47 +08:00
feng626
f2120521d6 Merge pull request #1984 from jumpserver/pr@dev@ticket_flow
fix: 还原工单流逻辑
2022-08-12 14:27:02 +08:00
feng626
cbdeea9be7 fix: 还原工单流逻辑 2022-08-12 14:21:53 +08:00
“huailei000”
8d2d38327a fix: 添加正则过滤表情符号方法;修复创建云同步名称能输入表情符号问题 2022-08-12 11:33:22 +08:00
“huailei000”
5c564c42dc fix: 修复资产树右键不显示菜单问题 2022-08-12 11:33:00 +08:00
feng626
0c47f8f962 Merge pull request #1981 from jumpserver/pr@dev@ticket_flow
fix:  全局组织下不能修改工单流
2022-08-12 10:44:12 +08:00
feng626
65d625ad3c fix: 全局组织下不能修改工单流 2022-08-12 10:43:20 +08:00
feng626
0e65b7f1be Merge pull request #1979 from jumpserver/pr@dev@actions
fix: 修复授权动作不展示
2022-08-11 18:05:27 +08:00
feng626
22cfaf8665 fix: 修复授权动作不展示 2022-08-11 18:03:30 +08:00
feng626
b3670fe528 fix: 修复系统工具切换时 清空终端信息 2022-08-11 16:26:19 +08:00
ibuler
d311884ec0 perf: 修改 添加 account 2022-08-11 16:26:16 +08:00
Jiangjie.Bai
2f80b66b07 perf: 云同步 LAN 添加测试超时时间选项 2022-08-11 16:25:54 +08:00
Jiangjie.Bai
5277a725f8 Merge pull request #1973 from jumpserver/dev
v2.25.0-rc1
2022-08-11 14:11:59 +08:00
“huailei000”
b400c13965 perf: 优化资产树搜索等待时间 2022-08-11 14:11:29 +08:00
fit2bot
c71f0c17fc feat: 添加树的title显示模块 (#1975)
* feat: 树组件增加搜索功能

* feat: 添加插入节点

* feat: zTree组件增加搜索功能配置、创建根节点配置

* feat: 添加树的title显示模块

Co-authored-by: “huailei000” <2280131253@qq.com>
2022-08-11 13:43:08 +08:00
fit2bot
a952477c3b fix: 修复创建应用工单action (#1971)
* fix: 修复创建应用工单action

* 调整结构

Co-authored-by: feng626 <1304903146@qq.com>
2022-08-10 19:36:22 +08:00
ibuler
1291b693f0 perf: 修改 protocol 2022-08-10 19:26:28 +08:00
feng626
1153a3b38b fix: 修复翻译 2022-08-10 11:01:56 +08:00
fit2bot
2e69cd86aa feat: 系统工具Ping和Telnet (#1961)
Co-authored-by: halo <wuyihuangw@gmail.com>
Co-authored-by: Jiangjie.Bai <32935519+BaiJiangJie@users.noreply.github.com>
2022-08-09 17:55:14 +08:00
ibuler
df15fd497d pref: 修改 nestfield 2022-08-09 16:53:17 +08:00
jiangweidong
a5ea6360bd perf: 优化测试按钮交互 2022-08-09 16:10:39 +08:00
jiangweidong
0639b139d7 feat: 支持CMPPv2.0协议短信网关 2022-08-09 16:10:39 +08:00
ibuler
23ec8e4687 perf: 修改 select2 2022-08-09 13:28:36 +08:00
ibuler
2f7e3bbc85 perf: 修改 host 2022-08-09 10:43:01 +08:00
ibuler
690757b225 perf: 修改展现方式 2022-08-08 15:32:21 +08:00
ibuler
a8867dee83 perf: aes key 强制最大 16 2022-08-05 14:55:00 +08:00
Jiangjie.Bai
c4d0462362 feat: Cloud 支持局域网 IP 扫描 2022-08-05 14:38:23 +08:00
“huailei000”
db97240ad3 perf: 调整导航栏对齐;替换站内信图标 2022-08-04 14:46:52 +08:00
jiangweidong
5b6f06ac0e feat: 认证方式支持OAuth2.0协议 (#1963)
* feat: 认证方式支持OAuth2.0协议

* 增加scope参数

* perf: 优化 OAuth2 认证逻辑和Logo,支持上传图标

* perf: 优化 OAuth2 认证逻辑和Logo,支持上传图标

Co-authored-by: Jiangjie.Bai <bugatti_it@163.com>
2022-08-04 14:41:20 +08:00
ibuler
d3e3561407 v3 init 2022-08-03 16:31:36 +08:00
“huailei000”
51de827c2b fix: 修复浏览器控制台提示icons提示告警问题 2022-08-03 14:24:55 +08:00
ibuler
49566cdae7 perf: 修改头像 2022-08-03 14:24:37 +08:00
“huailei000”
b6786687b6 fix: 修复修改个人信息后点击tip链接跳转失败问题 2022-08-03 14:24:06 +08:00
ibuler
2e7c48a999 perf: 修改 account 2022-07-28 18:50:05 +08:00
feng626
c83abe32c6 Merge pull request #1960 from jumpserver/pr@dev@ticket_app_add_action
feat: 应用工单支持选择动作
2022-07-22 16:25:10 +08:00
feng626
1b19e0201d feat: 应用工单支持选择动作 2022-07-22 16:20:48 +08:00
feng626
7681250fff Merge pull request #1959 from jumpserver/pr@dev@ticket_perm_default_time
feat: 添加默认工单授权时间
2022-07-22 15:23:02 +08:00
feng626
9fe4e0b613 feat: 添加默认工单授权时间 2022-07-22 15:21:22 +08:00
Jiangjie.Bai
f137788c1a Merge pull request #1957 from jumpserver/dev
v2.24.0-rc5
2022-07-20 19:06:03 +08:00
“huailei000”
2f09c3f355 fix: 修复会话记录跳转链接颜色问题 2022-07-20 15:03:28 +08:00
“huailei000”
ea047e01d1 fix: 修复element-button类型为danger&plain的颜色问题 2022-07-20 15:02:59 +08:00
ibuler
76d9a69220 perf: 修改 rdp 2022-07-19 18:58:44 +08:00
ibuler
6388eed6e3 perf: 修改系统用户列表 2022-07-19 18:03:16 +08:00
Jiangjie.Bai
f7d17c8de7 Merge pull request #1954 from jumpserver/dev
v2.24.0-rc4
2022-07-19 16:18:13 +08:00
“huailei000”
86ead72858 fix: 创建工单-切换组织时清空节点、资产、系统用户 2022-07-19 16:17:53 +08:00
ibuler
48b22edace perf: 修改 org 变量名称 2022-07-19 15:59:10 +08:00
ibuler
ea682a2aaa perf: 优化 dialog footer padding 2022-07-19 15:39:29 +08:00
fit2bot
8b499d8f7f pref: 优化体验 (#1952)
* perf: 修改 padding

* pref: 优化体验

Co-authored-by: ibuler <ibuler@qq.com>
2022-07-19 15:14:45 +08:00
“huailei000”
25c04e9c05 fix: 修复下拉选中项鼠标hover颜色问题 2022-07-19 15:10:44 +08:00
huangzhiwen
5dca562a12 fix: 修改动作选择为默认全展开 2022-07-19 14:58:18 +08:00
“huailei000”
7701bc9b67 fix: 修复从审批工单进入资产授权点击更新后获取不到数据问题 2022-07-18 17:17:30 +08:00
“huailei000”
157bc08f84 fix: 修复右键资产树后点击切换到其他组织不生效问题 2022-07-18 15:15:17 +08:00
Jiangjie.Bai
feea70b0be Merge pull request #1944 from jumpserver/dev
v2.24.0-rc3
2022-07-18 12:05:42 +08:00
“huailei000”
7921f1f9e5 fix: 修复element-ui 字体图标加载不出来问题 2022-07-18 10:59:06 +08:00
ibuler
90d737773d perf: 优化修改添加账号 2022-07-17 13:56:43 +08:00
“huailei000”
a7252d16d1 fix: 修复element-ui字体图标加载失败问题 2022-07-17 11:20:20 +08:00
ibuler
4f23c40598 perf: 重构账号 2022-07-15 18:57:38 +08:00
Jiangjie.Bai
04696ef3d6 Merge pull request #1940 from jumpserver/dev
v2.24.0-rc2
2022-07-15 18:07:37 +08:00
feng626
cdde3799af Merge pull request #1939 from jumpserver/pr@dev@confirm_css
fix: confirm css
2022-07-15 16:55:40 +08:00
feng626
f0b987ed54 fix: confirm css 2022-07-15 16:55:01 +08:00
jiangweidong
af60fdabda perf: 优化测试邮箱连接等功能时,交互界面优化,显示loading 2022-07-15 14:57:06 +08:00
“huailei000”
af0d6202bb perf: 优化首屏加载速度 2022-07-15 14:19:15 +08:00
feng626
c1e3c23523 Merge pull request #1937 from jumpserver/pr@dev@ticket_org
fix: 修复工单选择资源组织问题
2022-07-15 11:42:17 +08:00
feng626
7232706a7f fix: 修复工单选择资源组织问题 2022-07-15 11:41:06 +08:00
“huailei000”
dd2b76473f fix: 修复站内信链接颜色 2022-07-15 11:07:52 +08:00
“huailei000”
b41c3ac687 fix: 修复默认主题颜色配置不全问题 2022-07-15 11:01:08 +08:00
Jiangjie.Bai
1731f4f788 Merge pull request #1934 from jumpserver/dev
v2.24.0-rc1
2022-07-14 18:27:51 +08:00
feng626
fa74dad83d fix: vuex add notRootWorkbenchOrgs 2022-07-14 18:11:21 +08:00
Jiangjie.Bai
6f25d93909 Merge pull request #1931 from jumpserver/dev
v2.24.0-rc1
2022-07-14 17:51:58 +08:00
feng626
06a09b90e2 Merge pull request #1932 from jumpserver/pr@dev@ticket_title_css
fix: 修改创建更新工单 标题的css
2022-07-14 16:39:46 +08:00
feng626
3c9767b791 fix: 修改创建更新工单 标题的css 2022-07-14 16:38:17 +08:00
Jiangjie.Bai
da66f5e123 perf: 优化命令过滤器页面说明文案 2022-07-14 15:30:59 +08:00
feng626
e4f33cce14 Merge pull request #1928 from jumpserver/pr@dev@ticket_default_org
fix: ticket del global org
2022-07-14 15:14:50 +08:00
feng626
a5b374e524 fix: ticket del global org 2022-07-14 15:13:02 +08:00
Jiangjie.Bai
46461ec324 Merge pull request #1925 from jumpserver/dev
v2.24.0-rc1
2022-07-14 15:12:15 +08:00
Jiangjie.Bai
0dfcf42635 Merge pull request #1927 from jumpserver/pr@dev@fix_mergemaster
fix: merge dev
2022-07-14 15:11:42 +08:00
Jiangjie.Bai
0aa42bc72a fix: merge dev 2022-07-14 15:10:26 +08:00
fit2bot
cbf76c17d5 pref: 系统用户有 key 后,更新显示指纹 (#1906)
Co-authored-by: ibuler <ibuler@qq.com>
2022-07-14 14:54:55 +08:00
“huailei000”
216a2df6da perf:优化默认主题文件格式 2022-07-14 14:53:36 +08:00
“huailei000”
0b2db0615e fix: 系统用户-telnet协议用户名设置为非必填 2022-07-14 14:47:22 +08:00
“huailei000”
3544fe5bfa fix: 修复无痕模式下其他组织创建新用户登录没有权限问题 2022-07-14 14:42:55 +08:00
feng626
2cd30fc9d8 Merge pull request #1921 from jumpserver/pr@dev@del_history_account
perf: 暂时禁用账号历史
2022-07-14 10:40:45 +08:00
feng626
71bbe7b0c5 perf: 暂时禁用账号历史 2022-07-14 10:38:51 +08:00
feng626
29f1523113 Merge pull request #1919 from jumpserver/pr@dev@audit_command_filter
perf: 批量命令添加搜索项
2022-07-13 17:34:24 +08:00
feng626
6b5981e3af perf: 批量命令添加搜索项 2022-07-13 17:33:13 +08:00
Jiangjie.Bai
273a6cbb3b feat: Endpoint 支持 oracle 版本 2022-07-13 16:32:01 +08:00
feng626
6c78f04d12 Merge pull request #1731 from jumpserver/pr@dev@ticket
fix: 工单 bug
2022-07-13 15:50:08 +08:00
feng626
1b86b4e4cd fix: ticket bug 2022-07-13 15:47:36 +08:00
“huailei000”
94d3560410 fix:资产授权-资产节点列表默认显示资产 2022-07-13 14:03:47 +08:00
“huailei000”
897749547d fix: 修复资产账号连续点击查看不触发问题 2022-07-13 14:03:06 +08:00
ibuler
6fb34451d9 perf: 修改主题 btn 颜色 2022-07-13 11:13:23 +08:00
ibuler
3fba41b27b perf: 优化配色 2022-07-13 10:03:11 +08:00
Jiangjie.Bai
6c5f991494 fix: 修改连接令牌 is_valid 字段 2022-07-12 18:33:58 +08:00
ibuler
e80499b7b4 fix: 修复普通用户登录默认 404
perf: 添加注释
2022-07-12 17:12:03 +08:00
feng626
732788ac72 Merge pull request #1905 from jumpserver/pr@dev@confirm
fix: oauth bind confirm url
2022-07-12 16:02:57 +08:00
feng626
5a63cd253d fix: oauth bind confirm url 2022-07-12 15:59:58 +08:00
feng626
bc17b5c504 feat: 工单支持审批时修改资产 2022-07-12 15:29:27 +08:00
feng626
5dfcfd7b71 Merge pull request #1904 from jumpserver/pr@dev@perf_colors
fix: theme colors default
2022-07-12 14:56:21 +08:00
feng626
39766553fa fix: theme colors default 2022-07-12 14:55:02 +08:00
ibuler
b6be60c584 perf: 优化 theme color 2022-07-12 14:15:45 +08:00
fit2bot
a6d9bd1ab3 perf: 优化 btn 颜色 (#1902)
* perf: 修改 theme

* perf: 优化 btn 颜色

Co-authored-by: ibuler <ibuler@qq.com>
2022-07-12 13:43:33 +08:00
ibuler
940a3c50f3 perf: 修改 theme 2022-07-12 13:28:28 +08:00
ibuler
ca45f61c2c perf: remove unused css 2022-07-12 10:29:05 +08:00
fit2bot
7644bffe12 feat: 添加连接令牌页面 (#1891)
* feat: 修改 API Key action 启停->启用/禁用

* feat: 添加连接令牌页面

* feat: 添加连接令牌页面

* feat: 修改敏感字段组件

* feat: 添加help text

Co-authored-by: Jiangjie.Bai <bugatti_it@163.com>
2022-07-11 19:38:56 +08:00
feng626
ba1923cd21 Merge pull request #1899 from jumpserver/pr@dev@yarn_lock
perf: update yarn lock
2022-07-11 18:23:21 +08:00
feng626
e0dc7ab451 perf: update yarn lock 2022-07-11 18:21:57 +08:00
“huailei000”
3a1f0b6d38 fix: 修复info类型button的样式特殊处理 2022-07-11 18:19:52 +08:00
“huailei000”
13b91a541c fix: 修复el-link边框颜色 2022-07-11 17:06:59 +08:00
“huailei000”
0cd96e1d82 fix: 修复混合颜色方法判断错误问题 2022-07-11 15:55:51 +08:00
ibuler
efe6247dbc perf: 修改 theme color 2022-07-11 15:17:34 +08:00
ibuler
b8b7c73bb1 perf: 修改主题 2022-07-11 11:18:23 +08:00
“huailei000”
3b1ea689d1 perf: 删除没有引用的主题文件 2022-07-11 11:16:35 +08:00
“huailei000”
c5a611af06 perf: 修改淘宝镜像新域名 2022-07-11 11:09:25 +08:00
ibuler
ef41dc809c perf: 修改 demo 2022-07-08 15:38:42 +08:00
“huailei000”
bc0ca617a1 fix: 修复修改密码组件颜色随主题色变化 2022-07-08 15:38:11 +08:00
“huailei000”
d25620ecfe fix: 修复element-ui,link标签hover状态的颜色 2022-07-08 15:37:45 +08:00
“huailei000”
bc9d0aeeb3 fix: 修复工单查看受理人翻译问题、颜色问题;修复button focus状态下颜色问题 2022-07-08 13:34:54 +08:00
“huailei000”
bbd2951496 fix: 修复命令存储默认初始值不准确问题 2022-07-08 11:19:58 +08:00
“huailei000”
0d80eca595 feat: 添加主题预览功能 2022-07-07 19:43:03 +08:00
fit2bot
d8cf5ad553 perf: 修改一些名字 (#1882)
* perf: 修改一些名字

* perf: 修改 colors

Co-authored-by: ibuler <ibuler@qq.com>
2022-07-07 18:34:15 +08:00
“huailei000”
ec9b8f0005 perf: 优化修改主题相关方法传参 2022-07-07 18:07:38 +08:00
feng626
d98c961fd8 Merge pull request #1880 from jumpserver/pr@dev@confirm
fix: 调整confirm
2022-07-07 17:07:28 +08:00
feng626
639122aeca fix: 调整confirm 2022-07-07 17:04:54 +08:00
“huailei000”
45852eb4b9 fix: 修复修改主题颜色以后button hover颜色不一致问题 2022-07-07 15:03:15 +08:00
“huailei000”
24e716df5d fix: 修复修改主题颜色后提交保存页面刷新不生效问题 2022-07-07 12:55:24 +08:00
dependabot[bot]
fbda43b9dd build(deps): bump shell-quote from 1.7.2 to 1.7.3
Bumps [shell-quote](https://github.com/substack/node-shell-quote) from 1.7.2 to 1.7.3.
- [Release notes](https://github.com/substack/node-shell-quote/releases)
- [Changelog](https://github.com/substack/node-shell-quote/blob/master/CHANGELOG.md)
- [Commits](https://github.com/substack/node-shell-quote/compare/v1.7.2...1.7.3)

---
updated-dependencies:
- dependency-name: shell-quote
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-07 09:35:02 +08:00
“huailei000”
e5f18fa2bb perf: 去掉预览效果 2022-07-06 20:02:42 +08:00
“huailei000”
a3e97cb039 fix: 修复菜单颜色不变化问题 2022-07-06 19:50:28 +08:00
fit2bot
f4292796fc perf: 优化配色 (#1871)
* perf: 优化配色

* perf: 修改 interface

Co-authored-by: ibuler <ibuler@qq.com>
2022-07-06 19:45:44 +08:00
“huailei000”
bc991fe762 perf: 调整主题配置文件结构 2022-07-06 19:43:18 +08:00
“huailei000”
3de65f9a5b fix: 修复仪表盘不随主题颜色变化问题;修复SAML2-link标签颜色;修复select-down显示颜色 2022-07-06 17:49:38 +08:00
“huailei000”
000c8da6ae perf: 优化主题配置文件对象写法 2022-07-06 15:03:48 +08:00
ibuler
bc253c26b9 perf: 修改 css 名称 2022-07-06 11:01:13 +08:00
“huailei000”
abc3738309 perf: 优化css文件命名;删除没用css文件;解决设置主题保存也生效问题 2022-07-06 10:50:01 +08:00
ibuler
c305ca2e22 pref: 还原高度 2022-07-05 20:17:53 +08:00
“huailei000”
6618afc72f fix: 修复倒入组件报错问题 2022-07-05 20:17:17 +08:00
huailei
ab4b4d5230 Feat addtheme (#1864)
* feat: 删除没用的css文件

* feat: 添加修改主题组件

* feat: 设置全局css变量

* feat: 替换修改主题方法

* perf: 修改 bg color

* perf: 修改 left bar css

* perf: 修改 element

* perf: 暂存与喜爱

* feat: 添加颜色转换方法

* perf: 修改一些

* perf: 修改颜色

* feat: 修改默认elemet-ui样式

* feat: 暂存

* feat: 添加切换菜单栏颜色方法

* feat: 调整配置颜色

* feat: 调整主题相关配色
1、修复弹窗出现黑屏问题
2、修复左侧菜单展开、折叠出现白色闪动问题
3、迁移element-ui.scss文件内容到extra.css文件里

* feat: 调整styles下文件结构;升级sass插件修复构建提示语法错误问题

* feat: 拆分主题配置文件;添加设置到基本设置里

* feat: 修复public-fonts目录下文件内容

* fix: 解决冲突

* feat: 修改颜色配置

Co-authored-by: ibuler <ibuler@qq.com>
2022-07-05 20:06:28 +08:00
fit2bot
be842a3e3a perf: 修改颜色 (#1862)
* perf: 修改颜色

* perf: 优化主题

Co-authored-by: ibuler <ibuler@qq.com>
2022-07-05 17:35:05 +08:00
fit2bot
114704f668 perf: 优化主题配色 (#1859)
* perf: 优化主题配色

* perf: 修改主题

* perf: 修改更新 theme

* perf: 修改主题

* perf: 修改 avart

* perf: css

* perf: css

Co-authored-by: ibuler <ibuler@qq.com>
2022-07-05 14:31:50 +08:00
fit2bot
5f8b3f1986 feat: 账号历史信息 (#1841)
* perf: 账号历史信息

* del app

Co-authored-by: feng626 <1304903146@qq.com>
2022-07-04 18:55:46 +08:00
“huailei000”
4b376b65b3 fix: 修复当前用户加入组织后创建工单不显示加入的组织问题 2022-07-04 11:27:54 +08:00
feng626
f5c7abcbd8 perf: confirm 优化 2022-07-04 11:24:25 +08:00
Jiangjie.Bai
bb91fbb327 perf: 会话列表显示终端名称; 2022-07-04 11:22:30 +08:00
fit2bot
c3cc54a2d2 perf: 简单修改配色 (#1857)
* perf: 简单修改配色

* perf: 吸怪透明度

* perf: 默认红色

Co-authored-by: ibuler <ibuler@qq.com>
2022-07-01 16:12:36 +08:00
fit2bot
109b40f3b2 perf: 修改 css (#1856)
* perf: 修改 css

* perf: 菜单颜色

* perf: 修改主题

* perf: 统一颜色 css

* perf: 修改 css

* perf: 修改 css

Co-authored-by: ibuler <ibuler@qq.com>
2022-07-01 15:15:17 +08:00
Jiangjie.Bai
47a3005b6a perf: 创建更新用户和用户列表添加 is_active 字段 2022-06-30 18:28:35 +08:00
ibuler
7c6530d9e8 perf: 修改统一 css 2022-06-30 18:28:17 +08:00
ibuler
8e57d76713 perf: 整理 css 2022-06-30 18:28:17 +08:00
ibuler
8f6c9af3fb perf: 修改主题 2022-06-30 13:07:22 +08:00
ibuler
2719925f8b perf: remove duplicate css 2022-06-30 13:07:22 +08:00
feng626
51c7a3e8cc Merge pull request #1852 from jumpserver/pr@dev@ticket_bug
fix: 修复工单命令复合显示bug
2022-06-30 11:17:46 +08:00
feng626
0946fedce2 fix: 修复工单命令复合显示bug 2022-06-30 11:16:16 +08:00
Jiangjie.Bai
8b11146e44 feat: Endpoint 添加帮助信息 2022-06-29 18:51:05 +08:00
“huailei000”
263ab8c913 fix: 修复进入工单流程设置详情页,页面布局出现遮挡问题 2022-06-29 10:51:43 +08:00
“huailei000”
33b8e7a21b perf: 修复工单-创建应用授权error提示方式 2022-06-29 10:49:21 +08:00
“huailei000”
ccecaf7aae fix: 修复工单页面刷新会返回到工作台问题 2022-06-28 18:14:19 +08:00
feng626
fc8d9b4509 Merge pull request #1844 from jumpserver/pr@dev@fix_ticket_bug
fix: 解决一些工单已知问题
2022-06-28 17:19:54 +08:00
feng626
25999801d5 fix: 解决一些工单已知问题 2022-06-28 17:15:02 +08:00
“huailei000”
763c8338ef fix: 修复终端管理操作不显示问题 2022-06-28 16:32:49 +08:00
“huailei000”
340516297b fix: 修复密码过期组件变量没找到报错问题 2022-06-28 15:55:42 +08:00
ibuler
069ba9cfc4 perf: 修改 msg 2022-06-23 17:28:11 +08:00
ibuler
4c88a331d5 perf: 修改 license 提示 2022-06-23 17:28:11 +08:00
“huailei000”
d7016c5de2 perf: 优化左侧菜单折叠后title修改为显示图标 2022-06-23 15:54:41 +08:00
feng626
3d41215a63 Merge pull request #1780 from jumpserver/pr@dev@refactor_tickiets
perf: 工单重构
2022-06-23 14:38:44 +08:00
feng626
57e5452220 优化一波 2022-06-23 14:31:06 +08:00
“huailei000”
cc94eb6d4e perf: 优化帮助文案 2022-06-22 16:40:51 +08:00
“huailei000”
0b82947e8f fix: 修复左侧菜单英文翻译问题 2022-06-22 16:22:10 +08:00
ibuler
e4507e35fd perf: 优化站内信布局 2022-06-21 14:27:16 +08:00
“huailei000”
40fd62cd2b fix: 修改在更新页面下切换组织,点击浏览器后退操作接口500问题 2022-06-17 19:00:21 +08:00
ibuler
5e8c1b4881 pref: 优化添加批量删除 2022-06-17 18:20:03 +08:00
ibuler
5f984ecbe6 perf: 修改移动设备下的表现 2022-06-17 18:19:30 +08:00
feng626
111d3d56e2 perf: 优化confirm 重新登录翻译 2022-06-16 18:47:37 +08:00
feng626
91c6a4d6b2 perf: 优化confirm 重新登录翻译 2022-06-16 18:32:14 +08:00
Jiangjie.Bai
58ab7139d6 Merge pull request #1817 from jumpserver/dev
v2.23.0 rc6
2022-06-16 18:13:04 +08:00
“huailei000”
81d8cd971c fix: 切换视图提示信息判断移动端不显示 2022-06-16 18:11:20 +08:00
ibuler
ea3e26b92c perf: 修改移动端 table 2022-06-16 18:09:26 +08:00
feng626
a076a277c9 fix: confirm bug 2022-06-16 18:08:40 +08:00
feng626
3c9a3b693b 修啊修 2022-06-16 17:53:50 +08:00
Jiangjie.Bai
79f6bea423 perf: 优化会话加入记录结束状态显示 2022-06-16 16:42:08 +08:00
Jiangjie.Bai
ea8af7deb3 Merge pull request #1810 from jumpserver/dev
v2.23.0 rc5
2022-06-16 15:53:41 +08:00
ibuler
fcfd26c58f perf: 优化 icon 2022-06-16 15:47:49 +08:00
“huailei000”
a6c1e16339 fix: 修复资产列表右击资产搜索框出现空白tag问题 2022-06-16 15:45:08 +08:00
“huailei000”
c899b209d7 fix: 修复全局组织下不能创建判断;平台列表全局组织可以创建、克隆判断 2022-06-16 14:50:34 +08:00
“huailei000”
bba8f8a9a0 fix: 修复终端管理-翻译问题 2022-06-16 14:50:18 +08:00
“huailei000”
d1b620956e perf: 帮助下拉内容与luna保持一致 2022-06-16 14:15:54 +08:00
Jiangjie.Bai
f260979a11 fix: 修复创建、更新用户时need_update_password字段样式 2022-06-16 13:56:34 +08:00
feng626
f3bc6bdd46 Merge pull request #1804 from jumpserver/pr@dev@confirm_bug
fix: confirm bug
2022-06-16 12:44:03 +08:00
feng626
7fe91756c9 fix: confirm bug 2022-06-16 12:39:41 +08:00
feng626
0fa05aaeb4 Merge pull request #1803 from jumpserver/pr@dev@confirm_input_perf
perf: user confirm input
2022-06-16 12:32:02 +08:00
feng626
2183e6bc89 perf: user confirm input 2022-06-16 12:31:03 +08:00
ibuler
7bb16515b1 stash it 2022-06-16 11:35:23 +08:00
Jiangjie.Bai
1ecc57b21b Merge pull request #1797 from jumpserver/dev
v2.23.0 rc4
2022-06-15 19:35:36 +08:00
feng626
76085f42c5 fix: 修复profile更新 会取消三方绑定账号问题 2022-06-15 19:31:33 +08:00
“huailei000”
ba0a425359 fix: 修复全局组织下克隆权限判断 2022-06-15 19:31:16 +08:00
feng626
c18f712b84 修改一点 2022-06-15 18:59:00 +08:00
“huailei000”
6815d3be13 fix: 修复资产列表自定义搜索显示true问题 2022-06-15 17:46:52 +08:00
ibuler
385e654fbe perf: 搜索下拉 ID 2022-06-15 16:34:08 +08:00
“huailei000”
09010e4e94 fix: 修复创建用户表单翻译问题 2022-06-15 15:36:12 +08:00
ibuler
f347833ea8 perf: 优化 license 报错 2022-06-15 15:35:18 +08:00
“huailei000”
ae9c5c389d fix: 修复任务列表-删除任务名称不一样问题 2022-06-15 15:31:16 +08:00
Jiangjie.Bai
15a53c4b90 Merge pull request #1791 from jumpserver/dev
v2.23.0-rc3
2022-06-13 17:43:21 +08:00
“huailei000”
703898e707 fix: 修复资产树右键-显示资产详情弹窗不显示问题 2022-06-13 17:39:19 +08:00
feng626
fe0d7a7e3f 修改 2022-06-13 16:25:30 +08:00
Jiangjie.Bai
09b6bc1c18 Merge pull request #1789 from jumpserver/dev
v2.23.0-rc1
2022-06-09 17:40:42 +08:00
Jiangjie.Bai
d1a2564359 perf: 优化Su用户提示信息颜色样式 2022-06-09 17:20:47 +08:00
feng626
a3193beabf 改又改 2022-06-09 14:26:08 +08:00
dependabot[bot]
f46a1054ea build(deps): bump async from 2.6.3 to 2.6.4
Bumps [async](https://github.com/caolan/async) from 2.6.3 to 2.6.4.
- [Release notes](https://github.com/caolan/async/releases)
- [Changelog](https://github.com/caolan/async/blob/v2.6.4/CHANGELOG.md)
- [Commits](https://github.com/caolan/async/compare/v2.6.3...v2.6.4)

---
updated-dependencies:
- dependency-name: async
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-09 10:34:58 +08:00
dependabot[bot]
64813f9cb6 build(deps): bump follow-redirects from 1.13.1 to 1.14.8
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.13.1 to 1.14.8.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.13.1...v1.14.8)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-09 10:34:34 +08:00
dependabot[bot]
a6c0207c7e build(deps): bump moment from 2.29.1 to 2.29.2
Bumps [moment](https://github.com/moment/moment) from 2.29.1 to 2.29.2.
- [Release notes](https://github.com/moment/moment/releases)
- [Changelog](https://github.com/moment/moment/blob/develop/CHANGELOG.md)
- [Commits](https://github.com/moment/moment/compare/2.29.1...2.29.2)

---
updated-dependencies:
- dependency-name: moment
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-09 10:33:48 +08:00
dependabot[bot]
bf207285a8 build(deps): bump eventsource from 1.0.7 to 1.1.1
Bumps [eventsource](https://github.com/EventSource/eventsource) from 1.0.7 to 1.1.1.
- [Release notes](https://github.com/EventSource/eventsource/releases)
- [Changelog](https://github.com/EventSource/eventsource/blob/master/HISTORY.md)
- [Commits](https://github.com/EventSource/eventsource/compare/v1.0.7...v1.1.1)

---
updated-dependencies:
- dependency-name: eventsource
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-09 10:33:29 +08:00
ibuler
dd026f11ee perf: 修改 tree add 2022-06-09 10:23:08 +08:00
feng626
a58accca4d Merge pull request #1786 from jumpserver/pr@dev@relogin_bug
fix: relogin visible
2022-06-08 19:41:09 +08:00
feng626
bb572a3de9 fix: relogin visible 2022-06-08 19:39:27 +08:00
feng626
8836284b88 Merge pull request #1785 from jumpserver/pr@dev@user_confirm
perf: 统一校验当前用户api
2022-06-07 19:25:58 +08:00
feng626
68d97242cc perf: 统一校验当前用户api 2022-06-07 19:20:50 +08:00
Jiangjie.Bai
1bb3f0a48e feat: 添加组件类型 razor 并替换 XRDP_ENABLED 2022-06-07 13:42:24 +08:00
Jiangjie.Bai
7b566ae46f feat: 创建API增加clone_from查询参数 2022-06-06 16:12:41 +08:00
feng626
9dd89fe7ae fix: 合并后的bug 2022-06-02 15:05:51 +08:00
feng626
db67aa9b39 merge pr@dev@refactor_tickets 2022-06-02 11:39:59 +08:00
feng626
df96ce4112 perf: 工单重构 2022-06-02 10:34:05 +08:00
ibuler
4d27014330 perf: 优化工单 2022-06-02 08:48:53 +08:00
Jiangjie.Bai
1cb10902d5 feat: OIDC 用户添加属性映射值 2022-05-31 16:04:12 +08:00
“huailei000”
b71b602433 fix: 修复删除已绑定用户的角色,重复提示报错问题
1、删除组件内错误提示信息,统一走全局错误提示信息
2022-05-31 15:55:27 +08:00
ibuler
e39c4fc339 perf: 优化 ldap 导入 2022-05-30 11:41:21 +08:00
“huailei000”
9107c6a76a feat: 命令过滤详情添加用户、用户组、应用右侧卡片快捷入口 2022-05-30 10:31:26 +08:00
ibuler
55a83a2064 perf: 速度慢点,为以后优化留下空间 2022-05-30 10:30:43 +08:00
ibuler
92f52b100a perf: 优化动画速度 2022-05-30 10:21:18 +08:00
“huailei000”
5cd3aea0a3 feat: 应用授权详情按钮添加权限控制 2022-05-25 09:50:21 +08:00
ibuler
78b72ec68a perf: bool 使用 switcher 2022-05-20 11:43:21 +08:00
fit2bot
04c0c10d46 perf: remote app, cloud, setting 字段支持加密 (#1763)
* stash: 暂存

* pref: 其它字段也加密

* perf: 设置存储字段支持加密

Co-authored-by: ibuler <ibuler@qq.com>
2022-05-20 11:33:18 +08:00
Jiangjie.Bai
c2833cefc2 Merge pull request #1770 from jumpserver/dev
v2.22.0-rc5
2022-05-19 13:07:56 +08:00
“huailei000”
1878376295 fix: 修复消息订阅接受人数不准确问题 2022-05-19 11:44:03 +08:00
Jiangjie.Bai
b25b7dfbc9 Merge pull request #1767 from jumpserver/dev
v2.22.0-rc4
2022-05-18 19:49:38 +08:00
Jiangjie.Bai
98c2677571 fix: 修改 es 翻译 2022-05-18 19:46:33 +08:00
“huailei000”
dd58f400a6 fix: 命令存储索引转换为小写 2022-05-18 19:40:49 +08:00
“huailei000”
a0baca0859 fix: 修复导入弹窗组件参数类型报错问题 2022-05-18 17:35:10 +08:00
“huailei000”
8f7bcc2e26 fix: 修复zTree添加、移动资产时menu无法关闭问题 2022-05-18 17:34:51 +08:00
ibuler
5835ac7f70 perf: 添加 session guard 2022-05-18 14:50:16 +08:00
Jiangjie.Bai
fe5941e078 Merge pull request #1758 from jumpserver/dev
v2.22.0-rc3
2022-05-17 21:13:32 +08:00
ibuler
b497f80a76 perf: 开启工单启用 2022-05-17 18:59:24 +08:00
ibuler
8efb405fc0 perf: 恢复 tickets 2022-05-17 18:01:36 +08:00
“huailei000”
51d0861550 fix: 修复工单详情跳转资产授权、应用授权权限位判断问题 2022-05-17 17:28:58 +08:00
Jiangjie.Bai
3050b09b2d Merge pull request #1753 from jumpserver/dev
v2.22.0-rc2
2022-05-17 15:22:01 +08:00
fit2bot
aa00f1e4a6 perf: 修改 console.log() 语句为 debug() 标识 (#1749)
Co-authored-by: Jiangjie.Bai <bugatti_it@163.com>
Co-authored-by: Jiangjie.Bai <32935519+BaiJiangJie@users.noreply.github.com>
2022-05-17 15:16:33 +08:00
ibuler
c604957e66 perf: 账户更新加密 2022-05-17 15:14:18 +08:00
ibuler
91d0f6f92b revert: 暂时还原一下 2022-05-17 14:58:47 +08:00
feng626
f11131e9ad Merge pull request #1751 from jumpserver/pr@dev@fix_bulk_update
fix: 修复批量提交的问题
2022-05-17 12:08:01 +08:00
ibuler
db1b02c262 fix: 修复批量提交的问题 2022-05-17 12:02:04 +08:00
jiangweidong
2610645703 feat: 云同步资产支持Fusion Compute私有云 2022-05-16 18:11:03 +08:00
feng626
a9ee9ac919 Merge pull request #1747 from jumpserver/pr@dev@ticket_perm_workbench
fix: 修复申请工单时未选择工作台权限没有对应组织bug
2022-05-16 13:06:58 +08:00
feng626
b9cd54127c fix: 修复申请工单时未选择工作台权限没有对应组织bug 2022-05-16 13:05:53 +08:00
Jiangjie.Bai
b24deb6c1e Merge pull request #1745 from jumpserver/dev
v2.22.0 rc1
2022-05-12 17:03:12 +08:00
ibuler
ee901e54d3 perf: 修改 token 2022-05-12 15:43:54 +08:00
Jiangjie.Bai
0b5820edba feat: Endpoint添加Redis Port 2022-05-12 14:48:15 +08:00
ibuler
f10118d9d2 perf: 关闭浏览器失效会话 2022-05-12 11:36:05 +08:00
Jiangjie.Bai
c7bf054af7 fix: 删除用户向导配置项 2022-05-11 17:31:47 +08:00
Jiangjie.Bai
fd9916b21b feat: LDAP同步用户支持组织 2022-05-11 11:10:12 +08:00
fit2bot
e78e0cf132 perf: 优化加密传输 (#1739)
* perf: 优化加密

* perf: 优化加密传输

Co-authored-by: ibuler <ibuler@qq.com>
2022-05-10 17:41:14 +08:00
ibuler
441c1eb91d perf: 优化加密 2022-05-10 17:29:07 +08:00
feng626
ab4edd37d4 Merge pull request #1738 from jumpserver/pr@dev@terminal_bulk_update_command_storage
fix: 修复终端存储批量更新
2022-05-10 11:34:30 +08:00
feng626
def43f8e07 fix: 修复终端存储批量更新 2022-05-10 11:32:45 +08:00
“huailei000”
ea1148159b fix: 调整切换视图提示位置 2022-05-10 10:46:00 +08:00
jiangweidong
92a23c6e69 perf: 优化字段 2022-05-09 16:38:23 +08:00
jiangweidong
d6c3cce161 perf: 命令存储ES可根据日期动态建立索引 2022-05-09 16:38:23 +08:00
ibuler
fe5649fbd2 perf: 优化 view switch 切换,增加提示 2022-05-09 14:50:51 +08:00
ibuler
e91ca71812 perf: 修改使用 rsa 加密数据 2022-05-07 15:42:46 +08:00
Jiangjie.Bai
4a8305979e feat: public settings 区分 public 和 open 2022-05-07 12:22:55 +08:00
Frank
b81cbb3d16 文件上传的时候 会让人误以为是直接点击上传按钮。其实是两种方式:要么退拽到此处,或者点击此处上传文件。 2022-05-07 11:11:58 +08:00
ibuler
36bb2cf62f perf: 修改 base model 2022-05-05 16:17:35 +08:00
“huailei000”
b95867d229 fix: 系统用户应用账号列表设置为不可点击 2022-05-05 16:05:21 +08:00
jiangweidong
1ac9ca4593 feat: 账号管理下的资产账号及系统用户下的资产账号支持批量删除 2022-05-05 16:04:47 +08:00
jiangweidong
e59a71285d perf: 查看账号管理中的密码记录日志 2022-05-05 16:04:21 +08:00
Jiangjie.Bai
fac0c6ff9a feat: 添加License数量限制超过提示 2022-05-05 15:54:38 +08:00
ibuler
d7f7650e3a stash: 平台先这样,等待怀磊搞 2022-05-05 10:58:49 +08:00
ibuler
348847e196 perf: 修改 platform 2022-05-05 09:54:38 +08:00
ibuler
95b2650a8a stash it 2022-05-04 09:57:58 +08:00
ibuler
14935cb2f7 perf: 修改平台 2022-05-02 21:29:58 +08:00
ibuler
f059640602 perf: 优化选择 2022-05-01 12:20:44 +08:00
ibuler
22fe547215 perf: 优化 protocols 2022-05-01 10:42:53 +08:00
ibuler
2612134273 perf: 设置 platform 2022-04-30 23:19:16 +08:00
ibuler
9630d8200c stash 2022-04-29 18:29:50 +08:00
Jiangjie.Bai
688eb5838f perf: 优化 OIDC 支持选择认证方式 2022-04-29 14:28:28 +08:00
“huailei000”
075ad0358b fix: 修复临时密码提示翻译 2022-04-29 10:45:49 +08:00
“huailei000”
1187892370 fix: 修复不同语言下switcherview边距问题 2022-04-29 10:44:06 +08:00
feng626
68e30c29fa fix: 开放platform 权限 2022-04-29 10:39:02 +08:00
ibuler
0a5bfa5a55 perf: 添加平台选择 2022-04-28 18:54:48 +08:00
fit2bot
565ed805da perf: 优化 tree table (#1722)
* perf: 优化 tree table

* perf: 还原信息

Co-authored-by: ibuler <ibuler@qq.com>
2022-04-28 16:06:02 +08:00
ibuler
29e51e92a4 stash 2022-04-28 15:52:10 +08:00
ibuler
bd935e9dc2 stash it 2022-04-26 22:22:18 +08:00
ibuler
2edee985fa perf: 添加主机和网络设备 2022-04-25 16:48:19 +08:00
feng626
59fa4cd6e0 Merge pull request #1712 from jumpserver/pr@dev@workbench_orgs
fix: myorgs -> workbench_orgs
2022-04-25 11:37:17 +08:00
feng626
547263d44c fix: myorgs -> workbench_orgs 2022-04-25 11:33:32 +08:00
feng626
59a0a41586 Merge pull request #1710 from jumpserver/pr@dev@fix_temporary_password_text
fix: 修改临时密码提示文案
2022-04-25 11:05:52 +08:00
“huailei000”
2d887df226 fix: 修改临时密码提示文案 2022-04-25 03:00:15 +00:00
ibuler
03ad4cc73c perf: 修改 build 2022-04-24 09:32:23 +08:00
Jiangjie.Bai
4fd8956b0d Merge pull request #1707 from jumpserver/dev
v2.21.0
2022-04-21 18:10:49 +08:00
ibuler
9d75e2e6fd perf: 修改 组织 2022-04-21 17:38:17 +08:00
ibuler
6317400da8 perf: 去掉 reload 2022-04-21 17:38:17 +08:00
fit2bot
7f963e9991 perf: 修改 view 切换 (#1705)
* perf: 修改 view 切换

* fix: 修改 view 跳转 bug

* perf:去掉 reload

Co-authored-by: ibuler <ibuler@qq.com>
2022-04-21 17:23:58 +08:00
“huailei000”
8a731937cf fix: 修复用户列表批量更新弹窗组件不重新渲染问题 2022-04-21 17:01:57 +08:00
fit2bot
a593da7fea perf: 修改 cookie get (#1703)
Co-authored-by: ibuler <ibuler@qq.com>
2022-04-21 15:52:39 +08:00
ibuler
7afa58319f perf: .. 2022-04-21 15:24:43 +08:00
fit2bot
b9547214b7 perf: view switch 默认值 (#1702)
* perf: view switch 默认值

* perf: 去掉冗余

Co-authored-by: ibuler <ibuler@qq.com>
2022-04-21 13:59:58 +08:00
fit2bot
0e7b60a001 fix: 切换视图的问题,修复组织切换的问题 (#1701)
* fix: 切换视图的问题,修复组织切换的问题

* perf: 优化写法

Co-authored-by: ibuler <ibuler@qq.com>
2022-04-21 11:07:56 +08:00
Jiangjie.Bai
20f84db466 Merge pull request #1700 from jumpserver/dev
v2.21.0-rc6
2022-04-20 20:26:24 +08:00
“huailei000”
c5495d9846 fix: 修复会话录像时间1秒显示问题 2022-04-20 20:22:18 +08:00
ibuler
332cd2c073 perf: 修改 org 2022-04-20 19:54:52 +08:00
“huailei000”
2b4d827789 fix: dashboard页面在线用户文案修改为 连接用户 2022-04-20 19:54:29 +08:00
“huailei000”
92144e4f69 fix: 修复移动端搜索框不对齐问题 2022-04-20 17:58:43 +08:00
“huailei000”
41d42c04a6 fix: 修复用户列表批量移除权限位 2022-04-20 17:58:11 +08:00
“huailei000”
f4f42639aa fix: 导入弹框权限根据路由自动判断 2022-04-20 17:57:45 +08:00
“huailei000”
a37af9ed7d fix: 修复命令记录跳转去权限 2022-04-20 16:49:30 +08:00
Jiangjie.Bai
1f0fe18533 fix: 修改系统设置-终端设置创建权限控制 2022-04-20 16:49:01 +08:00
feng626
bc21d7ac17 Merge pull request #1694 from jumpserver/pr@dev@add_orgrolebinding
fix: 修复角色添加用户权限问题
2022-04-20 15:48:35 +08:00
feng626
922ecbf096 fix: 修复角色添加用户权限问题 2022-04-20 15:47:23 +08:00
fit2bot
a162a206bc perf: 修改 tickets orgs (#1691)
* perf: 修改 tickets orgs

* perf: 修改 orgs 切换

Co-authored-by: ibuler <ibuler@qq.com>
2022-04-20 15:27:04 +08:00
fit2bot
12a85da6f7 fix: 修复点击资产授权树勾选框报错的问题 (#1687)
* fix: 修复点击资产授权树勾选狂报错的问题

* fix: 修复点击资产授权树勾选狂报错的问题

Co-authored-by: Jiangjie.Bai <bugatti_it@163.com>
2022-04-20 11:32:25 +08:00
Jiangjie.Bai
585f5e04d6 Merge pull request #1686 from jumpserver/dev
v2.21.0-rc5
2022-04-19 21:59:27 +08:00
feng626
6db90fce09 perf: add org remind 2022-04-19 21:56:18 +08:00
Jiangjie.Bai
69e392b069 fix: 请求设置默认org_id 2022-04-19 20:23:57 +08:00
“huailei000”
e5b2bd7008 fix: 修复会话详情页button 按钮权限位控制 2022-04-19 20:19:00 +08:00
Jiangjie.Bai
c6aaaaf1fd perf: 优化临时密码route控制 2022-04-19 20:18:37 +08:00
“huailei000”
1ab6ed6109 fix: 修复用户详情页按钮权限 2022-04-19 20:18:08 +08:00
“huailei000”
c17d983b2f fix: 修复应用改密计划详情页执行列表操作权限 2022-04-19 20:17:38 +08:00
Jiangjie.Bai
484fb63577 fix: 修复ldap同步interval必填 2022-04-19 18:29:28 +08:00
Jiangjie.Bai
2c8d8c6e66 fix: 修复ldap同步interval必填 2022-04-19 18:29:28 +08:00
Jiangjie.Bai
5577051416 fix: 修改日期搜索默认8天内 2022-04-19 17:45:13 +08:00
“huailei000”
cd51596d45 fix: 恢复资产列表展示字段 2022-04-19 16:18:15 +08:00
Jiangjie.Bai
dd5b805da9 feat: 添加配置项 KoKo SSH Client 方式 2022-04-19 16:17:09 +08:00
ibuler
7d3d4ab73c perf: 修改 .. 2022-04-19 15:31:45 +08:00
ibuler
54097f07be perf: 修改 view orgs 2022-04-19 13:21:22 +08:00
老广
ef5c1b2e23 Merge pull request #1674 from jumpserver/dev
v2.21.0-rc5
2022-04-19 13:15:38 +08:00
ibuler
f104376e92 perf: 优化一些写法 2022-04-19 10:20:41 +08:00
fit2bot
62ed11e7ec perf: 修改用户所属的 org (#1662)
* perf: 修改用户所属的 org

* perf: 修改组织问题

* perf: 修改优化 nav 切换

* perf: 修改 org id

* perf: 修改验证逻辑

* perf: 修改 orgs

Co-authored-by: ibuler <ibuler@qq.com>
2022-04-18 20:20:32 +08:00
“huailei000”
3fd8e23c2c fix: 修改站内信文案为全部已读;调整布局遮挡问题 2022-04-18 16:48:41 +08:00
Jiangjie.Bai
a93ecac15c fix: 修改云任务执行权限控制 2022-04-18 16:05:33 +08:00
Jiangjie.Bai
1fb75fbce0 Merge pull request #1668 from jumpserver/dev
v2.21.0-rc4
2022-04-18 15:34:13 +08:00
“huailei000”
1d594fc594 fix: 修复dialog组件不能关闭问题 2022-04-18 15:33:12 +08:00
“huailei000”
a4abe63ec9 fix: 修复资产列表显示空白字段问题 2022-04-18 15:32:23 +08:00
“huailei000”
4262410038 fix: 内部的message通知使用v-html显示 2022-04-18 15:31:34 +08:00
Jiangjie.Bai
2735d638a2 Merge pull request #1664 from jumpserver/dev
v2.21.0-rc3
2022-04-18 11:44:56 +08:00
Jiangjie.Bai
f9bade6a7c feat: 控制临时密码菜单 2022-04-18 11:32:42 +08:00
Jiangjie.Bai
eaf3c5b013 feat: 设置SessionCookieNamePrefix 2022-04-15 21:14:48 +08:00
“huailei000”
2c2e7d10f9 feat: 增加列表查看、复制组件 2022-04-15 20:06:51 +08:00
Jiangjie.Bai
9243a6699c fix: 系统监控添加Magnus 2022-04-15 16:40:08 +08:00
Jiangjie.Bai
e9a2818580 Merge pull request #1656 from jumpserver/dev
v2.21.0-rc2
2022-04-14 18:40:55 +08:00
feng626
4b318c0aaf Merge pull request #1655 from jumpserver/pr@dev@site_msg
feat: 站内信一键已读
2022-04-14 12:18:29 +08:00
feng626
e9211205cb feat: 站内信一键已读 2022-04-14 11:59:36 +08:00
Jiangjie.Bai
e14a31f31c Merge pull request #1654 from jumpserver/dev
v2.21.0-rc1
2022-04-13 20:31:57 +08:00
jiangweidong
b85db6b73f feat: temp password 2022-04-13 20:09:45 +08:00
jiangweidong
6d8dc058cb feat: 支持临时密码 (one-time-password) 登录 2022-04-13 20:09:45 +08:00
jiangweidong
2b3090b44c feat: 支持资产授权和应用授权的批量更新 2022-04-13 16:53:56 +08:00
“huailei000”
f08b3708d4 fix: 修复更多按钮样式 2022-04-13 14:48:58 +08:00
fit2bot
a8a7538655 feat: 添加Endpoint (#1651)
* feat: 添加Endpoint页面

* feat: 添加Endpoint Rule页面

* feat: 获取connect-url连接地址

* feat: 删除配置KOKO、XRDP、MAGNUS

* feat: 修改翻译

* feat: 修改默认endpoint不能删除

Co-authored-by: Jiangjie.Bai <bugatti_it@163.com>
2022-04-12 19:28:42 +08:00
fit2bot
364f2aaf12 perf: 修改翻译 (#1650)
* perf: 修改 workspace

* perf: 修改翻译

Co-authored-by: ibuler <ibuler@qq.com>
Co-authored-by: Jiangjie.Bai <32935519+BaiJiangJie@users.noreply.github.com>
2022-04-12 13:52:21 +08:00
“huailei000”
dcb87c6216 perf: 调整table列表-操作内容居中显示 2022-04-11 17:06:57 +08:00
“huailei000”
06bd68a874 fix: 概览页显示模块位置调整,增加公告显示;修复概览页跳转权限判断 2022-04-11 15:00:53 +08:00
feng626
4a2b663220 fix: 修复消息订阅无法更新bug 2022-04-08 16:05:34 +08:00
“huailei000”
59342b65c8 fix: 修复终端管理-批量更新弹窗不显示label问题 2022-04-08 15:14:08 +08:00
jiangweidong
4edd9097ab feat: 云同步支持京东云 2022-04-07 11:28:41 +08:00
“huailei000”
6e10f4ccc1 fix: 修复公告对齐展示 2022-04-07 11:25:26 +08:00
“huailei000”
9510dec9e0 fix: 在线会话-命令单行文本省略展示 2022-04-07 11:25:01 +08:00
feng626
31bb679a8e feat: ldap一键导入及设置用户组织 2022-04-06 17:51:31 +08:00
feng626
357b67ffe0 fix: 修改系统用户类型 2022-04-06 14:25:22 +08:00
“huailei000”
07036cdea7 feat: i18n获取浏览器默认语言 2022-04-01 16:28:58 +08:00
一路向北
ec2674a956 Update README.md 2022-04-01 15:24:09 +08:00
“huailei000”
e5791c184d feat: 公告支持换行显示 2022-04-01 15:23:38 +08:00
feng626
bcd0384baa Merge pull request #1622 from jumpserver/pr@dev@koko_setting
feat: koko setting
2022-03-30 19:52:24 +08:00
feng626
461a385596 feat: koko setting 2022-03-30 19:51:05 +08:00
ibuler
0c9440d835 perf: terminal icon 2022-03-30 11:27:01 +08:00
ibuler
9f7c145065 perf: 修改lang 2022-03-29 19:58:33 +08:00
Jiangjie.Bai
05d66c4c4f feat: 改密计划支持su切换用户执行 2022-03-29 16:42:39 +08:00
“huailei000”
c1498d4de5 fix: 修复数据库-创建类型 2022-03-29 14:54:32 +08:00
jiangweidong
34f17beb3c feat: 支持日语 (#1612) 2022-03-28 10:08:53 +08:00
halo
c6f39c79fa perf: 优化长命令记录页面自动换行 2022-03-25 19:40:04 +08:00
ibuler
ae5005ceef feat: 修改 app type 2022-03-25 19:39:29 +08:00
Jiangjie.Bai
dad107d768 Revert "perf:: 修复empty组件为函数式组件"
This reverts commit 8ae14bfb37.
2022-03-25 17:04:25 +08:00
“huailei000”
021dbe6e2e fix:修复资产列表-从节点移除 权限位不准确问题 2022-03-25 14:43:30 +08:00
“huailei000”
8ae14bfb37 perf:: 修复empty组件为函数式组件 2022-03-25 14:42:49 +08:00
“huailei000”
ea2c3f1a11 fix: 修复工单详情detail组件布局问题 2022-03-25 14:38:00 +08:00
“huailei000”
dadeea6d1e perf: 优化日期组件显示遮挡问题 2022-03-22 16:59:21 +08:00
feng626
05e5bcc10d fix: user org perm 2022-03-22 16:58:56 +08:00
ibuler
87d211563f perf: 优化 mongo db 2022-03-22 11:31:06 +08:00
ibuler
6b7f868538 feat: mongodb 支持 2022-03-22 11:31:06 +08:00
ibuler
d3c2d0e7e8 perf: 优化名称显示 2022-03-22 10:52:51 +08:00
“huailei000”
088dbc4e42 fix: 修复系统用户-资产列表按钮权限不准确问题 2022-03-21 19:24:37 +08:00
jiangweidong
18016ffdba feat: 支持百度云资产同步 2022-03-21 19:23:56 +08:00
feng626
b57e65a100 Merge pull request #1599 from jumpserver/pr@dev@asset_user_perm
fix: 修复资产详情中授权用户可查看用户权限
2022-03-21 11:16:49 +08:00
feng626
8852924d45 fix: 修复资产详情中授权用户可查看用户权限 2022-03-21 10:55:27 +08:00
“huailei000”
da1f322e1c fix: 修复apikey权限位问题 2022-03-18 18:16:51 +08:00
“huailei000”
b22b01529a fix: 修复2个tab只给其中一个tab权限接口提示报错问题 2022-03-18 17:15:43 +08:00
Jiangjie.Bai
26ba2c091e fix: 从节点移除资产权限位修改 2022-03-18 17:10:58 +08:00
Jiangjie.Bai
23ee181c63 fix: 修复资产详情系统用户页面权限控制 2022-03-18 16:53:49 +08:00
Jiangjie.Bai
3aca8cdffd fix: 修复工单中会话卡片按钮的权限控制 2022-03-18 16:41:20 +08:00
“huailei000”
b5cd17485e fix: 修复工作台-待我审批权限位问题 2022-03-18 15:11:29 +08:00
Jiangjie.Bai
4db98964dd fix: 修复角色更新、删除权限控制 2022-03-18 14:52:21 +08:00
“huailei000”
3a1870cae1 fix: 修复dashboard页权限位 2022-03-18 12:46:40 +08:00
“huailei000”
c36cc7b15f fix: 修复css样式文件报错 2022-03-18 11:31:06 +08:00
“huailei000”
07b69ab9a8 fix: 修复tab组件没有权限页卡不显示时还会提示接口403问题 2022-03-18 11:22:34 +08:00
fit2bot
222eb4fcb0 perf: 优化详情中各种 box (#1582)
* perf: 优化移动到表单

* perf: 优化详情中各种 box

Co-authored-by: ibuler <ibuler@qq.com>
2022-03-18 11:21:25 +08:00
fit2bot
632dc064d9 perf: 优化手机端 view 切换 (#1583)
* perf: 优化手机端 view 切换

* perf: 优化table 移动端适配

* perf: 优化 pagger overflow

Co-authored-by: ibuler <ibuler@qq.com>
2022-03-18 11:20:18 +08:00
ibuler
cc513c96f5 perf: 优化 form label 位置 2022-03-17 20:31:07 +08:00
ibuler
b3752ba867 perf: 优化详情中btn 2022-03-17 19:52:20 +08:00
ibuler
f18e46ba22 perf: 优化移动端显示 2022-03-17 19:47:16 +08:00
Jiangjie.Bai
ec86037107 Merge pull request #1575 from jumpserver/dev
v2.20.0
2022-03-17 19:24:25 +08:00
“huailei000”
4e9b97700b fix: 修复菜单兼容移动端 2022-03-17 19:09:23 +08:00
ibuler
d189751d67 perf: 修改 table 布局 2022-03-17 18:51:36 +08:00
“huailei000”
6cc04d944b feat: 收集用户-任务执行列表不显示搜索组件 2022-03-17 18:45:32 +08:00
Jiangjie.Bai
35451931b2 fix: 修复工单详情会话卡片按钮权限控制 2022-03-17 18:44:10 +08:00
Jiangjie.Bai
de57c78925 fix: 修复权限依赖 2022-03-17 18:44:10 +08:00
Jiangjie.Bai
96a0d9c5e2 fix: 改密计划权限位 2022-03-17 18:20:52 +08:00
Jiangjie.Bai
977328ff41 fix: 网关测试权限位 2022-03-17 17:59:14 +08:00
Jiangjie.Bai
98c29bb338 fix: 修改工单流程关联工单 2022-03-17 17:59:14 +08:00
Jiangjie.Bai
38c76d0a59 fix: 修复组织创建问题(全局组织);修复资产详情系统用户页面的按钮权限控制 2022-03-17 17:51:29 +08:00
ibuler
c061014d7e perf: 收集用户依赖 2022-03-17 17:24:04 +08:00
Jiangjie.Bai
ca84cb85f4 fix: 修复资产详情授权用户tab页的权限位 2022-03-17 17:23:43 +08:00
Jiangjie.Bai
fc82b4ec30 Merge pull request #1564 from jumpserver/dev
v2.20.0-rc6
2022-03-17 17:08:13 +08:00
Jiangjie.Bai
b3a9c8b8b5 fix: 修改改密计划权限位联动 2022-03-17 17:06:26 +08:00
Jiangjie.Bai
edf09d3260 fix: 修改改密计划权限位联动 2022-03-17 17:06:26 +08:00
fit2bot
fc9b09f5fd perf: 修改 change auth plan (#1561)
* perf: 修改 change auth plan

* perf: 还原

Co-authored-by: ibuler <ibuler@qq.com>
2022-03-17 16:41:00 +08:00
Jiangjie.Bai
79d0144ea0 fix: 创建系统用户su_from必填 2022-03-17 15:22:29 +08:00
Jiangjie.Bai
159e90f48c fix: 资产详情标签加载权限控制 2022-03-17 15:14:45 +08:00
Jiangjie.Bai
3007849abb fix: 修改角色详情中授权用户搜索字段 2022-03-17 15:11:27 +08:00
feng626
e45935ce97 Merge pull request #1557 from jumpserver/pr@dev@view_userapps
fix: view_userapps
2022-03-17 15:04:32 +08:00
feng626
4bef495773 fix: view_userapps 2022-03-17 15:02:36 +08:00
ibuler
e79bd251cb perf: 修改一些bug 2022-03-17 14:55:58 +08:00
Jiangjie.Bai
21c3b1a6cb fix: 修改改密计划路由 2022-03-17 14:55:08 +08:00
feng626
a3653859f8 Merge pull request #1554 from jumpserver/pr@dev@user_match
fix: user match
2022-03-17 14:47:08 +08:00
feng626
fae0104392 fix: user match 2022-03-17 14:44:58 +08:00
Jiangjie.Bai
9ffe34d788 fix: 修改系统用户详情页面权限控制 2022-03-17 14:38:45 +08:00
Jiangjie.Bai
df98ce3a6f fix: 兼容之前的sessiondetail 2022-03-17 14:05:37 +08:00
Jiangjie.Bai
fbed123991 fix: 修复工单详情路由获取 2022-03-17 14:05:37 +08:00
ibuler
51d025b93a perf: 修改创建后的跳转 2022-03-17 12:41:41 +08:00
ibuler
b6004c399c perf: 修改一些依赖 2022-03-17 12:41:41 +08:00
ibuler
2f5e575cb8 perf: 修改批量操作权限 2022-03-17 12:41:41 +08:00
ibuler
c0571bc026 perf: 修改树 2022-03-17 12:41:41 +08:00
“huailei000”
fb9896800a fix: 云同步-同步实例任务执行详情按钮权限控制 2022-03-17 11:51:47 +08:00
Jiangjie.Bai
b63d187f13 fix: 修改组件监控权限控制 2022-03-17 11:51:25 +08:00
Jiangjie.Bai
0f4cb3b916 fix: 去除角色列表搜索项socpe 2022-03-17 11:51:25 +08:00
“huailei000”
09c0647a94 fix: 修复用户列表移除按钮权限位 2022-03-17 11:50:55 +08:00
feng626
7d1e75e4b9 fix: change assetpermission 2022-03-17 11:47:50 +08:00
feng626
df72ced6e8 fix: ticket session bug 2022-03-17 10:42:55 +08:00
Jiangjie.Bai
d794e17f80 Merge pull request #1541 from jumpserver/dev
v2.20.0-rc5
2022-03-16 21:11:54 +08:00
Jiangjie.Bai
39b759661f Merge pull request #1545 from jumpserver/pr@dev@merge_dev
v2.20.0-rc5
2022-03-16 21:11:15 +08:00
fit2bot
14da9fee65 fix: 解决冲突 (#1543)
* chore: 更新Submodule指向

* fix: 修复Build失败的问题

* fix(clone): 修复会话页面产生的clone的问题

* fix: 修复资产授权创建时默认选中了点击的资产和节点问题

修改为指保留最后一次选中的资产或者节点

* fix: 修改命令过滤器添加系统用户协议限制

* fix: 云同步账号详情404

* fix: 修复创建角色成功后跳转详情的问题

* fix: 修复角色详情更新失败的问题

* fix: 删除资产授权刷新缓存接口

* fix: 优化tabmenu默认显示判断

* fix: 修复录像、命令存储权限控制

* perf: 修改订阅,站内信显示禁用 (#1491)

* perf: 修改订阅,站内信显示禁用

* perf: 修改一些 bug

Co-authored-by: ibuler <ibuler@qq.com>

* fix: 修复系统设置终端录像/命令存储创建/更新成功后跳转问题

* fix: 修复会话记录进入详情空白问题

* perf: 修改 tickets 权限

* fix: 修复系统设置终端设置问题

* perf: ticket flow perf

* fix: 修复系统设置终端设置问题

* perf: 优化 perm tree icon

* fix: 修复命令记录列表导出按钮权限

* fix: 修复改密计划-任务列表跳转资产空白页面问题

* fix: 修复终端设置权限依赖关系

* fix: 修复存储测试权限位

* fix: 修复用户列表-授权的应用详情不能点击跳转问题

* fix: 组织管理 详情bug

* fix: 资产树右击菜单

* perf: 优化应用树,统一 dropdown

* perf: 修改 terminal 权限

* fix: 日志审计批量日志过滤资产字段

* fix: 去除change_setting权限位

* fix: 过滤收集用户搜索条件重复问题

* fix: 修复应用改密计划权限控制

* fix: 修复资产管理-平台列表权限位不准确问题

* fix: 修复网管批量删除

* perf: 修复一些bug

* fix: 解决冲突

Co-authored-by: Orange <orangemtony@gmail.com>
Co-authored-by: Jiangjie.Bai <32935519+BaiJiangJie@users.noreply.github.com>
Co-authored-by: 老广 <ibuler@qq.com>
Co-authored-by: Eric_Lee <xplzv@126.com>
Co-authored-by: “怀磊” <2280131253@qq.com>
Co-authored-by: Jiangjie.Bai <bugatti_it@163.com>
Co-authored-by: feng626 <1304903146@qq.com>
2022-03-16 21:01:29 +08:00
Jiangjie.Bai
b1ea8a0b4b fix: 解决冲突 2022-03-16 20:59:56 +08:00
Jiangjie.Bai
25f9a1dd04 fix: 解决冲突 2022-03-16 20:58:04 +08:00
Jiangjie.Bai
f6ee5a7078 fix: 更新资产详情授权用户权限 2022-03-16 20:49:10 +08:00
Jiangjie.Bai
7ab0f5e4b7 fix: 更新用户权限控制 2022-03-16 20:43:05 +08:00
feng626
7e2df6b2eb Merge pull request #1539 from jumpserver/pr@dev@ticket_bug
fix: 修复工单选择org问题
2022-03-16 20:36:41 +08:00
feng626
fdf91c3495 fix: 修复工单选择org问题 2022-03-16 20:31:54 +08:00
fit2bot
96eeda7b4f perf: 修复一些bug (#1538)
* perf: 修改一些翻译

* perf: 修改 权限联动

* perf: 修改消息订阅,站内信默认 check

* perf: 修改 bug

* perf: 修复一些bug

Co-authored-by: ibuler <ibuler@qq.com>
2022-03-16 20:29:57 +08:00
fit2bot
0d39277dae perf: 修改一些翻译 (#1532)
* perf: 修改一些翻译

* perf: 修改 权限联动

* perf: 修改消息订阅,站内信默认 check

* perf: 修改 bug

Co-authored-by: ibuler <ibuler@qq.com>
2022-03-16 20:28:18 +08:00
“huailei000”
59b3deb754 fix: 修复工单详情跳转到命令记录、会话管理权限位;修复跳转之后清楚会话请求 2022-03-16 19:55:14 +08:00
Jiangjie.Bai
3e7ba36f01 fix: 修复终端详情更新权限 2022-03-16 19:33:04 +08:00
feng626
b27a72c295 Merge pull request #1535 from jumpserver/pr@dev@ticketflow
fix: 修复工单流联动
2022-03-16 19:31:11 +08:00
feng626
b5fc2553fe fix: 修复工单流联动 2022-03-16 19:29:46 +08:00
Jiangjie.Bai
f7d528919a fix: 修复adhoc权限 2022-03-16 19:27:03 +08:00
feng626
c1c6592cb2 Merge pull request #1530 from jumpserver/pr@dev@ticket_session
fix: 工单关闭后频繁请求
2022-03-16 19:04:55 +08:00
feng626
e94d95456d Merge pull request #1531 from jumpserver/pr@dev@ticket_touer
fix: ticket bug
2022-03-16 19:04:29 +08:00
feng626
b4201960f9 fix: ticket bug 2022-03-16 19:00:59 +08:00
feng626
fdbde9d010 fix: 工单关闭后频繁请求 2022-03-16 18:23:44 +08:00
fit2bot
796bd11ff7 perf: 修改权限位置 (#1528)
* fix: 修复导入引起的问题

* fix: 修改角色中的用户

* perf: 修改权限位置

* perf: 去掉 debug

Co-authored-by: ibuler <ibuler@qq.com>
2022-03-16 18:16:18 +08:00
Jiangjie.Bai
ba91cdce0d fix: 修复创建k8s系统用户 2022-03-16 18:10:55 +08:00
Jiangjie.Bai
c2b9f0d1dc fix: 修复命令过滤器包含k8s应用 2022-03-16 18:10:36 +08:00
feng626
e62e79e929 fix: 修复用户组详情urlbug 2022-03-16 17:17:03 +08:00
feng626
e181360f27 fix: UserLoginACLDetail title 2022-03-16 17:16:44 +08:00
ibuler
290ac9a6e6 fix: 修改角色中的用户 2022-03-16 17:16:21 +08:00
ibuler
c032dee40c fix: 修复导入引起的问题 2022-03-16 17:16:21 +08:00
feng626
f6bef8d77a fix: ticket perm 2022-03-16 17:15:34 +08:00
Jiangjie.Bai
cea0285523 fix: 修改用户profile更新按钮 2022-03-16 15:39:48 +08:00
Jiangjie.Bai
f44e63db37 fix: 修改工单管理权限位 2022-03-16 14:55:42 +08:00
feng626
09b66476d1 fix: 修复工单命令复合跳转 2022-03-16 14:26:41 +08:00
Jiangjie.Bai
86b5360e0c fix: 修复命令过滤器规则复核人必填 2022-03-16 14:26:18 +08:00
ibuler
2103ccee29 fix: 修复一些 bug 2022-03-16 14:22:37 +08:00
ibuler
500a91914c perf: 修改一些小 bug 2022-03-16 14:22:37 +08:00
ibuler
4ae2f63a88 perf: 修复一些bug 2022-03-15 20:55:43 +08:00
feng626
68999da21f fix: 修复网管批量删除 2022-03-15 20:55:43 +08:00
“huailei000”
b75abba2c1 fix: 修复资产管理-平台列表权限位不准确问题 2022-03-15 20:55:43 +08:00
Jiangjie.Bai
b43328cceb fix: 修复应用改密计划权限控制 2022-03-15 20:55:43 +08:00
“huailei000”
6b54fa8363 fix: 过滤收集用户搜索条件重复问题 2022-03-15 20:55:43 +08:00
Jiangjie.Bai
3a5f427891 fix: 去除change_setting权限位 2022-03-15 20:55:43 +08:00
Jiangjie.Bai
5f1d6bf7f9 fix: 日志审计批量日志过滤资产字段 2022-03-15 20:55:43 +08:00
ibuler
e11e2bfb46 perf: 修改 terminal 权限 2022-03-15 20:55:43 +08:00
ibuler
484b71cbc9 perf: 优化应用树,统一 dropdown 2022-03-15 20:55:43 +08:00
Jiangjie.Bai
7ed866c61f fix: 资产树右击菜单 2022-03-15 20:55:43 +08:00
feng626
daa7de217b fix: 组织管理 详情bug 2022-03-15 20:55:43 +08:00
“huailei000”
f3011a0139 fix: 修复用户列表-授权的应用详情不能点击跳转问题 2022-03-15 20:55:43 +08:00
Jiangjie.Bai
a696048ce8 fix: 修复存储测试权限位 2022-03-15 20:55:43 +08:00
Jiangjie.Bai
15a0bf61fa fix: 修复终端设置权限依赖关系 2022-03-15 20:55:43 +08:00
“huailei000”
90f63c4c45 fix: 修复改密计划-任务列表跳转资产空白页面问题 2022-03-15 20:55:43 +08:00
Jiangjie.Bai
db6e51d077 fix: 修复命令记录列表导出按钮权限 2022-03-15 20:55:43 +08:00
ibuler
f5c25fde74 perf: 优化 perm tree icon 2022-03-15 20:55:43 +08:00
Jiangjie.Bai
87410fd653 fix: 修复系统设置终端设置问题 2022-03-15 20:55:43 +08:00
feng626
1de931ce2a perf: ticket flow perf 2022-03-15 20:55:43 +08:00
Jiangjie.Bai
5bb3e95e23 fix: 修复系统设置终端设置问题 2022-03-15 20:55:43 +08:00
ibuler
f6588a28d9 perf: 修改 tickets 权限 2022-03-15 20:55:43 +08:00
“huailei000”
3ea1fc192a fix: 修复会话记录进入详情空白问题 2022-03-15 20:55:43 +08:00
Jiangjie.Bai
d14cdcf05d fix: 修复系统设置终端录像/命令存储创建/更新成功后跳转问题 2022-03-15 20:55:43 +08:00
fit2bot
d92528ca7c perf: 修改订阅,站内信显示禁用 (#1491)
* perf: 修改订阅,站内信显示禁用

* perf: 修改一些 bug

Co-authored-by: ibuler <ibuler@qq.com>
2022-03-15 20:55:43 +08:00
Jiangjie.Bai
9e55e1145b fix: 修复录像、命令存储权限控制 2022-03-15 20:55:43 +08:00
“huailei000”
666dbce88a fix: 优化tabmenu默认显示判断 2022-03-15 20:55:43 +08:00
feng626
802084a350 fix: 删除资产授权刷新缓存接口 2022-03-15 20:55:43 +08:00
Jiangjie.Bai
408e4d10e8 fix: 修复角色详情更新失败的问题 2022-03-15 20:55:43 +08:00
Jiangjie.Bai
d0504e8970 fix: 修复创建角色成功后跳转详情的问题 2022-03-15 20:55:43 +08:00
Jiangjie.Bai
5f516f1fd1 fix: 云同步账号详情404 2022-03-15 20:55:43 +08:00
Jiangjie.Bai
f804b13b73 fix: 修改命令过滤器添加系统用户协议限制 2022-03-15 20:55:43 +08:00
ibuler
8e4f79fc84 perf: 修复一些bug 2022-03-15 20:55:15 +08:00
feng626
4b76a58b48 Merge pull request #1514 from jumpserver/pr@dev@gateway_del_bulk_update
fix: 修复网管批量删除
2022-03-15 20:46:53 +08:00
feng626
dca4379763 fix: 修复网管批量删除 2022-03-15 20:45:48 +08:00
“huailei000”
167b5df2d8 fix: 修复资产管理-平台列表权限位不准确问题 2022-03-15 20:45:02 +08:00
Jiangjie.Bai
8467a64e9f fix: 修复应用改密计划权限控制 2022-03-15 20:44:29 +08:00
“huailei000”
03431f98c8 fix: 过滤收集用户搜索条件重复问题 2022-03-15 20:24:37 +08:00
Jiangjie.Bai
64591a0ed5 fix: 去除change_setting权限位 2022-03-15 20:24:05 +08:00
Jiangjie.Bai
6f3aea89dd fix: 日志审计批量日志过滤资产字段 2022-03-15 20:17:22 +08:00
ibuler
5730ea8a75 perf: 修改 terminal 权限 2022-03-15 20:08:55 +08:00
ibuler
1282b465f1 perf: 优化应用树,统一 dropdown 2022-03-15 20:08:55 +08:00
Jiangjie.Bai
897e691522 fix: 资产树右击菜单 2022-03-15 20:07:13 +08:00
feng626
57b80ef3fe Merge pull request #1506 from jumpserver/pr@dev@org_detail_del_bug
fix: 组织管理 详情bug
2022-03-15 19:45:55 +08:00
feng626
9ae57dba83 fix: 组织管理 详情bug 2022-03-15 19:44:55 +08:00
“huailei000”
12c17951f5 fix: 修复用户列表-授权的应用详情不能点击跳转问题 2022-03-15 19:40:49 +08:00
Jiangjie.Bai
e9674fd754 fix: 修复存储测试权限位 2022-03-15 19:40:27 +08:00
Jiangjie.Bai
435e324b44 fix: 修复终端设置权限依赖关系 2022-03-15 19:40:04 +08:00
“huailei000”
015209443c fix: 修复改密计划-任务列表跳转资产空白页面问题 2022-03-15 18:45:45 +08:00
Jiangjie.Bai
07c856713a fix: 修复命令记录列表导出按钮权限 2022-03-15 18:45:32 +08:00
ibuler
647065107f perf: 优化 perm tree icon 2022-03-15 18:45:13 +08:00
Jiangjie.Bai
7d98bcd9f5 fix: 修复系统设置终端设置问题 2022-03-15 18:30:43 +08:00
feng626
aafeaa62e4 Merge pull request #1498 from jumpserver/pr@dev@ticket_flow
perf: ticket flow perf
2022-03-15 18:28:31 +08:00
feng626
75aca38fa9 perf: ticket flow perf 2022-03-15 18:26:32 +08:00
Jiangjie.Bai
0a6f6897bf fix: 修复系统设置终端设置问题 2022-03-15 18:20:34 +08:00
ibuler
6b399cb62f perf: 修改 tickets 权限 2022-03-15 18:20:02 +08:00
“huailei000”
4b2d4ab98f fix: 修复会话记录进入详情空白问题 2022-03-15 16:39:07 +08:00
Jiangjie.Bai
105b53e7fa fix: 修复系统设置终端录像/命令存储创建/更新成功后跳转问题 2022-03-15 16:38:32 +08:00
fit2bot
adca72af97 perf: 修改订阅,站内信显示禁用 (#1491)
* perf: 修改订阅,站内信显示禁用

* perf: 修改一些 bug

Co-authored-by: ibuler <ibuler@qq.com>
2022-03-15 16:22:30 +08:00
Jiangjie.Bai
eb8a24a23f fix: 修复录像、命令存储权限控制 2022-03-15 15:42:54 +08:00
“huailei000”
b89fca2af0 fix: 优化tabmenu默认显示判断 2022-03-15 15:28:16 +08:00
feng626
574ec20f18 fix: 删除资产授权刷新缓存接口 2022-03-15 15:24:27 +08:00
Jiangjie.Bai
751b6dcbb5 fix: 修复角色详情更新失败的问题 2022-03-15 14:50:54 +08:00
Jiangjie.Bai
8e887ca271 fix: 修复创建角色成功后跳转详情的问题 2022-03-15 14:50:54 +08:00
Jiangjie.Bai
6f6577b2c8 fix: 云同步账号详情404 2022-03-15 14:19:18 +08:00
Jiangjie.Bai
09ac5be631 fix: 修改命令过滤器添加系统用户协议限制 2022-03-15 13:15:06 +08:00
Jiangjie.Bai
550701a3bc Merge pull request #1482 from jumpserver/dev
v2.20.0-rc3
2022-03-15 11:46:45 +08:00
Jiangjie.Bai
6461a66bc1 fix: 修改列表中字段跳转权限判断 2022-03-15 11:46:24 +08:00
feng626
ebbc5ceb3e fix: asset acl priority required 2022-03-15 11:46:03 +08:00
“huailei000”
9703c335ff fix: 修复收集用户-任务列表权限问题 2022-03-15 11:45:23 +08:00
ibuler
c755f9460f perf: 修复一些权限bug 2022-03-15 11:17:04 +08:00
Jiangjie.Bai
0abf64ad8b fix: 组织详情删除成员tab 2022-03-15 10:52:19 +08:00
“huailei000”
2bf2170088 fix: 修复工单权限位 2022-03-15 10:41:52 +08:00
“huailei000”
df228f5256 fix: 修复作业中心-任务列表路由权限不准确问题 2022-03-15 10:36:54 +08:00
“huailei000”
3ea1353101 fix: 修复资产列表-配置更多信息rbac权限 2022-03-15 10:35:39 +08:00
ibuler
451271fbcf perf: 优化 active menu 2022-03-15 10:35:16 +08:00
Jiangjie.Bai
60df78833c fix: 修复批量命令权限 2022-03-14 20:36:35 +08:00
Jiangjie.Bai
e0fbc57e89 fix: 修复资产改密计划权限控制 2022-03-14 19:13:36 +08:00
feng626
45383bd18e fix: invite user translate 2022-03-14 18:26:05 +08:00
“huailei000”
426724081f fix: 修复更多组件,更新选项重复问题
1、leftSide组件使用_.uniqBy对name相同的选项进行过滤
2、默认使用传入的选项,如果没有穿使用默认的
3、例:组件通过设置name: actionUpdateSelected,重写默认更新选项
2022-03-14 18:25:34 +08:00
ibuler
e598146fa0 perf: default system role 2022-03-14 18:24:10 +08:00
ibuler
d053f6bef7 perf: 修复资产批量 perm 2022-03-14 18:02:28 +08:00
fit2bot
4e0247977b perf: 修改一些 Perm 依赖 (#1468)
Co-authored-by: ibuler <ibuler@qq.com>
Co-authored-by: Jiangjie.Bai <32935519+BaiJiangJie@users.noreply.github.com>
2022-03-14 17:53:47 +08:00
Jiangjie.Bai
d52c624128 fix: 修复更新资产账号权限控制 2022-03-14 17:51:41 +08:00
Jiangjie.Bai
a51edf359b fix: 修复资产/应用账号相关权限 2022-03-14 17:51:41 +08:00
“huailei000”
16f9329869 fix: 修复云同步permissions权限位不生效问题 2022-03-14 16:50:42 +08:00
feng626
326868880e fix: app relation api 2022-03-14 16:49:54 +08:00
“huailei000”
085a18e217 fix: 修复登录复合工单详情不能查看问题 2022-03-14 16:49:22 +08:00
Jiangjie.Bai
aacdb5adb5 fix: 修复页面按钮权限控制(应用账号) 2022-03-14 16:48:13 +08:00
Jiangjie.Bai
8a1556ccdb fix: 修复页面按钮权限控制(资产账号/应用账号) 2022-03-14 16:48:13 +08:00
Jiangjie.Bai
ea435a6c57 fix: 修复页面按钮权限控制(资产账号) 2022-03-14 16:48:13 +08:00
Jiangjie.Bai
e265314b37 Merge pull request #1461 from jumpserver/dev
perf: 修改 perm 依赖
2022-03-14 15:16:20 +08:00
Jiangjie.Bai
cead0fc04b fix: 修改权限树依赖(查看资产账号依赖查看节点) 2022-03-14 15:16:06 +08:00
Jiangjie.Bai
88971327b1 fix: 修改授权显示(工单菜单) 2022-03-14 15:16:06 +08:00
“huailei000”
f15ca7439c fix: 修复用户详情页面报错问题 2022-03-14 15:15:42 +08:00
feng626
fbe2b356fe fix: node perm 2022-03-14 14:43:43 +08:00
“huailei000”
2e3dc366e8 fix: 修复刷新浏览器后页面跳转到404问题 2022-03-14 11:48:42 +08:00
“huailei000”
fe33798972 fix: 修复收集用户权限判断不生效问题 2022-03-14 11:45:49 +08:00
fit2bot
bd028b5bb9 perf: 修改消息订阅 (#1457)
* perf: 修改消息订阅

* perf: 修改一些依赖

Co-authored-by: ibuler <ibuler@qq.com>
2022-03-14 11:17:45 +08:00
Jiangjie.Bai
f467e0e1ab Merge pull request #1456 from jumpserver/dev
v2.20.0-rc2
2022-03-14 10:39:43 +08:00
ibuler
74f997d8f9 perf: 优化依赖 2022-03-14 10:37:05 +08:00
“huailei000”
0e160e2520 fix: 路由不准确重定向到404页面 2022-03-14 10:36:24 +08:00
ibuler
0e34955be1 perf: 去掉 debug 2022-03-11 21:02:06 +08:00
ibuler
74c6981a42 perf: 修改 role perm 联动 2022-03-11 21:02:06 +08:00
Jiangjie.Bai
954d2d9f0e fix: 系统设置移除工单设置 2022-03-11 20:41:15 +08:00
ibuler
f40af3295f perf: 修复角色 clone 2022-03-11 20:40:50 +08:00
ibuler
cc73a74d93 perf: 修改 user detail,修改权限 2022-03-11 20:40:50 +08:00
“huailei000”
a45ab4f197 fix: 修复组织管理创建、删除权限不生效问题;进入详情页报错问题 2022-03-11 20:38:56 +08:00
“huailei000”
3f92156595 fix: 修复云同步权限位不准确问题 2022-03-11 20:38:14 +08:00
“huailei000”
e949623a1d fix: 修复工单权限位问题 2022-03-11 20:37:49 +08:00
feng626
aa5658b078 fix: 邀请用户bug 2022-03-11 19:22:18 +08:00
ibuler
ab99ff3973 perf: 权限树定义依赖联动 2022-03-11 18:42:26 +08:00
老广
1731c70d8e Merge pull request #1442 from jumpserver/dev
v2.20.0-rc1
2022-03-10 20:32:49 +08:00
ibuler
1f7090712b perf: 修改 interface 判断 2022-03-10 20:32:26 +08:00
“huailei000”
a0c5782d5b fix: 修复系统设置-终端设置权限位 2022-03-10 20:19:54 +08:00
fit2bot
be118172e2 perf: 修改路由过滤 (#1443)
* perf: 修改路由过滤

* fix: 去掉 debug

Co-authored-by: ibuler <ibuler@qq.com>
2022-03-10 20:18:58 +08:00
Jiangjie.Bai
a8beac0b7a fix: 修改视图名称 2022-03-10 19:18:48 +08:00
feng626
2b48a3a49a Merge pull request #1440 from jumpserver/pr@dev@workspace
fix: user workspace
2022-03-10 19:14:35 +08:00
feng626
75492c33cc fix: user workspace 2022-03-10 19:12:17 +08:00
“huailei000”
f7e4079523 fix: 修复系统用户详情相关permissions权限 2022-03-10 19:11:05 +08:00
feng626
76d83aa24b Merge pull request #1439 from jumpserver/pr@dev@fix_menu_rbac
fix: 修改菜单rbac权限位
2022-03-10 18:55:18 +08:00
“huailei000”
a3a7a1c7c4 fix: 修改菜单rbac权限位 2022-03-10 18:52:51 +08:00
fit2bot
3c75ab58e4 fix: 修复资产详情中的权限判断 (#1437)
* fix: 修复资产详情中的权限判断

* fix: change

Co-authored-by: ibuler <ibuler@qq.com>
2022-03-10 18:25:39 +08:00
ibuler
5482d6cf83 perf: 修改资产节点创建 2022-03-10 17:48:31 +08:00
“huailei000”
80d109e0ce fix: 修复用户列表权限 2022-03-10 17:48:09 +08:00
feng626
cfdc110bc9 Merge pull request #1435 from jumpserver/pr@dev@fix_assets_cloud_permissions
fix: 修复云同步permissions权限问题
2022-03-10 17:42:11 +08:00
“huailei000”
a6b946ba51 fix: 修复云同步permissions权限问题 2022-03-10 17:39:28 +08:00
feng626
aa62a2c266 Merge pull request #1434 from jumpserver/pr@dev@ticket_add
fix: ticket not create
2022-03-10 17:24:17 +08:00
feng626
7d3321fafe fix: ticket not create 2022-03-10 17:21:39 +08:00
feng626
280217b913 fix: 修复用户详情角色显示bug 2022-03-10 17:13:54 +08:00
“huailei000”
86d3aaa443 fix: 用户列表批量操作添加提示 2022-03-10 17:12:42 +08:00
“huailei000”
ff200aedbc fix: select2组件添加disabled状态判断 2022-03-10 17:12:08 +08:00
Jiangjie.Bai
e575a69f45 revert: 回滚权限树 2022-03-10 15:26:58 +08:00
fit2bot
1f2cda6f63 fix: 修复 asset nodes (#1428)
* perf: 修改 tree nodes

* perf: 去掉 perms

* perf: 修改 perm nodes

Co-authored-by: ibuler <ibuler@qq.com>
2022-03-10 15:14:56 +08:00
Jiangjie.Bai
6f429ef156 fix: 修复role info push id 2022-03-10 13:54:28 +08:00
“huailei000”
acf2d81a8e fix:特权用户的权限和系统用户一样 2022-03-10 11:28:52 +08:00
feng626
930bcab66d Merge pull request #1426 from jumpserver/perf_rbacpermtree
fix: 优化权限树(1)
2022-03-10 11:28:21 +08:00
“huailei000”
cfbd88011a fix: 修复资产授权详情权限显示不准确问题 2022-03-10 11:28:14 +08:00
“huailei000”
d917c0576c fix: 修复用户组进入详情页空白问题 2022-03-10 11:28:14 +08:00
Jiangjie.Bai
98f1dc88ff fix: 优化权限树(1) 2022-03-10 07:00:30 +08:00
“huailei000”
1bf3371a00 fix: select2添加axios参数无权限时不弹出提示 2022-03-09 21:24:56 +08:00
fit2bot
2b984cb456 perf: 修改路由守卫 (#1421)
* perf: 修改路由守卫

* perf: 路由守卫

* perf: 去掉 debug

* perf: 修改img to

* perf: 修改路由

Co-authored-by: ibuler <ibuler@qq.com>
2022-03-09 20:42:36 +08:00
feng626
148f818349 Merge pull request #1420 from jumpserver/pr@dev@admin-user-perm
fix: admin user 按钮权限
2022-03-09 19:18:12 +08:00
feng626
d29b4ee357 fix: admin user 按钮权限 2022-03-09 19:04:21 +08:00
“huailei000”
de8f491832 fix: 修复命令过滤规则权限问题 2022-03-09 18:28:28 +08:00
“huailei000”
75326ae5ab fix: 修复命令过滤perms权限 2022-03-09 18:28:28 +08:00
halo
574fe8b868 feat: 云管中心增加同步实例列表ip字段 2022-03-09 18:06:12 +08:00
feng626
969f0867a0 Merge pull request #1418 from jumpserver/pr@dev@view_setting
fix: 系统设置perm
2022-03-09 18:00:26 +08:00
feng626
9ccb35d329 fix: 系统设置perm 2022-03-09 17:59:23 +08:00
fit2bot
34ac945cb1 fix: 简单修复一下,没有任何权限导致的白屏行为 (#1417)
* fix: 简单修复一下,没有任何权限导致的白屏行为

* perf: 修改路由

* perf: 去掉 index

Co-authored-by: ibuler <ibuler@qq.com>
2022-03-09 17:30:47 +08:00
“huailei000”
d27d0f1e1a fix: 切换组织组件修改判断,有创建或者查看权限时才显示组织管理分组 2022-03-09 17:14:47 +08:00
feng626
c63a4fc672 Merge pull request #1416 from jumpserver/pr@dev@acl_perm
fix: acl perm bug
2022-03-09 16:32:27 +08:00
feng626
1210f8bb18 fix: acl perm bug 2022-03-09 16:31:03 +08:00
“huailei000”
ac34f9de9e fix: 切换组织组件,创建、查看添加权限位控制 2022-03-09 15:37:52 +08:00
“huailei000”
e13a62c206 fix:修复角色列表组件切换数据不准确问题 2022-03-09 15:37:14 +08:00
fit2bot
5897c52268 perf: 优化权限判断 (#1413)
* stash: 暂存 api 权限判断

* perf: 优化列表权限判断,通过 url 来

* perf: 优化权限判断

* perf: remove console

* perf: 还原默认值

* perf: 修改 detail

* perf: 修改路由

* perf: 修改路由

* perf: 修复 table perm

* perf: 修改 home

Co-authored-by: ibuler <ibuler@qq.com>
2022-03-09 15:36:38 +08:00
“huailei000”
833dd305bf feat: 概览页公告添加跳转链接 2022-03-09 14:35:31 +08:00
ibuler
353ab4467b fix: 修复组织切换的问题 2022-03-08 21:13:54 +08:00
feng626
a6c020d8db Merge pull request #1407 from jumpserver/pr@dev@fix_tickets_flow_update_disabled
fix: 修复工单流不能更新问题
2022-03-08 20:33:52 +08:00
feng626
072b880893 Merge pull request #1408 from jumpserver/pr@dev@fix_assets_nopermission_show
fix: 修复资产列表没有权限显示空白menu问题
2022-03-08 20:33:25 +08:00
“huailei000”
0c25dffcce fix: 修复资产列表没有权限显示空白menu问题 2022-03-08 20:11:46 +08:00
“huailei000”
90e6cad407 fix: 修复工单流不能更新问题 2022-03-08 18:56:11 +08:00
“huailei000”
40f331ebfc fix: 修复api key的rbac权限判断 2022-03-08 18:29:23 +08:00
“huailei000”
93d8e6850f fix: 工作台显示切换组织 2022-03-08 17:37:26 +08:00
ibuler
20a91cba24 perf: 联动修改 2022-03-08 17:37:08 +08:00
“huailei000”
5fdf3817ed fix: 修复会话记录详情页的rbac权限判断 2022-03-08 17:36:28 +08:00
“huailei000”
980bb970b6 fix: 修复初始化控制台title报错问题;修复社区版不显示组织管理 2022-03-08 15:29:50 +08:00
“huailei000”
3eb28f5517 fix: 修复云同步点击进入详情页面没有权限问题 2022-03-08 15:13:20 +08:00
“huailei000”
c5c412ccac fix: 修复社区版本判断不准确问题 2022-03-08 15:12:26 +08:00
ibuler
90a1cc8735 perf: perm node 级联选择 2022-03-08 13:49:03 +08:00
ibuler
764096ad1d perf: 优化节点算则 2022-03-08 13:49:03 +08:00
“huailei000”
cf143c8502 fix: 修改概况权限判断页面显示 2022-03-08 11:49:57 +08:00
feng626
740c7a7836 Merge pull request #1397 from jumpserver/pr@dev@perf_ztree_default
perf: 修改 tree check
2022-03-07 20:52:31 +08:00
ibuler
3f6d4606c6 perf: 去掉console 2022-03-07 20:50:00 +08:00
ibuler
381792716b perf: 修改 tree check 2022-03-07 20:43:11 +08:00
feng626
b69b359fc7 Merge pull request #1396 from jumpserver/pr@dev@perf_account_backup
perf: 优化账号备份
2022-03-07 20:15:40 +08:00
ibuler
f2e7cfa5de perf: 优化账号备份 2022-03-07 20:11:06 +08:00
fit2bot
067fdd5993 perf: 修改概览权限判断 (#1395)
* perf: 修改概览权限判断

* perf: 修改路由

Co-authored-by: ibuler <ibuler@qq.com>
2022-03-07 19:55:29 +08:00
“huailei000”
58a7ed3632 fix: 修复云导入perms权限问题;修改名称为云同步 2022-03-07 19:04:44 +08:00
ibuler
23613301d5 perf: 优化工作台菜单 2022-03-07 19:03:45 +08:00
Jiangjie.Bai
dcbeeec964 fix: 修改角色详情 2022-03-07 19:03:03 +08:00
“huailei000”
9f36c18560 fix: MariaDB在社区版开放;替换系统设置-短信设置的布局组件 2022-03-07 17:05:38 +08:00
“huailei000”
d613f5a893 fix: 区分企业版和社区版功能 2022-03-07 16:35:03 +08:00
Jiangjie.Bai
69d963f2a9 fix: 修改角色详情区分系统角色、组织角色;修改邀请用户时的用户名称显示 2022-03-07 15:06:30 +08:00
fit2bot
c93b1a6769 perf: 自动勾选 perm view node (#1388)
Co-authored-by: ibuler <ibuler@qq.com>
2022-03-07 14:43:03 +08:00
“怀磊”
b5008db265 fix: 修复网域列表没有权限也能点击网关跳转问题 2022-03-07 14:21:07 +08:00
feng626
ef228c6442 Merge pull request #1386 from jumpserver/pr@dev@fix_update_role_perms
fix: 修复更新 role perms
2022-03-07 13:29:23 +08:00
ibuler
0730f10e79 fix: 修复更新 role perms 2022-03-07 11:49:07 +08:00
“怀磊”
86dea655a4 fix: 修复会话审计详情页页跳转不成功问题;日志审计perms权限判断问题 2022-03-07 11:33:25 +08:00
Jiangjie.Bai
e14f344b68 fix: 修复创建用户roles必填问题 2022-03-07 11:23:39 +08:00
Jiangjie.Bai
561148521b fix: 修复创建用户roles必填问题 2022-03-07 11:23:39 +08:00
feng626
c8825e52b6 fix: user list perm 2022-03-04 17:59:08 +08:00
“怀磊”
c48e1603b9 fix: 修复系统角色详情-授权用户,不能删除成员问题 2022-03-04 17:18:54 +08:00
“怀磊”
631c03c715 fix: 修复系统角色进入详情之后返回页面空白问题 2022-03-04 15:38:58 +08:00
feng626
842168e16b fix: 修复组织管理员角色权限问题 2022-03-04 14:20:48 +08:00
ibuler
5eb9a58f61 perf: 优化权限判断,支持或的关系 2022-03-04 14:18:07 +08:00
老广
8d0f71f681 Fix rbac (#1375)
* fix: 修复邀请用户为全局用户及工单orgs bug

* fix: 修复资产账号列表点击更新时弹窗不出现的问题

* fix: 修复组织管理员无法进入详情页问题

* perf: 优化角色

* fix: 修复工单流权限问题

* fix: 修复判断默认跳转路由的方法

* fix: 修复perms 许可证判断逻辑

* feat: 修改导航中英文翻译

Co-authored-by: feng626 <1304903146@qq.com>
Co-authored-by: Jiangjie.Bai <bugatti_it@163.com>
Co-authored-by: “怀磊” <2280131253@qq.com>
Co-authored-by: feng626 <57284900+feng626@users.noreply.github.com>
2022-03-04 10:11:57 +08:00
“怀磊”
872add340b fix: 修复vm的this指针问题 2022-03-03 11:26:54 +08:00
Jiangjie.Bai
17e6d2fe84 feat: 用户详情tab页rbac控制 (#1359) (#1362)
* perf: debug account

* Debug: 添加 debug

* debug: 添加线上debug

* debug: remove vue config

* chore: diglog 添加vif

* debug: authbook

* chore: debug account

* fix: 修改资产账号更新弹窗组件传参方式

* perf: 修改 authbook

* fix: 修复资产账号的更新组件不生效问题

* perf: change build scropt

* feat: 配置概况页的路由权限

* fix: 修复工单流自定义用户获取全局用户bug

* feat: 用户详情tab页rbac控制

* feat: 用户组详情tab添加rbac

* feat: 资产详情tab添加rbac

* feat: 角色列表详情tab添加rbac

* feat: 资产管理详情页tab添加rbac

* feat: 账号管理详情tab增加rbac

* feat: 权限管理详情tab添加rbac

* feat: 作业中心详情tab添加rbac

* feat: 系统设置tab添加rbac

Co-authored-by: ibuler <ibuler@qq.com>
Co-authored-by: “怀磊” <2280131253@qq.com>
Co-authored-by: feng626 <1304903146@qq.com>

Co-authored-by: fit2bot <68588906+fit2bot@users.noreply.github.com>
Co-authored-by: ibuler <ibuler@qq.com>
Co-authored-by: “怀磊” <2280131253@qq.com>
Co-authored-by: feng626 <1304903146@qq.com>
2022-03-03 10:36:05 +08:00
fit2bot
c0448afda4 Fix rbac (#1361)
* perf: debug account

* Debug: 添加 debug

* debug: 添加线上debug

* debug: remove vue config

* chore: diglog 添加vif

* debug: authbook

* chore: debug account

* fix: 修改资产账号更新弹窗组件传参方式

* perf: 修改 authbook

* fix: 修复资产账号的更新组件不生效问题

* perf: change build scropt

* feat: 配置概况页的路由权限

* fix: 修复工单流自定义用户获取全局用户bug

* fix: 修复系统角色绑定用户为全局用户

* fix: 修改i18n cn.json=>zh-hans.json 文件名

* fix: 修改i18n cn.json 文件名

Co-authored-by: ibuler <ibuler@qq.com>
Co-authored-by: “怀磊” <2280131253@qq.com>
Co-authored-by: feng626 <1304903146@qq.com>
Co-authored-by: Jiangjie.Bai <bugatti_it@163.com>
2022-03-02 20:49:23 +08:00
Jiangjie.Bai
10655a3ff4 feat: 修改存储翻译信息 2022-02-28 19:27:37 +08:00
Jiangjie.Bai
22bd95b55a feat: 支持COS对象存储 2022-02-28 19:27:37 +08:00
Jiangjie.Bai
263e7a0f34 feat: 支持COS对象存储 2022-02-28 19:27:37 +08:00
ibuler
4366e5b1c8 fix: 去掉一部分role filter 2022-02-28 19:27:37 +08:00
ibuler
20b6b09840 fix: 修复 detail 问题 2022-02-28 19:27:37 +08:00
ibuler
111bb97c65 fix: 修复上次提交的错误 2022-02-28 19:27:37 +08:00
Jiangjie.Bai
88c86c8257 feat: 功能优化 2022-02-28 19:27:37 +08:00
ibuler
8573bc53aa perf: 修改 url 2022-02-28 19:27:37 +08:00
ibuler
340efcfbdf perf: 修改了css 2022-02-28 19:27:37 +08:00
ibuler
500b5e51a2 perf: 修改名称 2022-02-28 19:27:37 +08:00
“怀磊”
13eca9da63 feat: 增加默认进入上次登录的角色功能;优化权限判断逻辑 2022-02-28 19:27:37 +08:00
Jiangjie.Bai
db825c5c30 Fix rbac (#1344)
* fix: 修改导航组件样式;组织组件分组文案颜色

* perf: 修改邀请

* perf: 修改组织样式

* fix: 修复站内信点击打开弹窗遮罩层不能关闭问题

* fix: 过滤用户列表创建用户时系统角色的数据-系统组件

* fix: 修复工单流程设置不能进入详情、不能更新问题

* feat: 修改工单路由配置
1、修改工单路由配置
2、流程设置可以显示切换组织组件
3、修复申请资产授权表单报错问题
4、修复申请应用授权表单报错问题

* fix: 修复api key点击创建报错问题

Co-authored-by: “怀磊” <2280131253@qq.com>
Co-authored-by: ibuler <ibuler@qq.com>
2022-02-25 19:24:52 +08:00
Jiangjie.Bai
2e7f62b7f0 Fix rbac (#1341)
* fix: 修改导航组件样式;组织组件分组文案颜色

* fix: 修复Select2组件没有处理array数据的问题, 触发场景比如(邀请用户的对话框)

Co-authored-by: “怀磊” <2280131253@qq.com>
2022-02-24 12:04:59 +08:00
老广
8e08c5c8e5 Merge pull request #1339 from jumpserver/fix_rbac
fix: rbac
2022-02-24 10:07:26 +08:00
ibuler
55c6fce439 perf: 还原 css 2022-02-24 10:00:48 +08:00
ibuler
b2eea8946d Merge branch 'fix_rbac' of github.com:jumpserver/lina into fix_rbac 2022-02-23 19:54:53 +08:00
ibuler
612d440b21 perf: 修改 css 2022-02-23 19:53:56 +08:00
“怀磊”
01e81105c1 Merge branch 'fix_rbac' of github.com:jumpserver/lina into fix_rbac 2022-02-23 19:25:59 +08:00
“怀磊”
76485bd994 feat: 切换组织组件添加快捷入口到组织管理 2022-02-23 19:25:46 +08:00
feng626
240bcde424 fix: 云导入router perm 2022-02-23 19:22:17 +08:00
“怀磊”
15253267fc feat: api key列表页迁移到个人信息模块下 2022-02-23 18:04:46 +08:00
ibuler
0ad9945765 Merge branch 'fix_rbac' of github.com:jumpserver/lina into fix_rbac 2022-02-23 17:06:16 +08:00
“怀磊”
efcd4aa55c fix: 修复界面设置接口文件找不到报错问题 2022-02-23 17:05:40 +08:00
“怀磊”
1824519d6c Merge branch 'fix_rbac' of github.com:jumpserver/lina into fix_rbac 2022-02-23 16:53:20 +08:00
“怀磊”
6e88e67052 feat: 拆分x-pack模块
1、运营中心迁移到资产列表,创建按钮右侧增加云导入点击跳转
2、界面设置迁移到系统设置
3、组织管理迁移到系统设置,组织下拉组件快捷跳转待添加。。。
4、系统监控迁移到系统设置里的终端设置下添加一个tab显示,名称修改为组件监控
2022-02-23 16:52:46 +08:00
ibuler
d04a5a6d8a perf: 修改 path 2022-02-23 16:23:14 +08:00
ibuler
71d5832c2e perf: 优化一波 profile 2022-02-23 16:14:48 +08:00
ibuler
2954385b62 perf: 修改 nav view switch 2022-02-23 14:54:16 +08:00
ibuler
48efdff4e2 perf: 修改 nav view 2022-02-23 14:00:14 +08:00
“怀磊”
fbb5ce031f feat: ftp日志文件目录、路由迁移到会话审计模块下 2022-02-22 19:46:27 +08:00
“怀磊”
68a53c0e90 fix: 首页展示页卡、展示字段调整 2022-02-22 19:32:36 +08:00
ibuler
2fee1f5a16 perf: 修改用户的概览页 2022-02-22 18:54:27 +08:00
ibuler
8e6b817d5f perf: 修复 v-perms 2022-02-22 18:54:27 +08:00
Jiangjie.Bai
3cef40b2b1 fix: 合并 rbac (#1336)
* fix: 修复访问控制路由权限

* fix: 修复个人信息页跳转错误问题

* perf: 修改 rbac (#1332)

* perf: 修改 route name

* fix: perm app router

* fix: 修复资产应用授权路由权限问题

* perf: 修改 rbac

Co-authored-by: ibuler <ibuler@qq.com>
Co-authored-by: feng626 <1304903146@qq.com>

* fix: 导航

* feat: 修改首页布局风格;修改仪表盘文案为概况

* feat: 调整录像存储、命令存储为终端设置的tab页卡展示

* feat: 修改首页侧边栏图标颜色

* fix: 修复命令过滤权限问题

* perf: 修改 nav icon 颜色 (#1334)

* perf: 修改 nav icon 颜色

* perf: 修改左侧收缩栏图表颜色

Co-authored-by: ibuler <ibuler@qq.com>

* feat: 修改工单路由

* perf: 修改图表

* fix: 修改首页接口

Co-authored-by: feng626 <1304903146@qq.com>
Co-authored-by: “怀磊” <2280131253@qq.com>
Co-authored-by: fit2bot <68588906+fit2bot@users.noreply.github.com>
Co-authored-by: ibuler <ibuler@qq.com>
2022-02-22 18:29:36 +08:00
jiangweidong
7a8d35b986 feat: 支持 MongoDB 数据库的纳管 2022-02-22 10:13:44 +08:00
Jiangjie.Bai
96157bb18d fix: rbac 合并 (#1329)
* perf: 修改 route name

* fix: perm app router

* fix: 修复资产应用授权路由权限问题

* feat: home页放到user里,调整文件位置

* perf: 修复 view change routers (#1326)

Co-authored-by: ibuler <ibuler@qq.com>

* fix: 修复搜集用户 改密计划 账号备份路由

* feat: 终端管理、存储配置文件路径修改,放到系统设置中显示

Co-authored-by: ibuler <ibuler@qq.com>
Co-authored-by: feng626 <1304903146@qq.com>
Co-authored-by: “怀磊” <2280131253@qq.com>
Co-authored-by: fit2bot <68588906+fit2bot@users.noreply.github.com>
2022-02-21 16:24:43 +08:00
dependabot[bot]
172f970a0b build(deps): bump url-parse from 1.4.7 to 1.5.7
Bumps [url-parse](https://github.com/unshiftio/url-parse) from 1.4.7 to 1.5.7.
- [Release notes](https://github.com/unshiftio/url-parse/releases)
- [Commits](https://github.com/unshiftio/url-parse/compare/1.4.7...1.5.7)

---
updated-dependencies:
- dependency-name: url-parse
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-21 10:29:51 +08:00
fit2bot
d7200ecd62 feat: 添加rbac (#1322)
* stash

* perf: 修改切换

* perf: stash

* perf: 修改组件名称

* perf: 修改acl

* perf: 修改路由

* perf: 修改路由切换

* perf: 完成切换

* perf: 修改菜单

* perf: 优化布局

* perf: route rbac

* perf: 固定heading

* perf: 使用class控制header

* perf: 修改margin

* perf: stash 自动生成permissions

* perf: 暂存rbac

* stash

* perf: 优化rbac

* fix: 还原之前的hidden

* pref: 组件还原名称

* pref: 添加角色创建

* perf: 修改sidebar

* perf: 暂存一下

* feat: 添加 角色详情

* stash: 暂存一下

* feat: 添加首页路由及页面布局

* stash: 暂存一下

* feat: 获取切换视图数据

* feat: 获取切换视图数据

* feat: 调整首页页面布局及组件封装

* perf: 使用统一的 role list

* feat: 调整角色权限按钮

* feat: 主页添加会话模块

* feat: 主页添加会话模块

* feat: 设置table不显示多选

* feat: 调整首页模块展示字段

* fix: 修复菜单父级选中不高亮问题

* feat: 替换首页背景图

* perf: 修改一下

* feat: 更新首页卡片接口

* perf: 修改 rbac

* feat: 工单路由、系统设置路由单独拆分出来,并对系统设置路由进行权限判断

* perf: 修改权限

* feat: 系统设置相关页面更换布局组件

* fix: 修复 profile page

* perf: 修改xpack route

* perf: 优化角色详情

* perf: 优化 role user 处理

* perf: 权限位放到详情里

* perf: 修改role info 和 i18n

* feat: 系统设置相关页面修改布局组件;增加路由大标题

1、系统设置-认证设置:修改布局容器组件
2、系统设置-ldap:页面合并到认证设置里
3、左侧路由菜单顶部增加大标题
4、系统设置路由菜单设置新图标

* feat: 调整切换组织组件显示位置,替换组织icon

* feat: 调整切换组织组件显示位置,替换组织icon

* feat: 拆分个人信息页面相关路由,单独的view显示

* feat: 切换组织组件放到头像左边实现,web终端放到帮助左边图标显示

* style: 角色权限组件设置不可选中样式

* perf: add terminal svg

* feat: 替换邮箱svg

* perf: 修改触发方式

* perf: 完成角色搜索

* perf: 修改位置

* perf: 修改触发方式

* perf: 修复 user create 的role

* feat: 修改切换组织组件显示位置和ui样式
1、站内信、web终端图标添加hover效果提示
2、突出退出登录添加icon
3、修改切换组织组件显示位置和ui样式

* perf: 修改一些 权限

* perf: 修改菜单隐藏判断

* perf: 修改 org

* perf: 修改radius

* perf: 还原 radius

* feat: 调整终端管理文件,统一放到系统设置目录下
1、调整切换组织组件文件位置,放到header目录下
2、调整终端管理相关页面的文件位置放在系统设置目录下
3、终端管理部分页面为迁移完。。。

* perf: 修改了些 css

* perf: 修改分割线颜色

* perf: 修改分隔线样式

* perf: 修改是否显示组织

* perf: 优化继承

* perf: 还原 resource 的处理

* perf: 修改 app api url

* fix: 修复原来 detailApi 引起的问题

* perf: 修改一点 css

* perf: 修改 views

* perf: 修改视图切换

* perf: 修改位置

Co-authored-by: ibuler <ibuler@qq.com>
Co-authored-by: “怀磊” <2280131253@qq.com>
2022-02-18 10:51:15 +08:00
“怀磊”
c093e7d621 fix: 修复资产授权创建时默认选中了点击的资产和节点问题
修改为指保留最后一次选中的资产或者节点
2022-02-17 18:20:47 +08:00
“怀磊”
70d2599d4a fix: 修复资产授权创建时默认选中了点击的资产和节点问题
修改为指保留最后一次选中的资产或者节点
2022-02-17 11:33:39 +08:00
Jiangjie.Bai
b4183b421f Merge pull request #1316 from jumpserver/dev
v2.19.0-rc3
2022-02-16 16:42:58 +08:00
“怀磊”
9c6281cf02 fix: 修复资产账号导出条数不准确问题 2022-02-16 16:41:10 +08:00
feng626
e7bdf6276d fix: 工单流需要超级管理员配置 2022-02-16 14:50:45 +08:00
“怀磊”
fa860dbd85 fix: 修复命令记录页面筛选数据时tree自动刷新问题 2022-02-15 18:04:42 +08:00
Jiangjie.Bai
2bb4ca3ec0 fix: 修改LDAP SYNC相关参数设置 2022-02-15 17:58:20 +08:00
feng626
93a08d265b fix: 修复工单流只在当前组织管理员或系统管理员显示 2022-02-15 17:01:07 +08:00
Jiangjie.Bai
b7be7784c6 Merge pull request #1310 from jumpserver/dev
v2.19.0-rc2
2022-02-14 18:33:51 +08:00
“怀磊”
375c6bf44b fix: 修复搜索组件在页面刷新后搜索条件是布尔类型时页面不显示中文问题
1、优化获取url中搜索条件的算法
2022-02-14 18:23:03 +08:00
feng626
542e34208e feat: 工单添加redis类型 2022-02-14 17:46:07 +08:00
“怀磊”
f041b0de74 fix: 修复命令记录页面layout布局不能自适应问题 2022-02-14 16:16:59 +08:00
“怀磊”
7ff75280a5 fix: 修复search组件去重搜索不准确问题 2022-02-14 16:16:29 +08:00
ibuler
d76009de3a pref: 优化数据库协议翻译 2022-02-14 15:01:45 +08:00
“怀磊”
851f4508e2 fix: 资产账号替换密码框组件 2022-02-10 15:04:56 +08:00
feng626
a36e5196f8 perf: 工单流显示组织名称 2022-02-10 15:04:09 +08:00
Jiangjie.Bai
d22d16681e Merge pull request #1300 from jumpserver/dev
v2.19.0-rc1
2022-02-10 10:50:21 +08:00
“怀磊”
31c86fb281 feat: table搜索框支持多级自定义搜索 2022-02-09 18:47:24 +08:00
Michael Bai
f83739b496 fix: 修改第三方认证用户进行MFA认证配置项变量名 2022-02-09 10:34:09 +08:00
Michael Bai
1d9eddb11f feat: 增加系统设置(安全)控制第三方认证用户是否进行MFA认证 2022-02-08 17:49:21 +08:00
Michael Bai
da14abc83b feat: 命令过滤规则增加忽略大小写选项 2022-02-08 12:31:48 +08:00
“怀磊”
7b705dfc75 perf: 表单自动滚动到校验出错位置 2022-01-21 18:35:13 +08:00
“怀磊”
4516d83ce4 fix: 修复搜索框不能搜索false选项的问题 2022-01-20 15:05:35 +08:00
Jiangjie.Bai
db753bd1c2 Merge pull request #1292 from jumpserver/dev
v2.18
2022-01-20 13:48:00 +08:00
Michael Bai
ac14e5964d fix: 修复强制启用用户MFA后,个人信息页面设置按钮被禁用的问题 2022-01-20 11:59:56 +08:00
feng626
232c22c8ae fix: 应用改密去掉redis 2022-01-20 11:00:08 +08:00
Jiangjie.Bai
610da9f9b2 Merge pull request #1289 from jumpserver/dev
v2.18.0-rc4
2022-01-19 19:40:47 +08:00
Michael Bai
29631b1eaf fix: 修改IP(Doamin) -> IP(Host)翻译信息 2022-01-19 19:09:13 +08:00
“怀磊”
537887553d fix: 修复资产账号、账号备份、上传ssh密钥组件翻译问题
1、替换了改密计划-资产改密,密码框组件
2022-01-19 14:12:43 +08:00
“怀磊”
c1ddc0f8e0 fix: 修复工单创建应用保存时报错问题 2022-01-19 13:54:48 +08:00
feng626
316b39d15b fix: 修复工单命令复合跳转非当前组织404问题 2022-01-19 11:26:04 +08:00
Jiangjie.Bai
b18b05b8fb Merge pull request #1284 from jumpserver/dev
v2.18.0-rc3
2022-01-18 19:36:45 +08:00
“怀磊”
cd5534c20a feat: 系统用户上传ssh协议i18n翻译 2022-01-18 19:34:00 +08:00
feng626
048fee7ede Merge pull request #1279 from jumpserver/pr@dev@fix_accounts_edit_password_errortip
fix: 修复资产账号修改密码时报错提示重复问题
2022-01-18 19:16:34 +08:00
feng626
083b4bc499 Merge pull request #1282 from jumpserver/pr@dev@translate
fix: 改密翻译修改
2022-01-18 19:15:44 +08:00
怀磊
eb44856807 Merge branch 'dev' into pr@dev@translate 2022-01-18 19:09:39 +08:00
feng626
fff2288069 fix: 改密翻译修改 2022-01-18 19:07:17 +08:00
feng626
d5fc939a40 fix: 改密翻译修改 2022-01-18 19:07:15 +08:00
“怀磊”
6489cbe488 fix:修复应用授权克隆报错问题 2022-01-18 19:03:04 +08:00
“怀磊”
941f1d855e fix: 修复资产账号修改密码时报错提示重复问题 2022-01-18 17:13:14 +08:00
“怀磊”
ff88a0bd42 fix: 修复table搜索框回车搜索时重复搜索问题 2022-01-18 16:01:10 +08:00
Michael Bai
c87412f4c0 fix: 修改审计日志操作日志动作翻译问题 2022-01-18 15:21:11 +08:00
Michael Bai
2da4e4f7a0 fix: 修复应用账号查询问题 2022-01-18 15:03:46 +08:00
Michael Bai
848bdcba36 fix: 修改审计日志中支持i18n的显示字段display 2022-01-18 14:34:26 +08:00
“怀磊”
96206f10a2 perf: 优化table搜索框切换搜索字段后不能回车搜索问题 2022-01-18 14:03:37 +08:00
“怀磊”
a6012eba4a fix: 修复资产授权详情用户组添加会显示更多 2022-01-18 11:21:12 +08:00
Jiangjie.Bai
2570aa63fc Merge pull request #1272 from jumpserver/dev
v2.18.0-rc2
2022-01-17 19:22:44 +08:00
“怀磊”
43797c2f46 fix: 修复工单搜索条件-动作可编辑问题;增加搜索选项关闭动画 2022-01-17 16:31:01 +08:00
feng626
e98e23dad8 perf: 账号备份优化 2022-01-17 15:59:25 +08:00
v-hleihuai
11c845c0fd fix: 修复自定义字段展示,没有label的字段不在列表中展示 2022-01-17 15:49:46 +08:00
feng626
6310fae385 feat: 特权用户添加ssh密钥密码 2022-01-17 15:46:44 +08:00
“怀磊”
c20453a1de feat: 修改工单会话展示字段 2022-01-14 16:57:23 +08:00
Michael Bai
b1733835a4 feat: 修改Copyright信息 2022-01-13 18:56:06 +08:00
ibuler
4e1c921451 perf: 优化 ops 任务名称,支持 i18n 2022-01-13 15:04:34 +08:00
Jiangjie.Bai
0a4238fe93 Merge pull request #1262 from jumpserver/dev
v2.18.0-rc1
2022-01-12 20:35:54 +08:00
“怀磊”
2aad1110d0 feat: 账号备份详情页替换接口 2022-01-12 20:25:56 +08:00
feng626
03031e94c1 feat: 逃生通道 2022-01-12 20:25:56 +08:00
“怀磊”
aa94c1792c feat: 工单列表和详情添加编号字段 2022-01-12 14:34:30 +08:00
“怀磊”
f13bc4fccb fix: 修复上传下载组件展示问题 2022-01-10 17:32:45 +08:00
v-hleihuai
def153cc42 fix: 修改i18n中文国际化 2022-01-10 10:30:07 +08:00
“怀磊”
8add1b7f92 feat: lina 修改时间区间 2022-01-04 15:08:54 +08:00
xinwen
0cafadd230 feat: 资产列表增加 is_active 字段 2021-12-31 17:25:56 +08:00
“怀磊”
61c777532b feat: 工单会话添加状态字段 2021-12-31 17:25:25 +08:00
feng626
e13f2b34ff fix: ticket bug 2021-12-31 16:36:21 +08:00
“怀磊”
fa3daea82d feat: 工单添加会话功能 2021-12-31 16:29:32 +08:00
feng626
16c6f4c77f feat: add passphrase 2021-12-31 14:48:56 +08:00
Michael Bai
31e699bd2d feat: 应用授权增加Action动作控制 2021-12-30 17:24:21 +08:00
“怀磊”
4ecdf1575d fix: 应用管理类型搜索,搜索条件过滤 2021-12-30 10:27:45 +08:00
xinwen
ec00a541f8 feat: 命令记录接口增加 remote_addr 字段 2021-12-28 18:48:09 +08:00
jiangweidong
ef97df09cb feat: 支持 Redis 数据库的纳管 (#1246)
* feat: 支持 Redis 数据库的纳管

* feat: 支持Redis数据库的纳管, 将redis_acl协议合并到redis协议中
2021-12-28 18:16:13 +08:00
Jiangjie.Bai
0b18b57701 Merge pull request #1244 from jumpserver/dev
v2.17.0
2021-12-16 13:45:59 +08:00
“怀磊”
2804a488dc fix: 工单设置默认搜索条件 2021-12-16 13:17:36 +08:00
Jiangjie.Bai
0637fa9e8b Merge pull request #1242 from jumpserver/dev
v2.17.0 rc4
2021-12-15 22:04:42 +08:00
ibuler
66ecf89d35 perf: 优化 saml2 配置 2021-12-15 21:01:01 +08:00
xinwen
f11dc2f7a3 fix: ansible 任务日志读取错误 2021-12-15 18:01:25 +08:00
“怀磊”
e54c9cbd3b fix: 系统用户更新增加判断,如果设置了AD域名不能设置自动推送 2021-12-15 16:36:33 +08:00
“怀磊”
b9cdac0850 fix: 修复系统用户关联节点不显示问题 2021-12-15 16:36:07 +08:00
“怀磊”
33368cb901 perf: 优化搜索条件选项 2021-12-15 16:35:46 +08:00
“怀磊”
44e899e271 fix: 系统用户去掉重复的搜索条件 2021-12-15 16:22:20 +08:00
“怀磊”
f416cfa435 feat: 封装json editor组件 2021-12-15 15:36:53 +08:00
feng626
e2aa932ccb Merge pull request #1234 from jumpserver/pr@dev@translate
perf: 翻译修改
2021-12-15 14:41:02 +08:00
feng626
47e0435ad9 Merge pull request #1236 from jumpserver/pr@dev@ticket_filer_perf
perf: ticket filter perf
2021-12-15 14:40:49 +08:00
feng626
d36802e7bb perf: ticket filter perf 2021-12-15 14:24:08 +08:00
feng626
eda66cab41 perf: 翻译修改 2021-12-14 22:45:13 +08:00
Jiangjie.Bai
3a44b8fea7 Merge pull request #1233 from jumpserver/dev
v2.17.0 rc3
2021-12-14 21:59:16 +08:00
feng626
c461b707c8 fix: 云管特权用户bug 2021-12-14 20:20:25 +08:00
Jiangjie.Bai
01e6367196 Merge pull request #1230 from jumpserver/dev
v2.17.0 rc2
2021-12-13 19:48:49 +08:00
“怀磊”
aa2fe5e87e fix: 修改站内信文案和显示遮挡问题 2021-12-13 19:33:48 +08:00
“怀磊”
31d29e9e6a fex: 修复多个tab页相互切换时搜索条件还会保留问题,
cearchconfig 添加参数getUrlQuery:是否获取url中参数
2021-12-13 19:31:11 +08:00
“怀磊”
cb2ceea132 feat: 资产授权去掉节点的筛选条件 2021-12-13 19:29:00 +08:00
Michael Bai
582b2582bf fix: 查看节点详情不包含节点key信息 2021-12-13 19:28:30 +08:00
Michael Bai
89c6936d56 fix: 修复系统用户详情页面绑定命令过滤器的显示问题 2021-12-13 19:12:08 +08:00
jiangweidong
66ea5ab714 feat: saml2单点登录支持在页面上设置高级配置 2021-12-13 10:55:55 +08:00
Michael Bai
32dc622f1a fix: 修改命令过滤规则列表页字段排序问题 2021-12-13 10:39:18 +08:00
feng626
744acee097 Merge pull request #1223 from jumpserver/pr@dev@ticket_perf
perf: 默认展示当前组织
2021-12-13 10:26:30 +08:00
feng626
c088726412 perf: 默认展示当前组织 2021-12-11 12:53:48 +08:00
ibuler
bef02b3e29 fix: 修复创建 remote app 中类型 label 问题
fix: 修复
2021-12-09 21:03:19 +08:00
Jiangjie.Bai
821ce00f5c Merge pull request #1220 from jumpserver/dev
v2.17.0 rc1
2021-12-09 21:01:00 +08:00
ibuler
6d4d826629 perf: 修改翻译问题
fix: 修改词
2021-12-09 20:46:32 +08:00
Michael Bai
6e3ca56e98 fix: 修复系统用户命令过滤器创建页面 2021-12-09 20:09:23 +08:00
Michael Bai
90adcaf843 feat: 命令过滤器支持多维度绑定 2021-12-09 19:10:30 +08:00
jiangweidong
3eff78817b pr@dev@feat_saml2_auth (#1216)
* feat: 支持saml2协议单点登录认证

* fix: 合并遗漏的翻译文件

* fix: 合并遗漏的翻译文件
2021-12-09 16:01:46 +08:00
feng626
0b71032631 fix: 修复加密文件跳转命题 2021-12-08 17:31:27 +08:00
“怀磊”
ee2c15ccd5 feat: 查询参数保存在url中 2021-12-08 17:23:57 +08:00
halo
669bd50bfa feat: 站内信一键已读已经加载信息 2021-12-08 15:56:22 +08:00
feng626
5eff271cb2 feat: 密码计划邮件提醒 2021-12-07 17:01:00 +08:00
feng626
91162f6013 fix: 工单bug 2021-12-06 19:10:42 +08:00
“怀磊”
022309ef15 feat: 修改LICENSE 2021-12-06 18:03:36 +08:00
feng626
4466d0ddd4 feat: 工单创建资产添加节点 2021-11-30 16:54:19 +08:00
xinwen
04584bbd7b fix: 将应用从某个授权中移除时,会从所有授权中移除 2021-11-29 17:10:55 +08:00
ibuler
5ac8a6bdba feat: 资产显示标签 2021-11-29 14:57:11 +08:00
“怀磊”
6675a01b9d fix: 修复返回时间时区不同的问题 2021-11-29 14:39:52 +08:00
ibuler
84851b89a6 fix: 修复法国用户因为时区时间不同引起的错误 2021-11-25 17:51:23 +08:00
“怀磊”
408590a9e3 fix: 修复终端管理数字显示不正确问题 2021-11-25 14:48:40 +08:00
jiangweidong
09f91941d5 feat: 云管同步支持OpenStack私有云同步 2021-11-24 16:18:04 +08:00
fit2cloud--chenqiao
7132c869f7 feat: 支持数据库sqlserver的托管 (#1194) 2021-11-24 11:23:29 +08:00
Michael Bai
96c10f6980 fix: 修改翻译 2021-11-19 18:48:05 +08:00
feng626
9184026ca0 perf: ip黑白名单 2021-11-19 18:48:05 +08:00
Jiangjie.Bai
8b320d92c1 Merge pull request #1199 from jumpserver/dev
v2.16
2021-11-18 18:52:58 +08:00
“怀磊”
e46c1cfad9 fix: 修复系统设置-飞书认证:启动时按钮状态的显示 2021-11-18 18:50:04 +08:00
Michael Bai
f17df86e98 fix: 修复创建资产成功后提示信息中不包含详情链接 2021-11-18 18:08:19 +08:00
Jiangjie.Bai
fb89f710d7 Merge pull request #1196 from jumpserver/dev
v2.16.0 rc4
2021-11-18 17:00:51 +08:00
feng626
d64aea15c2 fix: 资产创建工单添加校验 2021-11-18 16:26:45 +08:00
“怀磊”
8c106ec718 fix: 替换了密码即将过期时天数的计算方法 2021-11-18 14:22:49 +08:00
Jiangjie.Bai
e5033407f4 Merge pull request #1191 from jumpserver/dev
v2.16.0 rc3
2021-11-18 13:03:22 +08:00
ibuler
7665104347 pref: 修改获取不到语言默认为英文 2021-11-18 12:54:24 +08:00
Jiangjie.Bai
cfb7f2be43 Merge pull request #1189 from jumpserver/dev
v2.16.0 rc2
2021-11-17 19:43:41 +08:00
Michael Bai
6fb9234583 fix: 修复资产列表资产树右击菜单添加/移动资产到节点确认/取消后自动关闭弹窗 2021-11-17 19:35:48 +08:00
Michael Bai
520abd783a fix: 修复更新资产更多信息成功后,点击详情跳转到编辑页面的问题 2021-11-17 19:35:32 +08:00
“怀磊”
133dd02de7 feat: 终端管理数字显示小数保留1位 2021-11-17 19:15:04 +08:00
feng626
c6988578cb perf: help信息迁移到public中 2021-11-17 15:45:29 +08:00
“怀磊”
b1eef7d2f3 perf: 搜索框组件:如果没有搜索选项不能点击下拉菜单 2021-11-17 15:24:03 +08:00
ibuler
526578a520 fix: 修复公告中的重置无反应 2021-11-17 15:22:17 +08:00
“怀磊”
adf5b51a63 fix: 修复应用授权详情,用户组不能删除问题 2021-11-17 15:05:13 +08:00
feng626
d9fab3f258 Merge pull request #1181 from jumpserver/pr@dev@ticket_flow_bug
fix: 修复工单流修改不生效
2021-11-17 11:40:08 +08:00
feng626
7887458239 fix: 修复工单流修改不生效 2021-11-17 11:36:18 +08:00
“怀磊”
4ed40f763c fix: 修复用户登录规则详情更新完之后,点击message跳转详情没有数据问题 2021-11-15 17:14:14 +08:00
ibuler
64b3be5d45 fix: 修复重置mfa的bug 2021-11-15 16:23:41 +08:00
“怀磊”
9a1263f9af fix: 修复select2组件选项过长文字溢出问题 2021-11-15 12:23:10 +08:00
feng626
bdb38362ff fix: 修复登录资产复合路由跳转问题 2021-11-15 11:26:29 +08:00
“怀磊”
cf8b0970e3 fix: 修复工单-登录复核:点击返回路由不能返回列表页问题 2021-11-12 19:06:27 +08:00
“怀磊”
e9bab6a623 fix: 修复创建工单时必填字段校验不生效问题 2021-11-12 19:05:47 +08:00
feng626
df088cc1b6 fix: 修复关闭ssh后 仍然可以修改密钥 2021-11-12 18:00:39 +08:00
“怀磊”
63cde369fa fix: 密码框使用 updatetoken组件 2021-11-12 15:04:03 +08:00
“怀磊”
902364fdc3 fix: 修复命令记录,命令存储tree搜索时刷新问题 2021-11-12 15:02:18 +08:00
feng626
cceca0e1ab feat: 添加全局ip黑名单 2021-11-12 14:58:26 +08:00
Michael Bai
39b84e9a8f fix: 移动【会话设置保留时间】至定期清理设置页面 2021-11-12 14:57:32 +08:00
feng626
1e2b6caf93 fix: 完善工单样式 2021-11-12 14:15:24 +08:00
Jiangjie.Bai
4f7ea2b0ab Merge pull request #1167 from jumpserver/dev
v2.16.0 rc1
2021-11-11 14:03:33 +08:00
ibuler
e0b98ba758 perf: 修改i18n
pref: 修改翻译
2021-11-11 13:01:51 +08:00
ibuler
a7ba36b734 perf: 优化资产更多信息 2021-11-11 13:00:15 +08:00
ibuler
27332dffb8 perf: 修改翻译 2021-11-10 17:11:42 +08:00
jiangweidong
2d174bc46d feat: 支持管理员配置导航栏上帮助中的url 2021-11-10 17:09:28 +08:00
“怀磊”
f000810ccf fix: 优化UpdateToken组件:创建时直接显示输入框和防止浏览器自动填充密码 2021-11-10 17:05:14 +08:00
xinwen
68a08a25dc feat: 异地登录提醒可配置是否启用 2021-11-08 15:25:36 +08:00
Michael Bai
b5a268bf83 fix: 修改切换用户 -> 用户切换 2021-11-05 16:42:11 +08:00
Michael Bai
c446d1dcf6 feat: 添加Su用户列表 2021-11-05 16:04:07 +08:00
Michael Bai
92620510da feat: 添加切换至用户列表 2021-11-05 16:04:07 +08:00
Michael Bai
d62a4ca36e feat: 添加系统用户su_enabled 2021-11-05 16:04:07 +08:00
Michael Bai
d2cd0a2242 feat: 添加OBS存储 2021-11-05 13:38:25 +08:00
“怀磊”
a39f2294bc fix: 修复创建工单,应用类型下拉选择联动清空 2021-11-04 18:13:00 +08:00
halo
4a8f147178 fix: 修复用户应用授权规则更新和删除操作报错 2021-11-04 12:39:26 +08:00
“怀磊”
69b378c2a7 feat: rdp 系统用户还原自动生成密码 2021-11-04 11:43:57 +08:00
“怀磊”
55743eb2c8 feat: 修改系统用户查看ssh密钥的input框展示样式 2021-11-03 17:37:11 +08:00
“怀磊”
9ba5214937 perf: 系统用户相关表单使用UpdateToken组件 2021-11-03 17:01:24 +08:00
fit2bot
e1c6d0a686 feat: 封装密码输入框组件 (#1149)
* feat: 封装密码输入框组件

* feat: 批量替换密码输入框组件

* perf: 修改样式

* feat: 批量替换密码输入框组件

Co-authored-by: “怀磊” <2280131253@qq.com>
Co-authored-by: ibuler <ibuler@qq.com>
2021-11-02 18:51:58 +08:00
Michael Bai
b68616501c fix: 修复UploadKey失败问题 2021-11-01 14:58:20 +08:00
Michael Bai
3355036f49 fix: 修改基本设置项
fix: 修改基本设置项
2021-10-29 19:24:57 +08:00
xinwen
7ee3d307df fix: 非本地用户不能绑定三方认证 2021-10-29 13:20:17 +08:00
Michael Bai
803090dff9 fix: 修改基本设置工单启用控制 2021-10-29 13:19:35 +08:00
Jiangjie.Bai
886d34211c Merge pull request #1138 from jumpserver/dev
v2.15.0
2021-10-28 18:13:43 +08:00
fit2bot
22d8cb7e44 fix: 创建工单-应用类型,去掉默认值 (#1137)
* fix: 修复创建应用授权工单报错问题

* fix: 创建工单-应用类型,去掉默认值

Co-authored-by: “怀磊” <2280131253@qq.com>
2021-10-28 18:12:31 +08:00
Jiangjie.Bai
1a1c50086f Merge pull request #1136 from jumpserver/dev
v2.15.0
2021-10-28 17:50:12 +08:00
feng626
87c8d11bf4 fix: acl migrate 2021-10-28 17:38:30 +08:00
“怀磊”
dcbb73e59d fix: 修复创建应用授权工单报错问题 2021-10-28 17:25:00 +08:00
“怀磊”
79068f44bf fix: crontab组件增加清除功能 2021-10-28 16:59:15 +08:00
Jiangjie.Bai
0575ff606c Merge pull request #1132 from jumpserver/dev
v2.15.0
2021-10-28 15:32:37 +08:00
ibuler
68411de25b perf: 修复组织table
perf: 修改翻译
2021-10-28 15:21:37 +08:00
“怀磊”
d174fdae6f fix: 修复table组件的tooltip提示的最大宽度 2021-10-28 14:34:14 +08:00
ibuler
fa1dad3731 perf: 修改requied提示 2021-10-28 14:19:07 +08:00
Michael Bai
44edc1e712 fix: 修复创建云服务账号json格式文件判断 2021-10-28 13:36:22 +08:00
feng626
1cd8de8cbc fix: 登陆复合信息显示不全 2021-10-28 13:25:10 +08:00
Jiangjie.Bai
040cb0aa5a Merge pull request #1124 from jumpserver/dev
v2.15.0-rc3
2021-10-27 19:34:31 +08:00
“怀磊”
ffe152809d feat: 系统设置邮件服务器设置设置传参 2021-10-27 19:34:12 +08:00
“怀磊”
dc0bb5d557 fix: 定时执行控制定期执行显示隐藏 2021-10-27 19:07:08 +08:00
“怀磊”
233aaaa82b feat: 分时段登录组件增加全选功能 2021-10-27 14:46:41 +08:00
ibuler
b13e5995c9 perf: 修改label 2021-10-27 14:30:36 +08:00
ibuler
5f8e2e4f75 perf: 修改ticket组件名称,太长了 2021-10-27 14:30:36 +08:00
Michael Bai
b9baf360c0 fix: 修改工单列表action->state 2021-10-27 11:16:27 +08:00
“怀磊”
5e40da0037 feat: 调整远程应用创建是类型展示风格 2021-10-27 10:31:26 +08:00
Michael Bai
a948105ebd fix: 普通系统用户列表搜索项排除: type 字段 2021-10-26 18:10:17 +08:00
“怀磊”
46c9598788 feat: 用户登录规则详情:修改时段展示、增加右侧快速更新板块 2021-10-26 15:18:30 +08:00
ibuler
8f35d4edc0 fix: 修复启用公告后,不变绿的问题 2021-10-26 15:12:48 +08:00
ibuler
2e70c3fa4c perf: 去掉debug 2021-10-26 15:12:19 +08:00
ibuler
5e377c2572 perf: 修改工单 2021-10-26 15:12:19 +08:00
Michael Bai
d50b1201e7 fix: 修复用户详情页面最后登录日期显示1970的问题 2021-10-26 13:47:16 +08:00
“怀磊”
fc72fe9ff2 fix: 修改日志审批-批量命令,主机弹窗展示字段和遮罩层问题 2021-10-26 13:07:04 +08:00
ibuler
23a7d9dfbe perf: 统一dashboard页面,去掉email签名设置 2021-10-26 11:12:36 +08:00
Jiangjie.Bai
08452d1e00 Merge pull request #1112 from jumpserver/dev
v2.15.0-rc2
2021-10-25 15:08:35 +08:00
Michael Bai
45f29e3e6d fix: 系统用户列表添加 应用数量 字段 2021-10-25 15:06:45 +08:00
feng626
3f03f0f18c Merge pull request #1109 from jumpserver/pr@dev@ticket_bug
fix: 工单资产信息不显示
2021-10-25 11:32:28 +08:00
feng626
2d3387b739 fix: 工单资产信息不显示 2021-10-25 11:25:24 +08:00
“怀磊”
6d50c6df35 fix: 修复公告组件数字不换行问题 2021-10-21 18:11:16 +08:00
ibuler
0a3f7f6616 fix: 修复 select2 error bug 2021-10-21 17:34:32 +08:00
feng626
4c74e75673 Merge pull request #1104 from jumpserver/pr@dev@ticket_bug
fix: 工单详情资产信息未显示
2021-10-21 15:11:11 +08:00
feng626
98c44a51e7 Merge pull request #1106 from jumpserver/pr@dev@acl_bug
perf: acl 列表界面添加字段
2021-10-21 15:10:55 +08:00
feng626
6cb7e47747 perf: acl 列表界面添加字段 2021-10-21 14:57:53 +08:00
feng626
5b96475610 fix: 工单详情资产信息未显示 2021-10-21 14:37:30 +08:00
Jiangjie.Bai
c0a412a12d Merge pull request #1102 from jumpserver/dev
v2.15.0 rc1
2021-10-20 20:25:15 +08:00
“怀磊”
4b75d90090 fix: 修复crontab月组件名称错误问题 2021-10-20 19:53:10 +08:00
“怀磊”
7dd11f1259 fix: 修复crontab选择月 日的时间重置问题 2021-10-20 19:53:10 +08:00
ibuler
761eb0c3b1 perf: 修改ldap密码不是必填 2021-10-20 19:16:15 +08:00
“怀磊”
f7fb35e625 fix: 修复资产授权列表-来自工单,否显示空 2021-10-20 19:14:27 +08:00
fit2bot
224b13b4e7 perf: 整理 acl 位置 (#734)
* stash

* s

* 界面调整

* feat: 添加分时段选择组件

* feat: 添加分时段选择组件

* feat: 分时段登录组件创建时传参

* 分时登陆

* feat: 分时段组件展示默认数据

* feat: 分时段选中时间在详情里展示

* alc 部分优化

* fix: 修复用户规则登录error报错

* feat: 调整规则详情-时段展示

Co-authored-by: ibuler <ibuler@qq.com>
Co-authored-by: feng626 <1304903146@qq.com>
Co-authored-by: “怀磊” <2280131253@qq.com>
2021-10-20 18:56:59 +08:00
“怀磊”
ae9b3f2707 style: 修复跳转链接文本溢出长度问题 2021-10-20 14:47:12 +08:00
Michael Bai
0675f22181 fix: 用户登录日志添加reason_display字段 2021-10-19 15:29:39 +08:00
fit2bot
92dd661a3b 登录验证可配置 (#1092)
* 登录验证可配置

* perf: 修改安全内容设置

* perf: 还原yarn

Co-authored-by: feng626 <1304903146@qq.com>
Co-authored-by: ibuler <ibuler@qq.com>
2021-10-18 14:50:57 +08:00
“怀磊”
1926cdde15 style: table跳转链接文本溢出显示省略号随页面宽度变化 2021-10-15 15:28:00 +08:00
fit2bot
3e60c9501e feat: 资产详情添加授权用户列表页 (#1093)
* feat: 资产详情添加授权用户列表页

* feat: 取消console log

* perf: 优化一下前端

* feat: 修改授权用户组分隔符

Co-authored-by: Michael Bai <baijiangjie@gmail.com>
Co-authored-by: ibuler <ibuler@qq.com>
2021-10-15 15:02:31 +08:00
“怀磊”
c86fb5cfde fix: 全局导出公告组件 2021-10-12 16:11:20 +08:00
“怀磊”
d8e1e14bd6 feat: crontab 组件封装 2021-10-12 11:13:30 +08:00
“怀磊”
bb9e9a87d0 feat: 列表增加定时执行字段展示 2021-10-12 10:52:18 +08:00
“怀磊”
96506acc9b feat: 授权列表来自工单,是显示对勾 2021-10-12 10:29:01 +08:00
ibuler
9a5171a1bf perf: 优化公告 2021-10-12 10:27:12 +08:00
Jiangjie.Bai
d1f61797a5 Merge pull request #1085 from jumpserver/pr@dev@feat_annoucement
perf: 完成公告功能
2021-09-29 14:59:42 +08:00
ibuler
30b936330c perf: 优化翻译 2021-09-28 18:59:34 +08:00
ibuler
6f5db82ce3 perf: 优化公告 2021-09-28 18:09:34 +08:00
ibuler
9fcc9bc9da perf: 完成公告功能 2021-09-28 17:02:27 +08:00
ibuler
972b7276cf feat: 添加公告功能 2021-09-28 10:20:39 +08:00
ibuler
8db10e806a Merge branch 'dev' of github.com:jumpserver/lina into dev 2021-09-27 15:40:02 +08:00
fit2bot
1cb6e49785 perf: 优化站内信 (#1082)
* perf: 修改不再存储 .env.devlopement

* perf: 优化站内信

Co-authored-by: ibuler <ibuler@qq.com>
2021-09-27 15:40:00 +08:00
ibuler
8950fadfa1 Merge branch 'dev' of github.com:jumpserver/lina into dev 2021-09-27 14:54:22 +08:00
fit2bot
e32d4e7ee0 perf: 优化弹窗 (#1081)
* perf: 修改不再存储 .env.devlopement

* perf: 优化弹窗

Co-authored-by: ibuler <ibuler@qq.com>
2021-09-27 14:54:14 +08:00
fit2bot
a382c82732 perf: 优化代码,搜索 (#1080)
* perf: 修改不再存储 .env.devlopement

* perf: 优化代码,搜索

Co-authored-by: ibuler <ibuler@qq.com>
2021-09-27 14:29:37 +08:00
ibuler
fa458cd456 Merge branch 'dev' of github.com:jumpserver/lina into dev 2021-09-27 14:23:10 +08:00
fit2bot
731d01450f fix: 修复setting中forget url 多处显示的问题 (#1079)
* perf: 修改不再存储 .env.devlopement

* fix: 修复setting中forget url 多处显示的问题

Co-authored-by: ibuler <ibuler@qq.com>
2021-09-27 14:22:51 +08:00
ibuler
bf97d82626 Merge branch 'dev' of github.com:jumpserver/lina into dev 2021-09-24 15:11:04 +08:00
Michael Bai
49b8e0b33a fix: 修复邮件测试参数传递 2021-09-24 14:15:09 +08:00
ibuler
5a913e4d3a branch -D pr@dev@perf_env_file
Merge branch 'dev' of github.com:jumpserver/lina into dev
2021-09-24 13:29:22 +08:00
ibuler
2983f89f54 perf: 修改不再存储 .env.devlopement 2021-09-24 13:29:00 +08:00
ibuler
87a0384949 perf: 修改不再存储 .env.devlopement 2021-09-24 13:20:39 +08:00
ibuler
d36fe8aa94 perf: 修复 asset select 2021-09-24 13:14:04 +08:00
“怀磊”
5764ddc271 fix: 修复webpack配置报错 2021-09-23 13:56:01 +08:00
“怀磊”
edbdef3f58 perf: 增加webpack别名配置 2021-09-22 18:18:52 +08:00
feng626
5d308ac546 perf: 工单优化 2021-09-22 17:20:18 +08:00
ibuler
986cf6b4f7 perf: 修复dialog 不能滚动问题 2021-09-22 17:02:17 +08:00
ibuler
6cbac3c875 fix: 修复select2初始可能报错的bug
perf: 去掉debug
2021-09-18 15:05:44 +08:00
feng626
09a04efe1a Merge pull request #1062 from jumpserver/pr@dev@ticket_perf
perf: 工单 优化
2021-09-17 15:50:53 +08:00
feng626
d5b631c012 perf: 工单 优化 2021-09-17 15:40:02 +08:00
Jiangjie.Bai
7e8de4c73b Merge pull request #1061 from jumpserver/dev
merge: dev to master
2021-09-16 20:16:02 +08:00
老广
47a0641fed Merge pull request #1060 from jumpserver/pr@dev@perF_setting
perf: 修改setting
2021-09-16 20:02:35 +08:00
ibuler
ad118c5eda perf: 修改setting 2021-09-16 20:01:38 +08:00
老广
9bd3b37371 Merge pull request #1059 from jumpserver/dev
Merge dev to master
2021-09-16 19:33:01 +08:00
ibuler
274f50da95 fix: 修改select2 2021-09-16 19:09:55 +08:00
xinwen
8f87c42c8c fix: Otp 绑定问题 2021-09-16 19:09:34 +08:00
ibuler
35c793785c perf: 优化 detail formatter 2021-09-16 16:54:01 +08:00
feng626
abe176831b fix: 修复数据库改密bug 2021-09-16 16:53:41 +08:00
xinwen
c97512c99b fix: 重置用户密码提示消息 2021-09-16 16:46:43 +08:00
Jiangjie.Bai
6a8553ddfd Merge pull request #1053 from jumpserver/dev
v2.14.0 rc3
2021-09-15 21:06:24 +08:00
feng626
23f1f371e6 Merge pull request #1052 from jumpserver/pr@dev@mail_setting_bug
fix: 去掉站内信
2021-09-15 20:45:11 +08:00
feng626
0878e93f24 fix: 去掉站内信 2021-09-15 20:36:15 +08:00
fit2bot
cc76a66a34 perf: 优化用户资产页面宽度 (#1049)
Co-authored-by: ibuler <ibuler@qq.com>
2021-09-15 20:32:39 +08:00
fit2bot
d17556cdc7 perf: 优化认证中的url检查 (#1050)
* perf: 优化认证中的url检查

* perf: 优化配置

Co-authored-by: ibuler <ibuler@qq.com>
2021-09-15 20:32:17 +08:00
Michael Bai
f5f4edaf63 fix: 修复vmware账号密码必填标志显示问题 2021-09-15 20:21:53 +08:00
Michael Bai
62329d57a4 fix: 修复系统用户页面资产页中没有显示已关联节点的问题 2021-09-15 19:40:13 +08:00
ibuler
bc90d1e9c6 perf: 优化安全设置,保存后刷新页面 2021-09-15 19:39:35 +08:00
feng626
60d4da29cb Merge pull request #1047 from jumpserver/pr@dev@ticket_perf
perf: 工单流详情优化
2021-09-15 19:34:52 +08:00
feng626
b9bdf35bb9 perf: 工单流详情优化 2021-09-15 19:32:28 +08:00
fit2bot
b9b6bccb7f perf: 优化路由 (#1045)
* perf: 优化路由

* perf: 优化提示

* oerf: ...

Co-authored-by: ibuler <ibuler@qq.com>
2021-09-15 18:56:09 +08:00
xinwen
f2bbe4841a feat: 用户详情页面显示 手机号,钉钉,企业微信,飞书 2021-09-15 18:26:18 +08:00
Michael Bai
d920eeda7a fix: 修改创建/更新系统用户标题文案 2021-09-15 18:05:04 +08:00
ibuler
7361acae6a perf: 优化弹窗显示 2021-09-15 18:04:39 +08:00
xinwen
a56799ca22 fix: 用户不能重置自己的 mfa 2021-09-15 17:28:53 +08:00
Michael Bai
88ddd86154 fix: 修改录像水印 2021-09-15 17:28:07 +08:00
feng626
d9532d5a93 Merge pull request #1040 from jumpserver/pr@dev@ticket_perf
perf: 工单详情样式优化
2021-09-15 14:07:18 +08:00
feng626
02b9e83e3d perf: 工单详情样式优化 2021-09-15 14:03:35 +08:00
feng626
a29afbbeea Merge pull request #1039 from jumpserver/pr@dev@ticket_bug
perf: 工单优化
2021-09-15 11:19:02 +08:00
feng626
0f4f4a2ca7 perf: 工单优化 2021-09-15 11:18:26 +08:00
feng626
a23cd151ae Merge pull request #1037 from jumpserver/pr@dev@ticket_flow_perm
fix: 工单流程权限
2021-09-14 22:26:23 +08:00
feng626
5f3855d8c1 fix: 工单流程权限 2021-09-14 22:12:30 +08:00
ibuler
6ad44e2830 perf: 修复路由问题 2021-09-14 18:54:32 +08:00
ibuler
51446c0c9a perf: 添加会话翻译 2021-09-14 17:43:34 +08:00
feng626
e3a493a6c5 fix: 不同组织资产可读 2021-09-14 17:42:06 +08:00
Michael Bai
9dfca98828 fix: 删除 PERIOD_TASK_ENABLED 配置 2021-09-14 17:41:34 +08:00
Michael Bai
599a1bb705 fix: 修复CAS配置RENAME_ATTR未加载的问题 2021-09-14 16:42:59 +08:00
ibuler
52e4a6d6ed perf: remove debug 2021-09-14 16:41:57 +08:00
ibuler
4b5ac9aaa9 perf: 优化资产列表,拆分大组件 2021-09-14 16:41:57 +08:00
feng626
3b2c4975b6 Merge pull request #1030 from jumpserver/pr@dev@ticket_perf
perf: 工单详情优化
2021-09-14 14:09:55 +08:00
feng626
c3cbafce6d perf: 工单详情优化 2021-09-14 14:00:53 +08:00
ibuler
b75f0be9e5 fix: 修复资产页面table不能拖拽 2021-09-14 11:02:09 +08:00
Jiangjie.Bai
8df0f05ee5 Merge pull request #1028 from jumpserver/dev
v2.14.0 rc2
2021-09-13 21:28:12 +08:00
Michael Bai
fa7a78523f fix: i18n 2021-09-13 20:44:30 +08:00
ibuler
11e803be19 perf: 优化短信通用 2021-09-13 20:40:18 +08:00
Michael Bai
060781443f fix: 授权规则支持通过 from_ticket 工单过滤 2021-09-13 20:25:11 +08:00
fit2bot
555c8fd2d6 perf: 优化短信设置 (#1024)
* perf: 优化短信设置

* perf: 优化分宜

Co-authored-by: ibuler <ibuler@qq.com>
2021-09-13 19:44:14 +08:00
feng626
2c84e4ffa6 fix: 修复工单bug 2021-09-13 14:18:58 +08:00
Michael Bai
16dafaaf42 perf: 取消API Token的配置 2021-09-13 14:03:16 +08:00
xinwen
819438a2e8 fix: 用户消息订阅暂不支持短信 2021-09-13 13:25:20 +08:00
fit2bot
61e8467849 perf: 优化更新auth (#1018)
* perf: 优化更新auth

* perf: 优化提交

Co-authored-by: ibuler <ibuler@qq.com>
2021-09-10 16:46:51 +08:00
feng626
491f3d3dde feat: 添加登陆复合 2021-09-10 16:23:02 +08:00
ibuler
4588965a8d perf: 优化站内信点击的问题 2021-09-10 13:59:19 +08:00
feng626
48d07b4d6d perf: 工单流优化 2021-09-10 13:51:44 +08:00
feng626
45c74ba470 perf: sms样式修改 2021-09-10 13:51:08 +08:00
feng626
2e2c8fe086 feat: 短信迁移 2021-09-10 13:51:08 +08:00
Michael Bai
459843669b perf: 修改授权规则Actions上传下载复制粘贴选择时,连接不可取消 2021-09-10 11:28:36 +08:00
fit2bot
f839e1fc0d perf: 去掉debug (#1013)
* perf: 去掉debug

* perf: 修改 debug

* perf: 修改msg

Co-authored-by: ibuler <ibuler@qq.com>
2021-09-10 10:21:03 +08:00
Jiangjie.Bai
399b381aa9 Merge pull request #1014 from jumpserver/dev
v2.14.0 rc1
2021-09-09 21:19:35 +08:00
Eric_Lee
7670c277aa Merge pull request #1012 from jumpserver/revert-1004-dependabot/npm_and_yarn/axios-0.21.2
Revert "chore(deps): bump axios from 0.21.1 to 0.21.2"
2021-09-09 21:03:52 +08:00
老广
cbc78de7c4 Revert "chore(deps): bump axios from 0.21.1 to 0.21.2"
This reverts commit e8f013a5be.
2021-09-09 21:02:36 +08:00
ibuler
e64cd82dba perf: 修改setting 2021-09-09 20:45:21 +08:00
ibuler
f154a252d3 perf: 修改配置 2021-09-09 20:01:06 +08:00
Michael Bai
984483c470 perf: 用户个人信息页面添加开启消息接受方式 2021-09-09 19:46:31 +08:00
dependabot[bot]
e8f013a5be chore(deps): bump axios from 0.21.1 to 0.21.2
Bumps [axios](https://github.com/axios/axios) from 0.21.1 to 0.21.2.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/master/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/v0.21.1...v0.21.2)

---
updated-dependencies:
- dependency-name: axios
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-09-09 19:41:02 +08:00
ibuler
e1850d758f perf: 提供xrdp开启禁用 2021-09-09 19:39:28 +08:00
feng626
60e5c994f4 feat: 短信服务配置 2021-09-09 18:53:32 +08:00
xinwen
1adf138175 fix: 用户个人页面,修改个人部分信息使用 patch 2021-09-09 16:16:05 +08:00
fit2bot
4e5ed82ec7 perf: 优化导入导出顺序 (#999)
Co-authored-by: ibuler <ibuler@qq.com>
Co-authored-by: Jiangjie.Bai <32935519+BaiJiangJie@users.noreply.github.com>
2021-09-09 16:15:21 +08:00
fit2cloud-jiangweidong
52e2d58567 feat: 改密计划支持数据库改密 (#991)
* feat: 改密计划支持数据库改密

* perf: 修改应用账号

* merge: dev

* perf: 暂存修改数据库

* fix: bug

* fix: bug

* perf: 优化系统用户详情,增加应用列表

* perf: 修改clone

* fix: 修复更新系统用户bug

Co-authored-by: ibuler <ibuler@qq.com>
Co-authored-by: feng626 <1304903146@qq.com>
2021-09-09 16:04:40 +08:00
fit2bot
411fca98b0 feat: 页面配置serializer版 (#1000)
* feat: 页面配置serializer版

* perf: 优化配置

* perf: 优化匹配值

* perf: 优化设置

* perf: 优化配置

* perf: 修改翻译

* perf: 修改secure

Co-authored-by: feng626 <1304903146@qq.com>
Co-authored-by: ibuler <ibuler@qq.com>
2021-09-09 14:03:47 +08:00
Bai
e0c3243986 feat: 云管中心添加GCP 2021-09-07 18:26:48 +08:00
Jiangjie.Bai
e4240d7a8f feat: 会话详情添加活动页面 (#1003)
* fix: 添加配置 SECURITY_SESSION_SHARE

* fix: 添加会话活动页面

* fix: 添加会话活动页面

* fix: 添加会话活动页面

* fix: 添加会话活动页面
2021-09-07 18:16:38 +08:00
feng626
db4b09603b perf: disabled 2021-09-06 18:16:51 +08:00
Eric
a88499d10c fix: 修复普通用户页面 动作 问题 2021-08-27 15:17:31 +08:00
feng626
0b2cfb88a2 Merge pull request #993 from jumpserver/pr@dev@ticket_flow_bug
perf: 优化
2021-08-27 10:14:17 +08:00
feng626
13443a7137 perf: 优化 2021-08-26 18:31:52 +08:00
fit2bot
5aa3226132 feat: 审批模版管理 (#964)
Co-authored-by: feng626 <1304903146@qq.com>
Co-authored-by: Jiangjie.Bai <32935519+BaiJiangJie@users.noreply.github.com>
2021-08-25 19:01:45 +08:00
fit2bot
ea9316f0a0 feat: 工单管理 (#963)
* feat: 工单多级审批

* fix: action bug

Co-authored-by: feng626 <1304903146@qq.com>
2021-08-25 19:00:21 +08:00
ibuler
d05d3f3fa3 perf: 优化创建简单 2021-08-20 14:22:09 +08:00
Bai
5da000c8a1 fix: 修复AssetSelect弹窗的protocols显示 2021-08-20 14:14:36 +08:00
913 changed files with 50584 additions and 23446 deletions

View File

@@ -1,3 +1,4 @@
lina
dist
node_modules
.git

View File

@@ -4,11 +4,17 @@ root = true
[*]
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
[*.{js,jsx,ts,tsx,vue}]
indent_size = 2
[*.py]
indent_size = 4
[*.md]
insert_final_newline = false
trim_trailing_whitespace = false

View File

@@ -1,8 +1,6 @@
# 全局环境变量 请勿随意改动
ENV = 'development'
# base api
VUE_APP_BASE_API = ''
VUE_APP_PUBLIC_PATH = '/ui/'
@@ -23,5 +21,5 @@ VUE_APP_LOGOUT_PATH = '/core/auth/logout/'
# Dev server for core proxy
VUE_APP_CORE_HOST = 'http://localhost:8080'
VUE_APP_CORE_WS = 'ws://localhost:8070'
VUE_APP_CORE_WS = 'ws://localhost:8080'
VUE_APP_ENV = 'development'

32
.github/workflows/jms-build-test.yml vendored Normal file
View File

@@ -0,0 +1,32 @@
name: "Run Build Test"
on:
push:
branches:
- pr@*
- repr@*
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: docker/setup-qemu-action@v2
- uses: docker/setup-buildx-action@v2
- uses: docker/build-push-action@v3
with:
context: .
push: false
tags: jumpserver/lina:test
file: Dockerfile
cache-from: type=gha
cache-to: type=gha,mode=max
- uses: LouisBrunner/checks-action@v1.5.0
if: always()
with:
token: ${{ secrets.GITHUB_TOKEN }}
name: Check Build
conclusion: ${{ job.status }}

View File

@@ -31,6 +31,9 @@ jobs:
config-name: release-config.yml
version: ${{ steps.get_version.outputs.TAG }}
tag: ${{ steps.get_version.outputs.TAG }}
- uses: actions/setup-node@v2
with:
node-version: '14.16'
build-and-release:
needs: create-realese

2
.gitignore vendored
View File

@@ -15,3 +15,5 @@ tests/**/coverage/
*.ntvs*
*.njsproj
*.sln
.env.development
.python-version

View File

@@ -1,23 +1,24 @@
FROM node:10 as stage-build
ARG VERSION
ENV VERSION=$VERSION
ARG NPM_REGISTRY="https://registry.npm.taobao.org"
ENV NPM_REGISTY=$NPM_REGISTRY
ARG SASS_BINARY_SITE="https://npm.taobao.org/mirrors/node-sass"
ENV SASS_BINARY_SITE=$SASS_BINARY_SITE
FROM node:14.16 as stage-build
ARG TARGETARCH
ARG NPM_REGISTRY="https://registry.npmmirror.com"
WORKDIR /data
RUN npm config set sass_binary_site=${SASS_BINARY_SITE}
RUN npm config set registry ${NPM_REGISTRY}
RUN yarn config set registry ${NPM_REGISTRY}
COPY package.json yarn.lock /data/
RUN yarn install
RUN npm rebuild node-sass
RUN set -ex \
&& npm config set registry ${NPM_REGISTRY} \
&& yarn config set registry ${NPM_REGISTRY}
ADD package.json yarn.lock /data
RUN --mount=type=cache,target=/usr/local/share/.cache/yarn,sharing=locked,id=lina \
yarn install
ARG VERSION
ENV VERSION=$VERSION
ADD . /data
RUN cd utils && bash -xieu build.sh build
RUN --mount=type=cache,target=/usr/local/share/.cache/yarn,sharing=locked,id=lina \
sed -i "s@version-dev@${VERSION}@g" src/layout/components/NavHeader/About.vue \
&& yarn build
FROM nginx:alpine
COPY --from=stage-build /data/release/lina /opt/lina
COPY --from=stage-build /data/lina /opt/lina
COPY nginx.conf /etc/nginx/conf.d/default.conf

837
LICENSE
View File

@@ -1,281 +1,622 @@
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
Version 3, 29 June 2007
Copyright (C) 1989, 1991 Free Software Foundation, Inc., <http://fsf.org/>
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
License is intended to guarantee your freedom to share and change free
software--to make sure the software is free for all its users. This
General Public License applies to most of the Free Software
Foundation's software and to any other program whose authors commit to
using it. (Some other Free Software Foundation software is covered by
the GNU Lesser General Public License instead.) You can apply it to
The GNU General Public License is a free, copyleft license for
software and other kinds of works.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
the GNU General Public License is intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users. We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors. You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
this service if you wish), that you receive source code or can get it
if you want it, that you can change the software or use pieces of it
in new free programs; and that you know you can do these things.
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.
To protect your rights, we need to make restrictions that forbid
anyone to deny you these rights or to ask you to surrender the rights.
These restrictions translate to certain responsibilities for you if you
distribute copies of the software, or if you modify it.
To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights. Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must give the recipients all the rights that
you have. You must make sure that they, too, receive or can get the
source code. And you must show them these terms so they know their
rights.
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received. You must make sure that they, too, receive
or can get the source code. And you must show them these terms so they
know their rights.
We protect your rights with two steps: (1) copyright the software, and
(2) offer you this license which gives you legal permission to copy,
distribute and/or modify the software.
Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.
Also, for each author's protection and ours, we want to make certain
that everyone understands that there is no warranty for this free
software. If the software is modified by someone else and passed on, we
want its recipients to know that what they have is not the original, so
that any problems introduced by others will not reflect on the original
authors' reputations.
For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software. For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.
Finally, any free program is threatened constantly by software
patents. We wish to avoid the danger that redistributors of a free
program will individually obtain patent licenses, in effect making the
program proprietary. To prevent this, we have made it clear that any
patent must be licensed for everyone's free use or not licensed at all.
Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so. This is fundamentally incompatible with the aim of
protecting users' freedom to change the software. The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable. Therefore, we
have designed this version of the GPL to prohibit the practice for those
products. If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.
Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary. To prevent this, the GPL assures that
patents cannot be used to render the program non-free.
The precise terms and conditions for copying, distribution and
modification follow.
GNU GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
TERMS AND CONDITIONS
0. This License applies to any program or other work which contains
a notice placed by the copyright holder saying it may be distributed
under the terms of this General Public License. The "Program", below,
refers to any such program or work, and a "work based on the Program"
means either the Program or any derivative work under copyright law:
that is to say, a work containing the Program or a portion of it,
either verbatim or with modifications and/or translated into another
language. (Hereinafter, translation is included without limitation in
the term "modification".) Each licensee is addressed as "you".
0. Definitions.
Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope. The act of
running the Program is not restricted, and the output from the Program
is covered only if its contents constitute a work based on the
Program (independent of having been made by running the Program).
Whether that is true depends on what the Program does.
"This License" refers to version 3 of the GNU General Public License.
1. You may copy and distribute verbatim copies of the Program's
source code as you receive it, in any medium, provided that you
conspicuously and appropriately publish on each copy an appropriate
copyright notice and disclaimer of warranty; keep intact all the
notices that refer to this License and to the absence of any warranty;
and give any other recipients of the Program a copy of this License
along with the Program.
"Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.
You may charge a fee for the physical act of transferring a copy, and
you may at your option offer warranty protection in exchange for a fee.
"The Program" refers to any copyrightable work licensed under this
License. Each licensee is addressed as "you". "Licensees" and
"recipients" may be individuals or organizations.
2. You may modify your copy or copies of the Program or any portion
of it, thus forming a work based on the Program, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:
To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy. The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.
a) You must cause the modified files to carry prominent notices
stating that you changed the files and the date of any change.
A "covered work" means either the unmodified Program or a work based
on the Program.
b) You must cause any work that you distribute or publish, that in
whole or in part contains or is derived from the Program or any
part thereof, to be licensed as a whole at no charge to all third
parties under the terms of this License.
To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy. Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.
c) If the modified program normally reads commands interactively
when run, you must cause it, when started running for such
interactive use in the most ordinary way, to print or display an
announcement including an appropriate copyright notice and a
notice that there is no warranty (or else, saying that you provide
a warranty) and that users may redistribute the program under
these conditions, and telling the user how to view a copy of this
License. (Exception: if the Program itself is interactive but
does not normally print such an announcement, your work based on
the Program is not required to print an announcement.)
To "convey" a work means any kind of propagation that enables other
parties to make or receive copies. Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.
These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Program,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
sections when you distribute them as separate works. But when you
distribute the same sections as part of a whole which is a work based
on the Program, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the
entire whole, and thus to each and every part regardless of who wrote it.
An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License. If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.
Thus, it is not the intent of this section to claim rights or contest
your rights to work written entirely by you; rather, the intent is to
exercise the right to control the distribution of derivative or
collective works based on the Program.
1. Source Code.
In addition, mere aggregation of another work not based on the Program
with the Program (or with a work based on the Program) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.
The "source code" for a work means the preferred form of the work
for making modifications to it. "Object code" means any non-source
form of a work.
3. You may copy and distribute the Program (or a work based on it,
under Section 2) in object code or executable form under the terms of
Sections 1 and 2 above provided that you also do one of the following:
A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.
a) Accompany it with the complete corresponding machine-readable
source code, which must be distributed under the terms of Sections
1 and 2 above on a medium customarily used for software interchange; or,
The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form. A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.
b) Accompany it with a written offer, valid for at least three
years, to give any third party, for a charge no more than your
cost of physically performing source distribution, a complete
machine-readable copy of the corresponding source code, to be
distributed under the terms of Sections 1 and 2 above on a medium
customarily used for software interchange; or,
The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities. However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work. For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.
c) Accompany it with the information you received as to the offer
to distribute corresponding source code. (This alternative is
allowed only for noncommercial distribution and only if you
received the program in object code or executable form with such
an offer, in accord with Subsection b above.)
The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.
The source code for a work means the preferred form of the work for
making modifications to it. For an executable work, complete source
code means all the source code for all modules it contains, plus any
associated interface definition files, plus the scripts used to
control compilation and installation of the executable. However, as a
special exception, the source code distributed need not include
anything that is normally distributed (in either source or binary
form) with the major components (compiler, kernel, and so on) of the
operating system on which the executable runs, unless that component
itself accompanies the executable.
The Corresponding Source for a work in source code form is that
same work.
If distribution of executable or object code is made by offering
access to copy from a designated place, then offering equivalent
access to copy the source code from the same place counts as
distribution of the source code, even though third parties are not
compelled to copy the source along with the object code.
2. Basic Permissions.
4. You may not copy, modify, sublicense, or distribute the Program
except as expressly provided under this License. Any attempt
otherwise to copy, modify, sublicense or distribute the Program is
void, and will automatically terminate your rights under this License.
However, parties who have received copies, or rights, from you under
this License will not have their licenses terminated so long as such
parties remain in full compliance.
All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met. This License explicitly affirms your unlimited
permission to run the unmodified Program. The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work. This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.
5. You are not required to accept this License, since you have not
signed it. However, nothing else grants you permission to modify or
distribute the Program or its derivative works. These actions are
prohibited by law if you do not accept this License. Therefore, by
modifying or distributing the Program (or any work based on the
Program), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Program or works based on it.
You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force. You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright. Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.
6. Each time you redistribute the Program (or any work based on the
Program), the recipient automatically receives a license from the
original licensor to copy, distribute or modify the Program subject to
these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties to
Conveying under any other circumstances is permitted solely under
the conditions stated below. Sublicensing is not allowed; section 10
makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.
When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.
4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified
it, and giving a relevant date.
b) The work must carry prominent notices stating that it is
released under this License and any conditions added under section
7. This requirement modifies the requirement in section 4 to
"keep intact all notices".
c) You must license the entire work, as a whole, under this
License to anyone who comes into possession of a copy. This
License will therefore apply, along with any applicable section 7
additional terms, to the whole of the work, and all its parts,
regardless of how they are packaged. This License gives no
permission to license the work in any other way, but it does not
invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.
A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit. Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:
a) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by the
Corresponding Source fixed on a durable physical medium
customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by a
written offer, valid for at least three years and valid for as
long as you offer spare parts or customer support for that product
model, to give anyone who possesses the object code either (1) a
copy of the Corresponding Source for all the software in the
product that is covered by this License, on a durable physical
medium customarily used for software interchange, for a price no
more than your reasonable cost of physically performing this
conveying of source, or (2) access to copy the
Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the
written offer to provide the Corresponding Source. This
alternative is allowed only occasionally and noncommercially, and
only if you received the object code with such an offer, in accord
with subsection 6b.
d) Convey the object code by offering access from a designated
place (gratis or for a charge), and offer equivalent access to the
Corresponding Source in the same way through the same place at no
further charge. You need not require recipients to copy the
Corresponding Source along with the object code. If the place to
copy the object code is a network server, the Corresponding Source
may be on a different server (operated by you or a third party)
that supports equivalent copying facilities, provided you maintain
clear directions next to the object code saying where to find the
Corresponding Source. Regardless of what server hosts the
Corresponding Source, you remain obligated to ensure that it is
available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided
you inform other peers where the object code and Corresponding
Source of the work are being offered to the general public at no
charge under subsection 6d.
A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.
A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling. In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage. For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product. A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.
"Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source. The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.
If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information. But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).
The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed. Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.
7. Additional Terms.
"Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law. If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it. (Additional permissions may be written to require their own
removal in certain cases when you modify the work.) You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the
terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or
author attributions in that material or in the Appropriate Legal
Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or
requiring that modified versions of such material be marked in
reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or
authors of the material; or
e) Declining to grant rights under trademark law for use of some
trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that
material by anyone who conveys the material (or modified versions of
it) with contractual assumptions of liability to the recipient, for
any liability that these contractual assumptions directly impose on
those licensors and authors.
All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10. If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term. If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expressly
provided under this License. Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).
However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.
Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License. If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or
run a copy of the Program. Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance. However,
nothing other than this License grants you permission to propagate or
modify any covered work. These actions infringe copyright if you do
not accept this License. Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License. You are not responsible
for enforcing compliance by third parties with this License.
An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations. If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License. For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.
11. Patents.
A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based. The
work thus licensed is called the contributor's "contributor version".
A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version. For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.
7. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.
In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement). To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.
If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients. "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.
A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License. You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot
distribute so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you
may not distribute the Program at all. For example, if a patent
license would not permit royalty-free redistribution of the Program by
all those who receive copies directly or indirectly through you, then
the only way you could satisfy both it and this License would be to
refrain entirely from distribution of the Program.
excuse you from the conditions of this License. If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all. For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.
If any portion of this section is held invalid or unenforceable under
any particular circumstance, the balance of the section is intended to
apply and the section as a whole is intended to apply in other
circumstances.
13. Use with the GNU Affero General Public License.
It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system, which is
implemented by public license practices. Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.
Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU Affero General Public License into a single
combined work, and to convey the resulting work. The terms of this
License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.
This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.
14. Revised Versions of this License.
8. If the distribution and/or use of the Program is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Program under this License
may add an explicit geographical distribution limitation excluding
those countries, so that distribution is permitted only in or among
countries not thus excluded. In such case, this License incorporates
the limitation as if written in the body of this License.
9. The Free Software Foundation may publish revised and/or new versions
of the General Public License from time to time. Such new versions will
The Free Software Foundation may publish revised and/or new versions of
the GNU General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the Program
specifies a version number of this License which applies to it and "any
later version", you have the option of following the terms and conditions
either of that version or of any later version published by the Free
Software Foundation. If the Program does not specify a version number of
this License, you may choose any version ever published by the Free Software
Foundation.
Each version is given a distinguishing version number. If the
Program specifies that a certain numbered version of the GNU General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation. If the Program does not specify a version number of the
GNU General Public License, you may choose any version ever published
by the Free Software Foundation.
10. If you wish to incorporate parts of the Program into other free
programs whose distribution conditions are different, write to the author
to ask for permission. For software which is copyrighted by the Free
Software Foundation, write to the Free Software Foundation; we sometimes
make exceptions for this. Our decision will be guided by the two goals
of preserving the free status of all derivatives of our free software and
of promoting the sharing and reuse of software generally.
If the Program specifies that a proxy can decide which future
versions of the GNU General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.
NO WARRANTY
Later license versions may give you additional or different
permissions. However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
REPAIR OR CORRECTION.
15. Disclaimer of Warranty.
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.
17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS
@@ -287,15 +628,15 @@ free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
convey the exclusion of warranty; and each file should have at least
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
{description}
Copyright (C) {year} {fullname}
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program is free software; you can redistribute it and/or modify
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
@@ -303,37 +644,31 @@ the "copyright" line and a pointer to where the full notice is found.
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail.
If the program is interactive, make it output a short notice like this
when it starts in an interactive mode:
If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:
Gnomovision version 69, Copyright (C) year name of author
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
<program> Copyright (C) <year> <name of author>
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, the commands you use may
be called something other than `show w' and `show c'; they could even be
mouse-clicks or menu items--whatever suits your program.
parts of the General Public License. Of course, your program's commands
might be different; for a GUI interface, you would use an "about box".
You should also get your employer (if you work as a programmer) or your
school, if any, to sign a "copyright disclaimer" for the program, if
necessary. Here is a sample; alter the names:
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
<https://www.gnu.org/licenses/>.
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
`Gnomovision' (which makes passes at compilers) written by James Hacker.
{signature of Ty Coon}, 1 April 1989
Ty Coon, President of Vice
This General Public License does not permit incorporating your program into
proprietary programs. If your program is a subroutine library, you may
consider it more useful to permit linking proprietary applications with the
library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License.
The GNU General Public License does not permit incorporating your program
into proprietary programs. If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read
<https://www.gnu.org/licenses/why-not-lgpl.html>.

View File

@@ -19,7 +19,7 @@ VUE_APP_CORE_HOST = 'JUMPSERVER_APIHOST'
$ yarn serve
4. 构建
$ yarn build
$ yarn build:prod
```
## 生产中部署
@@ -46,12 +46,4 @@ server {
## License & Copyright
Copyright (c) 2014-2021 飞致云 FIT2CLOUD, All rights reserved.
Licensed under The GNU General Public License version 2 (GPLv2) (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
https://www.gnu.org/licenses/gpl-2.0.html
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Be consistent with [jumpserver](https://github.com/jumpserver/jumpserver)

View File

@@ -24,9 +24,9 @@ if (process.env.npm_config_preview || rawArgv.includes('--preview')) {
)
app.listen(port, function () {
console.log(chalk.green(`> Preview at http://localhost:${port}${publicPath}`))
// debug(chalk.green(`> Preview at http://localhost:${port}${publicPath}`))
if (report) {
console.log(chalk.green(`> Report at http://localhost:${port}${publicPath}report.html`))
// debug(chalk.green(`> Report at http://localhost:${port}${publicPath}report.html`))
}
})

View File

@@ -56,7 +56,7 @@ const responseFake = (url, type, respond) => {
url: new RegExp(`${process.env.VUE_APP_BASE_API}${url}`),
type: type || 'get',
response(req, res) {
console.log('request invoke:' + req.path)
// debug('request invoke:' + req.path)
res.json(Mock.mock(respond instanceof Function ? respond(req, res) : respond))
}
}

View File

@@ -59,9 +59,9 @@ module.exports = app => {
mockRoutesLength = mockRoutes.mockRoutesLength
mockStartIndex = mockRoutes.mockStartIndex
console.log(chalk.magentaBright(`\n > Mock Server hot reload success! changed ${path}`))
// debug(chalk.magentaBright(`\n > Mock Server hot reload success! changed ${path}`))
} catch (error) {
console.log(chalk.redBright(error))
// debug(chalk.redBright(error))
}
}
})

View File

@@ -1,4 +1,3 @@
const tokens = {
admin: {
token: 'admin-token'
@@ -46,7 +45,6 @@ export default [
}
}
},
// get user info
{
url: '/vue-admin-template/user/info\.*',

View File

@@ -7,34 +7,42 @@
"scripts": {
"dev": "vue-cli-service serve",
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
"build:prod": "vue-cli-service build",
"build:stage": "vue-cli-service build --mode staging",
"preview": "node build/index.js --preview",
"lint": "eslint --ext .js,.vue src",
"fix": "eslint --ext .js,.vue --fix src",
"test:unit": "jest --clearCache && vue-cli-service test:unit",
"test:ci": "npm run lint && npm run test:unit",
"svgo": "svgo -f src/icons/svg --config=src/icas/svgo.yml",
"vue-i18n-extract": "vue-i18n-extract",
"vue-i18n-report": "vue-i18n-extract report -v './src/**/*.?(js|vue)' -l './src/i18n/langs/**/*.json'",
"vue-i18n-report-json": "vue-i18n-extract report -v './src/**/*.?(js|vue)' -l './src/i18n/langs/**/*.json' -o /tmp/abc.json",
"vue-i18n-report-add-miss": "vue-i18n-extract report -v './src/**/*.?(js|vue)' -l './src/i18n/langs/**/*.json' -a"
"vue-i18n-report-add-miss": "vue-i18n-extract report -v './src/**/*.?(js|vue)' -l './src/i18n/langs/**/*.json' -a",
"diff-i18n": "python ./src/i18n/langs/i18n-util.py diff en ja",
"apply-i18n": "python ./src/i18n/langs/i18n-util.py apply en ja"
},
"dependencies": {
"@babel/plugin-proposal-optional-chaining": "^7.13.12",
"@ztree/ztree_v3": "3.5.44",
"axios": "0.21.1",
"axios-retry": "^3.1.9",
"cron-parser": "^4.0.0",
"crypto-js": "^4.1.1",
"css-color-function": "^1.3.3",
"deepmerge": "^4.2.2",
"echarts": "^4.7.0",
"element-ui": "2.13.2",
"eslint-plugin-html": "^6.0.0",
"install": "^0.13.0",
"jquery": "^3.5.0",
"jquery": "^3.6.1",
"js-cookie": "2.2.0",
"jsencrypt": "^3.2.1",
"krry-transfer": "^1.7.3",
"less": "^3.10.3",
"less-loader": "^5.0.0",
"lodash": "^4.17.15",
"lodash": "^4.17.21",
"lodash.clonedeep": "^4.5.0",
"lodash.frompairs": "^4.0.1",
"lodash.get": "^4.4.2",
@@ -46,23 +54,26 @@
"lodash.set": "^4.3.2",
"lodash.topairs": "^4.3.0",
"lodash.values": "^4.3.0",
"moment": "^2.29.1",
"moment-parseformat": "^3.0.0",
"moment": "^2.29.4",
"moment-parseformat": "^4.0.0",
"normalize.css": "7.0.0",
"npm": "^7.8.0",
"nprogress": "0.2.0",
"path-to-regexp": "2.4.0",
"vue": "2.6.10",
"vue-codemirror-lite": "^1.0.4",
"vue-codemirror": "4.0.6",
"vue-cookie": "^1.1.4",
"vue-echarts": "^5.0.0-beta.0",
"vue-i18n": "^8.15.5",
"vue-json-editor": "^1.4.3",
"vue-markdown": "^2.2.4",
"vue-moment": "^4.1.0",
"vue-password-strength-meter": "^1.7.2",
"vue-router": "3.0.6",
"vue-select": "^3.9.5",
"vuejs-logger": "^1.5.4",
"vuex": "3.1.0",
"xss": "^1.0.14",
"xterm": "^4.5.0",
"xterm-addon-fit": "^0.3.0",
"zxcvbn": "^4.4.2"
@@ -86,13 +97,14 @@
"eslint": "^5.15.3",
"eslint-plugin-vue": "5.2.2",
"eslint-plugin-vue-i18n": "^0.3.0",
"github-markdown-css": "^5.1.0",
"html-webpack-plugin": "3.2.0",
"husky": "^4.2.3",
"less-loader": "^5.0.0",
"lint-staged": "^10.1.2",
"mockjs": "1.0.1-beta3",
"runjs": "^4.3.2",
"sass": "^1.26.10",
"sass": "~1.32.6",
"sass-loader": "^7.1.0",
"script-ext-html-webpack-plugin": "2.1.3",
"script-loader": "0.7.2",

View File

@@ -9,6 +9,7 @@
<meta http-equiv="Cache" content="no-cache">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<title><%= webpackConfig.name %></title>
<link rel="stylesheet" href="<%= BASE_URL %>theme/element-ui.css">
</head>
<body>
<noscript>
@@ -16,9 +17,15 @@
</noscript>
<script>
window.onload = function() {
const baseUrl = "/ui/"
if (location.pathname === '/' && baseUrl !== '/') {
location.pathname = baseUrl
if (location.pathname === '/') {
location.pathname = '/ui/'
}
const pathname = window.location.pathname
if (pathname.startsWith('/core')) {
return
}
if(pathname.indexOf('/ui') === -1) {
window.location.href = window.location.origin + '/ui/#' + pathname
}
}
</script>

23
public/theme/README.md Normal file
View File

@@ -0,0 +1,23 @@
# 主题颜色
```
alpha-1: "rgba(64, 158, 255, 0.1)"
alpha-2: "rgba(64, 158, 255, 0.2)"
alpha-3: "rgba(64, 158, 255, 0.3)"
alpha-4: "rgba(64, 158, 255, 0.4)"
alpha-5: "rgba(64, 158, 255, 0.5)"
alpha-6: "rgba(64, 158, 255, 0.6)"
alpha-7: "rgba(64, 158, 255, 0.7)"
alpha-8: "rgba(64, 158, 255, 0.8)"
alpha-9: "rgba(64, 158, 255, 0.9)"
light-1: "#53a8ff"
light-2: "#66b1ff"
light-3: "#79bbff"
light-4: "#8cc5ff"
light-5: "#a0cfff"
light-6: "#b3d8ff"
light-7: "#c6e2ff"
light-8: "#d9ecff"
light-9: "#ecf5ff"
primary: "#409EFF"
```
primary是初始主题颜色其他颜色均属于primary的系列颜色

View File

@@ -1,63 +1,84 @@
// cover some element-ui styles
/* 这里只写element-variables里面改不动的、且和主题系列颜色相关的样式 */
/* 主题相关看该文件夹下的README.md */
/* info type special treatment */
.el-button--info {
background-color: info;
border-color: info;
}
.el-button--text {
padding: 5px
}
.el-button--text:hover {
background-color: rgba(0, 0, 0, .05);
}
.el-button--success {
background-color: success;
border-color: success;
}
.el-alert--info.is-light {
background-color: light-9;
color: light-2;
border: 1px solid;
}
.el-alert--info .el-alert__description {
color: light-2;
}
.el-pagination.is-background .el-pager li:not(.disabled):hover {
color: white;
background-color: primary;
}
.el-pagination.is-background .btn-next,
.el-pagination.is-background .btn-prev,
.el-pagination.is-background .el-pager li {
margin: 0 5px;
background-color: white;
color: #606266;
min-width: 28px;
border-radius: 2px;
border: 1px solid #DCDFE6;
font-size: 12px;
line-height: 26px;
font-weight: 400;
}
.el-breadcrumb__inner,
.el-breadcrumb__inner a {
font-weight: 400 !important;
}
$--color-primary: #1ab394;
$--color-success: #1c84c6;
$--color-info: #23c6c8;
$--color-warning: #f8ac59;
$--color-danger: #ed5565;
$--color-text-primary: #303133;
/// color|1|Font Color|2
$--color-text-regular: #606266;
.el-upload {
input[type="file"] {
display: none !important;
}
.el-upload input[type="file"] {
display: none !important;
}
.el-upload__input {
display: none;
}
// to fixed https://github.com/ElemeFE/element/issues/2461
.el-dialog {
transform: none;
left: 0;
position: relative;
margin: 0 auto;
}
// refine element ui upload
.upload-container {
.el-upload {
.upload-container .el-upload {
width: 100%;
.el-upload-dragger {
width: 100%;
height: 200px;
}
}
}
// dropdown
.el-dropdown-menu {
a {
display: block
}
.upload-container .el-upload .el-upload-dragger {
width: 100%;
height: 200px;
}
.el-dropdown-menu a {
display: block
}
.el-table th > .cell {
color: rgb(104, 106, 108);
}
// to fix el-date-picker css style
.el-range-separator {
box-sizing: content-box;
}
@@ -108,22 +129,6 @@ td .el-button.el-button--mini {
border-left-color: rgb(220, 223, 230);
}
.el-alert--success.is-light {
border: #bce8f1 solid 1px;
}
.el-alert--info.is-light {
border: #bce8f1 solid 1px;
}
.el-alert--warning.is-light {
border: #faebcc solid 1px;
}
.el-alert--error.is-light {
border: #f1dfe2 solid 1px;
}
.el-alert__content {
line-height: 1.5;
}
@@ -137,32 +142,32 @@ td .el-button.el-button--mini {
}
.el-card.primary > .el-card__header {
background-color: $--color-primary;
border-color: $--color-primary;
background-color: primary;
border-color: primary;
color: white;
}
.el-card.success > .el-card__header {
background-color: $--color-success;
border-color: $--color-success;
background-color: success;
border-color: success;
color: #ffffff;
}
.el-card.info > .el-card__header {
background-color: $--color-info;
border-color: $--color-info;
background-color: info;
border-color: info;
color: #ffffff;
}
.el-card.warning > .el-card__header {
background-color: $--color-warning;
border-color: $--color-warning;
background-color: warning;
border-color: warning;
color: #ffffff;
}
.el-card.danger > .el-card__header {
background-color: $--color-danger;
border-color: $--color-danger;
background-color: danger;
border-color: danger;
color: #ffffff;
}
@@ -189,57 +194,42 @@ td .el-button.el-button--mini {
line-height: 34px;
}
.el-select-dropdown__item.selected {
font-weight: 400;
color: $--color-text-primary;
background-color: #ddd;
}
.el-select-dropdown.is-multiple .el-select-dropdown__item.selected {
color: #606266;
background-color: #ddd;
font-weight: 400;
}
//.el-select-dropdown.is-multiple .el-select-dropdown__item.selected {
// color: #606266;
// background-color: #ddd;
// font-weight: 400;
//}
.el-select-dropdown__item.hover, .el-select-dropdown__item:hover {
background-color: $--color-primary;
.option-group .el-select-dropdown__item.hover, .option-group .el-select-dropdown__item.selected {
background-color: primary;
color: white;
}
.option-group:has(.hover) .el-select-dropdown__item.selected {
background-color: light-2;
}
.el-select-dropdown__item.is-disabled:hover{
color:#c0c4cc;
}
.el-select-dropdown.is-multiple .el-select-dropdown__item.selected::after {
color: $--color-primary;
color: primary;
}
.el-select-dropdown.is-multiple .el-select-dropdown__item.selected.hover {
color: white;
background-color: $--color-primary;
background-color: light-4;
}
.el-tag.el-tag--info {
background-color: #f1f1f1;
border-color: #e5e6e7;
color: #333333;
background-color: #f1f1f1!important;
border-color: #e5e6e7!important;
color: #333333!important;
}
.el-tag.el-tag--info .el-tag__close {
color: #333333;
color: #333333!important;
background-color: inherit;
}
.el-tag.el-tag--info.is-hit {
border-color: #e5e6e7;
border-color: #e5e6e7!important;
}
.el-tag.el-tag--info .el-tag__close:hover {
@@ -256,120 +246,71 @@ td .el-button.el-button--mini {
border-top-color: #676a6c;
}
.text-link {
color: info!important;
}
.text-link:hover {
color: info!important;
filter: opacity(65%)!important;
}
.text-danger {
color: $--color-danger;
color: danger;
}
.text-primary {
color: $--color-primary;
color: primary;
}
.text-info {
color: $--color-info;
color: info;
}
.text-warning {
color: $--color-warning;
color: warning;
}
.text-success {
color: $--color-success;
color: success;
}
.el-radio__input.is-checked+.el-radio__label {
color: inherit;
}
.el-radio__input.is-checked .el-radio__inner {
border-color: #409EFF;
background-color: #409EFF;
}
.el-checkbox__input.is-checked .el-checkbox__inner {
border-color: #409EFF;
background-color: #409EFF;
}
.el-radio__inner:hover {
border-color: #409EFF;
}
.el-textarea__inner {
border-radius: 0;
}
.el-checkbox__input.is-checked .el-checkbox__inner, .el-checkbox__input.is-indeterminate .el-checkbox__inner {
border-color: #409EFF;
background-color: #409EFF;
}
.el-checkbox__input.is-checked+.el-checkbox__label {
color: #606266;
}
.el-checkbox__inner:hover {
border-color: #409EFF;
}
.el-checkbox__input.is-focus .el-checkbox__inner {
border-color: #409EFF;
}
.el-pagination.is-background .btn-next, .el-pagination.is-background .btn-prev, .el-pagination.is-background .el-pager li {
margin: 0 5px;
background-color: white;
color: #606266;
min-width: 28px;
border-radius: 2px;
border: 1px solid #DCDFE6;
font-size: 12px;
line-height: 26px;
font-weight: 400;
}
.el-pagination.is-background .el-pager li:not(.disabled):hover {
color: white;
background-color: $--color-primary;
}
.el-pagination.is-background .number {
padding: 0;
}
.el-card.primary .el-card__header {
background-color: primary;
}
.el-card.success .el-card__header {
background-color: success;
}
.el-card.info .el-card__header {
background-color: info;
}
.el-card.warning .el-card__header {
background-color: warning;
}
.el-card.danger .el-card__header {
background-color: danger;
}
.el-message-box__headerbtn .el-message-box__close {
color: #606266;
}
.el-card.primary {
.el-card__header {
background-color: $--color-primary;
}
}
.el-card.success {
.el-card__header {
background-color: $--color-success;
}
}
.el-card.info {
.el-card__header {
background-color: $--color-info;
}
}
.el-card.warning {
.el-card__header {
background-color: $--color-warning;
}
}
.el-card.danger {
.el-card__header {
background-color: $--color-danger;
}
}
.el-tooltip__popper.is-light {
background: #FFF;
border: 1px solid #e7eaec;
@@ -388,22 +329,13 @@ td .el-button.el-button--mini {
border-bottom: 1px solid #e7e7e7 !important;
}
.el-table .cell, .el-table--border td:first-child .cell, .el-table--border th:first-child .cell {
.el-table .cell,
.el-table td:first-child .cell,
.el-table th:first-child .cell {
padding-left: 10px;
padding-right: 14px;
}
.el-tag--dark.el-tag--info {
background-color: #23c6c8;
border-color: #23c6c8;
color: #fff;
}
a {
color: #428bca !important;
text-decoration: none;
}
.el-tag--default.el-tag--dark {
background-color: #d1dade;
color: #5e5e5e;
@@ -414,7 +346,6 @@ a {
color: #676a6c;
}
.el-table__empty-block {
width: 100% !important;
}
@@ -430,31 +361,138 @@ a {
color: #000;
font-size: 22px;
font-weight: 800;
//color: red;
}
.el-tag--default.el-tag--dark {
background-color: #d1dade;
color: #5e5e5e;
border: none;
}
.el-card {
color: #676a6c;
}
.el-table__empty-block {
width: 100% !important;
}
.el-dialog__headerbtn .el-dialog__close {
font-size: 21px;
font-weight: 700;
color: #000;
text-shadow: 0 1px 0 #fff;
}
.el-dialog__headerbtn:focus .el-dialog__close, .el-dialog__headerbtn:hover .el-dialog__close {
color: #000;
font-size: 22px;
font-weight: 800;
}
.el-button--danger.is-plain {
color: $--color-danger;
color: danger;
background: #ffffff;
border-color: $--color-danger;
border-color: danger;
}
.el-button--danger.is-plain.is-disabled,
.el-button--danger.is-plain.is-disabled:active,
.el-button--danger.is-plain.is-disabled:focus,
.el-button--danger.is-plain.is-disabled:hover {
color: white;
}
.el-alert .el-alert__description {
margin: 1px 0 0;
}
.el-input-group__prepend div.el-select .el-input__inner {
color: $--color-text-primary;
}
.el-input-group__prepend div.el-select .el-input__inner:hover {
color: $--color-text-primary;
}
.el-table {
font-size: 13px;
}
.el-table-filter__list-item:hover {
color: $--color-text-primary;
.el-dialog {
position: absolute;
top: 50%;
left: 50%;
margin: 0 !important;
transform: translate(-50%, -50%);
max-height: calc(100% - 30px);
max-width: calc(100% - 30px);
display: flex;
flex-direction: column;
}
.el-dialog .el-dialog__body {
max-height: 90vh;
overflow: auto;
padding: 30px;
}
.el-dialog .el-dialog__body form {
padding-right: 20px;
}
.el-dialog .el-dialog__footer {
padding: 10px 30px 30px;
}
.el-cascader {
line-height: 34px;
}
.el-input__icon {
line-height: 34px;
}
.el-checkbox__input.is-checked+.el-checkbox__label {
color: #606266;
}
.el-select-dropdown__item.selected {
font-weight: 400;
color: white;
background-color: primary;
}
.el-input-group__prepend div.el-select .el-input__inner,
.el-input-group__prepend div.el-select .el-input__inner:hover {
color: #303133;
}
.el-input-group__append, .el-input-group__prepend {
color: primary
}
.el-input.is-disabled .el-input__inner {
color: $--color-text-primary;
cursor: not-allowed;
}
.el-step__description.is-finish {
color: #676a6c;
}
.el-alert {
border: solid 1px #e7eaec;
}
.el-alert.el-alert--success.is-light {
border-color: var(--color-success-light);
}
.el-alert.el-alert--primary.is-light {
border-color: var(--color-primary-light);
}
.el-alert.el-alert--info.is-light {
border-color: var(--color-info-light);
}
.el-alert.el-alert--warning.is-light {
border-color: var(--color-warning-light);
}
.el-alert.el-alert--error.is-light {
border-color: var(--color-danger-light);
}

File diff suppressed because one or more lines are too long

View File

@@ -9,3 +9,6 @@ export default {
name: 'App'
}
</script>
<style>
</style>

View File

@@ -40,3 +40,10 @@ export function getCommandFilterList(data) {
})
}
export function getCategoryTypes() {
return request({
url: '/api/v1/assets/categories/',
method: 'get'
})
}

View File

@@ -1,6 +1,13 @@
import request from '@/utils/request'
export function createSourceIdCache(ids) {
ids = ids.map(item => {
if (typeof item === 'object' && item.id) {
return item.id
} else {
return item
}
})
return request({
url: '/api/v1/common/resources/cache/',
method: 'post',

View File

@@ -1,8 +1,8 @@
import request from '@/utils/request'
export function postInterface(formData) {
export function updateInterface(formData) {
return request({
url: '/api/v1/xpack/interface/setting',
url: '/api/v1/xpack/interface/setting/',
method: 'put',
headers: {
'Content-Type': 'multipart/form-data'
@@ -12,15 +12,15 @@ export function postInterface(formData) {
}
export function getInterfaceInfo() {
return request({
url: '/api/v1/xpack/interface/setting',
url: '/api/v1/xpack/interface/setting/',
method: 'get'
})
}
export function restoreInterface() {
return request({
url: '/api/v1/xpack/interface/restore',
method: 'get'
url: '/api/v1/xpack/interface/setting/restore/',
method: 'put'
})
}
@@ -34,3 +34,10 @@ export function importLicense(formData) {
data: formData
})
}
export function previewThemes() {
return request({
url: `/api/v1/xpack/interface/setting/themes/`,
method: 'get'
})
}

View File

@@ -1,12 +1,5 @@
import request from '@/utils/request'
export function getTaskDetail(id) {
return request({
url: `/api/v1/ops/tasks/${id}/`,
method: 'get'
})
}
export function getAdhocDetail(id) {
return request({
url: `/api/v1/ops/adhoc/${id}/`,
@@ -20,3 +13,34 @@ export function getHistoryExecutionDetail(id) {
method: 'get'
})
}
export function getTaskDetail(id) {
return request({
url: `/api/v1/ops/job-execution/task-detail/${id}/`,
method: 'get'
})
}
export function getJob(id) {
return request({
url: `/api/v1/ops/jobs/${id}/`,
method: 'get'
})
}
export function uploadPlaybook(form) {
return request({
url: '/api/v1/ops/playbooks/',
method: 'post',
headers: { 'Content-Type': 'multipart/form-data' },
data: form
})
}
export function renameFile(playbookId, node) {
return request({
url: `/api/v1/ops/playbook/${playbookId}/file/`,
method: 'patch',
data: node
})
}

View File

@@ -13,3 +13,9 @@ export function getCurrentOrg() {
method: 'get'
})
}
export default {
getCurrentOrg,
getOrgDetail
}

View File

@@ -1,43 +0,0 @@
import request from '@/utils/request'
export function getAssetPermissionDetail(id) {
return request({
url: `/api/v1/perms/asset-permissions/${id}/`,
method: 'get'
})
}
export function getRemoteAppPermissionDetail(id) {
return request({
url: `/api/v1/perms/remote-app-permissions/${id}/`,
method: 'get'
})
}
export function getDatabaseAppPermissionDetail(id) {
return request({
url: `/api/v1/perms/database-app-permissions/${id}/`,
method: 'get'
})
}
export function getUserAssetGrantedSystemUsers(userId, assetId) {
return request({
url: `/api/v1/perms/users/${userId}/assets/${assetId}/system-users/?cache_policy=1`,
method: 'get'
})
}
export function getMyAssetGrantedSystemUsers(userId, assetId) {
return request({
url: `/api/v1/perms/users/assets/${assetId}/system-users/?cache_policy=1`,
method: 'get'
})
}
export function getUserGroupAssetGrantedSystemUsers(gId, assetId) {
return request({
url: `/api/v1/perms/user-groups/${gId}/assets/${assetId}/system-users/?cache_policy=1`,
method: 'get'
})
}

View File

@@ -51,7 +51,7 @@ export function refreshLdapUserCache() {
})
}
export function StartLdapUserCache() {
export function startLdapUserCache() {
return request({
disableFlashErrorMsg: true,
url: '/api/v1/settings/ldap/users/?cache_police=1',
@@ -68,15 +68,21 @@ export function importLdapUser(data) {
})
}
export function getPublicSettings() {
export function getPublicSettings(isOpen) {
let url
if (isOpen) {
url = '/api/v1/settings/public/open/'
} else {
url = '/api/v1/settings/public/'
}
return request({
url: '/api/v1/settings/public/',
url: url,
method: 'get'
})
}
export function getLogo() {
return request({
url: '/api/v1/xpack/interface/setting',
url: '/api/v1/xpack/interface/setting/',
method: 'get'
})
}

View File

@@ -69,3 +69,8 @@ export function logout() {
export function refreshSessionIdAge() {
return getProfile()
}
export default {
getProfile,
getUserList
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

BIN
src/assets/img/avatar.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 89 KiB

BIN
src/assets/img/header-profile.png Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.7 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

View File

@@ -0,0 +1,257 @@
<template>
<AutoDataForm
v-if="!loading"
ref="AutoDataForm"
v-bind="$data"
@submit="confirm"
/>
</template>
<script>
import AutoDataForm from '@/components/AutoDataForm'
import { UpdateToken } from '@/components/FormFields'
import Select2 from '@/components/FormFields/Select2'
import AssetSelect from '@/components/AssetSelect'
import { encryptPassword } from '@/utils/crypto'
import { RequiredChange, Required } from '@/components/DataForm/rules'
export default {
name: 'AccountCreateForm',
components: {
AutoDataForm
},
props: {
asset: {
type: Object,
default: null
},
platform: {
type: Object,
default: null
},
account: {
type: Object,
default: null
},
// 默认组件密码加密
encryptPassword: {
type: Boolean,
default: true
}
},
data() {
return {
loading: true,
usernameChanged: false,
defaultPrivilegedAccounts: ['root', 'administrator'],
iPlatform: {
automation: {},
protocols: [
{
name: 'ssh',
secret_types: ['password', 'ssh_key', 'token', 'api_key']
}
]
},
url: '/api/v1/accounts/accounts/',
form: this.account || {},
encryptedFields: ['secret'],
fields: [
[this.$t('assets.Asset'), ['assets']],
[this.$t('common.Basic'), ['name', 'username', ...this.controlShowField()]],
[this.$t('assets.Secret'), [
'secret_type', 'secret', 'ssh_key', 'token',
'api_key', 'passphrase'
]],
[this.$t('common.Other'), ['push_now', 'is_active', 'comment']]
],
fieldsMeta: {
assets: {
rules: [Required],
component: AssetSelect,
label: this.$t('assets.Asset'),
el: {
multiple: false
},
hidden: () => {
return this.platform || this.asset
}
},
name: {
rules: [RequiredChange],
on: {
input: ([value], updateForm) => {
if (!this.usernameChanged) {
if (!this.account?.name) {
updateForm({ username: value })
}
const maybePrivileged = this.defaultPrivilegedAccounts.includes(value)
if (maybePrivileged) {
updateForm({ privileged: true })
}
}
}
}
},
username: {
el: {
disabled: !!this.account?.name
},
on: {
input: ([value], updateForm) => {
this.usernameChanged = true
},
change: ([value], updateForm) => {
const maybePrivileged = this.defaultPrivilegedAccounts.includes(value)
if (maybePrivileged) {
updateForm({ privileged: true })
}
}
}
},
su_from: {
component: Select2,
hidden: (formValue) => {
return !this.asset?.id
},
el: {
multiple: false,
clearable: true,
ajax: {
url: `/api/v1/accounts/accounts/su-from-accounts/?account=${this.account?.id || ''}&asset=${this.asset?.id || ''}`,
transformOption: (item) => {
return { label: `${item.name}(${item.username})`, value: item.id }
}
}
}
},
secret: {
label: this.$t('assets.Password'),
component: UpdateToken,
hidden: (formValue) => formValue.secret_type !== 'password'
},
ssh_key: {
label: this.$t('assets.PrivateKey'),
el: {
type: 'textarea',
rows: 4
},
hidden: (formValue) => formValue.secret_type !== 'ssh_key'
},
passphrase: {
label: this.$t('assets.Passphrase'),
component: UpdateToken,
hidden: (formValue) => formValue.secret_type !== 'ssh_key'
},
token: {
label: this.$t('assets.Token'),
el: {
type: 'textarea',
rows: 4
},
hidden: (formValue) => formValue.secret_type !== 'token'
},
api_key: {
id: 'api_key',
label: this.$t('assets.AccessKey'),
el: {
type: 'textarea',
rows: 4
},
hidden: (formValue) => formValue.secret_type !== 'api_key'
},
secret_type: {
type: 'radio-group',
options: []
},
push_now: {
hidden: () => {
const automation = this.iPlatform.automation || {}
return !automation.push_account_enabled || !automation.ansible_enabled || !this.$hasPerm('accounts.push_account')
}
}
},
hasSaveContinue: false
}
},
async mounted() {
try {
await this.getPlatform()
this.setSecretTypeOptions()
} finally {
this.loading = false
}
},
methods: {
async getPlatform() {
if (this.platform) {
this.iPlatform = this.platform
}
if (!this.asset || !this.asset.platform) {
return
}
const platformId = this.asset.platform.id
this.iPlatform = await this.$axios.get(`/api/v1/assets/platforms/${platformId}/`)
},
setSecretTypeOptions() {
const choices = [
{
label: this.$t('assets.Password'),
value: 'password'
},
{
label: this.$t('assets.SSHKey'),
value: 'ssh_key'
},
{
label: this.$t('assets.Token'),
value: 'token'
},
{
label: this.$t('assets.AccessKey'),
value: 'api_key'
}
]
const secretTypes = []
this.iPlatform.protocols?.forEach(p => {
secretTypes.push(...p['secret_types'])
})
if (!this.form.secret_type) {
this.form.secret_type = secretTypes[0]
}
this.fieldsMeta.secret_type.options = choices.filter(item => {
return secretTypes.indexOf(item.value) > -1
})
},
controlShowField() {
const privileged = ['privileged']
let suFrom = ['su_from']
const filterSuFrom = ['database', 'device', 'cloud', 'web']
const asset = this?.asset || {}
if (filterSuFrom.includes(asset?.category?.value)) {
suFrom = []
}
return [...privileged, ...suFrom]
},
confirm(form) {
const secretType = form.secret_type || ''
if (secretType !== 'password') {
form.secret = form[secretType]
delete form[secretType]
}
form.secret = this.encryptPassword ? encryptPassword(form.secret) : form.secret
if (!form.secret) {
delete form['secret']
}
if (this.account?.name) {
this.$emit('edit', form)
} else {
this.$emit('add', form)
}
}
}
}
</script>
<style scoped>
</style>

View File

@@ -0,0 +1,142 @@
<template>
<Dialog
:title="title"
:visible.sync="iVisible"
:destroy-on-close="true"
:show-cancel="false"
:show-confirm="false"
:close-on-click-modal="false"
v-bind="$attrs"
width="70%"
v-on="$listeners"
>
<AccountCreateUpdateForm
v-if="!loading"
ref="form"
:account="account"
:asset="asset"
@add="addAccount"
@edit="editAccount"
/>
</Dialog>
</template>
<script>
import Dialog from '@/components/Dialog'
import AccountCreateUpdateForm from '@/components/AccountCreateUpdateForm'
export default {
name: 'CreateAccountDialog',
components: {
Dialog,
AccountCreateUpdateForm
},
props: {
visible: {
type: Boolean,
default: false
},
asset: {
type: Object,
default: null
},
account: {
type: Object,
default: () => ({})
},
title: {
type: String,
default: function() {
return this.$t('assets.AddAccount')
}
}
},
data() {
return {
loading: false,
platform: {}
}
},
computed: {
iVisible: {
get() {
return this.visible
},
set(val) {
this.$emit('update:visible', val)
}
},
protocols() {
return this.asset ? this.asset.protocol : []
}
},
methods: {
addAccount(form) {
const formValue = Object.assign({}, form)
let assets = []
if (this.asset) {
assets = [this.asset.id]
} else {
assets = formValue.assets
}
delete formValue.assets
if (assets.length === 0) {
this.$message.error(this.$tc('assets.PleaseSelectAsset'))
return
}
const data = []
for (const asset of assets) {
data.push({
...formValue,
asset
})
}
this.$axios.post(`/api/v1/accounts/accounts/`, data).then(() => {
this.iVisible = false
this.$emit('add', true)
this.$message.success(this.$tc('common.createSuccessMsg'))
}).catch(error => this.setFieldError(error))
},
editAccount(form) {
const data = { ...form }
this.$axios.patch(`/api/v1/accounts/accounts/${this.account.id}/`, data).then(() => {
this.iVisible = false
this.$emit('add', true)
this.$message.success(this.$tc('common.updateSuccessMsg'))
}).catch(error => this.setFieldError(error))
},
setFieldError(error) {
const response = error.response
const data = response.data
const refsAutoDataForm = this.$refs.form.$refs.AutoDataForm
if (response.status === 400) {
for (const key of Object.keys(data)) {
let err = ''
let current = key
let errorTips = data[current]
if (errorTips instanceof Array) {
errorTips = _.filter(errorTips, (item) => Object.keys(item).length > 0)
for (const i of errorTips) {
if (i instanceof Object) {
err += i?.port?.join(',')
} else {
err += errorTips
}
}
} else {
err = errorTips
}
if (current === 'secret') {
current = refsAutoDataForm.form.secret_type?.value || key
}
refsAutoDataForm.setFieldError(current, err)
}
}
}
}
}
</script>
<style scoped>
</style>

View File

@@ -0,0 +1,340 @@
<template>
<div>
<ListTable ref="ListTable" :header-actions="headerActions" :table-config="tableConfig" />
<ViewSecret
v-if="showViewSecretDialog"
:account="account"
:url="secretUrl"
:visible.sync="showViewSecretDialog"
/>
<UpdateSecretInfo
v-if="showUpdateSecretDialog"
:account="account"
:visible.sync="showUpdateSecretDialog"
@updateAuthDone="onUpdateAuthDone"
/>
<AccountCreateUpdate
v-if="showAddDialog"
:account="account"
:asset="iAsset"
:title="accountCreateUpdateTitle"
:visible.sync="showAddDialog"
@add="addAccountSuccess"
/>
</div>
</template>
<script>
import ListTable from '@/components/ListTable/index'
import { ActionsFormatter } from '@/components/TableFormatters'
import ViewSecret from './ViewSecret'
import UpdateSecretInfo from './UpdateSecretInfo'
import AccountCreateUpdate from './AccountCreateUpdate'
import { connectivityMeta } from './const'
import { openTaskPage } from '@/utils/jms'
export default {
name: 'AccountListTable',
components: {
ListTable,
UpdateSecretInfo,
ViewSecret,
AccountCreateUpdate
},
props: {
url: {
type: String,
required: true
},
exportUrl: {
type: String,
default() {
return this.url.replace('/accounts/accounts/', '/accounts/account-secrets/')
}
},
hasLeftActions: {
type: Boolean,
default: false
},
otherActions: {
type: Array,
default: null
},
hasClone: {
type: Boolean,
default: false
},
asset: {
type: Object,
default: null
},
columns: {
type: Array,
default: () => []
},
hasExport: {
type: Boolean,
default: true
},
hasImport: {
type: Boolean,
default: true
},
columnsMeta: {
type: Object,
default: () => {
}
},
headerExtraActions: {
type: Array,
default: () => []
}
},
data() {
const vm = this
return {
showViewSecretDialog: false,
showUpdateSecretDialog: false,
showAddDialog: false,
accountCreateUpdateTitle: this.$t('assets.AddAccount'),
iAsset: this.asset,
account: {},
secretUrl: '',
tableConfig: {
url: this.url,
permissions: {
app: 'assets',
resource: 'account'
},
columnsExclude: ['spec_info'],
columns: [
'name', 'username', 'asset', 'privileged',
'secret_type', 'source', 'actions'
],
columnsMeta: {
name: {
formatter: function(row) {
const to = {
name: 'AssetAccountDetail',
params: { id: row.id }
}
if (vm.$hasPerm('accounts.view_account')) {
return <router-link to={to}>{row.name}</router-link>
} else {
return <span>{row.name}</span>
}
}
},
asset: {
label: this.$t('assets.Asset'),
formatter: function(row) {
const to = {
name: 'AssetDetail',
params: { id: row.asset.id }
}
if (vm.$hasPerm('assets.view_asset')) {
return <router-link to={to}>{row.asset.name}</router-link>
} else {
return <span>{row.asset.name}</span>
}
}
},
secret_type: {
width: '100px',
formatter: function(row) {
return row.secret_type.label
}
},
source: {
formatter: function(row) {
return row.source.label
}
},
has_secret: {
width: '100px',
formatterArgs: {
showFalse: false
}
},
privileged: {
label: this.$t('assets.Privileged'),
width: '120px',
formatterArgs: {
showText: false,
showFalse: false
}
},
connectivity: connectivityMeta,
actions: {
formatter: ActionsFormatter,
formatterArgs: {
hasUpdate: false, // can set function(row, value)
hasDelete: false, // can set function(row, value)
hasClone: this.hasClone,
moreActionsTitle: this.$t('common.More'),
extraActions: [
{
name: 'View',
title: this.$t('common.View'),
can: this.$hasPerm('accounts.view_accountsecret'),
type: 'primary',
callback: ({ row }) => {
// debugger
vm.secretUrl = `/api/v1/accounts/account-secrets/${row.id}/`
vm.account = row
vm.showViewSecretDialog = false
setTimeout(() => {
vm.showViewSecretDialog = true
})
}
},
{
name: 'Delete',
title: this.$t('common.Delete'),
can: this.$hasPerm('accounts.delete_account'),
type: 'primary',
callback: ({ row }) => {
this.$axios.delete(`/api/v1/accounts/accounts/${row.id}/`).then(() => {
this.$message.success(this.$tc('common.deleteSuccessMsg'))
this.$refs.ListTable.reloadTable()
})
}
},
{
name: 'Test',
title: this.$t('common.Test'),
can: ({ row }) =>
!this.$store.getters.currentOrgIsRoot &&
this.$hasPerm('accounts.change_account') &&
row.asset['auto_info'].ansible_enabled &&
row.asset['auto_info'].ping_enabled,
callback: ({ row }) => {
this.$axios.post(
`/api/v1/accounts/accounts/tasks/`,
{ action: 'verify', accounts: [row.id] }
).then(res => {
openTaskPage(res['task'])
})
}
},
{
name: 'Update',
title: this.$t('common.Update'),
can: this.$hasPerm('accounts.change_account') && !this.$store.getters.currentOrgIsRoot,
callback: ({ row }) => {
const data = {
...this.asset,
...row.asset
}
vm.account = row
vm.iAsset = data
vm.showAddDialog = false
vm.accountCreateUpdateTitle = this.$t('assets.UpdateAccount')
setTimeout(() => {
vm.showAddDialog = true
})
}
}
]
}
},
...this.columnsMeta
}
},
headerActions: {
hasLeftActions: this.hasLeftActions,
hasMoreActions: true,
hasCreate: false,
hasImport: this.hasImport,
hasExport: this.hasExport && this.$hasPerm('accounts.view_accountsecret'),
handleImportClick: ({ selectedRows }) => {
this.$eventBus.$emit('showImportDialog', {
selectedRows,
url: '/api/v1/accounts/accounts/',
name: this?.name
})
},
exportOptions: {
url: this.exportUrl,
mfaVerifyRequired: true
},
importOptions: {
canImportCreate: this.$hasPerm('accounts.add_account'),
canImportUpdate: this.$hasPerm('accounts.change_account')
},
extraActions: [
{
name: 'add',
title: this.$t('common.Add'),
type: 'primary',
can: () => {
return vm.$hasPerm('accounts.add_account') && !this.$store.getters.currentOrgIsRoot
},
callback: async() => {
await this.getAssetDetail()
setTimeout(() => {
vm.iAsset = this.asset
vm.account = {}
vm.accountCreateUpdateTitle = this.$t('assets.AddAccount')
vm.showAddDialog = true
})
}
},
...this.headerExtraActions
// {
// name: 'autocreate',
// title: this.$t('accounts.AutoCreate'),
// type: 'default'
// }
],
canBulkDelete: vm.$hasPerm('accounts.delete_account'),
searchConfig: {
getUrlQuery: false,
exclude: ['asset']
},
hasSearch: true
}
}
},
watch: {
url(iNew) {
this.$set(this.tableConfig, 'url', iNew)
this.$set(this.headerActions.exportOptions, 'url', iNew.replace(/(.*)accounts/, '$1account-secrets'))
}
},
mounted() {
if (this.columns.length > 0) {
this.tableConfig.columns = this.columns
}
if (this.otherActions) {
const actionColumn = this.tableConfig.columns[this.tableConfig.columns.length - 1]
for (const item of this.otherActions) {
actionColumn.formatterArgs.extraActions.push(item)
}
}
},
methods: {
onUpdateAuthDone(account) {
Object.assign(this.account, account)
},
addAccountSuccess() {
this.$refs.ListTable.reloadTable()
},
async getAssetDetail() {
const { query: { asset }} = this.$route
if (asset) {
this.iAsset = await this.$axios.get(`/api/v1/assets/assets/${asset}/`)
}
},
refresh() {
this.$refs.ListTable.reloadTable()
}
}
}
</script>
<style lang='scss' scoped>
.cell a {
color: var(--color-info);
}
</style>

View File

@@ -0,0 +1,77 @@
<template>
<GenericListTableDialog :visible.sync="iVisible" v-bind="config" />
</template>
<script>
import { GenericListTableDialog } from '@/layout/components'
import { ShowKeyCopyFormatter } from '@/components/TableFormatters'
export default {
components: {
GenericListTableDialog
},
props: {
account: {
type: Object,
default: () => ({})
},
visible: {
type: Boolean,
default: false
}
},
data() {
return {
config: {
title: this.$t('accounts.HistoryPassword'),
visible: false,
width: '60%',
tableConfig: {
url: `/api/v1/accounts/account-secrets/${this.account.id}/histories/`,
columns: ['secret', 'secret_type', 'history_date'],
columnsMeta: {
secret: {
label: this.$t('assets.Password'),
formatter: ShowKeyCopyFormatter,
formatterArgs: {
hasDownload: false,
name: this.account.name
}
},
history_date: {
label: this.$t('accounts.HistoryDate')
},
secret_type: {
width: '200px'
},
version: {
width: '100px'
},
actions: {
has: false
}
}
},
headerActions: {
hasLeftActions: false,
hasSearch: false
}
}
}
},
computed: {
iVisible: {
get() {
return this.visible
},
set(val) {
this.$emit('update:visible', val)
}
}
}
}
</script>
<style scoped>
</style>

View File

@@ -1,83 +0,0 @@
<template>
<div>
<MFAVerifyDialog
@MFAVerifyDone="getAuthInfo"
@MFAVerifyCancel="exit"
/>
<Dialog
:title="dialogTitle"
:show-confirm="false"
:show-cancel="false"
:destroy-on-close="true"
:width="'50'"
:visible.sync="showAuthInfo"
v-bind="$attrs"
v-on="$listeners"
>
<div>
<el-form label-position="right" label-width="80px" :model="authInfo">
<el-form-item :label="this.$t('assets.Hostname')">
<el-input v-model="account.hostname" readonly />
</el-form-item>
<el-form-item :label="this.$t('assets.Username')">
<el-input v-model="account['username']" readonly />
</el-form-item>
<el-form-item :label="this.$t('assets.Password')">
<el-input v-model="authInfo.password" type="password" show-password />
</el-form-item>
<el-form-item :label="this.$t('assets.SSHKey')">
<el-input v-model="authInfo['private_key']" type="password" show-password />
</el-form-item>
</el-form>
</div>
</Dialog>
</div>
</template>
<script>
import Dialog from '@/components/Dialog'
import MFAVerifyDialog from '@/components/MFAVerifyDialog'
export default {
name: 'ShowSecretInfo',
components: {
Dialog,
MFAVerifyDialog
},
props: {
account: {
type: Object,
default: () => ({})
},
visible: {
type: Boolean,
default: false
}
},
data() {
return {
dialogTitle: this.$t('common.ViewSecret'),
authInfo: {},
showAuthInfo: false
}
},
mounted() {
this.getAuthInfo()
},
methods: {
getAuthInfo() {
const url = `/api/v1/assets/account-secrets/${this.account.id}/`
this.$axios.get(url, { disableFlashErrorMsg: true }).then(resp => {
this.authInfo = resp
this.showAuthInfo = true
})
},
exit() {
this.$emit('update:visible', false)
}
}
}
</script>
<style scoped>
</style>

View File

@@ -1,25 +1,28 @@
<template>
<Dialog
width="50"
:title="this.$t('assets.UpdateAssetUserToken')"
:destroy-on-close="true"
v-bind="$attrs"
@confirm="handleConfirm()"
:title="$tc('assets.UpdateAssetUserToken')"
:visible.sync="visible"
width="50"
@cancel="handleCancel()"
@confirm="handleConfirm()"
v-on="$listeners"
>
<el-form label-position="right" label-width="80px">
<el-form-item :label="this.$t('assets.Hostname')">
<el-input v-model="account.hostname" readonly />
<el-form label-position="right" label-width="90px">
<el-form-item :label="$tc('assets.Name')">
<el-input v-model="account['asset_name']" readonly />
</el-form-item>
<el-form-item :label="this.$t('assets.Username')">
<el-form-item :label="$tc('assets.Username')">
<el-input v-model="account['username']" readonly />
</el-form-item>
<el-form-item :label="this.$t('assets.Password')">
<el-input v-model="authInfo.password" type="password" />
<el-form-item :label="$tc('assets.Password')">
<UpdateToken v-model="authInfo.password" />
</el-form-item>
<el-form-item :label="this.$t('assets.SSHKey')">
<input type="file" @change="onPrivateKeyLoaded">
<el-form-item :label="$tc('assets.SSHSecretKey')">
<UploadKey @input="getFile" />
</el-form-item>
<el-form-item :label="$tc('assets.Passphrase')">
<UpdateToken v-model="authInfo.passphrase" />
</el-form-item>
</el-form>
</Dialog>
@@ -27,37 +30,49 @@
<script>
import Dialog from '@/components/Dialog'
import { UpdateToken, UploadKey } from '@/components/FormFields'
import { encryptPassword } from '@/utils/crypto'
export default {
name: 'UpdateSecretInfo',
components: {
Dialog
Dialog,
UploadKey,
UpdateToken
},
props: {
account: {
type: Object,
default: () => ({})
},
visible: {
type: Boolean,
default: false
}
},
data() {
return {
authInfo: {
secretInfo: {
password: '',
private_key: ''
private_key: '',
passphrase: ''
}
}
},
methods: {
handleConfirm() {
const data = {}
if (this.authInfo.password !== '') {
data.password = this.authInfo.password
if (this.secretInfo.password !== '') {
data.password = encryptPassword(this.secretInfo.password)
}
if (this.authInfo.private_key !== '') {
data.private_key = this.authInfo.private_key
if (this.secretInfo.private_key !== '') {
data.private_key = encryptPassword(this.secretInfo.private_key)
if (this.secretInfo.passphrase) data.passphrase = this.secretInfo.passphrase
}
this.$axios.patch(
`/api/v1/assets/accounts/${this.account.id}/`,
data
`/api/v1/accounts/accounts/${this.account.id}/`,
data,
{ disableFlashErrorMsg: true }
).then(res => {
this.authInfo = { password: '', private_key: '' }
this.$message.success(this.$tc('common.updateSuccessMsg'))
@@ -72,16 +87,8 @@ export default {
handleCancel() {
this.$emit('update:visible', false)
},
onPrivateKeyLoaded(e) {
const vm = this
// TODO 校验文件类型
const reader = new FileReader()
reader.onload = function() {
vm.authInfo.private_key = this.result
}
reader.readAsText(
e.target.files[0]
)
getFile(file) {
this.secretInfo.private_key = file
}
}
}

View File

@@ -0,0 +1,190 @@
<template>
<div>
<UserConfirmDialog
:url="url"
@UserConfirmCancel="exit"
@UserConfirmDone="getAuthInfo"
/>
<Dialog
:destroy-on-close="true"
:show-cancel="false"
:title="title"
:visible.sync="showSecret"
:width="'50'"
v-bind="$attrs"
@confirm="showSecret = false"
v-on="$listeners"
>
<el-form :model="secretInfo" class="password-form" label-position="right" label-width="100px">
<el-form-item :label="$tc('assets.Name')">
<span>{{ account['name'] }}</span>
</el-form-item>
<el-form-item :label="$tc('assets.Username')">
<span>{{ account['username'] }}</span>
</el-form-item>
<el-form-item :label="secretTypeLabel">
<ShowKeyCopyFormatter
:cell-value="secretInfo.secret"
:col="{ formatterArgs: {
name: account['name'],
}}"
/>
</el-form-item>
<el-form-item v-if="secretType === 'ssh_key'" :label="$tc('assets.sshKeyFingerprint')">
<span>{{ sshKeyFingerprint }}</span>
</el-form-item>
<el-form-item :label="$tc('common.DateCreated')">
<span>{{ account['date_created'] | date }}</span>
</el-form-item>
<el-form-item :label="$tc('common.DateUpdated')">
<span>{{ account['date_updated'] | date }}</span>
</el-form-item>
<el-form-item v-if="showPasswordRecord" v-perms="'accounts.view_accountsecret'" :label="$tc('accounts.PasswordRecord')">
<el-link
:underline="false"
type="success"
@click="showHistoryDialog"
>
<span style="padding-right: 30px">
{{ versions }}
</span>
</el-link>
</el-form-item>
</el-form>
</Dialog>
<PasswordHistoryDialog
v-if="showPasswordHistoryDialog"
:account="account"
:visible.sync="showPasswordHistoryDialog"
/>
</div>
</template>
<script>
import Dialog from '@/components/Dialog'
import PasswordHistoryDialog from './PasswordHistoryDialog'
import UserConfirmDialog from '@/components/UserConfirmDialog'
import { ShowKeyCopyFormatter } from '@/components/TableFormatters'
export default {
name: 'ShowSecretInfo',
components: {
Dialog,
PasswordHistoryDialog,
UserConfirmDialog,
ShowKeyCopyFormatter
},
props: {
account: {
type: Object,
default: () => ({})
},
visible: {
type: Boolean,
default: false
},
url: {
type: String,
default: ''
},
title: {
type: String,
default: function() {
return this.$tc('assets.AccountDetail')
}
},
showPasswordRecord: {
type: Boolean,
default: true
}
},
data() {
return {
secretInfo: {},
versions: '-',
showSecret: false,
sshKeyFingerprint: '-',
historyCount: 0,
showPasswordHistoryDialog: false
}
},
computed: {
secretTypeLabel() {
return this.account['secret_type'].label || 'Password'
},
secretType() {
return this.account['secret_type'].value
}
},
mounted() {
if (this.showPasswordRecord) {
const url = `/api/v1/accounts/account-secrets/${this.account.id}/histories/?limit=1`
this.$axios.get(url, { disableFlashErrorMsg: true }).then(resp => {
this.versions = resp.count
})
}
},
methods: {
getAuthInfo() {
this.$axios.get(this.url, { disableFlashErrorMsg: true }).then(resp => {
this.secretInfo = resp
this.sshKeyFingerprint = resp?.spec_info?.ssh_key_fingerprint || '-'
this.showSecret = true
})
},
exit() {
this.$emit('update:visible', false)
},
showHistoryDialog() {
this.showPasswordHistoryDialog = true
}
}
}
</script>
<style lang="scss" scoped>
.item-textarea >>> .el-textarea__inner {
height: 110px;
}
.el-form-item {
border-bottom: 1px solid #EBEEF5;
padding: 5px 0;
margin-bottom: 0;
&:last-child {
border-bottom: none;
}
>>> .el-form-item__label {
padding-right: 20px;
line-height: 30px;
}
>>> .el-form-item__content {
line-height: 30px;
pre {
margin: 0;
}
}
}
ul {
margin: 0;
}
li {
display: block;
font-size: 13px;
margin-bottom: 8px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
.title {
color: #303133;
font-weight: 500;
}
}
</style>

View File

@@ -1,31 +1,26 @@
import { ChoicesFormatter } from '@/components/TableFormatters'
import { toSafeLocalDateStr } from '@/utils/common'
import i18n from '@/i18n/i18n'
import { ChoicesFormatter } from '@/components/TableFormatters'
export const connectivityMeta = {
label: i18n.t('assets.Reachable'),
label: i18n.t('assets.Connectivity'),
formatter: ChoicesFormatter,
formatterArgs: {
iconChoices: {
ok: 'fa-check text-primary',
failed: 'fa-times text-danger',
unknown: 'fa-circle text-warning'
faChoices: {
'-': '',
ok: 'fa-check-circle',
err: 'fa-times-circle'
},
hasTips: true,
getTips: ({ row, cellValue }) => {
const mapper = {
'ok': i18n.t('assets.Reachable'),
'failed': i18n.t('assets.Unreachable'),
'unknown': i18n.t('assets.Unknown')
classChoices: {
ok: 'text-primary',
err: 'text-danger'
},
getText({ cellValue }) {
if (cellValue?.value === '-') {
return '-'
} else {
return cellValue?.label
}
let tips = mapper[cellValue]
if (row['date_verified']) {
const datetime = toSafeLocalDateStr(row['date_verified'])
tips += '<br> ' + datetime
}
return tips
}
},
width: '90px',
align: 'center'
width: '100px'
}

View File

@@ -1,184 +0,0 @@
<template>
<div>
<ListTable ref="ListTable" :table-config="tableConfig" :header-actions="headerActions" />
<ShowSecretInfo v-if="showViewSecretDialog" :visible.sync="showViewSecretDialog" :account="account" />
<UpdateSecretInfo :visible.sync="showUpdateSecretDialog" :account="account" @updateAuthDone="onUpdateAuthDone" />
</div>
</template>
<script>
import ListTable from '@/components/ListTable/index'
import { ActionsFormatter, DetailFormatter, DisplayFormatter } from '@/components/TableFormatters'
import ShowSecretInfo from './ShowSecretInfo'
import UpdateSecretInfo from './UpdateSecretInfo'
import { connectivityMeta } from './const'
import { openTaskPage } from '@/utils/jms'
export default {
name: 'AccountListTable',
components: {
ListTable,
UpdateSecretInfo,
ShowSecretInfo
},
props: {
url: {
type: String,
required: true
},
exportUrl: {
type: String,
default() {
return this.url.replace('/assets/accounts/', '/assets/account-secrets/')
}
},
hasLeftActions: {
type: Boolean,
default: false
},
otherActions: {
type: Array,
default: null
},
hasClone: {
type: Boolean,
default: false
}
},
data() {
return {
showViewSecretDialog: false,
showUpdateSecretDialog: false,
account: {},
tableConfig: {
url: this.url,
columns: [
'hostname', 'ip', 'username', 'version', 'connectivity',
'systemuser', 'date_created', 'date_updated', 'actions'
],
columnsShow: {
min: ['username', 'actions'],
default: ['hostname', 'ip', 'username', 'version', 'actions']
},
columnsMeta: {
hostname: {
prop: 'hostname',
label: this.$t('assets.Hostname'),
showOverflowTooltip: true,
formatter: DetailFormatter,
formatterArgs: {
getRoute({ row }) {
return {
name: 'AssetDetail',
params: { id: row.asset }
}
}
}
},
ip: {
width: '120px'
},
username: {
showOverflowTooltip: true
},
systemuser: {
formatter: DisplayFormatter
},
version: {
width: '70px'
},
connectivity: connectivityMeta,
actions: {
formatter: ActionsFormatter,
formatterArgs: {
hasUpdate: false, // can set function(row, value)
hasDelete: false, // can set function(row, value)
hasClone: this.hasClone,
moreActionsTitle: this.$t('common.More'),
extraActions: [
{
name: 'View',
title: this.$t('common.View'),
type: 'primary',
callback: function({ row }) {
this.account = row
this.showViewSecretDialog = true
}.bind(this)
},
{
name: 'Delete',
title: this.$t('common.Delete'),
type: 'primary',
callback: ({ row }) => {
this.$axios.delete(`/api/v1/assets/accounts/${row.id}/`).then(() => {
this.$message.success(this.$tc('common.deleteSuccessMsg'))
this.$refs.ListTable.reloadTable()
})
}
},
{
name: 'Test',
title: this.$t('common.Test'),
callback: ({ row }) => {
this.$axios.post(
`/api/v1/assets/accounts/${row.id}/verify/`,
{ action: 'test' }
).then(res => {
openTaskPage(res['task'])
})
}
},
{
name: 'Update',
title: this.$t('common.Update'),
can: !this.$store.getters.currentOrgIsRoot,
callback: function({ row }) {
this.account = row
this.showUpdateSecretDialog = true
}.bind(this)
}
]
}
}
}
},
headerActions: {
hasLeftActions: this.hasLeftActions,
hasMoreActions: false,
hasImport: false,
hasExport: true,
exportOptions: {
url: this.exportUrl,
mfaVerifyRequired: true
},
searchConfig: {
exclude: ['systemuser', 'asset']
},
hasSearch: true
}
}
},
watch: {
url(iNew) {
this.$set(this.tableConfig, 'url', iNew)
}
},
mounted() {
if (this.otherActions) {
const actionColumn = this.tableConfig.columns[this.tableConfig.columns.length - 1]
for (const item of this.otherActions) {
actionColumn.formatterArgs.extraActions.push(item)
}
}
},
methods: {
onUpdateAuthDone(account) {
Object.assign(this.account, account)
}
}
}
</script>
<style lang='less' scoped>
</style>

View File

@@ -18,16 +18,16 @@ export default {
type: Array,
default: () => []
},
moreActionBtn: {
type: Object,
default: () => ({})
},
moreActionsTitle: {
type: String,
default() {
return this.$t('common.MoreActions')
}
},
moreActionsType: {
type: String,
default: 'default'
},
moreActionsPlacement: {
type: String,
default: 'bottom'
@@ -43,14 +43,21 @@ export default {
return actions
},
iMoreAction() {
return {
const defaultBtn = {
name: 'moreActions',
title: this.iMoreActionsTitle,
title: this.$t('common.MoreActions'),
type: 'primary',
plain: true
}
const btn = {
...defaultBtn,
...this.moreActionBtn,
dropdown: this.moreActions || []
}
},
iMoreActionsTitle() {
return this.moreActionsTitle || this.$t('common.MoreActions')
if (this.moreActionsTitle) {
btn.title = this.moreActionsTitle
}
return btn
}
}
}

View File

@@ -0,0 +1,73 @@
<template>
<el-alert
v-if="enabled && !isViewed()"
class="announcement"
type="success"
:center="false"
:title="title"
@close="onClose"
>
<span class="announcement-main">{{ announcement.content }}</span>
<span v-if="announcement.link">
<el-link :href="announcement.link" target="_blank" type="info" class="link-more">
{{ $t('common.ViewMore') }}
</el-link>
<i class="fa fa-external-link icon" />
</span>
</el-alert>
</template>
<script>
import { mapGetters } from 'vuex'
export default {
name: 'Announcement',
data() {
return {
viewedKey: 'AnnouncementViewed'
}
},
computed: {
...mapGetters([
'publicSettings'
]),
announcement() {
const ann = this.publicSettings.ANNOUNCEMENT
return { id: ann['ID'], subject: ann['SUBJECT'], content: ann['CONTENT'], link: ann['LINK'] }
},
enabled() {
return this.publicSettings.ANNOUNCEMENT_ENABLED && (this.announcement.content || this.announcement.subject)
},
title() {
return this.$t('common.Announcement') + ': ' + this.announcement.subject
}
},
methods: {
onClose() {
localStorage.setItem(this.viewedKey, this.announcement.id)
},
isViewed() {
const viewedId = localStorage.getItem(this.viewedKey)
return viewedId === this.announcement.id
}
}
}
</script>
<style scoped>
.announcement >>> .el-alert__content {
width: 100%;
}
.announcement-main {
word-wrap:break-word;
white-space: pre-wrap;
}
.link-more {
font-size: 10px;
margin-left: 10px;
border-bottom: solid 1px;
}
.icon {
vertical-align: text-bottom;
}
</style>

View File

@@ -1,81 +0,0 @@
<template>
<div>
<MFAVerifyDialog
@MFAVerifyDone="getAuthInfo"
@MFAVerifyCancel="exit"
/>
<Dialog
:title="dialogTitle"
:show-confirm="false"
:show-cancel="false"
:destroy-on-close="true"
:width="'50'"
:visible.sync="showAuthInfo"
v-bind="$attrs"
v-on="$listeners"
>
<div>
<el-form label-position="right" label-width="80px" :model="authInfo">
<el-form-item :label="this.$t('applications.appName')">
<el-input v-model="account['app_name']" readonly />
</el-form-item>
<el-form-item :label="this.$t('assets.Username')">
<el-input v-model="account['username']" readonly />
</el-form-item>
<el-form-item :label="this.$t('assets.Password')">
<el-input v-model="authInfo.password" type="password" show-password />
</el-form-item>
</el-form>
</div>
</Dialog>
</div>
</template>
<script>
import Dialog from '@/components/Dialog'
import MFAVerifyDialog from '@/components/MFAVerifyDialog'
export default {
name: 'ShowSecretInfo',
components: {
Dialog,
MFAVerifyDialog
},
props: {
account: {
type: Object,
default: () => ({})
},
visible: {
type: Boolean,
default: false
}
},
data() {
return {
dialogTitle: this.$t('common.ViewSecret'),
authInfo: {},
showAuthInfo: false
}
},
mounted() {
this.getAuthInfo()
},
methods: {
getAuthInfo() {
console.log(this.account)
const url = `/api/v1/applications/account-secrets/${this.account.uid}/`
this.$axios.get(url, { disableFlashErrorMsg: true }).then(resp => {
this.authInfo = resp
this.showAuthInfo = true
})
},
exit() {
this.$emit('update:visible', false)
}
}
}
</script>
<style scoped>
</style>

View File

@@ -1,31 +0,0 @@
import { ChoicesFormatter } from '@/components/TableFormatters'
import { toSafeLocalDateStr } from '@/utils/common'
import i18n from '@/i18n/i18n'
export const connectivityMeta = {
label: i18n.t('assets.Reachable'),
formatter: ChoicesFormatter,
formatterArgs: {
iconChoices: {
ok: 'fa-check text-primary',
failed: 'fa-times text-danger',
unknown: 'fa-circle text-warning'
},
hasTips: true,
getTips: ({ row, cellValue }) => {
const mapper = {
'ok': i18n.t('assets.Reachable'),
'failed': i18n.t('assets.Unreachable'),
'unknown': i18n.t('assets.Unknown')
}
let tips = mapper[cellValue]
if (row['date_verified']) {
const datetime = toSafeLocalDateStr(row['date_verified'])
tips += '<br> ' + datetime
}
return tips
}
},
width: '90px',
align: 'center'
}

View File

@@ -1,167 +0,0 @@
<template>
<div>
<ListTable ref="ListTable" :table-config="tableConfig" :header-actions="headerActions" />
<ShowSecretInfo v-if="showViewSecretDialog" :visible.sync="showViewSecretDialog" :account="account" />
</div>
</template>
<script>
import ListTable from '@/components/ListTable/index'
import { ActionsFormatter, DetailFormatter } from '@/components/TableFormatters'
import ShowSecretInfo from './ShowSecretInfo'
export default {
name: 'Detail',
components: {
ListTable,
ShowSecretInfo
},
props: {
url: {
type: String,
required: true
},
exportUrl: {
type: String,
default() {
return this.url.replace('/applications/accounts/', '/applications/account-secrets/')
}
},
hasLeftActions: {
type: Boolean,
default: false
},
otherActions: {
type: Array,
default: null
},
hasClone: {
type: Boolean,
default: false
}
},
data() {
return {
showViewSecretDialog: false,
showUpdateSecretDialog: false,
account: {},
tableConfig: {
url: this.url,
columns: [
'app_name', 'username', 'category_display',
'type_display', 'systemuser', 'actions'
],
columnsMeta: {
app_name: {
showOverflowTooltip: true,
formatter: DetailFormatter,
formatterArgs: {
getRoute({ row }) {
switch (row['category']) {
case 'remote_app':
return {
name: 'RemoteAppDetail',
params: { id: row.app }
}
case 'db':
return {
name: 'DatabaseAppDetail',
params: { id: row.app }
}
default:
return {
name: 'KubernetesAppDetail',
params: { id: row.app }
}
}
}
}
},
username: {
showOverflowTooltip: true
},
systemuser: {
showOverflowTooltip: true,
formatter: DetailFormatter,
formatterArgs: {
getTitle({ row }) {
return row.systemuser_display
},
getRoute({ row }) {
return {
name: 'SystemUserDetail',
params: { id: row.systemuser }
}
}
}
},
actions: {
formatter: ActionsFormatter,
formatterArgs: {
hasUpdate: false, // can set function(row, value)
hasDelete: false, // can set function(row, value)
hasClone: this.hasClone,
moreActionsTitle: this.$t('common.More'),
extraActions: [
{
name: 'View',
title: this.$t('common.View'),
type: 'primary',
callback: function({ row }) {
this.account = row
this.showViewSecretDialog = true
}.bind(this)
},
{
name: 'Update',
title: this.$t('common.Update'),
can: !this.$store.getters.currentOrgIsRoot,
callback: function({ row }) {
this.$message.success(this.$tc('applications.updateAccountMsg'))
}.bind(this)
}
]
}
}
}
},
headerActions: {
hasLeftActions: this.hasLeftActions,
hasMoreActions: false,
hasImport: false,
hasExport: true,
exportOptions: {
url: this.exportUrl,
mfaVerifyRequired: true
},
searchConfig: {
exclude: ['systemuser', 'asset']
},
hasSearch: true
}
}
},
watch: {
url(iNew) {
this.$set(this.tableConfig, 'url', iNew)
}
},
mounted() {
if (this.otherActions) {
const actionColumn = this.tableConfig.columns[this.tableConfig.columns.length - 1]
for (const item of this.otherActions) {
actionColumn.formatterArgs.extraActions.push(item)
}
}
},
methods: {
onUpdateAuthDone(account) {
Object.assign(this.account, account)
}
}
}
</script>
<style lang='less' scoped>
</style>

View File

@@ -0,0 +1,199 @@
<template>
<Dialog
:title="$tc('assets.Assets')"
custom-class="asset-select-dialog"
top="1vh"
v-bind="$attrs"
width="80vw"
@cancel="handleCancel"
@close="handleClose"
@confirm="handleConfirm"
v-on="$listeners"
>
<AssetTreeTable
ref="ListPage"
:header-actions="headerActions"
:node-url="baseNodeUrl"
:table-config="tableConfig"
:tree-url="`${baseNodeUrl}children/tree/`"
:url="baseUrl"
class="tree-table"
v-bind="$attrs"
/>
</Dialog>
</template>
<script>
import AssetTreeTable from '@/components/AssetTreeTable'
import Dialog from '@/components/Dialog'
export default {
componentName: 'AssetSelectDialog',
components: { AssetTreeTable, Dialog },
props: {
baseUrl: {
type: String,
default: '/api/v1/assets/assets/'
},
baseNodeUrl: {
type: String,
default: '/api/v1/assets/nodes/'
},
value: {
type: Array,
default: () => []
},
canSelect: {
type: Function,
default(row, index) {
return true
}
},
disabled: {
type: [Boolean, Function],
default: false
}
},
data() {
const vm = this
return {
dialogVisible: false,
rowSelected: _.cloneDeep(this.value) || [],
rowsAdd: [],
tableConfig: {
url: this.baseUrl,
hasTree: true,
canSelect: this.canSelect,
columns: [
{
prop: 'name',
label: this.$t('assets.Name'),
sortable: true
},
{
prop: 'address',
label: this.$t('assets.ipDomain'),
sortable: 'custom'
},
{
prop: 'platform',
label: this.$t('assets.Platform'),
sortable: true,
formatter: function(row) {
return row.platform.name
}
},
{
prop: 'protocols',
formatter: function(row) {
const data = row.protocols.map(p => {
return <el-tag size='mini'>{p.name}/{p.port} </el-tag>
})
return <span> {data} </span>
},
label: this.$t('assets.Protocols')
},
{
prop: 'actions',
has: false
}
],
listeners: {
'toggle-row-selection': (isSelected, row) => {
if (isSelected) {
vm.addRowToSelect(row)
} else {
vm.removeRowFromSelect(row)
}
}
},
theRowDefaultIsSelected: (row) => {
return this.value.indexOf(row.id) > -1
}
},
headerActions: {
hasLeftActions: false,
hasRightActions: false,
searchConfig: {
getUrlQuery: false
}
}
}
},
methods: {
handleClose() {
this.$eventBus.$emit('treeComponentKey')
},
handleConfirm() {
this.$emit('confirm', this.rowSelected, this.rowsAdd)
if (this.rowSelected.length > 0) {
this.handleClose()
}
},
handleCancel() {
this.$emit('cancel')
this.handleClose()
},
addRowToSelect(row) {
const selectValueIndex = this.rowSelected.indexOf(row.id)
if (selectValueIndex === -1) {
this.rowSelected.push(row.id)
this.rowsAdd.push(row)
}
},
removeRowFromSelect(row) {
const selectValueIndex = this.rowSelected.indexOf(row.id)
if (selectValueIndex > -1) {
this.rowSelected.splice(selectValueIndex, 1)
}
}
}
}
</script>
<style lang="scss" scoped>
.page ::v-deep .page-heading {
display: none;
}
.el-dialog__wrapper ::v-deep .el-dialog__body {
padding: 0 0 0 3px;
.tree-table {
.search {
.el-input__inner {
background-color: #f3f3f3;
}
.el-cascader {
background-color: #f3f3f3;
}
}
.left {
padding: 5px;
}
.right {
height: calc(100vh - 200px);
overflow: auto;
}
.mini {
padding-top: 8px;
}
.transition-box {
padding: 5px;
}
}
}
.page ::v-deep .treebox .ztree {
}
.asset-select-dialog ::v-deep .el-icon-circle-check {
display: none;
}
</style>

View File

@@ -1,139 +1,96 @@
<template>
<div class="asset-select-dialog">
<Select2 ref="select2" v-bind="select2Config" @input="onInputChange" @focus.stop="handleFocus" v-on="$listeners" />
<Dialog
<div class="asset-select-formatter">
<Select2
ref="select2"
v-model="select2Config.value"
v-bind="select2Config"
@input="onInputChange"
v-on="$listeners"
@focus.stop="handleFocus"
/>
<AssetSelectDialog
v-if="dialogVisible"
:title="this.$t('assets.Assets')"
ref="dialog"
:base-node-url="baseNodeUrl"
:base-url="baseUrl"
:tree-url-query="treeUrlQuery"
:value="value"
:visible.sync="dialogVisible"
custom-class="asset-select-dialog"
width="70%"
top="1vh"
@confirm="handleConfirm"
v-bind="$attrs"
@cancel="handleCancel"
>
<TreeTable
ref="ListPage"
:tree-setting="treeSetting"
:table-config="tableConfig"
:header-actions="headerActions"
/>
</Dialog>
@confirm="handleConfirm"
v-on="$listeners"
/>
</div>
</template>
<script>
import TreeTable from '@/components/TreeTable'
import { DetailFormatter } from '@/components/TableFormatters'
import Select2 from '@/components/FormFields/Select2'
import Dialog from '@/components/Dialog'
import AssetSelectDialog from './dialog.vue'
import { b } from 'css-color-function/lib/adjusters'
export default {
componentName: 'AssetSelect',
components: { TreeTable, Select2, Dialog },
components: { AssetSelectDialog, Select2 },
props: {
baseUrl: {
type: String,
default: '/api/v1/assets/assets/'
},
baseNodeUrl: {
type: String,
default: '/api/v1/assets/nodes/'
},
treeUrlQuery: {
type: Object,
default: () => {}
},
value: {
type: Array,
default: () => []
},
canSelect: {
type: Function,
default(row, index) {
return true
}
},
disabled: {
type: [Boolean, Function],
default: false
}
},
data() {
const select2Config = {
value: this.value,
multiple: true,
clearable: true,
ajax: {
url: '/api/v1/assets/assets/?fields_size=mini',
transformOption: (item) => {
return { label: item.hostname + '(' + item.ip + ')', value: item.id }
}
const iValue = []
for (const item of this.value) {
if (typeof item === 'object') {
iValue.push(item.id)
} else {
iValue.push(item)
}
}
const vm = this
return {
dialogVisible: false,
initialValue: _.cloneDeep(this.value),
rowSelected: [],
initSelection: null,
treeSetting: {
showMenu: false,
showRefresh: true,
showAssets: false,
url: '/api/v1/assets/assets/?fields_size=mini',
nodeUrl: '/api/v1/assets/nodes/',
// ?assets=0不显示资产. =1显示资产
treeUrl: '/api/v1/assets/nodes/children/tree/?assets=0'
},
select2Config: select2Config,
dialogSelect2Config: select2Config,
tableConfig: {
url: '/api/v1/assets/assets/?fields_size=mini',
hasTree: true,
canSelect: this.canSelect,
columns: [
{
prop: 'hostname',
label: this.$t('assets.Hostname'),
sortable: true,
showOverflowTooltip: true,
formatter: DetailFormatter,
formatterArgs: {
route: 'AssetDetail'
}
},
{
prop: 'ip',
label: this.$t('assets.ipDomain'),
sortable: 'custom'
},
{
prop: 'platform',
label: this.$t('assets.Platform'),
sortable: true
},
{
prop: 'protocols',
label: this.$t('assets.Protocols')
initialValue: _.cloneDeep(iValue),
select2Config: {
value: iValue,
multiple: true,
clearable: true,
ajax: {
url: this.baseUrl,
transformOption: (item) => {
return { label: item.name + '(' + item.address + ')', value: item.id }
}
],
listeners: {
'toggle-row-selection': (isSelected, row) => {
if (isSelected) {
vm.addRowToSelect(row)
} else {
vm.removeRowFromSelect(row)
}
}
},
theRowDefaultIsSelected: (row) => {
return this.value.indexOf(row.id) > -1
}
},
headerActions: {
hasLeftActions: false,
hasRightActions: false
}
}
},
methods: {
b,
handleFocus() {
this.$refs.select2.selectRef.blur()
this.dialogVisible = true
},
handleConfirm() {
handleConfirm(valueSelected, rowsAdd) {
if (valueSelected === undefined) {
return
}
this.$refs.select2.iValue = valueSelected
this.addRowsToSelect(rowsAdd)
this.onInputChange(valueSelected)
this.dialogVisible = false
},
handleCancel() {
this.$refs.select2.iValue = this.initialValue
this.dialogVisible = false
},
onInputChange(val) {
@@ -144,53 +101,64 @@ export default {
// 如果select2的options中没有那么可能无法显示正常的值
if (selectOptionsHas === undefined) {
const option = {
label: `${row.hostname}(${row.ip})`,
label: `${row.name}(${row.address})`,
value: row.id
}
options.push(option)
}
},
addRowToSelect(row) {
addRowsToSelect(rows) {
const outSelectOptions = this.$refs.select2.options
this.addToSelect(outSelectOptions, row)
const selectValue = this.$refs.select2.iValue
const selectValueIndex = selectValue.indexOf(row.id)
if (selectValueIndex === -1) {
selectValue.push(row.id)
}
this.onInputChange(selectValue)
},
removeRowFromSelect(row) {
const selectValue = this.$refs.select2.iValue
const selectValueIndex = selectValue.indexOf(row.id)
if (selectValueIndex > -1) {
selectValue.splice(selectValueIndex, 1)
for (const row of rows) {
this.addToSelect(outSelectOptions, row)
}
}
}
}
</script>
<style lang='scss' scoped>
.el-select{
width: 100%;
}
.page ::v-deep .page-heading{
display: none;
}
.el-dialog__wrapper ::v-deep .el-dialog__body{
padding: 5px 10px;
}
.page ::v-deep .treebox{
height: inherit !important;
}
.asset-select-dialog >>> .transition-box:first-child {
background-color: #f3f3f3 ;
}
<style lang="scss" scoped>
.el-select {
width: 100%;
}
.el-dialog__wrapper ::v-deep .el-dialog__body .wrapper-content {
padding: 10px;
}
.page ::v-deep .page-heading {
display: none;
}
.el-dialog__wrapper ::v-deep .el-dialog__body {
padding: 0 0 0 3px;
.tree-table {
.search {
.el-input__inner {
background-color: #f3f3f3;
}
.el-cascader {
background-color: #f3f3f3;
}
}
.left {
padding: 5px;
.ztree {
height: calc(100vh - 250px) !important;
}
}
.mini {
padding-top: 8px;
}
.transition-box {
padding: 5px;
}
}
}
.page ::v-deep .treebox {
height: inherit !important;
}
</style>

View File

@@ -0,0 +1,175 @@
<template>
<TreeTable
ref="TreeList"
component="TabTree"
:table-config="tableConfig"
:active-menu.sync="treeTableConfig.activeMenu"
:tree-tab-config="treeTableConfig"
v-bind="$attrs"
v-on="$listeners"
>
<template #table>
<slot name="table" />
</template>
<div slot="rMenu" slot-scope="{data}">
<slot name="rMenu" :data="data" />
</div>
</TreeTable>
</template>
<script>
import TreeTable from '../TreeTable'
import { setRouterQuery, setUrlParam } from '@/utils/common'
import $ from '@/utils/jquery-vendor'
export default {
components: {
TreeTable
},
props: {
url: {
type: String,
default: '/api/v1/assets/assets/'
},
nodeUrl: {
type: String,
default: '/api/v1/assets/nodes/'
},
treeUrl: {
type: String,
default: '/api/v1/assets/nodes/children/tree/'
},
treeUrlQuery: {
type: Object,
default: () => ({})
},
treeSetting: {
type: Object,
default: () => ({})
},
tableConfig: {
type: Object,
default: () => ({})
},
showAssets: {
type: Boolean,
default: false
}
},
data() {
const showAssets = this.treeSetting?.showAssets || this.showAssets
const treeUrlQuery = this.setTreeUrlQuery()
const assetTreeUrl = `${this.treeUrl}?assets=${showAssets ? '1' : '0'}&${treeUrlQuery}`
return {
treeTabConfig: {
activeMenu: 'CustomTree',
submenu: [
{
title: this.$t('assets.AssetTree'),
name: 'CustomTree',
treeSetting: {
showAssets,
showMenu: false,
showRefresh: true,
showCreate: true,
showUpdate: true,
showDelete: true,
hasRightMenu: true,
showSearch: true,
url: this.url,
nodeUrl: this.nodeUrl,
treeUrl: assetTreeUrl,
callback: {
onSelected: (event, treeNode) => this.getAssetsUrl(treeNode)
},
...this.treeSetting
}
},
{
title: this.$t('assets.BuiltinTree'),
name: 'BuiltinTree',
treeSetting: {
showRefresh: true,
showAssets: false,
showSearch: false,
customTreeHeaderName: this.$t('assets.BuiltinTree'),
url: '/api/v1/assets/nodes/category/tree/',
nodeUrl: this.treeSetting?.nodeUrl || this.nodeUrl,
treeUrl: `/api/v1/assets/nodes/category/tree/?assets=${showAssets ? '1' : '0'}&count_resource=${this.treeSetting.countResource || 'asset'}`,
callback: {
onSelected: (event, treeNode) => this.getAssetsUrl(treeNode)
}
}
}
]
}
}
},
computed: {
treeTableConfig() {
if (this.treeSetting.notShowBuiltinTree) {
// eslint-disable-next-line vue/no-side-effects-in-computed-properties
this.treeTabConfig.submenu.splice(1, 1)
}
return this.treeTabConfig
}
},
mounted() {
this.decorateRMenu()
const treeSetting = this.treeTabConfig.submenu[0].treeSetting
treeSetting.hasRightMenu = !this.currentOrgIsRoot
treeSetting.showCreate = this.$hasPerm('assets.add_node')
treeSetting.showUpdate = this.$hasPerm('assets.change_node')
treeSetting.showDelete = this.$hasPerm('assets.delete_node')
},
methods: {
setTreeUrlQuery() {
let str = ''
for (const key in this.treeUrlQuery) {
str += `${key}=${this.treeUrlQuery[key]}&`
}
str = str.substr(0, str.length - 1)
return str
},
decorateRMenu() {
const show_current_asset = this.$cookie.get('show_current_asset') || '0'
if (show_current_asset === '1') {
$('#m_show_asset_all_children_node').css('color', '#606266')
$('#m_show_asset_only_current_node').css('color', 'green')
} else {
$('#m_show_asset_all_children_node').css('color', 'green')
$('#m_show_asset_only_current_node').css('color', '#606266')
}
},
getAssetsUrl(treeNode) {
let url = this.treeSetting?.url || this.url
if (treeNode.meta.type === 'node') {
const nodeId = treeNode.meta.data.id
url = setUrlParam(url, 'node_id', nodeId)
url = setUrlParam(url, 'asset_id', '')
} else if (treeNode.meta.type === 'asset') {
const assetId = treeNode.meta.data?.id || treeNode.id
url = setUrlParam(url, 'node_id', '')
url = setUrlParam(url, 'asset_id', assetId)
} else if (treeNode.meta.type === 'category') {
url = setUrlParam(url, 'category', treeNode.meta.category)
} else if (treeNode.meta.type === 'type') {
url = setUrlParam(url, 'category', treeNode.meta.category)
url = setUrlParam(url, 'type', treeNode.meta._type)
} else if (treeNode.meta.type === 'platform') {
url = setUrlParam(url, 'platform', treeNode.id)
}
const query = this.setTreeUrlQuery()
url = query ? `${url}&${query}` : url
this.$set(this.tableConfig, 'url', url)
setRouterQuery(this, url)
}
}
}
</script>
<style lang='scss' scoped>
</style>

View File

@@ -1,5 +1,6 @@
<template>
<DataForm
:disabled="disabled"
:fields="iFields"
:form="value"
style="margin-left: -26%;margin-right: -6%"
@@ -28,6 +29,10 @@ export default {
errors: {
type: [Object, String],
default: ''
},
disabled: {
type: Boolean,
default: false
}
},
data() {
@@ -35,7 +40,7 @@ export default {
kwargs: {
hasReset: false,
hasSaveContinue: false,
defaultButton: false
hasButtons: false
}
}
},

View File

@@ -1,6 +1,24 @@
<template>
<DataForm ref="dataForm" v-loading="loading" :fields="totalFields" :form="iForm" v-bind="$attrs" v-on="$listeners">
<FormGroupHeader v-for="(group, i) in groups" :slot="'id:'+group.name" :key="'group-'+group.name" :title="group.title" :line="i !== 0" />
<DataForm
v-if="!loading"
ref="dataForm"
:fields="totalFields"
:form="iForm"
v-bind="$attrs"
v-on="$listeners"
>
<span
v-for="(group, i) in groups"
:key="'group-'+group.name"
:slot="'id:'+group.name"
>
<FormGroupHeader
v-if="!groupHidden(group, i)"
:group="group"
:index="i"
:line="i !== 0 && !groupHidden(groups[i - 1], i - 1)"
/>
</span>
</DataForm>
</template>
@@ -8,6 +26,7 @@
import DataForm from '../DataForm'
import FormGroupHeader from '@/components/FormGroupHeader'
import { FormFieldGenerator } from '@/components/AutoDataForm/utils'
export default {
name: 'AutoDataForm',
components: {
@@ -44,41 +63,69 @@ export default {
totalFields: [],
loading: true,
groups: [],
iForm: this.form
errors: {}
}
},
computed: {
iForm() {
const iForm = {}
Object.entries(this.form).forEach(([key, value]) => {
// 初始值是 choice 对象
if (value && typeof value === 'object' && value.label && value.value !== undefined) {
iForm[key] = value.value
} else if (Array.isArray(value) && value.length > 0 && typeof value[0] === 'object' &&
value[0].label && value[0].value !== undefined) {
iForm[key] = value.map(item => item.value)
} else {
iForm[key] = value
}
})
return iForm
}
},
mounted() {
this.optionUrlMetaAndGenerateColumns()
},
methods: {
optionUrlMetaAndGenerateColumns() {
this.$store.dispatch('common/getUrlMeta', { url: this.url }).then(data => {
this.remoteMeta = data.actions[this.method.toUpperCase()] || {}
this.generateColumns()
this.cleanFormValue()
}).catch(err => {
this.$log.error(err)
}).finally(() => {
this.loading = false
})
async optionUrlMetaAndGenerateColumns() {
let data = { actions: {}}
if (this.url) {
data = await this.$store.dispatch('common/getUrlMeta', { url: this.url })
}
this.remoteMeta = data.actions[this.method.toUpperCase()] || {}
this.$emit('afterRemoteMeta', this.remoteMeta)
this.generateColumns()
this.$emit('afterGenerateColumns', this.totalFields)
this.cleanFormValue()
this.loading = false
},
generateColumns() {
const generator = new FormFieldGenerator()
const generator = new FormFieldGenerator(this.$emit)
this.totalFields = generator.generateFields(this.fields, this.fieldsMeta, this.remoteMeta)
this.groups = generator.groups
this.$log.debug('Total fields: ', this.totalFields)
},
_cleanFormValue(form, remoteMeta) {
if (!form) {
form = {}
}
for (const [k, v] of Object.entries(remoteMeta)) {
if (v.default === undefined) {
continue
let valueSet = form[k]
if (v.type === 'nested object' && v.children) {
// 有一些字段属性时 nested object 类型,但是没有 children没有children的不需要走递归逻辑
// 比如:认证配置中的属性映射字段
if (typeof valueSet !== 'object') {
// 处理一些前端没有设置初始值的情况
valueSet = {}
}
form[k] = valueSet
this._cleanFormValue(valueSet, v.children)
}
const valueSet = form[k]
if (valueSet !== undefined) {
continue
}
if (v.type === 'nested object' && typeof valueSet === 'object') {
this._cleanFormValue(valueSet, v.children)
if (v.default === undefined) {
continue
}
form[k] = v.default
}
@@ -99,6 +146,18 @@ export default {
} else {
field.attrs.error = error
}
},
groupHidden(group, i) {
for (const field of group.fields) {
let hidden = field.hidden
if (typeof hidden === 'function') {
hidden = hidden(this.iForm)
}
if (!hidden) {
return false
}
}
return true
}
}
}

View File

@@ -1,22 +1,36 @@
import Vue from 'vue'
import Select2 from '@/components/FormFields/Select2'
import ObjectSelect2 from '@/components/FormFields/NestedObjectSelect2'
import NestedField from '@/components/AutoDataForm/components/NestedField'
import Switcher from '@/components/FormFields/Switcher'
import rules from '@/components/DataForm/rules'
import BasicTree from '@/components/FormFields/BasicTree'
import JsonEditor from '@/components/FormFields/JsonEditor'
import { assignIfNot } from '@/utils/common'
export class FormFieldGenerator {
constructor() {
constructor(emit) {
this.$emite = emit
this.groups = []
}
generateFieldByType(type, field, fieldMeta, fieldRemoteMeta) {
switch (type) {
case 'labeled_choice':
case 'choice':
type = 'radio-group'
if (!fieldRemoteMeta.read_only) {
field.options = fieldRemoteMeta.choices.map(v => {
return { label: v.display_name, value: v.value }
})
// Value 处理事在 AutoDataForm 中处理的
if (!fieldRemoteMeta['read_only']) {
field.options = fieldRemoteMeta.choices
}
type = 'radio-group'
break
case 'multiple choice':
field.options = fieldRemoteMeta.choices
type = 'checkbox-group'
break
case 'tree':
field.el.tree = fieldRemoteMeta.tree
field.component = BasicTree
break
case 'datetime':
type = 'date-picker'
@@ -24,53 +38,64 @@ export class FormFieldGenerator {
type: 'datetime'
}
break
case 'json':
type = 'json-editor'
field.component = JsonEditor
break
case 'field':
type = ''
field.component = Select2
if (fieldRemoteMeta.required) {
field.el.clearable = false
}
if (fieldRemoteMeta.child && fieldRemoteMeta.child.type === 'nested object') {
field.component = ObjectSelect2
}
break
case 'string':
type = 'input'
if (!fieldRemoteMeta.max_length) {
if (!fieldRemoteMeta['max_length']) {
field.el.type = 'textarea'
field.el.rows = 3
}
if (fieldRemoteMeta.write_only) {
if (fieldRemoteMeta['write_only']) {
field.el.type = 'password'
}
break
case 'boolean':
type = 'checkbox'
type = ''
field.component = Switcher
break
case 'object_related_field':
field.component = ObjectSelect2
break
case 'm2m_related_field':
field.component = ObjectSelect2
break
case 'nested object':
type = 'nestedField'
field.component = NestedField
field.label = ''
field.labelWidth = 0
field.el = { ...field.el, ...fieldMeta }
field.el.fields = this.generateNestFields(field, fieldMeta, fieldRemoteMeta)
field.el.errors = {}
Vue.$log.debug('All fields in generate: ', field.el.allFields)
break
default:
type = 'input'
break
}
// 上面重写了 type
if (type === 'radio-group') {
if (!fieldRemoteMeta.read_only) {
const options = fieldRemoteMeta.choices.map(v => {
return { label: v.display_name, value: v.value }
})
if (options.length > 4) {
type = 'select'
field.el.filterable = true
}
if (field.options.length > 4) {
type = 'select'
field.el.filterable = true
}
}
field.type = type
return field
}
generateNestFields(field, fieldMeta, fieldRemoteMeta) {
const fields = []
const nestedFields = fieldMeta.fields || []
@@ -83,6 +108,7 @@ export class FormFieldGenerator {
Vue.$log.debug('NestFields: ', fields)
return fields
}
generateFieldByName(name, field) {
switch (name) {
case 'email':
@@ -97,6 +123,7 @@ export class FormFieldGenerator {
}
return field
}
generateFieldByOther(field, fieldMeta, fieldRemoteMeta) {
const filedRules = field.rules || []
if (fieldRemoteMeta.required) {
@@ -106,15 +133,20 @@ export class FormFieldGenerator {
filedRules.push(rules.RequiredChange)
}
}
// 一些 field 有 choices 但不是 choiceField
if (fieldRemoteMeta.choices && field.type.indexOf('choice') === -1) {
field.el.choices = fieldRemoteMeta.choices
}
field.rules = filedRules
return field
}
generateField(name, fieldsMeta, remoteFieldsMeta) {
let field = { id: name, prop: name, el: {}, attrs: {}, rules: [] }
const remoteFieldMeta = remoteFieldsMeta[name] || {}
const fieldMeta = fieldsMeta[name] || {}
field.label = remoteFieldMeta.label
field.helpText = remoteFieldMeta.help_text
field.helpText = remoteFieldMeta['help_text']
field = this.generateFieldByType(remoteFieldMeta.type, field, fieldMeta, remoteFieldMeta)
field = this.generateFieldByName(name, field)
field = this.generateFieldByOther(field, fieldMeta, remoteFieldMeta)
@@ -127,15 +159,20 @@ export class FormFieldGenerator {
// Vue.$log.debug('Generate field: ', name, field)
return field
}
generateFieldGroup(field, fieldsMeta, remoteFieldsMeta) {
const [groupTitle, fields] = field
this.groups.push({
const _fields = this.generateFields(fields, fieldsMeta, remoteFieldsMeta)
const group = {
id: groupTitle,
title: groupTitle,
name: fields[0]
})
return this.generateFields(fields, fieldsMeta, remoteFieldsMeta)
fields: _fields,
name: _fields[0].id
}
this.groups.push(group)
return _fields
}
generateFields(_fields, fieldsMeta, remoteFieldsMeta) {
let fields = []
for (let field of _fields) {
@@ -146,7 +183,9 @@ export class FormFieldGenerator {
field = this.generateField(field, fieldsMeta, remoteFieldsMeta)
fields.push(field)
} else if (field instanceof Object) {
this.errors[field.prop] = ''
if (this.errors) {
this.errors[field.prop] = ''
}
fields.push(field)
}
}

View File

@@ -4,9 +4,12 @@
<script>
import TagSearch from '@/components/TagSearch'
import i18n from '@/i18n/i18n'
export default {
name: 'AutoDataSearch',
components: { TagSearch },
components: {
TagSearch
},
props: {
url: {
type: String,
@@ -30,7 +33,8 @@ export default {
},
computed: {
iOption() {
return this.options.concat(this.internalOptions)
const options = this.options.concat(this.internalOptions)
return _.uniqWith(options, _.isEqual)
}
},
watch: {
@@ -64,24 +68,27 @@ export default {
type: field.type,
value: name
}
if (field.type === 'choice' && field.choices) {
if (['choice', 'labeled_choice'].indexOf(field.type) > -1 && field.choices) {
option.children = field.choices.map(item => {
if (typeof (item.value) === 'boolean') {
if (item.value) {
return { label: item.display_name, value: 'True' }
return { label: item.label, value: 'True' }
} else {
return { label: item.display_name, value: 'False' }
return { label: item.label, value: 'False' }
}
}
return { label: item.display_name, value: item.value }
return { label: item.label, value: item.value }
})
}
if (field.type === 'boolean') {
option.children = [
{ label: this.$t('common.Yes'), value: true },
{ label: this.$t('common.No'), value: false }
{ label: i18n.t('common.Yes'), value: true },
{ label: i18n.t('common.No'), value: false }
]
}
if (option.value === 'id') {
option.label = 'ID'
}
vm.internalOptions.push(option)
}
},

View File

@@ -1,12 +1,13 @@
<template>
<Dialog
v-if="showColumnSettingPopover"
:title="$t('common.CustomCol')"
:visible.sync="showColumnSettingPopover"
:cancel-title="$tc('common.RestoreDefault')"
:destroy-on-close="true"
:show-cancel="false"
width="35%"
:title="$tc('common.CustomCol')"
:visible.sync="showColumnSettingPopover"
top="10%"
width="50%"
@cancel="restoreDefault()"
@confirm="handleColumnConfirm()"
>
<el-alert type="success">
@@ -23,24 +24,20 @@
style="margin-top:5px;"
>
<el-checkbox
:disabled="item.prop==='actions' || minColumns.indexOf(item.prop)!==-1"
:label="item.prop"
:disabled="
item.prop==='id' ||
item.prop==='actions' ||
minColumns.indexOf(item.prop)!==-1
"
>
{{ item.label }}
</el-checkbox>
</el-col>
</el-row>
</el-checkbox-group>
</Dialog>
</template>
<script>
import Dialog from '@/components/Dialog/index'
export default {
name: 'ColumnSettingPopover',
components: {
@@ -82,6 +79,10 @@ export default {
handleColumnConfirm() {
this.showColumnSettingPopover = false
this.$emit('columnsUpdate', { columns: this.iCurrentColumns, url: this.url })
},
restoreDefault() {
this.showColumnSettingPopover = false
this.$emit('columnsUpdate', { columns: null, url: this.url })
}
}
}

View File

@@ -1,10 +1,18 @@
<template>
<div>
<DataTable v-if="!loading" ref="dataTable" v-loading="loading" :config="iConfig" v-bind="$attrs" v-on="$listeners" @filter-change="filterChange" />
<DataTable
v-if="!loading"
ref="dataTable"
v-loading="loading"
:config="iConfig"
v-bind="$attrs"
v-on="$listeners"
@filter-change="filterChange"
/>
<ColumnSettingPopover
:current-columns="popoverColumns.currentCols"
:total-columns-list="popoverColumns.totalColumnsList"
:min-columns="popoverColumns.minCols"
:total-columns-list="popoverColumns.totalColumnsList"
:url="config.url"
@columnsUpdate="handlePopoverColumnsChange"
/>
@@ -13,10 +21,14 @@
<script type="text/jsx">
import DataTable from '../DataTable'
import { DateFormatter, DetailFormatter, DisplayFormatter, BooleanFormatter, ActionsFormatter } from '@/components/TableFormatters'
import {
ActionsFormatter, ArrayFormatter, ChoicesFormatter, DateFormatter, DetailFormatter, DisplayFormatter,
ObjectRelatedFormatter
} from '@/components/TableFormatters'
import i18n from '@/i18n/i18n'
import { newURL, replaceAllUUID } from '@/utils/common'
import ColumnSettingPopover from './components/ColumnSettingPopover'
import { newURL } from '@/utils/common'
export default {
name: 'AutoDataTable',
components: {
@@ -49,14 +61,12 @@ export default {
}
}
},
computed: {
},
computed: {},
watch: {
config: {
handler(iNew) {
handler: function(iNew, iOld) {
this.optionUrlMetaAndGenCols()
this.$log.debug('AutoDataTable Config change found')
this.$log.debug('AutoDataTable Config change found: ')
},
deep: true
}
@@ -66,8 +76,12 @@ export default {
},
methods: {
async optionUrlMetaAndGenCols() {
if (this.config.url === '') { return }
const url = (this.config.url.indexOf('?') === -1) ? `${this.config.url}?draw=1&display=1` : `${this.config.url}&draw=1&display=1`
if (this.config.url === '') {
return
}
const url = (this.config.url.indexOf('?') === -1)
? `${this.config.url}?draw=1&display=1`
: `${this.config.url}&draw=1&display=1`
this.$store.dispatch('common/getUrlMeta', { url: url }).then(data => {
const method = this.method.toUpperCase()
this.meta = data.actions && data.actions[method] ? data.actions[method] : {}
@@ -103,8 +117,23 @@ export default {
break
case 'is_valid':
col.label = i18n.t('common.Validity')
col.formatter = BooleanFormatter
col.align = 'center'
col.formatter = ChoicesFormatter
col.formatterArgs = {
textChoices: {
true: i18n.t('common.Yes'),
false: i18n.t('common.No')
}
}
col.width = '80px'
break
case 'is_active':
col.formatter = ChoicesFormatter
col.formatterArgs = {
textChoices: {
true: i18n.t('common.Active'),
false: i18n.t('common.Inactive')
}
}
col.width = '80px'
break
case 'datetime':
@@ -116,21 +145,41 @@ export default {
}
return col
},
generateColumnByType(type, col) {
generateColumnByType(type, col, meta) {
switch (type) {
case 'choice':
col.sortable = 'custom'
col.formatter = DisplayFormatter
break
case 'labeled_choice':
col.sortable = 'custom'
col.formatter = ChoicesFormatter
break
case 'boolean':
col.formatter = BooleanFormatter
col.align = 'center'
col.formatter = ChoicesFormatter
col.width = '80px'
break
case 'datetime':
col.formatter = DateFormatter
col.width = '160px'
break
case 'object_related_field':
col.formatter = ObjectRelatedFormatter
break
case 'm2m_related_field':
col.formatter = ObjectRelatedFormatter
break
case 'list':
col.formatter = ArrayFormatter
break
case 'json':
case 'field':
if (meta.child && meta.child.type === 'nested object') {
col.formatter = ObjectRelatedFormatter
}
break
}
// this.$log.debug('Field: ', type, col.prop, col)
return col
},
addHelpTipsIfNeed(col) {
@@ -142,9 +191,9 @@ export default {
return (
<span>{column.label}
<el-tooltip placement='bottom' effect='light' popperClass='help-tips'>
<div slot='content' domPropsInnerHTML={helpTips} />
<div slot='content' domPropsInnerHTML={helpTips}/>
<el-button style='padding: 0'>
<i class='fa fa-info-circle' />
<i class='fa fa-info-circle'/>
</el-button>
</el-tooltip>
</span>
@@ -160,8 +209,8 @@ export default {
}
if (column.type === 'boolean') {
col.filters = [
{ text: this.$t('common.Yes'), value: true },
{ text: this.$t('common.No'), value: false }
{ text: i18n.t('common.Yes'), value: true },
{ text: i18n.t('common.No'), value: false }
]
col.sortable = false
col['column-key'] = col.prop
@@ -170,12 +219,12 @@ export default {
col.filters = column.choices.map(item => {
if (typeof (item.value) === 'boolean') {
if (item.value) {
return { text: item['display_name'], value: 'True' }
return { text: item['label'], value: 'True' }
} else {
return { text: item['display_name'], value: 'False' }
return { text: item['label'], value: 'False' }
}
}
return { text: item['display_name'], value: item.value }
return { text: item['label'], value: item.value }
})
col.sortable = false
col['column-key'] = col.prop
@@ -183,22 +232,65 @@ export default {
}
return col
},
addOrderingIfNeed(col) {
if (col.prop) {
const column = this.meta[col.prop] || {}
if (column.order) {
col.sortable = 'custom'
col['column-key'] = col.prop
}
}
return col
},
setDefaultFormatterIfNeed(col) {
if (!col.formatter) {
col.formatter = (row, column, cellValue) => {
let value = cellValue
let padding = '0'
const excludes = [undefined, null, '']
if (excludes.indexOf(value) !== -1) {
padding = '6px'
value = '-'
}
return <span style={{ marginLeft: padding }}>{value}</span>
}
}
return col
},
generateColumn(name) {
const colMeta = this.meta[name] || {}
const customMeta = this.config.columnsMeta ? this.config.columnsMeta[name] : {}
let col = { prop: name, label: colMeta.label }
let col = { prop: name, label: colMeta.label, showOverflowTooltip: true }
col = this.generateColumnByName(name, col)
col = this.generateColumnByType(colMeta.type, col)
col = this.generateColumnByType(colMeta.type, col, colMeta)
col = this.setDefaultFormatterIfNeed(col)
col = Object.assign(col, customMeta)
col = this.addHelpTipsIfNeed(col)
col = this.addFilterIfNeed(col)
col = this.addOrderingIfNeed(col)
return col
},
generateTotalColumns() {
const config = _.cloneDeep(this.config)
const columns = []
for (let col of config.columns) {
let columns = []
const allColumnNames = Object.entries(this.meta)
.filter(([name, meta]) => !meta['write_only'])
.map(([name, meta]) => name)
.concat(config.columnsExtra || [])
let configColumns = config.columns || allColumnNames
const columnsExclude = config.columnsExclude || []
configColumns = configColumns.filter(item => !columnsExclude.includes(item))
// 解决后端 API 返回字段中包含 actions 的问题;
const hasColumnActions = configColumns.findIndex(item => item?.prop === 'actions') !== -1
if (!hasColumnActions) {
configColumns = [...configColumns.filter(i => i !== 'actions'), 'actions']
}
for (let col of configColumns) {
if (typeof col === 'object') {
columns.push(col)
} else if (typeof col === 'string') {
@@ -206,6 +298,19 @@ export default {
columns.push(col)
}
}
columns = columns.filter(item => {
if (item?.showFullContent) {
item.className = 'show-full-content'
}
let has = item.has
if (has === undefined) {
has = true
} else if (typeof has === 'function') {
has = has()
}
return has
})
// 第一次初始化时记录 totalColumns
this.totalColumns = columns
config.columns = columns
@@ -230,7 +335,8 @@ export default {
const _tableConfig = localStorage.getItem('tableConfig')
? JSON.parse(localStorage.getItem('tableConfig'))
: {}
const tableName = this.config.name || this.$route.name + '_' + newURL(this.iConfig.url).pathname
let tableName = this.config.name || this.$route.name + '_' + newURL(this.iConfig.url).pathname
tableName = replaceAllUUID(tableName)
const configShowColumnsNames = _.get(_tableConfig[tableName], 'showColumns', null)
let showColumnsNames = configShowColumnsNames || defaultColumnsNames
if (showColumnsNames.length === 0) {
@@ -260,8 +366,10 @@ export default {
})
},
generatePopoverColumns() {
this.popoverColumns.totalColumnsList = this.totalColumns.map(obj => {
return { prop: obj.prop, label: obj.label }
this.popoverColumns.totalColumnsList = this.totalColumns.filter(obj => {
if (obj.label) {
return { prop: obj.prop, label: obj.label }
}
})
this.popoverColumns.currentCols = this.cleanedColumnsShow.show
this.popoverColumns.minCols = this.cleanedColumnsShow.min
@@ -269,11 +377,17 @@ export default {
},
handlePopoverColumnsChange({ columns, url }) {
this.$log.debug('Columns change: ', columns)
if (columns === null) {
columns = this.cleanedColumnsShow.default
}
this.popoverColumns.currentCols = columns
const _tableConfig = localStorage.getItem('tableConfig')
? JSON.parse(localStorage.getItem('tableConfig'))
: {}
const tableName = this.config.name || this.$route.name + '_' + newURL(url).pathname
let tableName = this.config.name || this.$route.name + '_' + newURL(url).pathname
// 替换url中的uuid避免同一个类型接口生成多个keylocalStorage中的数据无法共用
tableName = replaceAllUUID(tableName)
_tableConfig[tableName] = {
'showColumns': columns
}

View File

@@ -1,13 +1,13 @@
<template>
<DataZTree ref="dataztree" :setting="treeSetting" class="data-z-tree" v-on="$listeners">
<slot v-if="treeSetting.hasRightMenu" slot="rMenu">
<li id="m_create" class="rmenu" tabindex="-1" @click="createTreeNode">
<li v-if="treeSetting.showCreate" id="m_create" class="rmenu" tabindex="-1" @click="createTreeNode">
<i class="fa fa-plus-square-o" /> {{ this.$t('tree.CreateNode') }}
</li>
<li id="m_edit" class="rmenu" tabindex="-1" @click="editTreeNode">
<li v-if="treeSetting.showUpdate" id="m_edit" class="rmenu" tabindex="-1" @click="editTreeNode">
<i class="fa fa-pencil-square-o" /> {{ this.$t('tree.RenameNode') }}
</li>
<li id="m_del" class="rmenu" tabindex="-1" @click="removeTreeNode">
<li v-if="treeSetting.showDelete" id="m_del" class="rmenu" tabindex="-1" @click="removeTreeNode">
<i class="fa fa-minus-square" /> {{ this.$t('tree.DeleteNode') }}
</li>
<slot name="rMenu" />
@@ -18,6 +18,7 @@
<script>
import DataZTree from '../DataZTree'
import $ from '@/utils/jquery-vendor'
import { mapGetters } from 'vuex'
export default {
name: 'AutoDataZTree',
@@ -34,13 +35,18 @@ export default {
data() {
return {
defaultSetting: {
showCreate: true,
showDelete: true,
showUpdate: true,
showSearch: false,
customTreeHeaderName: this.$t('assets.AssetTree'),
async: {
enable: true,
url: (process.env.VUE_APP_ENV === 'production') ? (`${this.setting.treeUrl}`) : (`${process.env.VUE_APP_BASE_API}${this.setting.treeUrl}`),
autoParam: ['id=key', 'name=n', 'level=lv'],
type: 'get',
headers: {
'X-JMS-ORG': this.$store.getters.currentOrg.id
'X-JMS-ORG': this.$store.getters.currentOrg ? this.$store.getters.currentOrg.id : ''
}
},
callback: {
@@ -63,6 +69,9 @@ export default {
}
},
computed: {
...mapGetters([
'currentOrg'
]),
treeSetting() {
this.$log.debug('Settings: ', this.setting)
return _.merge(this.defaultSetting, this.setting)
@@ -79,8 +88,8 @@ export default {
},
methods: {
refreshTree: function() {
const refreshIconRef = $('#tree-refresh')
refreshIconRef.click()
// const refreshIconRef = $('#tree-refresh')
// refreshIconRef.click()
},
editTreeNode: function() {
this.hideRMenu()
@@ -100,20 +109,26 @@ export default {
// Request URL: http://localhost/api/v1/assets/assets/?node_id=d8212328-538d-41a6-bcfd-1e8cc7e3aed4&show_current_asset=null&draw=2&limit=15&offset=0&_=1587022917769
onSelected: function(event, treeNode) {
const show_current_asset = this.$cookie.get('show_current_asset') || '0'
if (!this.setting.url) {
return
}
let combinator = '?'
if (this.setting.url.indexOf('?') !== -1) {
combinator = '&'
}
let url = ''
const query = Object.assign({}, this.$route.query)
const objectId = treeNode.meta.data.id
if (treeNode.meta.type === 'node') {
this.currentNode = treeNode
this.currentNodeId = treeNode.meta.data.id
query['node'] = this.currentNodeId
url = `${this.setting.url}${combinator}node_id=${treeNode.meta.data.id}&show_current_asset=${show_current_asset}`
query['asset'] = ''
url = `${this.setting.url}${combinator}node_id=${objectId}&show_current_asset=${show_current_asset}`
} else if (treeNode.meta.type === 'asset') {
query['asset'] = treeNode.meta.data.id
url = `${this.setting.url}${combinator}asset_id=${treeNode.meta.data.id}&show_current_asset=${show_current_asset}`
query['asset'] = treeNode.meta.data?.id || treeNode.id
query['node'] = ''
url = `${this.setting.url}${combinator}asset_id=${query.asset}&show_current_asset=${show_current_asset}`
}
this.$router.push({ query })
this.$emit('urlChange', url)
@@ -127,15 +142,16 @@ export default {
this.$axios.delete(
`${this.treeSetting.nodeUrl}${currentNode.meta.data.id}/`
).then(() => {
this.$message.success(this.$t('common.deleteSuccessMsg'))
this.$message.success(this.$tc('common.deleteSuccessMsg'))
this.zTree.removeNode(currentNode)
this.refreshTree()
}).catch(() => {
// this.$message.error(this.$t('common.deleteErrorMsg') + ' ' + error)
// this.$message.error(this.$tc('common.deleteErrorMsg') + ' ' + error)
})
},
onRename: function(event, treeId, treeNode, isCancel) {
const url = `${this.treeSetting.nodeUrl}${this.currentNodeId}/`
const currentNodeId = this.currentNodeId || treeNode.meta.data?.id || ''
const url = `${this.treeSetting.nodeUrl}${currentNodeId}/`
if (isCancel) {
return
}
@@ -143,14 +159,17 @@ export default {
url,
{ 'value': treeNode.name }
).then(res => {
let assetsAmount = treeNode.meta.data.assetsAmount
let assetsAmount = treeNode.meta.data['assetsAmount']
if (!assetsAmount) {
assetsAmount = 0
}
treeNode.name = treeNode.name + ' (' + assetsAmount + ')'
treeNode.meta.data = res
this.zTree.updateNode(treeNode)
this.$message.success(this.$t('common.updateSuccessMsg'))
}).finally(() => { this.refreshTree() })
this.$message.success(this.$tc('common.updateSuccessMsg'))
}).finally(() => {
this.refreshTree()
})
},
onBodyMouseDown: function(event) {
const rMenuID = this.$refs.dataztree.$refs.ztree.iRMenuID
@@ -162,7 +181,7 @@ export default {
const rMenuID = this.$refs.dataztree.$refs.ztree.iRMenuID
const zTreeID = this.$refs.dataztree.$refs.ztree.iZTreeID
const offset = $(`#${zTreeID}`).offset()
const scrollTop = document.querySelector('.treebox').scrollTop
const scrollTop = document.querySelector('.treebox')?.scrollTop
x -= offset.left
// Tmp
y -= (offset.top + scrollTop) / 3 - 10
@@ -182,7 +201,7 @@ export default {
return
}
// 屏蔽收藏资产
if (treeNode.id === '-12') {
if (treeNode?.id === '-12') {
return
}
if (!treeNode && event.target.tagName.toLowerCase() !== 'button' && $(event.target).parents('a').length === 0) {
@@ -216,10 +235,10 @@ export default {
nodes: treeNodesIds
}
).then((res) => {
this.$message.success(this.$t('common.updateSuccessMsg'))
this.$message.success(this.$tc('common.updateSuccessMsg'))
}).catch(error => {
this.$message.error(this.$t('common.updateErrorMsg' + ' ' + error))
}).finally(() => this.refreshTree())
this.$message.error(this.$tc('common.updateErrorMsg' + ' ' + error))
}).finally()
},
createTreeNode: function() {
this.hideRMenu()
@@ -235,19 +254,20 @@ export default {
id: data['key'],
name: data['value'],
pId: parentNode.id,
isParent: true,
meta: {
'node': data
data: data,
type: 'node'
}
}
newNode.checked = this.zTree.getSelectedNodes()[0].checked
this.zTree.addNodes(parentNode, 0, newNode)
// vm.$refs.dataztree.refresh()
const node = this.zTree.getNodeByParam('id', newNode.id, parentNode)
this.currentNodeId = node.meta.data.id || newNode.id
this.zTree.editName(node)
this.$message.success(this.$t('common.createSuccessMsg'))
this.$message.success(this.$tc('common.createSuccessMsg'))
}).catch(error => {
this.$message.error(this.$t('common.createErrorMsg') + ' ' + error)
this.$message.error(this.$tc('common.createErrorMsg') + ' ' + error)
})
},
refresh: function() {
@@ -285,11 +305,13 @@ export default {
text-decoration: none;
background-color: #f5f5f5;
}
.rmenu:hover{
.rmenu:hover {
background-color: #f5f7fa;
}
.data-z-tree >>> .fa {
width: 10px;
margin-right: 3px;
}
</style>

View File

@@ -0,0 +1,460 @@
/* eslint-disable */
<template>
<div>
<el-tabs type="border-card">
<el-tab-pane v-if="shouldHide('min')" :label="$tc('common.CronTab.min')">
<CrontabMin
ref="cronmin"
:check="checkNumber"
:cron="contabValueObj"
@update="updateContabValue"
/>
</el-tab-pane>
<el-tab-pane v-if="shouldHide('hour')" :label="$tc('common.CronTab.hour')">
<CrontabHour
ref="cronhour"
:check="checkNumber"
:cron="contabValueObj"
@update="updateContabValue"
/>
</el-tab-pane>
<el-tab-pane v-if="shouldHide('day')" :label="$tc('common.CronTab.day')">
<CrontabDay
ref="cronday"
:check="checkNumber"
:cron="contabValueObj"
@update="updateContabValue"
/>
</el-tab-pane>
<el-tab-pane v-if="shouldHide('month')" :label="$tc('common.CronTab.month')">
<CrontabMonth
ref="cronmonth"
:check="checkNumber"
:cron="contabValueObj"
@update="updateContabValue"
/>
</el-tab-pane>
<el-tab-pane v-if="shouldHide('week')" :label="$tc('common.CronTab.week')">
<CrontabWeek
ref="cronweek"
:check="checkNumber"
:cron="contabValueObj"
@update="updateContabValue"
/>
</el-tab-pane>
</el-tabs>
<div class="popup-main">
<div class="popup-result">
<p class="title">{{ this.$t('common.CronTab.timeExpression') }}</p>
<table>
<thead>
<th v-for="item of tabTitles" :key="item" width="40">{{ item }}</th>
</thead>
<tbody>
<td>
<el-input
v-model.trim="contabValueObj.min"
min="0"
max="5"
size="small"
onkeyup="value=value.replace(/[^\0-9\-\*\,]/g,'')"
/>
</td>
<td>
<el-input
v-model.trim="contabValueObj.hour"
size="small"
onkeyup="value=value.replace(/[^\0-9\-\*\,]/g,'')"
/>
</td>
<td>
<el-input
v-model.trim="contabValueObj.day"
size="small"
onkeyup="value=value.replace(/[^\0-9\\-\*\,]/g,'')"
/>
</td>
<td>
<el-input
v-model.trim="contabValueObj.month"
size="small"
onkeyup="value=value.replace(/[^\0-9\-\*\,]/g,'')"
/>
</td>
<td>
<el-input
v-model.trim="contabValueObj.week"
size="small"
onkeyup="value=value.replace(/[^\0-9\-\*\,]/g,'')"
/>
</td>
</tbody>
</table>
<div style="margin: 0 auto; text-align: center">
<div style="font-size: 13px;">{{ this.$t('common.CronTab.cronExpression') }}</div>
<div style="font-size: 13px;">{{ contabValueString }}</div>
</div>
</div>
<CrontabResult :ex="contabValueString" />
<div class="pop_btn">
<el-button
size="small"
@click="clearCron"
>
{{ this.$t('common.Reset') }}
</el-button>
<el-button
size="small"
type="primary"
@click="submitFill"
>
{{ this.$t('common.Confirm') }}
</el-button>
</div>
</div>
</div>
</template>
<script>
import CrontabMin from './components/Crontab-Min.vue'
import CrontabHour from './components/Crontab-Hour.vue'
import CrontabDay from './components/Crontab-Day.vue'
import CrontabMonth from './components/Crontab-Month.vue'
import CrontabWeek from './components/Crontab-Week.vue'
import CrontabResult from './components/Crontab-Result.vue'
export default {
name: 'Vcrontab',
components: {
CrontabMin,
CrontabHour,
CrontabDay,
CrontabMonth,
CrontabWeek,
CrontabResult
},
props: {
expression: {
type: String,
default() {
return ''
}
},
hideComponent: {
type: Array,
default() {
return []
}
}
},
data() {
return {
tabTitles: [this.$t('common.CronTab.min'), this.$t('common.CronTab.hour'), this.$t('common.CronTab.day'), this.$t('common.CronTab.month'), this.$t('common.CronTab.week')],
tabActive: 0,
myindex: 0,
contabValueObj: {
second: '0',
min: '0',
hour: '*',
day: '*',
month: '*',
week: '*'
// year: "",
},
newContabValueString: ''
}
},
computed: {
contabValueString: {
get() {
const obj = this.contabValueObj
const str =
obj.min +
' ' +
obj.hour +
' ' +
obj.day +
' ' +
obj.month +
' ' +
obj.week
return str
},
set() {
}
}
},
watch: {
expression: 'resolveExp',
hideComponent(value) {
// 隐藏部分组件
}
},
mounted: function() {
this.resolveExp()
},
methods: {
shouldHide(key) {
if (this.hideComponent && this.hideComponent.includes(key)) return false
return true
},
resolveExp() {
// 反解析 表达式
if (this.expression) {
const arr = this.expression.split(' ')
if (arr.length >= 5) {
// 5 位以上是合法表达式
const obj = {
min: arr[0],
hour: arr[1],
day: arr[2],
month: arr[3],
week: arr[4]
}
this.contabValueObj = {
...this.contabValueObj,
...obj
}
for (const i in obj) {
if (obj[i]) this.changeRadio(i, obj[i])
}
}
} else {
// 没有传入的表达式 则还原
this.clearCron()
}
},
// tab切换值
tabCheck(index) {
this.tabActive = index
},
// 由子组件触发,更改表达式组成的字段值
updateContabValue(name, value, from) {
this.contabValueObj[name] = value
if (from && from !== name) {
// debug(`来自组件 ${from} 改变了 ${name} ${value}`)
this.changeRadio(name, value)
}
},
// 赋值到组件
changeRadio(name, value) {
const arr = ['second', 'min', 'hour', 'month']
const refName = 'cron' + name
let insVlaue
if (!this.$refs[refName]) return
if (arr.includes(name)) {
if (value === '*') {
insVlaue = 1
} else if (value.indexOf('-') > -1) {
const indexArr = value.split('-')
isNaN(indexArr[0])
? (this.$refs[refName].cycle01 = 0)
: (this.$refs[refName].cycle01 = indexArr[0])
this.$refs[refName].cycle02 = indexArr[1]
insVlaue = 2
} else if (value.indexOf('/') > -1) {
const indexArr = value.split('/')
isNaN(indexArr[0])
? (this.$refs[refName].average01 = 0)
: (this.$refs[refName].average01 = indexArr[0])
this.$refs[refName].average02 = indexArr[1]
insVlaue = 3
} else {
insVlaue = 4
this.$refs[refName].checkboxList = value.split(',')
}
} else if (name === 'day') {
if (value === '*') {
insVlaue = 1
} else if (value === '?') {
insVlaue = 2
} else if (value.indexOf('-') > -1) {
const indexArr = value.split('-')
isNaN(indexArr[0])
? (this.$refs[refName].cycle01 = 0)
: (this.$refs[refName].cycle01 = indexArr[0])
this.$refs[refName].cycle02 = indexArr[1]
insVlaue = 3
} else if (value.indexOf('/') > -1) {
const indexArr = value.split('/')
isNaN(indexArr[0])
? (this.$refs[refName].average01 = 0)
: (this.$refs[refName].average01 = indexArr[0])
this.$refs[refName].average02 = indexArr[1]
insVlaue = 4
} else if (value.indexOf('W') > -1) {
const indexArr = value.split('W')
isNaN(indexArr[0])
? (this.$refs[refName].workday = 0)
: (this.$refs[refName].workday = indexArr[0])
insVlaue = 5
} else if (value === 'L') {
insVlaue = 6
} else {
this.$refs[refName].checkboxList = value.split(',')
insVlaue = 7
}
} else if (name === 'week') {
if (value === '*') {
insVlaue = 1
} else if (value === '?') {
insVlaue = 2
} else if (value.indexOf('-') > -1) {
const indexArr = value.split('-')
isNaN(indexArr[0])
? (this.$refs[refName].cycle01 = 0)
: (this.$refs[refName].cycle01 = indexArr[0])
this.$refs[refName].cycle02 = indexArr[1]
insVlaue = 3
} else if (value.indexOf('#') > -1) {
const indexArr = value.split('#')
isNaN(indexArr[0])
? (this.$refs[refName].average01 = 1)
: (this.$refs[refName].average01 = indexArr[0])
this.$refs[refName].average02 = indexArr[1]
insVlaue = 4
} else if (value.indexOf('L') > -1) {
const indexArr = value.split('L')
isNaN(indexArr[0])
? (this.$refs[refName].weekday = 1)
: (this.$refs[refName].weekday = indexArr[0])
insVlaue = 5
} else {
this.$refs[refName].checkboxList = value.split(',')
insVlaue = 6
}
} else if (name === 'year') {
if (value === '') {
insVlaue = 1
} else if (value === '*') {
insVlaue = 2
} else if (value.indexOf('-') > -1) {
insVlaue = 3
} else if (value.indexOf('/') > -1) {
insVlaue = 4
} else {
this.$refs[refName].checkboxList = value.split(',')
insVlaue = 5
}
}
this.$refs[refName].radioValue = insVlaue
},
// 表单选项的子组件校验数字格式(通过-props传递
checkNumber(value, minLimit, maxLimit) {
// 检查必须为整数
value = Math.floor(value)
if (value < minLimit) {
value = minLimit
} else if (value > maxLimit) {
value = maxLimit
}
return value
},
// 隐藏弹窗
hidePopup() {
this.$emit('hide')
},
// 填充表达式
submitFill() {
this.$emit('fill', this.contabValueString)
this.hidePopup()
},
clearCron() {
// 还原选择项
this.contabValueObj = {
second: '0',
min: '0',
hour: '0',
day: '*',
month: '*',
week: '*'
// year: "",
}
for (const j in this.contabValueObj) {
this.changeRadio(j, this.contabValueObj[j])
}
}
}
}
</script>
<style scoped>
.pop_btn {
text-align: center;
margin-top: 20px;
}
.popup-main {
position: relative;
margin: 10px auto 0;
background: #fff;
border-radius: 5px;
font-size: 12px;
overflow: hidden;
}
.popup-title {
overflow: hidden;
line-height: 34px;
padding-top: 6px;
background: #f2f2f2;
}
.popup-result {
position: relative;
box-sizing: border-box;
line-height: 24px;
margin: 17px auto;
padding: 10px 10px 10px;
border: 1px solid #dcdfe6;
box-shadow: 0 2px 4px 0 rgb(0 0 0 / 12%), 0 0 6px 0 rgb(0 0 0 / 4%);
}
.popup-result .title {
position: absolute;
top: -17px;
left: 50%;
width: 140px;
font-size: 14px;
margin-left: -70px;
text-align: center;
line-height: 30px;
background: #fff;
}
.popup-result table {
text-align: center;
width: 100%;
margin: 0 auto;
}
.popup-result table span {
display: block;
width: 100%;
font-family: arial;
line-height: 30px;
height: 30px;
white-space: nowrap;
overflow: hidden;
border: 1px solid #e8e8e8;
}
.popup-result-scroll {
font-size: 12px;
line-height: 24px;
height: 10em;
overflow-y: auto;
}
.el-form-item--mini.el-form-item,
.el-form-item--small.el-form-item {
margin-bottom: 10px;
}
</style>

View File

@@ -0,0 +1,196 @@
/* eslint-disable */
<template>
<el-form size="small">
<el-form-item>
<el-radio v-model="radioValue" :label="1">
{{ this.$t('common.CronTab.day') }}{{ this.$t('common.CronTab.wildcardsAllowed') }}[, - * /]
</el-radio>
</el-form-item>
<el-form-item>
<el-radio v-model="radioValue" :label="3">
{{ this.$t('common.CronTab.from') }}
<el-input-number v-model="cycle01" :min="0" :max="31" /> -
<el-input-number v-model="cycle02" :min="0" :max="31" /> {{ this.$t('common.CronTab.day') }}
</el-radio>
</el-form-item>
<el-form-item>
<el-radio v-model="radioValue" :label="4">
{{ this.$t('common.CronTab.every') }}
<el-input-number v-model="average02" :min="1" :max="31" /> {{ this.$t('common.CronTab.day') }}{{ this.$t('common.CronTab.executeOnce') }}
</el-radio>
</el-form-item>
<el-form-item>
<el-radio v-model="radioValue" :label="7">
{{ this.$t('common.CronTab.appoint') }}
<el-select
v-model="checkboxList"
clearable
:placeholder="$tc('common.CronTab.manyChoose')"
multiple
style="width:100%"
>
<el-option v-for="item in 31" :key="item" :value="item">{{ item }}</el-option>
</el-select>
</el-radio>
</el-form-item>
</el-form>
</template>
<script>
export default {
name: 'CrontabDay',
props: {
cron: {
type: Object,
default: () => {
return {}
}
},
check: {
type: Function,
default: () => {
}
}
},
data() {
return {
radioValue: 1,
workday: 1,
cycle01: 1,
cycle02: 2,
average01: 1,
average02: 1,
checkboxList: [],
checkNum: this.$options.propsData.check
}
},
computed: {
cycleTotal: {
get() {
return this.cycle01 + '-' + this.cycle02
},
set() {
this.cycle01 = this.checkNum(this.cycle01, 1, 31)
this.cycle02 = this.checkNum(this.cycle02, 1, 31)
}
},
averageTotal: {
get() {
return '*' + '/' + this.average02
},
set() {
this.average01 = this.checkNum(this.average01, 1, 31)
this.average02 = this.checkNum(this.average02, 1, 31)
}
},
checkboxString: {
get() {
const str = this.checkboxList.join()
return str === '' ? '*' : str
},
set() {
}
}
},
watch: {
'radioValue': 'radioChange',
'cycleTotal': 'cycleChange',
'averageTotal': 'averageChange',
'workdayCheck': 'workdayChange',
'checkboxString': 'checkboxChange'
},
created() {
this.$nextTick(() => {
const arrs = []
for (let index = 0; index < this.checkboxList.length; index++) {
const cur = this.checkboxList[index]
arrs.push(parseFloat(cur))
}
this.checkboxList = arrs
})
},
methods: {
// 单选按钮值变化时
radioChange() {
('day rachange')
if (this.radioValue === 1) {
this.$emit('update', 'day', '*', 'day')
} else {
if (this.cron.hour === '*') {
this.$emit('update', 'hour', '0', 'day')
}
if (this.cron.min === '*') {
this.$emit('update', 'min', '0', 'day')
}
if (this.cron.second === '*') {
this.$emit('update', 'second', '0', 'day')
}
}
switch (this.radioValue) {
case 2:
this.$emit('update', 'day', '?')
break
case 3:
this.$emit('update', 'day', this.cycle01 + '-' + this.cycle02)
break
case 4:
this.$emit('update', 'day', '*' + '/' + this.average02)
break
case 5:
this.$emit('update', 'day', this.workday + 'W')
break
case 6:
this.$emit('update', 'day', 'L')
break
case 7:
this.$emit('update', 'day', this.checkboxString)
break
}
('day rachange end')
},
// 周期两个值变化时
cycleChange() {
if (this.radioValue === 3) {
this.$emit('update', 'day', this.cycleTotal)
}
},
// 平均两个值变化时
averageChange() {
if (this.radioValue === 4) {
this.$emit('update', 'day', this.averageTotal)
}
},
// 最近工作日值变化时
workdayChange() {
if (this.radioValue === 5) {
this.$emit('update', 'day', this.workday + 'W')
}
},
// checkbox值变化时
checkboxChange() {
if (this.radioValue === 7) {
this.$emit('update', 'day', this.checkboxString)
}
},
// 父组件传递的week发生变化触发
weekChange() {
// 判断week值与day不能同时为“?”
if (this.cron.week === '?' && this.radioValue === 2) {
this.radioValue = '1'
} else if (this.cron.week !== '?' && this.radioValue !== 2) {
this.radioValue = '2'
}
}
}
}
</script>
<style scoped>
.el-form-item--small.el-form-item {
margin-bottom: 10px;
}
</style>

View File

@@ -0,0 +1,165 @@
/* eslint-disable */
<template>
<el-form size="small">
<el-form-item>
<el-radio v-model="radioValue" :label="1">
{{ this.$t('common.CronTab.hour') }}{{ this.$t('common.CronTab.wildcardsAllowed') }}[, - * /]
</el-radio>
</el-form-item>
<el-form-item>
<el-radio v-model="radioValue" :label="2">
{{ this.$t('common.CronTab.from') }}
<el-input-number v-model="cycle01" :min="0" :max="60" /> -
<el-input-number v-model="cycle02" :min="0" :max="60" /> {{ this.$t('common.CronTab.hour') }}
</el-radio>
</el-form-item>
<el-form-item>
<el-radio v-model="radioValue" :label="3">
{{ this.$t('common.CronTab.every') }}
<el-input-number v-model="average02" :min="1" :max="60" /> {{ this.$t('common.CronTab.hour') }}{{ this.$t('common.CronTab.executeOnce') }}
</el-radio>
</el-form-item>
<el-form-item>
<el-radio v-model="radioValue" :label="4">
{{ this.$t('common.CronTab.appoint') }}
<el-select
v-model="checkboxList"
clearable
:placeholder="$tc('common.CronTab.manyChoose')"
multiple
style="width:100%"
>
<el-option v-for="item in 24" :key="item" :value="item-1">{{ item-1 }}</el-option>
</el-select>
</el-radio>
</el-form-item>
</el-form>
</template>
<script>
export default {
name: 'CrontabHour',
props: {
cron: {
type: Object,
default: () => {
return {}
}
},
check: {
type: Function,
default: () => {
}
}
},
data() {
return {
radioValue: 1,
cycle01: 0,
cycle02: 1,
average01: 0,
average02: 1,
checkboxList: [],
checkNum: this.$options.propsData.check
}
},
computed: {
cycleTotal: {
get() {
return this.cycle01 + '-' + this.cycle02
},
set() {
this.cycle01 = this.checkNum(this.cycle01, 0, 23)
this.cycle02 = this.checkNum(this.cycle02, 0, 23)
}
},
averageTotal: {
get() {
return '*' + '/' + this.average02
},
set() {
this.average01 = this.checkNum(this.average01, 0, 23)
this.average02 = this.checkNum(this.average02, 1, 23)
}
},
checkboxString: {
get() {
const str = this.checkboxList.join()
return str === '' ? '*' : str
},
set() {
}
}
},
watch: {
'radioValue': 'radioChange',
'cycleTotal': 'cycleChange',
'averageTotal': 'averageChange',
'checkboxString': 'checkboxChange'
},
created() {
this.$nextTick(() => {
const arrs = []
for (let index = 0; index < this.checkboxList.length; index++) {
const cur = this.checkboxList[index]
arrs.push(parseFloat(cur))
}
this.checkboxList = arrs
})
},
methods: {
// 单选按钮值变化时
radioChange() {
if (this.radioValue === 1) {
this.$emit('update', 'hour', '*', 'hour')
// this.$emit('update', 'day', '*', 'hour')
} else {
if (this.cron.min === '*') {
this.$emit('update', 'min', '0', 'hour')
}
if (this.cron.second === '*') {
this.$emit('update', 'second', '0', 'hour')
}
}
switch (this.radioValue) {
case 2:
this.$emit('update', 'hour', this.cycle01 + '-' + this.cycle02)
break
case 3:
this.$emit('update', 'hour', '*' + '/' + this.average02)
break
case 4:
this.$emit('update', 'hour', this.checkboxString)
break
}
},
// 周期两个值变化时
cycleChange() {
if (this.radioValue === 2) {
this.$emit('update', 'hour', this.cycleTotal)
}
},
// 平均两个值变化时
averageChange() {
if (this.radioValue === 3) {
this.$emit('update', 'hour', this.averageTotal)
}
},
// checkbox值变化时
checkboxChange() {
if (this.radioValue === 4) {
this.$emit('update', 'hour', this.checkboxString)
}
}
}
}
</script>
<style scoped>
.el-form-item--small.el-form-item {
margin-bottom: 10px
}
</style>

View File

@@ -0,0 +1,164 @@
/* eslint-disable */
<template>
<el-form size="small">
<el-form-item>
<el-radio v-model="radioValue" :label="1" size="mini">
{{ this.$t('common.CronTab.min') }}{{ this.$t('common.CronTab.wildcardsAllowed') }}[, - * /]
</el-radio>
</el-form-item>
<el-form-item>
<el-radio v-model="radioValue" :label="2">
{{ this.$t('common.CronTab.from') }}
<el-input-number v-model="cycle01" :min="0" :max="60" /> -
<el-input-number v-model="cycle02" :min="0" :max="60" /> {{ this.$t('common.CronTab.min') }}
</el-radio>
</el-form-item>
<el-form-item>
<el-radio v-model="radioValue" :label="3">
{{ this.$t('common.CronTab.from') }}
<el-input-number v-model="average02" :min="1" :max="60" /> {{ this.$t('common.CronTab.min') }}{{ this.$t('common.CronTab.executeOnce') }}
</el-radio>
</el-form-item>
<el-form-item>
<el-radio v-model="radioValue" :label="4">
{{ this.$t('common.CronTab.appoint') }}
<el-select
v-model="checkboxList"
clearable
:placeholder="$tc('common.CronTab.manyChoose')"
multiple
style="width:100%"
size="small"
>
<el-option v-for="item in 60" :key="item" :value="item-1">{{ item-1 }}</el-option>
</el-select>
</el-radio>
</el-form-item>
</el-form>
</template>
<script>
export default {
name: 'CrontabMin',
props: {
cron: {
type: Object,
default: () => {
return {}
}
},
check: {
type: Function,
default: () => {
}
}
},
data() {
return {
radioValue: 1,
cycle01: 1,
cycle02: 2,
average01: 0,
average02: 1,
checkboxList: [],
checkNum: this.$options.propsData.check
}
},
computed: {
cycleTotal: {
get() {
return this.cycle01 + '-' + (this.cycle02 ? this.cycle02 : '')
},
set() {
this.cycle01 = this.checkNum(this.cycle01, 0, 59)
this.cycle02 = this.checkNum(this.cycle02, 0, 59)
}
},
averageTotal: {
get() {
return '*' + '/' + (this.average02 ? this.average02 : 0)
},
set() {
this.average01 = this.checkNum(this.average01, 0, 59)
this.average02 = this.checkNum(this.average02, 1, 59)
}
},
checkboxString: {
get() {
const str = this.checkboxList.join()
return str === '' ? '*' : str
},
set() {
}
}
},
watch: {
'radioValue': 'radioChange',
'cycleTotal': 'cycleChange',
'averageTotal': 'averageChange',
'checkboxString': 'checkboxChange'
},
created() {
this.$nextTick(() => {
const arrs = []
for (let index = 0; index < this.checkboxList.length; index++) {
const cur = this.checkboxList[index]
arrs.push(parseFloat(cur))
}
this.checkboxList = arrs
})
},
methods: {
// 单选按钮值变化时
radioChange() {
if (this.radioValue !== 1 && this.cron.second === '*') {
this.$emit('update', 'second', '0', 'min')
}
switch (this.radioValue) {
case 1:
this.$emit('update', 'min', '*', 'min')
this.$emit('update', 'hour', '*', 'min')
break
case 2:
this.$emit('update', 'min', this.cycle01 + '-' + this.cycle02, 'min')
break
case 3:
this.$emit('update', 'min', '*' + '/' + this.average02, 'min')
break
case 4:
this.$emit('update', 'min', this.checkboxString, 'min')
break
}
},
// 周期两个值变化时
cycleChange() {
if (this.radioValue === 2) {
this.$emit('update', 'min', this.cycleTotal, 'min')
}
},
// 平均两个值变化时
averageChange() {
if (this.radioValue === 3) {
this.$emit('update', 'min', this.averageTotal, 'min')
}
},
// checkbox值变化时
checkboxChange() {
if (this.radioValue === 4) {
this.$emit('update', 'min', this.checkboxString, 'min')
}
}
}
}
</script>
<style scoped>
.el-form-item--small.el-form-item {
margin-bottom: 10px;
}
</style>

View File

@@ -0,0 +1,170 @@
/* eslint-disable */
<template>
<el-form size="small">
<el-form-item>
<el-radio v-model="radioValue" :label="1">
{{ this.$t('common.CronTab.month') }}{{ this.$t('common.CronTab.wildcardsAllowed') }}[, - * /]
</el-radio>
</el-form-item>
<el-form-item>
<el-radio v-model="radioValue" :label="2">
{{ this.$t('common.CronTab.from') }}
<el-input-number v-model="cycle01" :min="1" :max="12" /> -
<el-input-number v-model="cycle02" :min="1" :max="12" /> {{ this.$t('common.CronTab.month') }}
</el-radio>
</el-form-item>
<el-form-item>
<el-radio v-model="radioValue" :label="3">
{{ this.$t('common.CronTab.every') }}
<el-input-number v-model="average02" :min="1" :max="12" /> {{ this.$t('common.CronTab.month') }}{{ this.$t('common.CronTab.executeOnce') }}
</el-radio>
</el-form-item>
<el-form-item>
<el-radio v-model="radioValue" :label="4">
{{ this.$t('common.CronTab.appoint') }}
<el-select
v-model="checkboxList"
clearable
:placeholder="$tc('common.CronTab.manyChoose')"
multiple
style="width:100%"
>
<el-option v-for="item in 12" :key="item" :value="item">{{ item }}</el-option>
</el-select>
</el-radio>
</el-form-item>
</el-form>
</template>
<script>
export default {
name: 'CrontabMonth',
props: {
cron: {
type: Object,
default: () => {
return {}
}
},
check: {
type: Function,
default: () => {
}
}
},
data() {
return {
radioValue: 1,
cycle01: 1,
cycle02: 2,
average01: 1,
average02: 1,
checkboxList: [],
checkNum: this.check
}
},
computed: {
cycleTotal: {
get() {
return this.cycle01 + '-' + this.cycle02
},
set() {
this.cycle01 = this.checkNum(this.cycle01, 1, 12)
this.cycle02 = this.checkNum(this.cycle02, 1, 12)
}
},
averageTotal: {
get() {
return '*' + '/' + this.average02
},
set() {
this.average01 = this.checkNum(this.average01, 1, 12)
this.average02 = this.checkNum(this.average02, 1, 12)
}
},
checkboxString: {
get() {
const str = this.checkboxList.join()
return str === '' ? '*' : str
},
set() {
}
}
},
watch: {
'radioValue': 'radioChange',
'cycleTotal': 'cycleChange',
'averageTotal': 'averageChange',
'checkboxString': 'checkboxChange'
},
created() {
this.$nextTick(() => {
const arrs = []
for (let index = 0; index < this.checkboxList.length; index++) {
const cur = this.checkboxList[index]
arrs.push(parseFloat(cur))
}
this.checkboxList = arrs
})
},
methods: {
// 单选按钮值变化时
radioChange() {
if (this.radioValue === 1) {
this.$emit('update', 'month', '*')
} else {
if (this.cron.day === '*') {
this.$emit('update', 'day', '*', 'month')
}
if (this.cron.hour === '*') {
this.$emit('update', 'hour', '0', 'month')
}
if (this.cron.min === '*') {
this.$emit('update', 'min', '0', 'month')
}
if (this.cron.second === '*') {
this.$emit('update', 'second', '0', 'month')
}
}
switch (this.radioValue) {
case 2:
this.$emit('update', 'month', this.cycle01 + '-' + this.cycle02)
break
case 3:
this.$emit('update', 'month', '*' + '/' + this.average02)
break
case 4:
this.$emit('update', 'month', this.checkboxString)
break
}
},
// 周期两个值变化时
cycleChange() {
if (this.radioValue === 2) {
this.$emit('update', 'month', this.cycleTotal)
}
},
// 平均两个值变化时
averageChange() {
if (this.radioValue === 3) {
this.$emit('update', 'month', this.averageTotal)
}
},
// checkbox值变化时
checkboxChange() {
if (this.radioValue === 4) {
this.$emit('update', 'month', this.checkboxString)
}
}
}
}
</script>
<style scoped>
.el-form-item--small.el-form-item {
margin-bottom: 10px;
}
</style>

View File

@@ -0,0 +1,62 @@
/* eslint-disable */
<template>
<div class="popup-result">
<p class="title">{{ this.$t('common.CronTab.runningTimes') }}</p>
<ul class="popup-result-scroll">
<template v-if="isShow">
<li v-for="item in resultList" :key="item">{{ item }}</li>
</template>
<li v-else>{{ this.$t('common.CronTab.calculationResults') }}</li>
</ul>
</div>
</template>
<script>
import parser from 'cron-parser'
import { toSafeLocalDateStr } from '@/utils/common'
export default {
name: 'CrontabResult',
props: {
ex: {
type: String,
default() {
return ''
}
}
},
data() {
return {
dayRule: '',
dayRuleSup: '',
dateArr: [],
resultList: [],
isShow: false
}
},
watch: {
'ex': 'expressionChange222'
},
mounted: function() {
// 初始化 获取一次结果
this.expressionChange222()
},
methods: {
expressionChange222() {
this.isShow = true
const rule = 0 + ' ' + this.$options.propsData.ex
try {
this.resultList = []
const interval = parser.parseExpression(rule)
for (let index = 0; index < 5; index++) {
const cur = interval.next().toString()
this.resultList.push(toSafeLocalDateStr(cur))
}
} catch (error) {
this.isShow = false
// debug(error, 'error')
}
}
}
}
</script>

View File

@@ -0,0 +1,185 @@
/* eslint-disable */
<template>
<el-form size="small">
<el-form-item>
<el-radio v-model="radioValue" :label="1">
{{ this.$t('common.CronTab.week') }}{{ this.$t('common.CronTab.wildcardsAllowed') }}[, - * /]
</el-radio>
</el-form-item>
<el-form-item>
<el-radio v-model="radioValue" :label="3">
{{ this.$t('common.CronTab.cycleFromWeek') }}
<el-input-number v-model="cycle01" :min="1" :max="7" /> -
<el-input-number v-model="cycle02" :min="1" :max="7" />
</el-radio>
</el-form-item>
<el-form-item>
<el-radio v-model="radioValue" :label="6">
{{ this.$t('common.CronTab.appoint') }}
<el-select
v-model="checkboxList"
clearable
:placeholder="$tc('common.CronTab.manyChoose')"
multiple
style="width:100%"
>
<el-option v-for="(item,index) of weekList" :key="index" :value="index+1">{{ item }}</el-option>
</el-select>
</el-radio>
</el-form-item>
</el-form>
</template>
<script>
export default {
name: 'CrontabWeek',
props: {
cron: {
type: Object,
default: () => {
return {}
}
},
check: {
type: Function,
default: () => {
}
}
},
data() {
return {
radioValue: 2,
weekday: 1,
cycle01: 1,
cycle02: 2,
average01: 1,
average02: 1,
checkboxList: [],
weekList: [this.$t('common.CronTab.Monday'), this.$t('common.CronTab.Tuesday'), this.$t('common.CronTab.Wednesday'), this.$t('common.CronTab.Thursday'), this.$t('common.CronTab.Friday'), this.$t('common.CronTab.Saturday'), this.$t('common.CronTab.Sunday')],
checkNum: this.$options.propsData.check
}
},
computed: {
cycleTotal: {
get() {
return this.cycle01 + '-' + this.cycle02
},
set() {
this.cycle01 = this.checkNum(this.cycle01, 1, 7)
this.cycle02 = this.checkNum(this.cycle02, 1, 7)
}
},
averageTotal: {
get() {
return this.average01 + '#' + this.average02
},
set() {
this.average01 = this.checkNum(this.average01, 1, 4)
this.average02 = this.checkNum(this.average02, 1, 7)
}
},
checkboxString: {
get() {
const str = this.checkboxList.join()
return str === '' ? '*' : str
},
set() {
}
}
},
watch: {
'radioValue': 'radioChange',
'cycleTotal': 'cycleChange',
'averageTotal': 'averageChange',
'weekdayCheck': 'weekdayChange',
'checkboxString': 'checkboxChange'
},
created() {
this.$nextTick(() => {
const arrs = []
for (let index = 0; index < this.checkboxList.length; index++) {
const cur = this.checkboxList[index]
arrs.push(parseFloat(cur))
}
this.checkboxList = arrs
})
},
methods: {
// 单选按钮值变化时
radioChange() {
if (this.radioValue === 1) {
this.$emit('update', 'week', '*')
this.$emit('update', 'year', '*')
} else {
if (this.cron.month === '*') {
this.$emit('update', 'month', '*', 'week')
}
if (this.cron.day === '*') {
this.$emit('update', 'day', '*', 'week')
}
if (this.cron.hour === '*') {
this.$emit('update', 'hour', '*', 'week')
}
if (this.cron.min === '*') {
this.$emit('update', 'min', '*', 'week')
}
if (this.cron.second === '*') {
this.$emit('update', 'second', '*', 'week')
}
}
switch (this.radioValue) {
case 2:
this.$emit('update', 'week', '?')
break
case 3:
this.$emit('update', 'week', this.cycle01 + '-' + this.cycle02)
break
case 4:
this.$emit('update', 'week', this.average01 + '#' + this.average02)
break
case 5:
this.$emit('update', 'week', this.weekday + 'L')
break
case 6:
this.$emit('update', 'week', this.checkboxString)
break
}
},
// 根据互斥事件更改radio的值
// 周期两个值变化时
cycleChange() {
if (this.radioValue === 3) {
this.$emit('update', 'week', this.cycleTotal)
}
},
// 平均两个值变化时
averageChange() {
if (this.radioValue === 4) {
this.$emit('update', 'week', this.averageTotal)
}
},
// 最近工作日值变化时
weekdayChange() {
if (this.radioValue === 5) {
this.$emit('update', 'week', this.weekday + 'L')
}
},
// checkbox值变化时
checkboxChange() {
if (this.radioValue === 6) {
this.$emit('update', 'week', this.checkboxString)
}
}
}
}
</script>
<style scoped>
.el-form-item--small.el-form-item {
margin-bottom: 10px;
}
</style>

View File

@@ -0,0 +1,56 @@
<template>
<div>
<div class="box">
<el-input v-model="input" clearable @focus="showDialog" @clear="onClear" />
</div>
<el-dialog :title="$tc('common.CronTab.newCron')" :visible.sync="showCron" top="8vh" width="580px" append-to-body>
<Crontab
:expression="expression"
@hide="showCron = false"
@fill="crontabFill"
/>
</el-dialog>
</div>
</template>
<script>
import Crontab from './Crontab.vue'
export default {
components: { Crontab },
props: {
value: {
type: String,
default: ''
}
},
data() {
return {
input: _.cloneDeep(this.value),
expression: _.cloneDeep(this.value),
showCron: false
}
},
methods: {
crontabFill(value) {
// 确定后回传的值
this.input = value
this.$emit('change', value)
},
showDialog() {
this.expression = this.input
this.showCron = true
},
onClear() {
this.input = ''
this.$emit('change', '')
}
}
}
</script>
<style scoped>
.el-dialog__body {
padding: 12px 16px;
}
</style>

View File

@@ -1,5 +1,5 @@
<template>
<div :class="grouped ? 'el-button-group' : 'el-button-ungroup'">
<div :class="grouped ? 'el-button-group' : 'el-button-ungroup'" class="layout">
<template v-for="action in iActions">
<el-dropdown
v-if="action.dropdown"
@@ -10,12 +10,17 @@
placement="bottom-start"
@command="handleDropdownCallback"
>
<el-button :size="size" v-bind="cleanButtonAction(action)">
<el-button class="more-action" :size="size" v-bind="cleanButtonAction(action)">
{{ action.title }}<i class="el-icon-arrow-down el-icon--right" />
</el-button>
<el-dropdown-menu slot="dropdown">
<el-dropdown-menu slot="dropdown" style="overflow: auto;max-height: 60vh">
<template v-for="option in action.dropdown">
<div v-if="option.group" :key="'group:'+option.name" class="dropdown-menu-title">
<div
v-if="option.group"
:key="'group:'+option.name"
class="dropdown-menu-title"
style="width:130px"
>
{{ option.group }}
</div>
<el-dropdown-item
@@ -23,6 +28,7 @@
:command="[option, action]"
v-bind="option"
>
<i v-if="option.fa" :class="'fa ' + option.fa" />
{{ option.title }}
</el-dropdown-item>
</template>
@@ -39,7 +45,11 @@
>
<el-tooltip :disabled="!action.tip" :content="action.tip" placement="top">
<span>
<i v-if="action.fa" :class="'fa ' + action.fa" />{{ action.title }}
<span v-if="action.fa" style="vertical-align: initial;">
<i v-if="action.fa.startsWith('fa-')" :class="'fa ' + action.fa" />
<svg-icon v-else :icon-class="action.fa" style="font-size: 14px;" />
</span>
{{ action.title }}
</span>
</el-tooltip>
</el-button>
@@ -149,6 +159,11 @@ export default {
</script>
<style scoped>
.layout {
display: flex;
justify-content: center;
}
.dropdown-menu-title {
text-align: left;
font-size: 12px;
@@ -165,7 +180,7 @@ export default {
}
.el-button-ungroup .action-item {
margin-left: 4px
margin-left: 4px;
}
.el-button-ungroup .action-item:first-child {

View File

@@ -43,16 +43,25 @@
<template v-for="opt in options">
<el-option
v-if="data.type === 'select'"
:key="opt.value"
v-bind="opt"
/>
<!-- TODO: 支持 el-checkbox-button 变体 -->
<el-checkbox
v-else-if="data.type === 'checkbox-group'"
:key="opt.label"
v-bind="opt"
/>
<el-checkbox-button
v-else-if="data.type === 'checkbox-group' && data.style === 'button'"
:key="opt.value"
v-bind="opt"
:label="'value' in opt ? opt.value : opt.label"
>
{{ opt.value }}
{{ opt.label }}
</el-checkbox-button>
<el-checkbox
v-else-if="data.type === 'checkbox-group' && data.style !== 'button'"
:key="opt.value"
v-bind="opt"
:label="'value' in opt ? opt.value : opt.label"
>
{{ opt.label }}
</el-checkbox>
<!-- WARNING: radio label 属性来表示 value 的含义 -->
<!-- FYI: radio value 属性可以在没有 radio-group 时用来关联到同一个 v-model -->
@@ -97,6 +106,7 @@ export default {
}
},
props: {
// eslint-disable-next-line vue/require-default-prop
data: Object,
prop: {
type: String,
@@ -104,10 +114,13 @@ export default {
return this.data.id
}
},
// eslint-disable-next-line vue/require-prop-types,vue/require-default-prop
itemValue: {},
// eslint-disable-next-line vue/require-default-prop
value: Object,
disabled: Boolean,
readonly: Boolean,
// eslint-disable-next-line vue/require-default-prop
options: Array
},
data() {
@@ -225,7 +238,9 @@ export default {
.then(resp => {
if (isOptionsCase) {
let formRenderer = this.$parent
while (formRenderer.$options._componentTag !== 'el-form-renderer') { formRenderer = formRenderer.$parent }
while (formRenderer.$options._componentTag !== 'el-form-renderer') {
formRenderer = formRenderer.$parent
}
formRenderer.setOptions(this.prop, resp)
} else {
this.propsInner = { [prop]: resp }

View File

@@ -1,7 +1,7 @@
<template>
<el-form ref="elForm" v-bind="$attrs" :model="value" class="el-form-renderer">
<template v-for="item in innerContent">
<slot :name="`id:${item.id}`" />
<slot v-if="!isHidden(item)" :name="`id:${item.id}`" />
<component
:is="item.type === GROUP ? 'render-form-group' : 'render-form-item'"
:key="item.id"
@@ -13,7 +13,7 @@
:options="options[item.id]"
@updateValue="updateValue"
/>
<slot :name="`$id:${item.id}`" />
<slot v-if="!isHidden(item)" :name="`$id:${item.id}`" />
</template>
<slot />
</el-form>
@@ -146,7 +146,7 @@ export default {
* - el-form 的 resetFields 不会触发 input & change 事件,无法监听
* - bug1: https://github.com/FEMessage/el-data-table/issues/176#issuecomment-587280825
* - bug2:
* 0. 建议先在监听器 watch.value 里 console.log(v.name, oldV.name)
* 0. 建议先在监听器 watch.value 里 // debug(v.name, oldV.name)
* 1. 打开 basic 示例
* 2. 在 label 为 name 的输入框里输入 1此时 log'1' ''
* 3. 点击 reset 按钮,此时 log 两条数据: '1' '1', '' ''
@@ -202,6 +202,18 @@ export default {
setOptions(id, options) {
_set(this.options, id, options)
this.options = { ...this.options } // 设置之前不存在的 options 时需要重新设置响应式更新
},
isHidden(item) {
if (!item.el || !item.el['hiddenGroup']) {
return false
}
if (item.hidden === true) {
return true
}
if (typeof item.hidden === 'function') {
return item.hidden(this.value)
}
return false
}
}
}

View File

@@ -1,9 +1,10 @@
<template>
<ElFormRender
ref="form"
:class="mobile? 'mobile' : 'desktop'"
:content="fields"
:form="basicForm"
label-position="right"
:label-position="labelPosition"
label-width="20%"
v-bind="$attrs"
v-on="$listeners"
@@ -12,17 +13,45 @@
<slot v-for="item in fields" :slot="`id:${item.id}`" :name="`id:${item.id}`" />
<slot v-for="item in fields" :slot="`$id:${item.id}`" :name="`$id:${item.id}`" />
<el-form-item>
<el-button v-for="button in moreButtons" :key="button.title" size="small" v-bind="button" @click="handleClick(button)">{{ button.title }}</el-button>
<el-button v-if="defaultButton && hasReset" size="small" @click="resetForm('form')">{{ $t('common.Reset') }}</el-button>
<el-button v-if="defaultButton && hasSaveContinue" size="small" @click="submitForm('form', true)">{{ $t('common.SaveAndAddAnother') }}</el-button>
<el-button v-if="defaultButton" size="small" :loading="isSubmitting" type="primary" @click="submitForm('form')">{{ $t('common.Submit') }}</el-button>
<el-form-item v-if="hasButtons" class="form-buttons">
<el-button
v-for="button in moreButtons"
:key="button.title"
:loading="button.loading"
size="small"
v-bind="button"
@click="handleClick(button)"
>
{{ button.title }}
</el-button>
<el-button v-if="defaultButton && hasReset" size="small" @click="resetForm('form')">
{{ $t('common.Reset') }}
</el-button>
<el-button
v-if="defaultButton && hasSaveContinue"
size="small"
@click="submitForm('form', true)"
>
{{ $t('common.SaveAndAddAnother') }}
</el-button>
<el-button
v-if="defaultButton"
:disabled="!canSubmit"
:loading="isSubmitting"
size="small"
type="primary"
@click="submitForm('form')"
>
{{ $t('common.Submit') }}
</el-button>
</el-form-item>
</ElFormRender>
</template>
<script>
import ElFormRender from './components/el-form-renderer'
import { scrollToError } from '@/utils'
export default {
components: {
ElFormRender
@@ -32,10 +61,18 @@ export default {
type: Boolean,
default: true
},
hasButtons: {
type: Boolean,
default: true
},
hasReset: {
type: Boolean,
default: true
},
canSubmit: {
type: Boolean,
default: true
},
hasSaveContinue: {
type: Boolean,
default: true
@@ -63,6 +100,14 @@ export default {
basicForm: this.form
}
},
computed: {
mobile() {
return this.$store.state.app.device === 'mobile'
},
labelPosition() {
return this.mobile ? 'top' : 'right'
}
},
methods: {
// 获取表单数据
submitForm(formName, addContinue) {
@@ -72,6 +117,7 @@ export default {
this.$emit('submit', form.getFormValue(), form, addContinue)
} else {
this.$emit('invalid', valid)
scrollToError(form.$el)
return false
}
})
@@ -82,38 +128,46 @@ export default {
},
handleClick(button) {
const callback = button.callback || function(values, form) {
// console.log('Click ', button.title, ': ', values)
// debug('Click ', button.title, ': ', values)
}
const form = this.$refs['form']
const values = form.getFormValue()
callback(values, form)
callback(values, form, button)
}
}
}
</script>
<style lang="less" scoped>
.el-form ::v-deep .el-form-item {
.el-form ::v-deep .el-form-item {
margin-bottom: 12px;
}
.el-form ::v-deep .el-form-item__content {
.el-form ::v-deep .el-form-item__content {
width: 75%;
}
.el-form ::v-deep .el-form-item__label {
.mobile.el-form ::v-deep .el-form-item__content {
width: 100%;
}
.el-form ::v-deep .el-form-item__label {
padding: 0 30px 0 0;
}
.el-form ::v-deep .el-form-item__error {
position: inherit;
.el-form ::v-deep .el-form-item__error {
position: inherit;
}
.el-form ::v-deep .form-group-header {
.el-form ::v-deep .form-group-header {
margin-left: 50px;
}
.el-form ::v-deep .help-block {
.el-form.mobile ::v-deep .form-group-header {
margin-left: 0;
}
.el-form ::v-deep .help-block {
display: block;
margin-top: 5px;
margin-bottom: 10px;
@@ -121,7 +175,12 @@ export default {
font-size: 12px;
line-height: 18px;
}
.el-form ::v-deep .help-block a {
color: #1c84c6;
.el-form ::v-deep .help-block a {
color: var(--color-primary);
}
.form-buttons {
margin-top: 20px;
}
</style>

View File

@@ -14,10 +14,51 @@ export const EmailCheck = {
trigger: ['blur', 'change']
}
export const IpCheck = {
required: true,
validator: (rule, value, callback) => {
value = value?.trim()
if (/^[\w://.?-]+$/.test(value)) {
callback()
} else {
callback(new Error(i18n.t('common.FormatError')))
}
},
trigger: ['blur', 'change']
}
export const specialEmojiCheck = {
validator: (rule, value, callback) => {
value = value?.trim()
if (/[\uD83C[\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F]/.test(value)) {
callback(new Error(i18n.t('common.NotSpecialEmoji')))
} else {
callback()
}
},
trigger: ['blur', 'change']
}
// 只能输入字母、数字、下划线
export const matchAlphanumericUnderscore = {
validator: (rule, value, callback) => {
value = value?.trim()
if (!/^[a-zA-Z0-9_]+$/.test(value)) {
callback(new Error(i18n.t('common.notAlphanumericUnderscore')))
} else {
callback()
}
},
trigger: ['blur', 'change']
}
export default {
IpCheck,
Required,
RequiredChange,
EmailCheck
EmailCheck,
specialEmojiCheck,
matchAlphanumericUnderscore
}
export const JsonRequired = {
@@ -25,7 +66,24 @@ export const JsonRequired = {
trigger: 'change',
validator: (rule, value, callback) => {
try {
JSON.parse(value)
typeof value === 'string' ? JSON.parse(value) : value
callback()
} catch (e) {
callback(new Error(i18n.t('common.InvalidJson')))
}
}
}
export const JsonRequiredUserNameMapped = {
required: true,
trigger: 'change',
validator: (rule, value, callback) => {
try {
const v = typeof value === 'string' ? JSON.parse(value) : value
const hasUserName = _.map(v, (value) => value)
if (!hasUserName.includes('username')) {
callback(new Error(i18n.t('common.requiredHasUserNameMapped')))
}
callback()
} catch (e) {
callback(new Error(i18n.t('common.InvalidJson')))

View File

@@ -8,12 +8,12 @@
<el-table
ref="table"
v-loading="loading"
v-bind="tableAttrs"
:data="data"
:row-class-name="rowClassName"
v-bind="tableAttrs"
@select="selectStrategy.onSelect"
v-on="$listeners"
@selection-change="selectStrategy.onSelectionChange"
@select="selectStrategy.onSelect"
@select-all="selectStrategy.onSelectAll($event, canSelect)"
@sort-change="onSortChange"
>
@@ -91,28 +91,28 @@
<!--非树-->
<template v-else>
<el-data-table-column v-if="hasSelection" type="selection" :align="selectionAlign" :selectable="canSelect" />
<el-data-table-column v-if="hasSelection" :align="selectionAlign" :selectable="canSelect" type="selection" />
<el-data-table-column
v-for="col in columns"
:key="col.prop"
:formatter="typeof col.formatter === 'function' ? col.formatter : null"
:filters="col.filters || null"
:filter-multiple="false"
:filter-method="typeof col.filterMethod === 'function' ? col.filterMethod : null"
:filter-multiple="false"
:filters="col.filters || null"
:formatter="typeof col.formatter === 'function' ? col.formatter : null"
v-bind="{align: columnsAlign, ...col}"
>
<template v-if="col.formatter && typeof col.formatter !== 'function'" v-slot:default="{row, column, index}">
<div
:is="col.formatter"
:key="row.id"
:table-data="data"
:row="row"
:cell-value="row[col.prop]"
:col="col"
:column="column"
:index="index"
:url="url"
:reload="getList"
:col="col"
:cell-value="row[col.prop]"
:row="row"
:table-data="data"
:url="url"
/>
</template>
</el-data-table-column>
@@ -122,13 +122,12 @@
<el-pagination
v-if="hasPagination"
:current-page="page"
:page-sizes="paginationSizes"
:page-size="size"
:total="total"
:background="paginationBackground"
style="text-align: right; padding: 10px 0;"
:current-page="page"
:layout="paginationLayout"
:page-size="size"
:page-sizes="paginationSizes"
:total="total"
v-bind="extraPaginationAttrs"
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
@@ -136,18 +135,18 @@
<the-dialog
ref="dialog"
:new-title="dialogNewTitle"
:button-size="buttonSize"
:dialog-attrs="dialogAttrs"
:edit-title="dialogEditTitle"
:view-title="dialogViewTitle"
:form="form"
:form-attrs="formAttrs"
:dialog-attrs="dialogAttrs"
:button-size="buttonSize"
:new-title="dialogNewTitle"
:view-title="dialogViewTitle"
@confirm="onConfirm"
>
<template v-slot="scope">
<!-- @slot 表单作用域插槽当编辑查看时传入row新增时row=null -->
<slot name="form" :row="scope.row" />
<slot :row="scope.row" name="form" />
</template>
</the-dialog>
</template>
@@ -167,6 +166,7 @@ import getLocatedSlotKeys from './utils/extract-keys'
import transformSearchImmediatelyItem from './utils/search-immediately-item'
import isFalsey from './utils/is-falsey'
import merge from 'deepmerge'
const defaultFirstPage = 1
const noPaginationDataPath = 'payload'
@@ -268,7 +268,8 @@ export default {
*/
beforeSearch: {
type: Function,
default() {}
default() {
}
},
/**
* 单选, 适用场景: 不可以批量删除
@@ -360,28 +361,36 @@ export default {
*/
newText: {
type: String,
default: '新增'
default: function() {
return this.$t('ops.Add')
}
},
/**
* 修改按钮文案
*/
editText: {
type: String,
default: '修改'
default: function() {
return this.$t('ops.Modify')
}
},
/**
* 查看按钮文案
*/
viewText: {
type: String,
default: '查看'
default: function() {
return this.$t('ops.View')
}
},
/**
* 删除按钮文案
*/
deleteText: {
type: String,
default: '删除'
default: function() {
return this.$t('ops.Delete')
}
},
/**
* 删除提示语。接受要删除的数据(单个对象或数组);返回字符串
@@ -391,7 +400,7 @@ export default {
deleteMessage: {
type: Function,
default() {
return `确认${this.deleteText}吗?`
return this.$t('ops.Confirm') + this.deleteText + '?'
}
},
/**
@@ -450,7 +459,7 @@ export default {
onSuccess: {
type: Function,
default() {
return this.$message.success('操作成功')
return this.$message.success(this.$t('ops.SuccessfulOperation'))
}
},
/**
@@ -707,7 +716,8 @@ export default {
},
extraPaginationAttrs: {
type: Object,
default: () => {}
default: () => {
}
},
hasSelection: {
type: Boolean,
@@ -1037,6 +1047,7 @@ export default {
} else {
this.innerQuery = merge(this.innerQuery, attrs)
}
this.selected.splice(0, this.selected.length)
return this.getList()
},
searchDate(attrs) {
@@ -1156,7 +1167,7 @@ export default {
* @param {object|object[]} - 要删除的数据对象或数组
*/
onDefaultDelete(data) {
this.$confirm(this.deleteMessage(data), '提示', {
this.$confirm(this.deleteMessage(data), this.$t('common.Info'), {
type: 'warning',
confirmButtonClass: 'el-button--danger',
beforeClose: async(action, instance, done) => {
@@ -1199,7 +1210,9 @@ export default {
remain === 0 &&
this.page === lastPage &&
this.page > defaultFirstPage
) { this.page-- }
) {
this.page--
}
},
// 树形table相关

View File

@@ -1,16 +1,22 @@
.el-data-table ::v-deep .el-pagination{
text-align: center !important;
}
.el-data-table ::v-deep .el-table td{
padding: 4px 0;
}
.el-data-table ::v-deep .el-table th{
padding: 4px 0;
}
.el-data-table ::v-deep .el-form-item{
margin-bottom:10px !important ;
margin-top:10px;
}
.el-data-table ::v-deep .el-pagination{
padding:15px 0 !important ;
.el-data-table ::v-deep .el-table td {
padding: 4px 0;
}
.el-data-table ::v-deep .el-table th {
padding: 4px 0;
}
.el-data-table ::v-deep .el-form-item {
margin-bottom: 10px !important;
margin-top: 10px;
}
.el-data-table ::v-deep .el-pagination {
text-align: right;
padding: 15px 25px 20px 15px;
.el-pagination__total {
float: left;
}
}

View File

@@ -1,7 +1,7 @@
<template>
<ElDatableTable
ref="table"
class="el-table"
class="el-data-table"
v-bind="tableConfig"
@update="onUpdate"
v-on="iListeners"
@@ -21,7 +21,8 @@ export default {
props: {
config: {
type: Object,
default: () => {}
default: () => {
}
}
},
data() {
@@ -49,7 +50,11 @@ export default {
stripe: false, // 斑马纹表格
border: true, // 表格边框
fit: true, // 宽度自适应,
tooltipEffect: 'dark'
tooltipEffect: 'dark',
rowClassName: ({ row }) => {
const selected = this.dataTable.selected.find(item => item.id === row.id)
return selected ? 'selected-row' : ''
}
},
extraButtons: userTableActions.extraButtons,
onEdit: (row) => {
@@ -65,6 +70,7 @@ export default {
},
pageCount: 5,
paginationLayout: 'total, sizes, prev, pager, next',
paginationSize: JSON.parse(localStorage.getItem('paginationSize')) || 15,
paginationSizes: [15, 30, 50, 100],
paginationBackground: true,
transformQuery: query => {
@@ -86,35 +92,36 @@ export default {
}
return query
},
theRowDefaultIsSelected: (row) => { return false }
theRowDefaultIsSelected: (row) => {
return false
}
}
}
},
computed: {
tableConfig() {
const tableDefaultConfig = this.defaultConfig
tableDefaultConfig.paginationSize = _.get(this.globalTableConfig, 'paginationSize', 15)
const config = Object.assign(tableDefaultConfig, this.config)
return config
},
iListeners() {
return Object.assign({}, this.$listeners, this.tableConfig.listeners)
const defaultListeners = {}
return Object.assign(defaultListeners, this.$listeners, this.tableConfig?.listeners)
},
dataTable() {
return this.$refs.table
},
tableConfig() {
const tableDefaultConfig = this.defaultConfig
let tableAttrs = tableDefaultConfig.tableAttrs
if (this.config.tableAttrs) {
tableAttrs = Object.assign(tableAttrs, this.config.tableAttrs)
}
const config = Object.assign(tableDefaultConfig, this.config)
config.tableAttrs = tableAttrs
this.$log.debug('elTableConfig', config)
return config
},
...mapGetters({
'globalTableConfig': 'tableConfig'
})
},
watch: {
config: {
handler() {
// this.getList()
},
deep: true
}
},
watch: {},
methods: {
getList() {
this.$refs.table.clearSelection()
@@ -148,6 +155,7 @@ export default {
}
},
handleSizeChange(val) {
localStorage.setItem('paginationSize', val)
this.$store.commit('table/SET_TABLE_CONFIG',
{
key: 'paginationSize',
@@ -159,37 +167,55 @@ export default {
}
</script>
<style lang="less" scoped>
<style lang="scss" scoped>
.el-data-table > > > .el-table {
.table {
margin-top: 15px;
}
.el-table ::v-deep .el-table__row > td {
line-height: 1.5;
padding: 8px 0;
}
.el-table ::v-deep .el-table__row > td> div > span {
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
}
.el-table ::v-deep .el-table__header > thead > tr >th {
padding: 8px 0;
background-color: #F5F5F6;
font-size: 13px;
line-height: 1.5;
}
.table{
margin-top: 15px;
}
.el-table__row {
&.selected-row {
background-color: #f5f7fa;
}
//分页
.el-pagination ::v-deep .el-pagination__total{
float: left;
}
& > td {
line-height: 1.5;
padding: 6px 0;
font-size: 13px;
border-right: none;
* {
vertical-align: middle;
}
.el-pagination ::v-deep .el-pagination__sizes{
float: left;
.el-checkbox {
vertical-align: super;
}
& > div > span {
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
}
}
}
.el-table__header > thead > tr > th {
padding: 6px 0;
background-color: #ffffff;
font-size: 13px;
line-height: 1.5;
border-right: none;
.cell {
white-space: nowrap !important;
overflow: hidden;
text-overflow: ellipsis;
}
}
}
.el-data-table >>> .el-table .el-table__header > thead > tr .is-sortable {
padding: 5px 0;
.cell {
padding-top: 3px!important;
}
}
//修改颜色
// .el-button--text{
// color: #409EFF;
// }
</style>

View File

@@ -1,14 +1,34 @@
<template>
<div>
<ul v-show="loading" class="ztree">
{{ this.$t('common.tree.Loading') }}...
</ul>
<div v-show="!loading" class="treebox">
<ul :id="iZTreeID" class="ztree">
<div class="treebox">
<div>
<el-input
v-if="treeSetting.showSearch && showTreeSearch"
v-model="treeSearchValue"
:placeholder="$tc('common.Search')"
class="fixed-tree-search"
prefix-icon="fa fa-search"
size="mini"
@input="treeSearchHandle"
>
<span slot="suffix">
<!-- <i class="fa fa-search" style="font-size: 14px; color: #676A6C;" /> -->
<svg-icon
:icon-class="'close'"
class="icon"
style="font-size: 14px;"
@click="onClose"
/>
</span>
</el-input>
</div>
<ul v-show="loading" class="ztree">
{{ this.$t('common.tree.Loading') }}...
</ul>
<div v-if="treeSetting.treeUrl===''">
{{ this.$t('common.tree.Empty') }}<a id="tree-refresh"><i class="fa fa-refresh" /></a>
<ul v-show="!loading" :id="iZTreeID" :key="iZTreeID" class="ztree" />
<div v-if="treeSetting.treeUrl===''" class="tree-empty">
{{ this.$t('common.tree.Empty') }}
<a id="tree-refresh"><i class="fa fa-refresh" /></a>
</div>
</div>
<div :id="iRMenuID" class="rMenu">
@@ -24,17 +44,19 @@
// eslint-disable-next-line no-unused-vars
import $ from '@/utils/jquery-vendor.js'
import '@ztree/ztree_v3/js/jquery.ztree.all.min.js'
import '@ztree/ztree_v3/js/jquery.ztree.exhide.min.js'
import '@/styles/ztree.css'
import '@/styles/ztree_icon.css'
import axiosRetry from 'axios-retry'
const defaultObject = {
type: Object,
default: () => {}
default: () => {
}
}
export default {
name: 'ZTree',
components: {
},
components: {},
props: {
setting: defaultObject
},
@@ -45,7 +67,9 @@ export default {
zTree: '',
rMenu: '',
init: false,
loading: false
loading: false,
showTreeSearch: JSON.parse(localStorage.getItem('showTreeSearch')) || false,
treeSearchValue: ''
}
},
computed: {
@@ -54,104 +78,265 @@ export default {
}
},
mounted() {
window.refresh = this.refresh
window.onSearch = this.onSearch
this.initTree()
// $('.treebox').css('height', window.innerHeight - 60)
},
beforeDestroy() {
$.fn.zTree.destroy(this.iZTreeID)
},
methods: {
initTree: function() {
async initTree(refresh = false) {
const vm = this
let treeUrl
if (this.init) {
this.loading = true
}
if (this.init && this.treeSetting.treeUrl.indexOf('/perms/') !== -1 && this.treeSetting.treeUrl.indexOf('rebuild_tree') === -1) {
treeUrl = (this.treeSetting.treeUrl.indexOf('?') === -1) ? `${this.treeSetting.treeUrl}?rebuild_tree=1` : `${this.treeSetting.treeUrl}&rebuild_tree=1`
this.loading = true
if (refresh && this.treeSetting.treeUrl.indexOf('/perms/') !== -1 &&
this.treeSetting.treeUrl.indexOf('rebuild_tree') === -1
) {
treeUrl = (this.treeSetting.treeUrl.indexOf('?') === -1)
? `${this.treeSetting.treeUrl}?rebuild_tree=1`
: `${this.treeSetting.treeUrl}&rebuild_tree=1`
} else {
treeUrl = this.treeSetting.treeUrl
}
this.$axios.get(treeUrl, {
if (refresh) {
$.fn.zTree.destroy(this.iZTreeID)
}
let res = await this.$axios.get(treeUrl, {
'axios-retry': {
retries: 20,
retryCondition: e => {
return axiosRetry.isNetworkOrIdempotentRequestError(e) || e.response.status === 409
},
shouldResetTimeout: true,
retryDelay: () => { return 5000 }
retryDelay: () => {
return 5000
}
}
}).then(res => {
if (!res) {
res = []
}
if (res.length === 0) {
res.push({
name: this.$t('common.tree.Empty')
})
}
this.treeSetting.treeUrl = treeUrl
if (this.init) {
vm.zTree.destroy()
}
this.zTree = $.fn.zTree.init($(`#${this.iZTreeID}`), this.treeSetting, res)
// 手动上报事件, Tree加载完成
this.$emit('TreeInitFinish', this.zTree)
if (this.treeSetting.showRefresh) {
this.rootNodeAddDom(
this.zTree,
this.treeSetting.callback.refresh
)
}
if (this.treeSetting.showMenu) {
this.rMenu = $(`#${this.iRMenuID}`)
}
if (this.treeSetting.otherMenu) {
$('.menu-actions').append(this.otherMenu)
}
}).finally(_ => {
vm.loading = false
vm.init = true
})
},
rootNodeAddDom: function(ztree, callback) {
const vm = this
const refreshIcon = "<a id='tree-refresh'><i class='fa fa-refresh'></i></a>"
const rootNode = ztree.getNodes()[0]
let $rootNodeRef
if (rootNode) {
$rootNodeRef = $('#' + rootNode.tId + '_a')
$rootNodeRef.after(refreshIcon)
} else {
$rootNodeRef = $('#' + ztree.setting.treeId)
$rootNodeRef.html(refreshIcon)
vm.loading = false
if (!res) res = []
if (res?.length === 0) {
res?.push({
name: this.$t('common.tree.Empty')
})
}
const refreshIconRef = $('#tree-refresh')
refreshIconRef.bind('click', function() {
const result = callback()
if (result && result.then) {
result.finally(() => {
vm.initTree()
})
} else {
vm.initTree()
this.treeSetting.treeUrl = treeUrl
vm.zTree = $.fn.zTree.init($(`#${this.iZTreeID}`), this.treeSetting, res)
const rootNode = this.zTree.getNodes()[0]
this.rootNodeAddDom(rootNode)
// 手动上报事件, Tree加载完成
this.$emit('TreeInitFinish', this.zTree)
if (this.treeSetting.showMenu) {
this.rMenu = $(`#${this.iRMenuID}`)
}
if (this.treeSetting?.otherMenu) {
$('.menu-actions').append(this.otherMenu)
}
},
onSearch() {
this.showTreeSearch = !this.showTreeSearch
localStorage.setItem('showTreeSearch', JSON.stringify(this.showTreeSearch))
},
onClose() {
this.refresh()
this.onSearch()
},
rootNodeAddDom(rootNode) {
const { showSearch, showRefresh } = this.treeSetting
const searchIcon = `
<a class="tree-action-btn" id='search-btn' onclick="onSearch()">
<i class='fa fa-search tree-banner-icon'></i>
</a>`
const refreshIcon = `
<a id='tree-refresh' class="tree-action-btn" onclick='refresh()'>
<i class='fa fa-refresh'></i>
</a>`
const treeActions = `${showSearch ? searchIcon : ''}${showRefresh ? refreshIcon : ''}`
const icons = `
<span style="float: right; margin-right: 10px">
${treeActions}
</span>`
if (rootNode) {
const $rootNodeRef = $('#' + rootNode.tId + '_a')
$rootNodeRef.after(icons)
}
},
async refresh() {
this.treeSearchValue = ''
if (this.treeSetting?.callback?.refresh) {
await this.treeSetting.callback.refresh()
}
this.zTree.destroy()
setTimeout(() => this.initTree(true), 200)
},
treeSearch() {
const searchIcon = document.getElementById(`searchIcon`)
const searchInput = document.getElementById(`searchInput`)
searchIcon.classList.toggle('active')
searchInput.focus()
searchInput.onclick = (e) => {
e.stopPropagation()
}
searchInput.onblur = (e) => {
e.stopPropagation()
if (!(e.target.value)) {
searchIcon.classList.toggle('active')
}
})
},
refresh: function() {
const refreshIconRef = $('#tree-refresh')
refreshIconRef.click()
}
searchInput.oninput = e => this.treeSearchHandle((e.target.value || ''))
},
treeSearchHandle: _.debounce(function(value) {
if (this.treeSetting.async.enable) {
this.filterAssetsServer(value)
} else {
this.filterTree(value)
}
}, 600),
getCheckedNodes: function() {
return this.zTree.getCheckedNodes(true)
},
recurseParent(node) {
const parentNode = node.getParentNode()
if (parentNode && parentNode.pId) {
return [parentNode, ...this.recurseParent(parentNode)]
} else if (parentNode) {
return [parentNode]
} else {
return []
}
},
recurseChildren(node) {
if (!node.isParent) {
return []
}
const children = node.children
if (!children) {
return []
}
let allChildren = []
children.forEach((n) => {
allChildren = [...children, ...this.recurseChildren(n)]
})
return allChildren
},
groupBy(array, filter) {
const groups = {}
array.forEach(function(o) {
const group = JSON.stringify(filter(o))
groups[group] = groups[group] || []
groups[group].push(o)
})
return Object.keys(groups).map(function(group) {
return groups[group]
})
},
filterTree(keyword, tree = this.zTree) {
if (!this.zTree) return
const searchNode = tree.getNodesByFilter((node) => node.id === 'search')
if (searchNode) tree.removeNode(searchNode[0])
const nodes = tree.transformToArray(tree.getNodes())
if (!keyword) {
tree.showNodes(nodes)
return
}
if (!keyword) {
if (tree.hiddenNodes) {
tree.showNodes(tree.hiddenNodes)
tree.hiddenNodes = null
}
if (tree.expandNodes) {
tree.expandNodes.forEach((node) => {
if (node.id !== nodes[0].id) {
tree.expandNode(node, false)
}
})
tree.expandNodes = null
}
return null
}
let shouldShow = []
const matchedNodes = tree.getNodesByFilter((node) => {
return node.name.toLowerCase().indexOf(keyword.toLowerCase()) > -1
})
if (matchedNodes.length < 1) {
let name = this.$t('common.Search')
const assetsAmount = matchedNodes.length
name = `${name} (${assetsAmount})`
const newNode = { id: 'search', name: name, isParent: false, open: false }
tree.addNodes(null, newNode)
}
matchedNodes.forEach((node) => {
const parents = this.recurseParent(node)
const children = this.recurseChildren(node)
shouldShow = [...shouldShow, ...parents, ...children, node]
})
tree.hiddenNodes = nodes
tree.expandNodes = shouldShow
tree.hideNodes(nodes)
tree.showNodes(shouldShow)
for (const node of shouldShow) {
if (node.isParent) {
tree.expandNode(node, true)
}
}
},
filterAssetsServer(keyword) {
if (!this.zTree) return
let searchNode = this.zTree.getNodesByFilter((node) => node.id === 'search')
if (searchNode) {
this.zTree.removeChildNodes(searchNode[0])
this.zTree.removeNode(searchNode[0])
}
const treeNodes = this.zTree.getNodes()
if (!keyword) {
if (treeNodes.length !== 0) {
this.zTree.showNodes(treeNodes)
}
return
}
if (treeNodes.length !== 0) {
this.zTree.hideNodes(treeNodes)
}
let treeUrl = this.treeSetting.treeUrl
const filterField = treeUrl.includes('?') ? `&search=${keyword}` : `?search=${keyword}`
if (treeUrl.indexOf('assets/nodes/children/tree') > -1) {
treeUrl = treeUrl + '&all=all'
}
const searchUrl = `${treeUrl}${filterField}`
this.$axios.get(searchUrl).then(nodes => {
let name = this.$t('common.Search')
const assetsAmount = nodes.length
name = `${name} (${assetsAmount})`
const newNode = { id: 'search', name: name, isParent: true, open: true, zAsync: true }
searchNode = this.zTree.addNodes(null, newNode)[0]
searchNode.zAsync = true
this.rootNodeAddDom(searchNode)
const nodesGroupByOrg = this.groupBy(nodes, (node) => {
return node.meta?.data?.org_name
})
for (const item of nodesGroupByOrg) {
this.zTree.addNodes(searchNode, item)
}
searchNode.open = true
})
}
}
}
</script>
<style lang='less' scoped>
<style lang='scss' scoped>
div.rMenu {
position: absolute;
visibility: hidden;
@@ -165,15 +350,18 @@ export default {
list-style: none;
background-clip: padding-box;
}
.dataTables_wrapper .dataTables_processing {
opacity: .9;
border: none;
}
div.rMenu li{
div.rMenu li {
margin: 6px 0;
cursor: pointer;
list-style: none outside none;
}
.dropdown-menu {
border: medium none;
min-width: 160px;
@@ -191,12 +379,15 @@ export default {
top: 100%;
z-index: 1000;
}
.ztree ::v-deep .fa-refresh {
.ztree ::v-deep .fa {
font: normal normal normal 14px/1 FontAwesome !important;
}
.dropdown a:hover {
background-color: #f1f1f1
}
.dropdown-menu > li > a {
border-radius: 3px;
color: inherit;
@@ -209,13 +400,189 @@ export default {
clear: both;
white-space: nowrap;
}
.dropdown-menu>li>a:hover, .dropdown-menu>li>a:focus {
.dropdown-menu > li > a:hover, .dropdown-menu > li > a:focus {
color: #262626;
text-decoration: none;
background-color: #f5f5f5;
}
.treebox {
height: 80vh;
overflow: auto;
background-color: transparent;
>>> .ztree {
overflow: auto;
background-color: transparent;
max-height: calc(100vh - 220px);
min-height: 500px;
li {
background-color: transparent !important;
.button {
background-color: rgba(0, 0, 0, 0);
}
ul {
background-color: transparent !important;
}
}
}
}
::v-deep #tree-refresh {
margin-left: 3px;
}
::v-deep .tree-banner-icon-zone {
position: absolute;
right: 7px;
height: 30px;
overflow: hidden;
.fa {
color: #838385 !important;;
&:hover {
color: #606266 !important;;
}
}
}
::v-deep .tree-search {
position: relative;
top: -2px;
width: 20px;
height: 20px;
display: inline-block;
border-radius: 12px;
vertical-align: sub;
transition: .25s;
overflow: hidden;
.fa {
width: 13px !important;
}
.fa-search {
padding-top: 1px;
}
}
::v-deep .tree-search .tree-banner-icon {
position: absolute;
top: 4px;
left: 6px;
border-radius: 12px;
overflow: hidden;
background-color: transparent !important;
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
}
::v-deep .tree-search.active {
width: 160px;
background-color: #ffffff !important;
}
::v-deep .tree-search.active:hover {
border-radius: 12px;
}
::v-deep .tree-search input {
position: relative;
left: 20px;
width: 133px;
height: 100%;
background-color: #ffffff !important;
color: #606266;
display: flex;
justify-content: center;
align-items: center;
border: none;
outline: none;
}
.tree-header {
position: relative;
.title {
font-weight: 500;
}
.content {
height: 30px;
line-height: 30px;
border-bottom: 1px solid #e0e0e0;
border-radius: 3px;
padding: 0 5px;
box-sizing: border-box;
overflow: hidden;
cursor: pointer;
background-color: #D7D8DC;
.rotate {
transition: all .1 .8s;
transform: rotate(-90deg);
}
.fa-caret-down {
font-size: 16px;
}
.special {
top: 1px !important;
}
}
}
.tree-empty {
margin-left: 4px;
}
.fixed-tree-search {
margin-bottom: 10px;
& > > > .el-input__inner {
border-radius: 4px;
background: #fafafa;
padding-right: 32px;
}
& > > > .el-input__suffix {
padding-right: 8px;
}
& > > > .el-input__prefix {
padding-left: 6px;
}
& > > > .el-input__suffix-inner {
line-height: 30px;
}
}
.icon-refresh {
border-radius: 4px;
padding: 0 1px;
z-index: 1;
&:hover {
cursor: pointer;
color: #606266;
border-color: #d2d2d2;
background-color: #e6e6e6;
}
}
.icon {
cursor: pointer;
}
.tree-action-btn {
padding: 0 2px;
color: red;
}
</style>

View File

@@ -72,7 +72,7 @@ export default {
},
methods: {
defaultCallback: function(action) {
// console.log(action)
// debug(action)
}
}
}

View File

@@ -1,4 +1,6 @@
<script type="text/jsx">
import { toSafeLocalDateStr } from '@/utils/common'
export default {
name: 'ItemValue',
props: {
@@ -15,33 +17,75 @@ export default {
default: null
}
},
computed: {
displayValue() {
if ([null, undefined, ''].includes(this.value)) {
return '-'
}
if (typeof this.value === 'boolean') {
return this.toChoicesDisplay(this.value)
} else if (typeof this.value === 'object') {
return this.value
} else if (this.value instanceof Array) {
return this.value.map(item => {
if (typeof item === 'object') {
return item.label || item.title
} else {
return item
}
}).join(', ')
} else if (this.isDatetime(this.value)) {
return toSafeLocalDateStr(this.value)
} else {
return this.value
}
}
},
methods: {
toChoicesDisplay(value) {
if (!value) {
return this.$t('common.No')
}
return this.$t('common.Yes')
},
isDatetime(value) {
if (typeof value !== 'string') {
return false
}
if (value.split(' ').length !== 3) {
return false
}
if (value.split(' ')[1].split(':').length !== 3) {
return false
}
if (isNaN(value) && !isNaN(Date.parse(value))) {
return true
}
}
},
render(h) {
if (typeof this.formatter === 'function') {
return this.formatter(this.item, this.value)
}
if (typeof this.value === 'boolean') {
if (this.value instanceof Array) {
const newArr = this.value || []
return (
<span class='item-value'>{this.toChoicesDisplay(this.value)}</span>
<span>
{
newArr.map((item, index) => <div key={index}>{item.key}{item.value} </div>)
}
</span>
)
}
return (
<span class='item-value'>{this.value}</span>
<span>{this.displayValue}</span>
)
}
}
</script>
<style scoped>
.item-value {
word-break: break-word;
a {
color: var(--color-success);
}
</style>

View File

@@ -0,0 +1,139 @@
<template>
<DetailCard v-if="!loading" :items="items" v-bind="$attrs" />
</template>
<script>
import DetailCard from './index'
import { toSafeLocalDateStr } from '@/utils/common'
export default {
name: 'AutoDetailCard',
components: { DetailCard },
props: {
object: {
type: Object,
default: () => ({})
},
url: {
type: String,
required: true
},
fields: {
type: Array,
default: null
},
excludes: {
type: Array,
default: null
},
showUndefine: {
type: Boolean,
default: true
},
formatters: {
type: Object,
default: () => ({})
}
},
data() {
return {
items: [],
loading: true
}
},
async mounted() {
await this.optionAndGenFields()
this.loading = false
},
methods: {
async optionAndGenFields() {
const data = await this.$store.dispatch('common/getUrlMeta', { url: this.url })
const remoteMeta = data.actions['GET'] || {}
let fields = this.fields
fields = fields || Object.keys(remoteMeta)
const defaultExcludes = ['org_id']
const excludes = (this.excludes || []).concat(defaultExcludes)
fields = fields.filter(item => !excludes.includes(item))
for (const name of fields) {
if (typeof name === 'object') {
this.items.push(name)
continue
}
const fieldMeta = remoteMeta[name]
if (!fieldMeta) {
continue
}
if (fieldMeta['write_only']) {
continue
}
let value = this.object[name]
const label = fieldMeta.label
if (Array.isArray(value)) {
if (typeof value[0] === 'object') {
value.forEach(item => {
const fieldName = `${name}.${item.name}`
if (excludes.includes(fieldName)) {
return
}
this.items.push({
key: item.label,
value: item.value
})
})
} else if (typeof value[0] === 'string') {
value.forEach((item, index) => {
let data = {}
if (index === 0) {
data = {
key: label,
value: value[index]
}
} else {
data = {
value: value[index]
}
}
this.items.push(data)
})
}
continue
}
if (value === null || value === '') {
value = '-'
} else if (fieldMeta.type === 'datetime') {
value = toSafeLocalDateStr(value)
} else if (fieldMeta.type === 'labeled_choice') {
value = value?.['label']
} else if (fieldMeta.type === 'related_field' || fieldMeta.type === 'nested object') {
value = value['name']
} else if (fieldMeta.type === 'm2m_related_field') {
value = value.map(item => item['name']).join(', ')
} else if (fieldMeta.type === 'boolean') {
value = value ? this.$t('common.Yes') : this.$t('common.No')
}
if (value === undefined) {
if (this.showUndefine) {
value = '-'
} else {
continue
}
}
const item = {
key: label,
value: value,
formatter: this.formatters[name]
}
this.items.push(item)
}
}
}
}
</script>
<style scoped>
</style>

View File

@@ -1,22 +1,11 @@
<template>
<IBox :title="title" fa="fa-info-circle">
<div class="content">
<el-row v-if="this.$route.params.id" :gutter="10" class="item">
<el-col :span="6"><div :style="{ 'text-align': align }" class="item-label"><label>ID: </label></div></el-col>
<el-col :span="18"><div class="item-text">{{ this.$route.params.id }}</div></el-col>
</el-row>
<el-row v-for="item in items" :key="'card-' + item.key" :gutter="10" class="item">
<el-col :span="6">
<div :style="{ 'text-align': align }" class="item-label"><label>{{ item.key }}: </label></div>
</el-col>
<el-col :span="18">
<div class="item-text">
<ItemValue :value="item.value" v-bind="item" />
</div>
</el-col>
</el-row>
<slot />
</div>
<IBox :title="title" :fa="fa">
<el-form class="content" label-position="left" label-width="25%">
<el-form-item v-for="item in items" :key="item.key" :label="item.key">
<ItemValue class="item-value" :value="item.value" v-bind="item" />
</el-form-item>
</el-form>
<slot />
</IBox>
</template>
@@ -34,6 +23,10 @@ export default {
return this.$t('common.BasicInfo')
}
},
fa: {
type: String,
default: 'fa-info-circle'
},
items: {
type: Array,
default: () => []
@@ -46,7 +39,42 @@ export default {
}
</script>
<style scoped>
<style lang="scss" scoped>
.el-card__body {
padding: 20px 40px;
}
.el-form-item {
border-bottom: 1px dashed #EBEEF5;
padding: 1px 0;
margin-bottom: 0;
&:last-child {
border-bottom: none;
}
&:hover {
}
>>> .el-form-item__label {
padding-right: 8%;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}
>>> .el-form-item__content {
font-size: 13px;
}
>>> .el-tag--mini {
margin-right: 3px;
}
}
.item-value span {
word-break: break-word;
}
.content {
font-size: 13px;
line-height: 2.5;

View File

@@ -0,0 +1,97 @@
<template>
<Dialog
v-if="detailVisible"
:show-cancel="false"
:show-confirm="false"
:title="title"
:visible.sync="detailVisible"
>
<div>
<div v-if="isEmpty()" style="text-align: center">
{{ this.$tc('common.NoContent') }}
</div>
<div v-else>
<el-table
:data="diff"
height="500"
style="width: 100%"
>
<el-table-column
:label="$tc('audits.ChangeField')"
:prop="fieldName"
show-overflow-tooltip
width="100"
/>
<el-table-column
:label="$tc('audits.BeforeChange')"
:prop="leftKeyName"
show-overflow-tooltip
/>
<el-table-column
:label="$tc('audits.AfterChange')"
:prop="rightKeyName"
show-overflow-tooltip
/>
</el-table>
</div>
</div>
</Dialog>
</template>
<script>
import Dialog from '@/components/Dialog/index'
export default {
name: 'DiffDetail',
components: {
Dialog
},
props: {
title: {
type: String,
default: () => ''
},
fieldName: {
type: String,
default: () => 'field'
},
leftKeyName: {
type: String,
default: () => 'before'
},
rightKeyName: {
type: String,
default: () => 'after'
}
},
data() {
return {
diff: '',
detailVisible: false
}
},
methods: {
isEmpty() {
const content = this.diff
return !content || JSON.stringify(content) === '{}'
},
show(data) {
this.diff = data
this.detailVisible = true
}
}
}
</script>
<style scoped>
.el-tag {
width: 100%;
white-space: normal;
height: auto;
}
.el-table::before {
background-color: inherit;
}
</style>

View File

@@ -2,15 +2,20 @@
<el-dialog
:title="title"
:top="top"
:width="iWidth"
class="dialog"
:append-to-body="true"
:modal-append-to-body="true"
v-bind="$attrs"
v-on="$listeners"
>
<slot />
<div slot="footer" class="dialog-footer">
<slot name="footer">
<el-button v-if="showCancel" size="small" @click="onCancel">{{ cancelTitle }}</el-button>
<el-button v-if="showConfirm" type="primary" size="small" :loading="loadingStatus" @click="onConfirm">{{ confirmTitle }}</el-button>
<el-button v-if="showCancel" @click="onCancel">{{ cancelTitle }}</el-button>
<el-button v-if="showConfirm" type="primary" :loading="loadingStatus" @click="onConfirm">
{{ confirmTitle }}
</el-button>
</slot>
</div>
</el-dialog>
@@ -38,6 +43,10 @@ export default {
type: String,
default: '3vh'
},
width: {
type: String,
default: '60%'
},
showConfirm: {
type: Boolean,
default: true
@@ -51,10 +60,18 @@ export default {
default() {
return this.$t('common.Confirm')
}
},
maxWidth: {
type: String,
default: '1200px'
}
},
data() {
return {
return {}
},
computed: {
iWidth() {
return this.$store.getters.isMobile ? '80%' : this.width
}
},
methods: {
@@ -69,12 +86,30 @@ export default {
</script>
<style lang="scss" scoped>
.dialog >>> .el-dialog__header {
/*padding-top: 10px;*/
.dialog >>> .el-dialog {
border-radius: 0.3em;
max-width: 1500px;
&__header {
box-sizing: border-box;
padding: 15px 22px;
border-bottom: 1px solid #dee2e6;
font-weight: 400;
}
&__body {
padding: 20px 30px;
}
&__footer {
border-top: 1px solid #dee2e6;
padding: 16px;
justify-content: flex-end;
}
}
.dialog-footer {
padding-right: 20px;
.dialog-footer >>> button.el-button {
font-size: 13px;
padding: 10px 20px;
}
</style>

View File

@@ -0,0 +1,77 @@
<template>
<el-tree
:data="iTree"
show-checkbox
node-key="value"
:default-expand-all="true"
:default-expanded-keys="iValue"
:default-checked-keys="iValue"
:props="defaultProps"
@check="handleCheckChange"
/>
</template>
<script>
export default {
props: {
value: {
type: Array,
default: () => []
},
tree: {
type: Array,
default: () => []
},
readonly: {
type: Boolean,
default: false
}
},
data() {
return {
defaultProps: {
children: 'children',
label: 'label'
}
}
},
computed: {
iValue() {
return this.value.map(item => {
if (item.value) {
return item.value
}
return item
})
},
iTree() {
if (!this.readonly) {
return this.tree
} else {
return this.setTreeReadonly(this.tree)
}
}
},
methods: {
handleCheckChange(node, { checkedNodes }) {
const checkedKeys = checkedNodes
.filter(item => !item.children)
.map(node => node.value)
this.$emit('input', checkedKeys)
},
setTreeReadonly(tree) {
return tree.map(item => {
item.disabled = true
if (item.children) {
item.children = this.setTreeReadonly(item.children)
}
return item
})
}
}
}
</script>
<style scoped>
</style>

View File

@@ -0,0 +1,282 @@
<template>
<div class="code-editor" style="font-size: 12px">
<div class="toolbar">
<div
v-for="(item,index) in toolbar.left"
:key="index"
style="display: inline-block; margin: 0 2px"
>
<el-tooltip :content="item.tip" :disabled="!item.tip" placement="top">
<el-button
v-if="item.type ==='button'"
:disabled="item.disabled"
:type="item.el&&item.el.type"
size="mini"
@click="item.callback()"
>
<i :class="item.icon" style="margin-right: 4px;" />{{ item.name }}
</el-button>
<el-autocomplete
v-if="item.type === 'input' && item.el.autoComplete"
v-model="item.value"
:fetch-suggestions="item.el.query"
class="inline-input"
size="mini"
@select="item.callback(item.value)"
@change="item.callback(item.value)"
/>
<div v-if="item.type==='select' && item.el && item.el.create" class="select-content">
<span class="filter-label">
{{ item.name }}:
</span>
<el-select
v-if="item.type==='select' && item.el && item.el.create"
:key="index"
v-model="item.value"
:allow-create="item.el.create || false"
:filterable="item.el.create || false"
:multiple="item.el.multiple"
:placeholder="item.name"
class="autoWidth-select"
default-first-option
size="mini"
@change="item.callback(item.value)"
>
<template slot="prefix">
{{ item.label + ':' + item.value }}
</template>
<el-option
v-for="(option,id) in item.options"
:key="id"
:label="option.label"
:title="option.value"
:value="option.value"
/>
</el-select>
</div>
<el-dropdown
v-if="item.type==='select' && (!item.el || !item.el.create) "
trigger="click"
@command="(command) => {
item.value= command
item.callback(command)
}"
>
<el-button size="mini" type="default">
<b>{{ item.name }}:</b> {{ getLabel(item.value, item.options) }} <i
class="el-icon-arrow-down el-icon--right"
/>
</el-button>
<el-dropdown-menu v-slot="dropdown">
<el-dropdown-item v-for="(option,i) in item.options" :key="i" :command="option.value">
{{ option.label }}
</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
<el-switch
v-if="item.type === 'switch'"
v-model="item.value"
:active-text="item.name"
:disabled="item.disabled"
@change="item.callback( item.value)"
/>
</el-tooltip>
</div>
<div class="right-side" style="float: right">
<div
v-for="(item,index) in toolbar.right"
:key="index"
style="display: inline-block"
>
<el-tooltip :content="item.tip">
<el-button
v-if="item.type ==='button'"
:disabled="item.disabled"
size="mini"
style="background-color: transparent"
type="default"
@click="item.callback()"
>
<i v-if="item.icon.startsWith('fa')" :class="'fa ' + item.icon" />
<svg-icon v-else :icon-class="item.icon" style="font-size: 14px;" />
</el-button>
</el-tooltip>
</div>
</div>
</div>
<codemirror ref="myCm" v-model="iValue" :options="iOptions" class="editor" />
</div>
</template>
<script>
import { codemirror } from 'vue-codemirror'
import 'codemirror/mode/shell/shell'
import 'codemirror/mode/powershell/powershell'
import 'codemirror/mode/python/python'
import 'codemirror/mode/yaml/yaml'
import 'codemirror/mode/ruby/ruby' // theme css
import 'codemirror/theme/base16-light.css'
import 'codemirror/theme/idea.css'
import 'codemirror/theme/mbo.css'
import 'codemirror/theme/duotone-light.css'
import 'codemirror/lib/codemirror.css'
export default {
components: {
codemirror
},
props: {
toolbar: {
type: [Array, Object],
default: () => []
},
value: {
type: [String, Object],
default: () => ''
},
options: {
type: Object,
default: () => {
return {}
}
}
},
data() {
return {}
},
computed: {
iValue: {
get() {
return this.value
},
set(val) {
this.$emit('update:value', val)
this.$emit('change', val)
}
},
iOptions() {
const defaultOptions = {
tabSize: 4,
mode: 'shell',
lineNumbers: true,
theme: 'idea',
placeholder: 'Code goes here...',
autofocus: true
}
return Object.assign(defaultOptions, this.options)
}
},
methods: {
getLabel(value, items) {
for (const item of items) {
if (item.value === value) {
return item.label
}
}
}
}
}
</script>
<style lang="scss" scoped>
.editor {
border: solid 1px #f3f3f3;
}
.toolbar {
height: 100%;
width: 100%;
line-height: 29px;
vertical-align: bottom;
display: inline-block;
padding: 3px 3px 3px 0;
margin-bottom: 5px;
}
> > > .CodeMirror pre.CodeMirror-line,
> > > .CodeMirror-linenumber.CodeMirror-gutter-elt {
line-height: 18px !important;
}
.runas-input {
height: 28px;
> > > {
.el-select {
width: 100px;
}
}
}
.right-side {
.el-button {
border: none;
padding: 2px;
font-size: 14px;
width: 26px;
height: 26px;
color: #888;
background-color: transparent;
margin-left: 2px;
}
}
.autoWidth-select {
min-width: 100px;
}
.autoWidth-select > > > .el-input__prefix {
position: relative;
left: 0px;
box-sizing: border-box;
height: 28px;
line-height: 28px;
visibility: hidden;
}
.autoWidth-select > > > input {
position: absolute;
padding-left: 0px;
border: none;
color: #606266;
background-color: #e6e6e6;
font-size: 12px;
font-weight: 470;
line-height: 27px;
}
> > > .el-select {
top: -1px;
.el-input .el-select__caret {
color: #7a7c7f;
}
}
> > > .el-button.el-button--default {
background-color: #e6e6e6;
}
.filter-label {
font-size: 12px;
font-weight: 700;
}
.select-content {
display: inline-block;
position: relative;
top: 1px;
height: 28px;
line-height: 28px;
padding-left: 15px;
font-size: 0;
border: 1px solid #DCDFE6;
border-radius: 4px;
background-color: #e6e6e6;
}
</style>

View File

@@ -2,9 +2,9 @@
<el-date-picker
v-model="value"
type="datetimerange"
:range-separator="this.$t('common.To')"
:start-placeholder="this.$t('common.DateStart')"
:end-placeholder="this.$t('common.DateEnd')"
:range-separator="$tc('common.To')"
:start-placeholder="$tc('common.DateStart')"
:end-placeholder="$tc('common.DateEnd')"
size="small"
:clearable="false"
class="datepicker"
@@ -91,19 +91,27 @@ export default {
}
</script>
<style lang='less' scoped>
.datepicker{
<style lang='scss' scoped>
.datepicker {
width: 233px;
& >>> .el-range__icon {
margin-top: 2px;
margin-right: 3px;
}
& >>> .el-range-input {
width: 49%;
}
}
.el-input__inner{
.el-input__inner {
border: 1px solid #dcdee2;
border-radius: 3px;
height: 36px;
height: 32x;
}
/*.el-date-editor ::v-deep .el-input__icon{*/
/* line-height: 28px;*/
/*}*/
.el-date-editor ::v-deep .el-range-separator{
.el-date-editor ::v-deep .el-range-separator {
line-height: 28px;
}
</style>

View File

@@ -0,0 +1,79 @@
<template>
<div class="json-editor">
<JsonEditor
v-model="resultInfo"
:mode="'code'"
:show-btns="false"
@json-change="onJsonChange"
@json-save="onJsonSave"
@has-error="onError"
/>
</div>
</template>
<script>
import JsonEditor from 'vue-json-editor'
export default {
components: { JsonEditor },
props: {
value: {
type: [String, Object, Array],
default: () => ({})
}
},
data() {
return {
hasJsonFlag: true, // json是否验证通过
resultInfo: {}
}
},
created() {
this.resultInfo = typeof this.value === 'string' ? JSON.parse(this.value) : this.value
},
methods: {
// 数据改变
onJsonChange(value) {
this.onJsonSave(value)
},
// 保存
onJsonSave(value) {
this.resultInfo = typeof value === 'string' ? JSON.parse(value) : value
this.hasJsonFlag = true
setTimeout(() => {
this.$emit('change', this.resultInfo)
}, 500)
},
onError: _.debounce(function(value) {
this.$message.error(this.$tc('common.FormatError'))
}, 1100)
}
}
</script>
<style lang="scss" scoped>
@import "~@/styles/variables.scss";
.json-editor {
& > > > .jsoneditor {
border: 1px solid #e5e6e7;
}
& > > > .jsoneditor-compact {
display: none;
}
& > > > .jsoneditor-modes {
display: none;
}
& > > > .jsoneditor-poweredBy {
display: none;
}
& > > > .jsoneditor-menu {
background: var(--color-primary);
border-bottom: 1px solid var(--color-primary);
}
}
</style>

View File

@@ -1,5 +1,5 @@
<template>
<el-link @click="onClick">
<el-link :disabled="disabled" @click="onClick">
{{ title }}
</el-link>
</template>
@@ -15,6 +15,10 @@ export default {
title: {
type: String,
default: ''
},
disabled: {
type: Boolean,
default: false
}
},
methods: {

View File

@@ -0,0 +1,105 @@
<template>
<Select2
v-model="iValue"
:multiple="multiple"
v-bind="attrsWithoutValue"
@change="onChange"
@change-options="onChangeOptions"
/>
</template>
<script>
import Select2 from './Select2'
export default {
name: 'NestedObjectSelect2',
components: {
Select2
},
props: {
value: {
type: [Array, String, Number, Boolean, Object],
default: () => ([])
},
multiple: {
type: Boolean,
default: true
},
// 自定义label字段的name
customLabelKeyName: {
type: String,
default: 'name'
}
},
data() {
return {}
},
computed: {
attrsWithoutValue() {
const attrs = Object.assign({}, this.$attrs)
delete attrs.value
return attrs
},
iValue: {
set(val) {
const value = this.valuesToObjects(val)
this.$log.debug('set iValue', value)
this.$emit('input', value)
},
get() {
const value = this.objectsToValues(this.value)
return value
}
}
},
methods: {
onChange(val) {
val = this.valuesToObjects(val)
this.$log.debug('onChange .... ', val)
this.$emit('change', val)
},
onChangeOptions(val) {
val = this.valuesToObjects(val)
this.$log.debug('onChangeOptions', val)
this.$emit('changeOptions', val)
},
valuesToObjects(values) {
let value = values
if (!this.multiple && !Array.isArray(value)) {
value = [value]
}
value = value.map(v => {
// uuid v4
const uuid = /^[0-9A-F]{8}-[0-9A-F]{4}-[4][0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i
return typeof v === 'object' ? v
: this.$attrs?.allowCreate && !uuid.test(v) ? { [this.customLabelKeyName]: v } : { pk: v }
})
if (!this.multiple) {
value = value[0]
}
return value
},
objectsToValues(objects) {
let val = objects
if (!this.multiple) {
val = [val]
}
val = val.map((v) => {
if (v && typeof v === 'object') {
return v.pk || v.id || (this.$attrs?.allowCreate ? (v?.[this.customLabelKeyName] + ':' + v?.value) : '')
} else {
return v
}
})
if (!this.multiple) {
val = val[0]
}
return val
}
}
}
</script>
<style scoped>
</style>

View File

@@ -1,5 +1,5 @@
<template>
<password
<Password
:value="value"
v-bind="iAttrs"
class="el-input password-input"
@@ -32,7 +32,8 @@ export default {
const defaultAttrs = {
secureLength: 7,
defaultClass: 'el-input__inner',
toggle: true
toggle: true,
showStrengthMeter: false
}
return Object.assign(defaultAttrs, this.attrs)
}
@@ -46,17 +47,16 @@ export default {
</script>
<style lang="scss" scoped>
@import "~@/styles/element-variables.scss";
.password-input >>> .Password__badge--error {
background-color: $--color-danger;
background-color: var(--color-danger);
}
.password-input >>> .Password__strength-meter--fill[data-score="4"] {
background: $--color-primary;
background: var(--color-success);
width: 100%;
}
.password-input >>> .Password__badge--success {
background: $--color-primary;
background: var(--color-success);
}
.password-input >>> .Password__strength-meter {

View File

@@ -0,0 +1,181 @@
<template>
<Dialog
:close-on-click-modal="false"
:destroy-on-close="true"
:show-cancel="false"
:show-confirm="false"
:title="$tc('assets.PlatformProtocolConfig') + '' + item.name"
class="setting-dialog"
v-bind="$attrs"
width="70%"
v-on="$listeners"
>
<el-alert v-if="disabled" type="success">
{{ $t('assets.InheritPlatformConfig') }}
<el-link :href="platformDetail" class="link-more" target="_blank">
{{ $t('common.View') }}
</el-link>
<i class="fa fa-external-link" />
</el-alert>
<AutoDataForm
:disabled="disabled"
:form="form"
class="data-form"
v-bind="config"
@submit="onSubmit"
/>
</Dialog>
</template>
<script>
import { AutoDataForm, Dialog } from '@/components'
export default {
name: 'ProtocolSetting',
components: {
Dialog,
AutoDataForm
},
props: {
item: {
type: Object,
default: () => ({})
},
disabled: {
type: Boolean,
default: false
}
},
data() {
return {
bases: ['required', 'default'],
defaultSetting: {
sftp_enabled: true,
sftp_home: '/tmp',
username_selector: '#username',
password_selector: '#password',
submit_selector: '.btn-submit'
},
loading: true,
form: {},
platformDetail: '#/console/assets/platforms/' + this.$route.query.platform,
config: {
hasSaveContinue: false,
hasButtons: !this.disabled,
url: '',
fields: [
[this.$t('common.Basic'), [
{
id: 'required',
label: this.$t('assets.Required'),
type: 'switch',
helpText: this.$t('assets.RequiredProtocols')
},
{
id: 'default',
label: this.$t('assets.Default'),
type: 'switch',
helpText: this.$t('assets.DefaultProtocol')
}
]],
[this.$t('assets.LoginConfig'), [
{
id: 'console',
label: 'Console',
type: 'switch',
hidden: () => this.item.name !== 'rdp'
},
{
id: 'security',
label: 'Security',
hidden: () => this.item.name !== 'rdp',
type: 'radio-group',
options: [
{ label: 'Any', value: 'any' },
{ label: 'RDP', value: 'rdp' },
{ label: 'NLA', value: 'nla' },
{ label: 'TLS', value: 'tls' }
]
},
{
id: 'sftp_enabled',
label: this.$t('common.Enable') + ' SFTP',
type: 'switch',
hidden: () => this.item.name !== 'ssh'
},
{
id: 'sftp_home',
label: 'SFTP home',
type: 'input',
helpText: this.$t('assets.SFTPHelpMessage'),
hidden: (form) => this.item.name !== 'ssh' || !form['sftp_enabled']
},
{
id: 'username_selector',
label: this.$t('assets.UserNameSelector'),
type: 'input',
hidden: (form) => this.item.name !== 'http'
},
{
id: 'password_selector',
label: this.$t('assets.PasswordSelector'),
type: 'input',
hidden: (form) => this.item.name !== 'http'
},
{
id: 'submit_selector',
label: this.$t('assets.SubmitSelector'),
type: 'input',
hidden: (form) => this.item.name !== 'http'
},
{
id: 'auth_username',
label: this.$t('assets.AuthUsername'),
type: 'switch',
hidden: (form) => this.item.name !== 'redis'
}
]]
]
}
}
},
created() {
const itemSetting = this.item.setting || this.defaultSetting
for (const i of this.bases) {
if (this.item.hasOwnProperty(i)) {
itemSetting[i] = this.item[i]
}
}
this.form = itemSetting
},
methods: {
onSubmit(form) {
for (const i of this.bases) {
if (form.hasOwnProperty(i)) {
this.item[i] = form[i]
}
}
this.item.setting = form
this.$emit('update:visible', false)
}
}
}
</script>
<style lang="scss" scoped>
.data-form > > > .el-form-item.form-buttons {
padding-top: 10px;
margin-bottom: 0;
}
.setting-dialog > > > .el-dialog__body {
padding-top: 10px;
}
.link-more {
font-size: 10px;
margin-left: 10px;
border-bottom: solid 1px;
color: inherit;
}
</style>

View File

@@ -0,0 +1,233 @@
<template>
<div :class="showSetting ? 'show-setting' : 'hide-setting'">
<div v-for="(item, index) in items" :key="item.name" class="protocol-item">
<el-input
v-model="item.port"
:class="readonly ? '' : 'input-with-select'"
:placeholder="portPlaceholder"
:readonly="readonly"
v-bind="$attrs"
>
<el-select
slot="prepend"
v-model="item.name"
:disabled="cannotDelete(item)"
class="prepend"
@change="handleProtocolChange($event, item)"
>
<el-option v-for="p of remainProtocols" :key="p.name" :label="p.name" :value="p.name" />
</el-select>
<el-button
v-if="showSetting(item)"
slot="append"
icon="el-icon-setting"
@click="onSettingClick(item)"
/>
</el-input>
<div v-if="!readonly" class="input-button" style="display: flex; margin-left: 20px">
<el-button
:disabled="cannotDelete(item)"
icon="el-icon-minus"
size="mini"
style="flex-shrink: 0;"
type="danger"
@click="handleDelete(index)"
/>
<el-button
v-if="index === items.length - 1"
:disabled="remainProtocols.length === 0 || !item.port"
icon="el-icon-plus"
size="mini"
style="flex-shrink: 0;"
type="primary"
@click="handleAdd(index)"
/>
</div>
</div>
<ProtocolSettingDialog
v-if="showDialog"
:disabled="settingReadonly || readonly"
:item="settingItem"
:visible.sync="showDialog"
/>
</div>
</template>
<script>
import ProtocolSettingDialog from './ProtocolSettingDialog'
export default {
components: {
ProtocolSettingDialog
},
props: {
value: {
type: [String, Array],
default: () => []
},
title: {
type: String,
default: ''
},
choices: {
type: Array,
default: () => ([])
},
readonly: {
type: Boolean,
default: false
},
settingReadonly: {
type: Boolean,
default: false
},
showSetting: {
type: Function,
default: (item) => true
}
},
data() {
return {
name: '',
items: [],
settingItem: {},
showDialog: false
}
},
computed: {
selectedProtocolNames() {
return this.items.map(item => item.name)
},
remainProtocols() {
return this.choices.filter(proto => {
return this.selectedProtocolNames.indexOf(proto.name) === -1
})
},
portPlaceholder() {
if (this.settingReadonly) {
return this.$t('applications.port')
} else {
return this.$t('assets.DefaultPort')
}
},
iChoices() {
return this.choices.map(item => {
delete item?.id
return item
})
}
},
watch: {
iChoices: {
handler(value) {
this.setDefaultItems(value)
}
},
items: {
handler(value) {
this.$emit('input', value)
},
immediate: true,
deep: true
}
},
mounted() {
this.setDefaultItems(this.iChoices)
this.$log.debug('Choices: ', this.choices)
this.$log.debug('Value: ', this.value)
},
methods: {
handleDelete(index) {
this.items = this.items.filter((value, i) => {
return i !== index
})
},
cannotDelete(item) {
const full = this.iChoices.find(choice => {
return choice.name === item.name
})
return full?.primary || full?.required
},
handleAdd(index) {
this.items.push({ ...this.remainProtocols[0] })
},
handleProtocolChange(evt, item) {
const selected = this.choices.find(item => item.name === evt)
item.name = selected.name
item.port = selected.port
},
setDefaultItems(choices) {
if (this.value instanceof Array && this.value.length > 0) {
const protocols = []
this.value.forEach(item => {
// 有默认值的情况下设置为只读或者有id、有setting是平台
if (!this.settingReadonly || (item?.id && item?.setting)) {
protocols.push(item)
} else {
// 获取资产协议配置
const assetDefaultItems = this.getAssetDefaultItems(item, choices)
protocols.push(...assetDefaultItems)
}
})
this.items = protocols
} else {
const defaults = choices.filter(item => (item.required || item.primary || item.default))
this.items = defaults
}
},
getAssetDefaultItems(item, choices) {
const protocols = []
const protocol = choices.find(i => i.name === item.name) || {}
protocols.push({ ...protocol, ...item })
return protocols
},
onSettingClick(item) {
this.settingItem = item
this.showDialog = true
}
}
}
</script>
<style lang="less" scoped>
.el-select .el-input {
width: 130px;
}
.el-select {
max-width: 120px;
}
.input-with-select {
flex-shrink: 1;
width: calc(100% - 80px) !important;
}
.input-with-select .el-input-group__prepend {
background-color: #fff;
}
.el-select ::v-deep .el-input__inner {
width: 110px;
}
.protocol-item {
display: flex;
margin: 5px 0;
}
.input-button {
margin-top: 4px;
}
.input-button ::v-deep .el-button.el-button--mini {
height: 25px;
padding: 5px;
}
.el-input-group__append .el-button {
font-size: 14px;
color: #1a1a1a;
padding: 9px 20px;
}
</style>

View File

@@ -4,25 +4,26 @@
v-model="iValue"
v-loading="!initialized"
v-loadmore="loadMore"
:clearable="clearable"
:disabled="selectDisabled"
:multiple="multiple"
:options="iOptions"
:remote="remote"
:remote-method="filterOptions"
:multiple="multiple"
filterable
:clearable="clearable"
popper-append-to-body
class="select2"
filterable
popper-append-to-body
v-bind="$attrs"
@change="onChange"
@visible-change="onVisibleChange"
v-on="$listeners"
@visible-change="onVisibleChange"
>
<el-option
v-for="item in iOptions"
:key="item.value"
:disabled="checkDisabled(item)"
:label="item.label"
:value="item.value"
:disabled="checkDisabled(item)"
/>
</el-select>
</template>
@@ -77,7 +78,7 @@ export default {
},
// 初始化值,也就是选中的值
value: {
type: [Array, String, Number, Boolean],
type: [Array, String, Number, Boolean, Object],
default() {
return this.multiple ? [] : ''
}
@@ -85,9 +86,14 @@ export default {
disabledValues: {
type: Array,
default: () => []
},
disabled: {
type: Boolean,
default: false
}
},
data() {
const vm = this
const defaultPageSize = 10
const defaultParams = {
search: '',
@@ -95,10 +101,22 @@ export default {
hasMore: true,
pageSize: defaultPageSize
}
// 设置axios全局报错提示不显示
const validateStatus = (status) => {
if (status === 403) {
setTimeout(() => {
vm.initialized = true
vm.selectDisabled = true
}, 200)
return 200
}
return status
}
return {
validateStatus,
selectDisabled: this.disabled,
loading: false,
initialized: false,
iValue: this.multiple ? [] : '',
defaultParams: _.cloneDeep(defaultParams),
params: _.cloneDeep(defaultParams),
iOptions: this.options || [],
@@ -113,6 +131,24 @@ export default {
optionsValues() {
return this.iOptions.map((v) => v.value)
},
iValue: {
set(val) {
const noValue = !this.value || this.value.length === 0
if (noValue && !this.initialized) {
return
}
if (val && val.constructor === Object && val.value) {
this.$emit('input', val.value)
} else if (val && val.constructor === Object && val.id) {
this.$emit('input', val.id)
} else {
this.$emit('input', val)
}
},
get() {
return this.value
}
},
iAjax() {
const defaultPageSize = 10
const defaultMakeParams = (params) => {
@@ -131,11 +167,24 @@ export default {
return { label: item.name, value: item.id }
}
const transformOption = this.ajax.transformOption || defaultTransformOption
const defaultFilterOption = (item) => {
return item
}
const filterOption = this.ajax.filterOption || defaultFilterOption
const defaultProcessResults = (data) => {
let results = data.results
let results = []
let more = false
let total = 0
if (Array.isArray(data)) {
results = data
total = data.length
} else if (typeof data === 'object') {
results = data?.results || []
more = !!data.next
total = data.count
}
results = results.map(transformOption)
const more = !!data.next
const total = data.count
results = results.filter(filterOption)
return { results: results, pagination: more, total: total }
}
const defaultAjax = {
@@ -143,32 +192,30 @@ export default {
pageSize: defaultPageSize,
makeParams: defaultMakeParams,
transformOption: defaultTransformOption,
processResults: defaultProcessResults
processResults: defaultProcessResults,
validateStatus: this.validateStatus
}
return Object.assign(defaultAjax, this.ajax, this.url ? { url: this.url } : {})
}
},
watch: {
// url(newValue, oldValue) {
// this.$log.debug('Select url changed: ', oldValue, ' => ', newValue)
// this.iAjax.url = newValue
// this.refresh()
// },
iAjax(newValue, oldValue) {
this.$log.debug('Select url changed: ', oldValue, ' => ', newValue)
this.refresh()
},
value(iNew) {
this.iValue = iNew
value: {
handler(newValue, oldValue) {
},
deep: true
}
},
async mounted() {
// this.$log.debug('Select2 url is: ', this.iAjax.url)
if (!this.initialized) {
await this.initialSelect()
setTimeout(() => {
this.initialized = true
this.$log.debug('Value is : ', this.value)
this.iValue = this.value
this.initialized = true
})
}
this.$nextTick(() => {
@@ -211,9 +258,13 @@ export default {
this.getOptions()
},
async getInitialOptions() {
const { url, processResults, validateStatus } = this.iAjax
const params = this.safeMakeParams(this.params)
let data = await this.$axios.get(this.iAjax.url, { params: params })
data = this.iAjax.processResults.bind(this)(data)
let data = await this.$axios.get(url, {
params,
validateStatus
})
data = processResults.bind(this)(data)
data.results.forEach((v) => {
this.initialOptions.push(v)
if (this.optionsValues.indexOf(v.value) === -1) {
@@ -231,9 +282,13 @@ export default {
}
},
async getOptions() {
const { url, processResults, validateStatus } = this.iAjax
const params = this.safeMakeParams(this.params)
const resp = await this.$axios.get(this.iAjax.url, { params: params })
const data = this.iAjax.processResults.bind(this)(resp)
const resp = await this.$axios.get(url, {
params,
validateStatus
})
const data = processResults.bind(this)(resp)
if (!data.pagination) {
this.params.hasMore = false
}
@@ -271,13 +326,11 @@ export default {
addOption(option) {
this.iOptions.push(option)
},
getOptionsByValues(values) {
return this.iOptions.filter((v) => {
return values.indexOf(v.value) !== -1
})
},
getSelectedOptions() {
const values = this.iValue
let values = this.iValue
if (!Array.isArray(values)) {
values = [values]
}
return this.iOptions.filter((v) => {
return values.indexOf(v.value) !== -1
})
@@ -290,9 +343,9 @@ export default {
},
onChange(values) {
const options = this.getSelectedOptions()
this.$log.debug('Current select options: ', options)
this.$log.debug('Current select options: ', options, 'Val: ', this.value)
this.$emit('changeOptions', options)
this.$emit('change', options)
// this.$emit('change', options) // 事件重复
},
onVisibleChange(visible) {
if (!visible && this.params.search) {
@@ -306,7 +359,12 @@ export default {
</script>
<style scoped>
.select2 {
width: 100%;
}
.select2 {
width: 100%;
}
.select2 >>> .el-tag.el-tag--info {
height: auto;
white-space: normal;
}
</style>

View File

@@ -1,8 +1,8 @@
<template>
<el-switch
v-model="iValue"
:active-color="activeColor"
inactive-color="#dcdfe6"
:class="type"
v-bind="$attrs"
v-on="$listeners"
/>
@@ -10,7 +10,7 @@
<script>
export default {
name: 'Switcher',
name: 'Switcher', // Switch js
props: {
type: {
type: String,
@@ -26,21 +26,6 @@ export default {
}
},
computed: {
activeColor() {
// $--color-primary: #1ab394;
// $--color-success: #1c84c6;
// $--color-info: #23c6c8;
// $--color-warning: #f8ac59;
// $--color-danger: #ed5565;
switch (this.type) {
case 'primary':
return '#1ab394'
case 'danger':
return '#ed5565'
default:
return '#1ab394'
}
},
iValue: {
set: function(newValue) {
this.$emit('input', newValue)

View File

@@ -0,0 +1,122 @@
<template>
<div class="filter-field">
<el-tag
v-for="(v, k) in filterTags"
:key="k"
:disable-transitions="true"
:type="tagType"
closable
size="small"
@click="handleTagClick(v,k)"
@close="handleTagClose(v)"
>
{{ v }}
</el-tag>
<component
:is="component"
ref="SearchInput"
v-model.trim="filterValue"
:fetch-suggestions="autocomplete"
:placeholder="this.$t('common.EnterToContinue')"
class="search-input"
@blur="focus = false"
@change="handleConfirm"
@focus="focus = true"
@select="handleSelect"
@keyup.enter.native="handleConfirm"
/>
</div>
</template>
<script>
import i18n from '@/i18n/i18n'
export default {
props: {
value: {
type: Array,
default: () => []
},
tagType: {
type: String,
default: 'info'
},
placeholder: {
type: String,
default: () => i18n.t('perms.Input')
},
autocomplete: {
type: Function,
default: null
}
},
data() {
return {
filterTags: this.value,
focus: false,
filterValue: '',
component: this.autocomplete ? 'el-autocomplete' : 'el-input'
}
},
methods: {
handleTagClose(tag) {
this.filterTags.splice(this.filterTags.indexOf(tag), 1)
this.$emit('change', this.filterTags)
},
handleSelect(item) {
this.filterValue = item.value
this.handleConfirm()
},
handleConfirm() {
if (this.filterValue === '') return
if (!this.filterTags.includes(this.filterValue)) {
this.filterTags.push(this.filterValue)
this.filterValue = ''
this.$emit('change', this.filterTags)
}
},
handleTagClick(v, k) {
if (this.filterValue.length !== 0) {
this.handleConfirm()
}
this.$delete(this.filterTags, k)
this.filterValue = v
this.$refs.SearchInput.focus()
}
}
}
</script>
<style lang="scss" scoped>
.el-tag + .el-tag {
margin-left: 4px;
}
.filter-field {
display: flex;
align-items: center;
padding-left: 2px;
border: 1px solid #dcdee2;
border-radius: 1px;
background-color: #fff;
&:hover {
border-color: #C0C4CC;
}
}
.search-input > > > .el-input__inner {
max-width: 100%;
border: none;
padding-left: 5px;
}
.el-input > > > .el-input__inner {
border: none !important;
font-size: 13px;
}
.filter-field > > > .el-input__inner {
//height: 32px;
}
</style>

View File

@@ -0,0 +1,26 @@
<template>
<span>
{{ text }}
</span>
</template>
<script>
export default {
name: 'Text',
props: {
text: {
type: String,
default: ''
}
},
methods: {
onClick() {
window.open(this.href)
}
}
}
</script>
<style scoped>
</style>

View File

@@ -0,0 +1,93 @@
<template>
<div>
<el-button
v-show="!isShow"
type="text"
class="button-text"
:disabled="disabled"
@click="isShow=true"
>
{{ iLabel }}
<svg-icon class-name="icon" icon-class="switch" />
</el-button>
<Select2
v-show="isShow"
ref="select2"
v-model="iValue"
:disabled="disabled"
v-bind="$attrs"
@change="onSelectChange"
v-on="$listeners"
/>
</div>
</template>
<script>
import Select2 from './Select2'
import { hasUUID } from '@/utils/common'
export default {
components: {
Select2
},
props: {
value: {
type: String,
default: () => ''
},
label: {
type: String,
default: () => ''
},
showSelect: {
type: Boolean,
default: true
},
disabled: {
type: Boolean,
default: false
}
},
data() {
return {
isShow: this.showSelect,
iLabel: this.label
}
},
computed: {
iValue: {
get() {
return this.value
},
set(val) {
this.$emit('input', val)
}
}
},
created() {
const { path } = this.$route
if (hasUUID(path) && this.value) {
this.isShow = false
}
},
methods: {
onSelectChange(val) {
const options = this.$refs.select2.options.filter(item => item.value === val)
const label = options.length > 0 ? options[0].label : ''
this.isShow = false
this.iLabel = val ? label : '-'
}
}
}
</script>
<style scoped>
.button-text {
color: #676a6c;
padding-left: 0!important;
padding-right: 0!important;
}
.icon {
color: #676a6c!important;
}
</style>

View File

@@ -0,0 +1,64 @@
<template>
<div>
<el-button v-show="!isShow" type="text" icon="el-icon-edit" @click="isShow=true">
{{ text }}
</el-button>
<el-input
v-show="isShow"
v-model.trim="curValue"
show-password
:type="type"
autocomplete="new-password"
:placeholder="placeholder"
@change="onChange"
/>
</div>
</template>
<script>
export default {
props: {
value: {
type: String,
default: () => ''
},
type: {
type: String,
default: () => 'input'
},
text: {
type: String,
default() {
return this.$t('common.Update')
}
},
showInput: {
type: Boolean,
default: true
},
placeholder: {
type: String,
default: () => ''
}
},
data() {
return {
isShow: this.showInput,
curValue: this.value
}
},
created() {
if (this.$route.path.indexOf('/update') !== -1) {
this.isShow = false
}
},
methods: {
onChange(e) {
this.$emit('input', this.curValue)
}
}
}
</script>
<style scoped>
</style>

View File

@@ -1,6 +1,10 @@
<template>
<div>
<input type="file" @change="Onchange">
<input ref="upLoadFile" type="file" style="display: none" @change="Onchange">
<el-button size="mini" @click.native.stop="onUpLoad">
{{ this.$t('common.SelectFile') }}
</el-button>
<span>{{ fileName }}</span>
<div v-if="tip !== ''">{{ tip }}</div>
<input v-model="value" type="text" hidden v-on="$listeners">
<div>
@@ -23,6 +27,7 @@ export default {
},
data() {
return {
fileName: '',
initial: this.value,
preview: this.value
}
@@ -34,16 +39,21 @@ export default {
}
},
methods: {
onUpLoad() {
this.$refs.upLoadFile.click()
},
onInput(val) {
this.$emit('input', val)
},
Onchange(e) {
if (e.target.files[0] === undefined) {
const upLoadFile = e.target.files[0]
if (upLoadFile === undefined) {
this.$emit('input', this.initial)
return
}
this.$emit('fileChange', e.target.files[0])
this.$emit('input', this.getObjectURL(e.target.files[0]))
this.fileName = upLoadFile?.name || ''
this.$emit('fileChange', upLoadFile)
this.$emit('input', this.getObjectURL(upLoadFile))
},
getObjectURL(file) {
let url = null

View File

@@ -1,6 +1,16 @@
<template>
<div class="upload-key">
<input type="file" @change="onChange">
<input ref="upLoadFile" type="file" style="display: none" @change="onChange">
<el-button v-if="!fingerprint" size="mini" @click.native.stop="onUpLoad">
{{ this.$t('common.SelectFile') }}
</el-button>
<span v-else>
<el-button type="text" icon="el-icon-edit" @click.native.stop="onUpLoad">
{{ this.$t('common.Update') }}
</el-button>
<span v-if="!fileName" class="fingerprint">{{ fingerprint }}</span>
</span>
<span>{{ fileName }}</span>
<div v-if="tip !== ''">{{ tip }}</div>
</div>
</template>
@@ -8,27 +18,45 @@
<script>
export default {
props: {
value: {
type: String,
default: () => ''
},
tip: {
type: String,
default: () => ''
},
toFormat: {
type: String,
default: () => 'string'
},
fingerprint: {
type: String,
default: ''
}
},
data() {
return {
fileName: ''
}
},
methods: {
onUpLoad() {
this.$refs.upLoadFile.click()
},
onChange(e) {
if (e.target.files.length === 0) {
const upLoadFile = e.target.files
if (upLoadFile.length === 0) {
return
}
const vm = this
this.fileName = upLoadFile[0].name || ''
const reader = new FileReader()
reader.onload = function() {
vm.$emit('input', this.result)
let result = this.result
if (vm.toFormat === 'object' && vm.fileName.endsWith('.json')) {
result = JSON.parse(result)
}
vm.$emit('input', result)
}
reader.readAsText(
e.target.files[0]
upLoadFile[0]
)
}
}
@@ -36,4 +64,7 @@ export default {
</script>
<style scoped>
.fingerprint {
font-size: 12px
}
</style>

View File

@@ -32,16 +32,16 @@ export default {
return callback()
}
const patterns = []
if (passwordRule.SECURITY_PASSWORD_UPPER_CASE) {
if (passwordRule['SECURITY_PASSWORD_UPPER_CASE']) {
patterns.push([/[A-Z]/, i18n.t('common.password.UPPER_CASE_REQUIRED')])
}
if (passwordRule.SECURITY_PASSWORD_LOWER_CASE) {
if (passwordRule['SECURITY_PASSWORD_LOWER_CASE']) {
patterns.push([/[a-z]/, i18n.t('common.password.LOWER_CASE_REQUIRED')])
}
if (passwordRule.SECURITY_PASSWORD_NUMBER) {
if (passwordRule['SECURITY_PASSWORD_NUMBER']) {
patterns.push([/\d/, i18n.t('common.password.NUMBER_REQUIRED')])
}
if (passwordRule.SECURITY_PASSWORD_SPECIAL_CHAR) {
if (passwordRule['SECURITY_PASSWORD_SPECIAL_CHAR']) {
const pattern = new RegExp("[`~!@#$^&*()=|{}':;',\\[\\].<>/?~@#¥……&*()——|{}【】‘;:”“'。,、?]")
patterns.push([pattern, i18n.t('common.password.SPECIAL_CHAR_REQUIRED')])
}
@@ -50,7 +50,7 @@ export default {
return callback(new Error(msg))
}
}
let secureLength = passwordRule ? passwordRule.SECURITY_PASSWORD_MIN_LENGTH : 7
let secureLength = passwordRule ? passwordRule['SECURITY_PASSWORD_MIN_LENGTH'] : 7
if (userIsOrgAdmin) {
secureLength = passwordRule ? passwordRule.SECURITY_ADMIN_USER_PASSWORD_MIN_LENGTH : 7
}
@@ -66,6 +66,7 @@ export default {
data() {
return {
attrs: {
showStrengthMeter: true
}
}
},

View File

@@ -1,250 +1,409 @@
<template>
<div>
<div class="hours-container">
<div v-for="(item, index) in hours" :key="index" class="hours-item">
<div class="hours-item-header">{{ compItem(item) }}</div>
<div class="hours-item-value">
<div
:class="compClass(2 * item)"
@click="handleClick(2 * item)"
@mouseover="handleHover(2 * item)"
<div class="c-weektime">
<div class="c-schedue" />
<div :class="{'c-schedue': true, 'c-schedue-notransi': mode}" :style="styleValue" />
<table class="c-weektime-table" :class="{'c-min-table': colspan < 2}">
<thead class="c-weektime-head">
<tr>
<th rowspan="8" class="week-td">{{ this.$t('common.WeekCronSelect.WeekOrTime') }}</th>
<th :colspan="12 * colspan">00:00 - 12:00</th>
<th :colspan="12 * colspan">12:00 - 24:00</th>
</tr>
<tr>
<td v-for="t in theadArr" :key="t" :colspan="colspan">{{ t }}</td>
</tr>
</thead>
<tbody class="c-weektime-body">
<tr v-for="t in weektimeData" :key="t.row">
<td>{{ t.value }}</td>
<td
v-for="n in t.child"
:key="`${n.row}-${n.col}`"
:data-week="n.row"
:data-time="n.col"
:class="selectClasses(n)"
class="weektime-atom-item"
@mouseenter="cellEnter(n)"
@mousedown="cellDown(n)"
@mouseup="cellUp(n)"
/>
</div>
</div>
</div>
<div class="tips">{{ tips }}</div>
</tr>
<tr>
<td colspan="49" class="c-weektime-preview">
<div class="g-clearfix c-weektime-con">
<span class="g-pull-left">{{ this.$t('common.WeekCronSelect.CanDragSelect') }}</span>
<a class="g-pull-right" @click.prevent="clearWeektime">{{ this.$t('common.WeekCronSelect.ClearSelection') }}</a>
<a class="g-pull-right g-pull-margin" @click.prevent="selectAll">{{ this.$t('common.WeekCronSelect.SelectAll') }}</a>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</template>
<script>
const createArr = len => {
return Array.from(Array(len)).map((ret, id) => id)
}
function splicing(list) {
let same
let i = -1
const len = list.length
const arr = []
if (!len) return
while (++i < len) {
const item = list[i]
if (item.check) {
if (item.check !== Boolean(same)) {
arr.push(...['、', item.begin, '~', item.end])
} else if (arr.length) {
arr.pop()
arr.push(item.end)
}
}
same = Boolean(item.check)
}
arr.shift()
return arr.join('')
}
export default {
model: {
prop: 'sendTimeList'
},
name: 'WeekCronSelect',
props: {
sendTimeList: {
type: Object,
required: true,
value: {
type: Array,
default: () => []
},
readonly: {
type: Boolean,
default: false
colspan: {
type: Number,
default() {
return 2
}
}
},
data() {
return {
hours: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23], // 选项
selectStart: false, // 开始
startIndex: '', // 开始下标
timeRangeList: [], // 选择的时间段
timeRangeListIndex: [], // 选中的下标
tempRangeIndex: [], // 预选下标
tips: '向右选中,向左取消选择'
width: 0,
height: 0,
left: 0,
top: 0,
mode: 0,
row: 0,
col: 0,
theadArr: [],
weekArr: [
this.$t('common.WeekCronSelect.Monday'),
this.$t('common.WeekCronSelect.Tuesday'),
this.$t('common.WeekCronSelect.Wednesday'),
this.$t('common.WeekCronSelect.Thursday'),
this.$t('common.WeekCronSelect.Friday'),
this.$t('common.WeekCronSelect.Saturday'),
this.$t('common.WeekCronSelect.Sunday')
],
weektimeData: [],
timeRange: [] // 格式化之后数据
}
},
computed: {
},
watch: {
timeRangeList: function(value) {
this.$emit('change', value)
this.$parent.$emit('el.form.change')// 触发父组件的校验规则
styleValue() {
return {
width: `${this.width}px`,
height: `${this.height}px`,
left: `${this.left}px`,
top: `${this.top}px`
}
},
sendTimeList: {
handler() {
this.transformedIndex()
},
deep: true
selectClasses() {
return n => n.check ? 'ui-selected' : ''
}
},
mounted() {
this.transformedIndex()
created() {
this.init()
if (this.value.length > 0) this.nextValue()
},
methods: {
// 时间区间转换成下标区间
transformedIndex() {
this.timeRangeListIndex = []
this.timeRangeList = this.sendTimeList
this.timeRangeList.forEach(element => {
const [startTime, endTime] = element.match(/\d+\:\d+/g)
if (startTime && endTime) {
const [startHour, startMin] = startTime.split(':')
const [endHour, endMin] = endTime.split(':')
if (startHour && startMin && endHour && endMin) {
let startNum, endNum
if (startMin === '00') {
startNum = 2 * parseInt(startHour)
} else {
startNum = 2 * parseInt(startHour) + 1
// 初始化数据结构
init() {
this.theadArr = createArr(24)
const isData = this.weekArr.map((ret, index) => {
const children = (ret, row, max) => {
return createArr(max).map((t, col) => {
const curValue = this.formatWeektime(col)
return {
week: ret,
value: curValue,
begin: curValue.split('~')[0],
end: curValue.split('~')[1],
row: row,
col: col
}
if (endMin === '00') {
endNum = 2 * parseInt(endHour) - 1
} else {
endNum = 2 * parseInt(endHour)
}
while (endNum >= startNum) {
this.timeRangeListIndex.push(startNum)
startNum++
}
} else {
this.$message.error('时间段格式不正确')
}
} else {
this.$message.error('没有拿到开始时间或结束时间或者时间段格式不对')
})
}
return {
value: ret,
row: index,
child: children(ret, index, 48)
}
})
this.tips = this.timeRangeList && this.timeRangeList.length > 0 ? this.timeRangeList : '向右选中,向左取消选择'
this.weektimeData = isData
},
// 下标区间转换成时间区间
transformedSection() {
this.timeRangeList = []
let startTime = ''; let endTime = ''; const len = this.hours.length
for (let index = this.hours[0] * 2; index < 2 * (len + 1); index++) {
if (this.timeRangeListIndex.indexOf(index) > -1) {
if (startTime) { // 如果有开始时间,直接确定结束时间
const endHour = Math.floor((index + 1) / 2)
const endMin = (index + 1) % 2 === 0 ? '00' : '30'
endTime = `${endHour < 10 ? '0' + endHour : endHour}:${endMin}`
} else { // 没有开始时间,确定当前点为开始时间
const startHour = Math.floor(index / 2)
const startMin = index % 2 === 0 ? '00' : '30'
startTime = `${startHour < 10 ? '0' + startHour : startHour}:${startMin}`
}
if (index === 2 * this.hours.length + 1) { // 如果是最后一格,直接结束
endTime = `${Math.floor((index + 1) / 2)}:00`
this.timeRangeList.push(`${startTime || '23:30'}-${endTime}`)
startTime = ''
endTime = ''
}
} else { // 若这个点不在选择区间,确定一个时间段
if (startTime && endTime) {
this.timeRangeList.push(`${startTime}-${endTime}`)
startTime = ''
endTime = ''
} else if (startTime && !endTime) { // 这里可能只选半个小时
const endHour = Math.floor(index / 2)
const endMin = index % 2 === 0 ? '00' : '30'
endTime = `${endHour < 10 ? '0' + endHour : endHour}:${endMin}`
this.timeRangeList.push(`${startTime}-${endTime}`)
startTime = ''
endTime = ''
}
}
}
this.tips = this.timeRangeList && this.timeRangeList.length > 0 ? this.timeRangeList : '向右选中,向左取消选择'
},
// 点击事件
handleClick(index) {
if (this.selectStart) {
if (index === this.startIndex) { // 双击取反
if (this.timeRangeListIndex.indexOf(index) > -1) {
this.timeRangeListIndex.splice(this.timeRangeListIndex.indexOf(index), 1)
} else {
this.timeRangeListIndex.push(this.startIndex)
}
} else if (index > this.startIndex) { // 选取数据--向右添加,向左取消
while (index >= this.startIndex) {
this.timeRangeListIndex.push(this.startIndex)
this.startIndex++
}
this.timeRangeListIndex = Array.from(new Set(this.timeRangeListIndex))
} else { // 删除数据
while (this.startIndex >= index) {
if (this.timeRangeListIndex.indexOf(index) > -1) {
this.timeRangeListIndex.splice(this.timeRangeListIndex.indexOf(index), 1)
}
index++
}
}
this.startIndex = ''
this.tempRangeIndex = []
this.transformedSection()
} else {
this.startIndex = index
}
this.selectStart = !this.selectStart
},
// 预选区间
handleHover(index) {
if (this.selectStart) {
this.tempRangeIndex = []
if (index > this.startIndex) { // 选取数据--向右添加,向左取消
while (index >= this.startIndex) {
this.tempRangeIndex.push(index)
index--
}
} else { // 删除数据
while (this.startIndex >= index) {
this.tempRangeIndex.push(index)
index++
// 反解析传递过来的默认值
nextValue() {
const deepValue = _.cloneDeep(this.value)
for (let i = 0, len = deepValue.length; i < len; i++) {
const cur = deepValue[i]
const curValue = cur?.value
if (curValue.length > 0) {
const childValue = curValue.split('、')
for (let j = 0; j < childValue.length; j++) {
const curJ = childValue[j]
this.renderWeekRange(curJ, cur.id)
}
}
}
},
// 是否选中计算className
compClass(index) {
if (index === this.startIndex) {
return 'hours-item-left preSelected'
// 渲染时间区间
renderWeekRange(val, id) {
const idNum = id === 0 ? 6 : id - 1
const [start, end] = val.split('~')
const startVal = this.countIndex(start)
const endVal = this.countIndex(end)
for (let i = startVal; i < (endVal === 0 ? 48 : endVal); i++) {
const curWeek = this.weektimeData[idNum]
curWeek.child[i].check = true
}
if (index >= this.startIndex) {
if (this.tempRangeIndex.indexOf(index) > -1) {
return 'hours-item-left preSelected'
}
} else {
if (this.tempRangeIndex.indexOf(index) > -1) {
return 'hours-item-left unSelected'
}
}
return this.timeRangeListIndex.indexOf(index) > -1 ? 'hours-item-left selected' : 'hours-item-left'
},
compItem(item) { // 不足10前面补0
return item < 10 ? `0${item}` : item
}
// 计算索引
countIndex(val) {
const one = val.substr(0, 2)
const a1 = one.startsWith('0') ? one.substr(1, 2) : one
var reg = RegExp(/30/)
const a2 = val.match(reg) ? 1 : 0
const curIndex = (a1 * 2) + a2
return curIndex
},
formatDate(date, fmt) {
const o = {
'M+': date.getMonth() + 1,
'd+': date.getDate(),
'h+': date.getHours(),
'm+': date.getMinutes(),
's+': date.getSeconds(),
'q+': Math.floor((date.getMonth() + 3) / 3),
'S': date.getMilliseconds()
}
if (/(y+)/.test(fmt)) {
fmt = fmt.replace(RegExp.$1, (date.getFullYear() + '').substr(4 - RegExp.$1.length))
}
for (var k in o) {
if (new RegExp('(' + k + ')').test(fmt)) {
fmt = fmt.replace(RegExp.$1, (RegExp.$1.length === 1) ? (o[k]) : (('00' + o[k]).substr(('' + o[k]).length)))
}
}
return fmt
},
formatWeektime(col) {
const timeStamp = 1542384000000 // '2018-11-17 00:00:00'
const beginStamp = timeStamp + col * 1800000 // col * 30 * 60 * 1000
const endStamp = beginStamp + 1800000
const begin = this.formatDate(new Date(beginStamp), 'hh:mm')
const end = this.formatDate(new Date(endStamp), 'hh:mm')
return `${begin}~${end}`
},
// 清空时间段
clearWeektime() {
this.weektimeData.forEach(item => {
item.child.forEach(t => {
this.$set(t, 'check', false)
})
})
this.timeRange = []
this.$emit('change', this.timeRange)
},
// 全选
selectAll() {
this.weektimeData.forEach(item => {
item.child.forEach(t => {
this.$set(t, 'check', true)
})
})
this.setTimeRange()
},
setTimeRange() {
this.timeRange = this.weektimeData.map(item => {
return {
id: item.row === 6 ? 0 : item.row + 1,
value: splicing(item.child)
}
})
this.$emit('change', this.timeRange)
},
cellEnter(item) {
const ele = document.querySelector(`td[data-week='${item.row}'][data-time='${item.col}']`)
if (ele && !this.mode) {
this.left = ele.offsetLeft
this.top = ele.offsetTop
} else {
if (item.col <= this.col && item.row <= this.row) {
this.width = (this.col - item.col + 1) * ele.offsetWidth
this.height = (this.row - item.row + 1) * ele.offsetHeight
this.left = ele.offsetLeft
this.top = ele.offsetTop
} else if (item.col >= this.col && item.row >= this.row) {
this.width = (item.col - this.col + 1) * ele.offsetWidth
this.height = (item.row - this.row + 1) * ele.offsetHeight
if (item.col > this.col && item.row === this.row) this.top = ele.offsetTop
if (item.col === this.col && item.row > this.row) this.left = ele.offsetLeft
} else if (item.col > this.col && item.row < this.row) {
this.width = (item.col - this.col + 1) * ele.offsetWidth
this.height = (this.row - item.row + 1) * ele.offsetHeight
this.top = ele.offsetTop
} else if (item.col < this.col && item.row > this.row) {
this.width = (this.col - item.col + 1) * ele.offsetWidth
this.height = (item.row - this.row + 1) * ele.offsetHeight
this.left = ele.offsetLeft
}
}
},
cellDown(item) {
const ele = document.querySelector(`td[data-week='${item.row}'][data-time='${item.col}']`)
this.check = Boolean(item.check)
this.mode = 1
if (ele) {
this.width = ele.offsetWidth
this.height = ele.offsetHeight
}
this.row = item.row
this.col = item.col
},
cellUp(item) {
if (item.col <= this.col && item.row <= this.row) {
this.selectWeek([item.row, this.row], [item.col, this.col], !this.check)
} else if (item.col >= this.col && item.row >= this.row) {
this.selectWeek([this.row, item.row], [this.col, item.col], !this.check)
} else if (item.col > this.col && item.row < this.row) {
this.selectWeek([item.row, this.row], [this.col, item.col], !this.check)
} else if (item.col < this.col && item.row > this.row) {
this.selectWeek([this.row, item.row], [item.col, this.col], !this.check)
}
this.width = 0
this.height = 0
this.mode = 0
this.setTimeRange()
},
selectWeek(row, col, check) {
const [minRow, maxRow] = row
const [minCol, maxCol] = col
this.weektimeData.forEach(item => {
item.child.forEach(t => {
if (t.row >= minRow && t.row <= maxRow && t.col >= minCol && t.col <= maxCol) {
this.$set(t, 'check', check)
}
})
})
}
}
}
</script>
<style lang='scss' scoped>
.hours-container {
display: flex;
cursor: pointer;
.hours-item {
width: 30px;
height: 60px;
border: 1px solid #c2d0f3;
border-right: none;
<style lang="scss" scoped>
.c-weektime {
min-width: 640px;
position: relative;
display: inline-block;
}
.c-schedue {
background: #598fe6;
position: absolute;
width: 0;
height: 0;
opacity: .6;
pointer-events: none;
}
.c-schedue-notransi {
transition: width .12s ease, height .12s ease, top .12s ease, left .12s ease;
}
.c-weektime-table {
border-collapse: collapse;
th {
vertical-align: inherit;
font-weight: bold;
}
tr {
height: 30px;
}
tr, td, th {
user-select: none;
border: 1px solid #dee4f5;
text-align: center;
&:last-child {
border-right: 1px solid #c2d0f3;
min-width: 12px;
line-height: 1.6em;
transition: background .16s ease;
}
.c-weektime-head {
font-size: 12px;
.week-td {
width: 72px;
}
.hours-item-header {
width: 100%;
height: 30px;
line-height: 30px;
border-bottom: 1px solid #c2d0f3;
}
.c-weektime-body {
font-size: 12px;
td {
&.weektime-atom-item {
user-select: unset;
background-color: #f5f5f5;
}
&.ui-selected {
background-color: #598fe6;
}
}
.hours-item-value {
width: 100%;
height: 30px;
box-sizing: border-box;
display: flex;
}
.c-weektime-preview {
line-height: 2.4em;
padding: 0 10px;
font-size: 13px;
.c-weektime-con {
line-height: 42px;
user-select: none;
}
.selected {
background-color: #4e84fe;
border-bottom: 1px solid #c2d0f3;
}
.preSelected {
background-color: #8eaffc;
border-bottom: 1px solid #c2d0f3;
}
.unSelected {
background-color: #ffffff;
border-bottom: 1px solid #c2d0f3;
.c-weektime-time {
text-align: left;
line-height: 2.4em;
p {
max-width: 625px;
line-height: 1.4em;
word-break: break-all;
margin-bottom: 8px;
}
}
}
}
.tips {
width: 100%;
line-height: 30px;
.c-min-table {
tr, td, th {
min-width: 24px;
}
}
.g-clearfix {
&:after, &:before {
clear: both;
content: " ";
display: table;
}
}
.g-pull-left {
float: left;
}
.g-pull-right {
float: right;
color: #409eff!important;
}
.g-pull-margin {
margin-right: 12px;
}
.g-tip-text {
color: #999;
}
</style>

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