diff --git a/frontend/package.json b/frontend/package.json index b839c3426..3c6ea806d 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -88,7 +88,7 @@ "@babel/runtime": "~7.4.5", "@blueking/login-modal": "^1.0.0", "@blueking/notice-component-vue2": "^2.0.3", - "@blueking/user-selector": "^1.0.11", + "@blueking/user-selector": "^1.0.14", "@commitlint/cli": "~13.1.0", "@commitlint/config-conventional": "~13.1.0", "@icon-cool/bk-icon-bk-iam": "^0.0.3", diff --git a/frontend/src/App.vue b/frontend/src/App.vue index 62057a5c9..fe9bb70c2 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -197,8 +197,11 @@ // window.location.reload(); // }, 0); // }); - bus.$on('updatePoll', () => { + bus.$on('updatePoll', (payload) => { clearInterval(this.timer); + if (payload && payload.isStop) { + return; + } this.timer = setInterval(() => { this.fetchSyncStatus(); }, 15000); @@ -300,6 +303,7 @@ ? this.$t(`m.permTemplate['同步组织架构成功']`) : this.$t(`m.permTemplate['同步组织架构失败']`) }); + bus.$emit('on-sync-record-status'); } } catch (e) { console.error(e); @@ -367,7 +371,7 @@ .views-layout { min-height: 100%; - min-width: 1120px; + /* min-width: 1120px; */ padding: 24px; } diff --git a/frontend/src/assets/iconfont/demo.html b/frontend/src/assets/iconfont/demo.html index da3fd9a24..3d89deb91 100644 --- a/frontend/src/assets/iconfont/demo.html +++ b/frontend/src/assets/iconfont/demo.html @@ -405,6 +405,18 @@
revoke
+qw
+user-directory
@@ -669,6 +681,22 @@renyuanmuban
setting
+notification
+duanxin
+youjian
+revoke
+ + + + + + +@@ -230,13 +230,16 @@ |
+ | 操作 | -+ | + 资源实例 + | +所属系统 | -+ | 到期时间 | {{ policy.action.name }} | ++ {{ policy.gen_resource_summary }} + | {{ policy.system.name }} | @@ -272,7 +278,7 @@ 用户组权限({{ groups|length }}) -
---|
@@ -285,10 +291,13 @@ | 用户组 | -+ | + 管理空间 + | +描述 | -+ | 到期时间 | {{ group.name }} | ++ {{ group.get_role_name }} + | {{ group.description }} | diff --git a/saas/resources/templates/user_expired_rtx.tpl b/saas/resources/templates/user_expired_rtx.tpl new file mode 100644 index 000000000..cf6fb8530 --- /dev/null +++ b/saas/resources/templates/user_expired_rtx.tpl @@ -0,0 +1,13 @@ +{% if policies %} +**自定义权限({{ policies|length }})** +{% endif %} +{% for policy in policies %} +系统: **{{ policy.system.name }}**, 操作: **{{ policy.action.name }}**, 资源实例: **{{ policy.gen_resource_summary }}**, 到期时间: **{{ policy.expired_display }}** +{% endfor %} + +{% if groups %} +**用户组权限({{ groups|length }})** +{% endif %} +{% for group in groups %} +用户组: **{{ group.name }}**, 管理空间: **{{ group.get_role_name }}**, 描述: {{ group.description }}, 过期时间: **{{ group.expired_at_display }}** +{% endfor %} diff --git a/saas/resources/version_log/change_log.md b/saas/resources/version_log/change_log.md index 3946143b7..57b74ba4b 100644 --- a/saas/resources/version_log/change_log.md +++ b/saas/resources/version_log/change_log.md @@ -1,3 +1,13 @@ + +# V1.10.28 版本更新日志 + +### 新增功能 + +* 配置权限失效提醒通知策略功能 +* 权限失效提醒通知增加企业微信 + +--- + # V1.10.27 版本更新日志 diff --git a/saas/resources/version_log/change_log_en.md b/saas/resources/version_log/change_log_en.md index 0dd7b9fa7..f2f7d4aab 100644 --- a/saas/resources/version_log/change_log_en.md +++ b/saas/resources/version_log/change_log_en.md @@ -1,3 +1,12 @@ +## V1.10.28 Version Update Log + +### New Features + +* Added configuration permission expiration reminder notification policy function +* Added enterprise WeChat to permission expiration reminder notification + +--- + # V1.10.27 Version Update Log
---|