Merge pull request #13459 from ulleo/dev-v2

feat(X-Pack): [数据填报]增加统计用户待填报任务条数接口
This commit is contained in:
dataeaseShu 2024-11-21 15:59:23 +08:00 committed by GitHub
commit ef69b32d93
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 21 additions and 2 deletions

View File

@ -0,0 +1,3 @@
import request from '@/config/axios'
export const msgCountApi = () => request.post({ url: '/msg-center/count', data: {} })

View File

@ -11,7 +11,6 @@ import { formatRoute } from '@/router/establish'
import HeaderMenuItem from './HeaderMenuItem.vue' import HeaderMenuItem from './HeaderMenuItem.vue'
import { useEmitt } from '@/hooks/web/useEmitt' import { useEmitt } from '@/hooks/web/useEmitt'
import { Icon } from '@/components/icon-custom' import { Icon } from '@/components/icon-custom'
import { ElHeader, ElMenu } from 'element-plus-secondary'
import SystemCfg from './SystemCfg.vue' import SystemCfg from './SystemCfg.vue'
import ToolboxCfg from './ToolboxCfg.vue' import ToolboxCfg from './ToolboxCfg.vue'
import { useRouter, useRoute } from 'vue-router' import { useRouter, useRoute } from 'vue-router'
@ -30,6 +29,7 @@ const { push } = useRouter()
const route = useRoute() const route = useRoute()
import { useCache } from '@/hooks/web/useCache' import { useCache } from '@/hooks/web/useCache'
import { useI18n } from '@/hooks/web/useI18n' import { useI18n } from '@/hooks/web/useI18n'
import { msgCountApi } from '@/api/msg'
const { wsCache } = useCache('localStorage') const { wsCache } = useCache('localStorage')
const aiBaseUrl = ref('https://maxkb.fit2cloud.com/ui/chat/2ddd8b594ce09dbb?mode=embed') const aiBaseUrl = ref('https://maxkb.fit2cloud.com/ui/chat/2ddd8b594ce09dbb?mode=embed')
const handleIconClick = () => { const handleIconClick = () => {
@ -125,6 +125,10 @@ onMounted(() => {
initShowToolbox() initShowToolbox()
initAiBase() initAiBase()
initCopilotBase() initCopilotBase()
msgCountApi().then(res => {
console.log(res.data)
})
}) })
</script> </script>

@ -1 +1 @@
Subproject commit 4d24ba63004826d8a87f42f7e25798cc4e94345f Subproject commit bce7b3f10828b3ad035b48a343d3e9e8c1206e9d

View File

@ -0,0 +1,12 @@
package io.dataease.api.msgCenter;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.PostMapping;
@Tag(name = "消息中心")
public interface MsgCenterApi {
@PostMapping("/count")
long count();
}