diff --git a/api/app/lib/controllers/control/toolLink.js b/api/app/lib/controllers/control/toolLink.js
index 4c475a5..6ce934d 100644
--- a/api/app/lib/controllers/control/toolLink.js
+++ b/api/app/lib/controllers/control/toolLink.js
@@ -110,6 +110,37 @@ async function del (ctx) {
}
}
+
+
+
+
+
+async function count (ctx) {
+ try {
+ const { models } = ctx.fs.dc;
+ const { userId, pepUserId , userInfo} = ctx.fs.api
+ const { clickHouse } = ctx.app.fs
+ const { utils: { judgeSuper, anxinStrucIdRange } } = ctx.app.fs
+ const { database: anxinyun } = clickHouse.anxinyun.opts.config
+ const { pepProjectId } = ctx.request.body
+
+
+
+ ctx.status = 200;
+ ctx.body = {}
+ } catch (error) {
+ ctx.fs.logger.error(`path: ${ctx.path}, error: ${error}`);
+ ctx.status = 400;
+ ctx.body = {
+ message: typeof error == 'string' ? error : undefined
+ }
+ }
+}
+
+
+
+
+
module.exports = {
- list, edit, del,
+ list, edit, del, count
};
\ No newline at end of file
diff --git a/api/app/lib/routes/control/index.js b/api/app/lib/routes/control/index.js
index e2debcc..70b54c3 100644
--- a/api/app/lib/routes/control/index.js
+++ b/api/app/lib/routes/control/index.js
@@ -11,4 +11,7 @@ module.exports = function (app, router, opts) {
app.fs.api.logAttr['DEL/console/toollink'] = { content: '删除常用工具', visible: true };
router.del('/console/toollink/:linkId', toolLink.del);
+
+ app.fs.api.logAttr['GET/console/count'] = { content: '查询告警数量', visible: true };
+ router.get('/console/count', toolLink.count);
};
\ No newline at end of file
diff --git a/web/client/assets/images/problem/shield.png b/web/client/assets/images/problem/shield.png
new file mode 100644
index 0000000..2b20cfd
Binary files /dev/null and b/web/client/assets/images/problem/shield.png differ
diff --git a/web/client/src/sections/control/containers/control.jsx b/web/client/src/sections/control/containers/control.jsx
index f33debc..9a7d175 100644
--- a/web/client/src/sections/control/containers/control.jsx
+++ b/web/client/src/sections/control/containers/control.jsx
@@ -164,7 +164,8 @@ const Control = (props) => {
}
- return (11 ? :
+ return (
+ 11 ?
:
<>