feat(X-Pack): [数据填报]增加统计用户待填报任务条数接口

#12318
This commit is contained in:
ulleo 2024-11-21 15:01:00 +08:00
parent d9570036be
commit 3c6853dfef
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 { useEmitt } from '@/hooks/web/useEmitt'
import { Icon } from '@/components/icon-custom'
import { ElHeader, ElMenu } from 'element-plus-secondary'
import SystemCfg from './SystemCfg.vue'
import ToolboxCfg from './ToolboxCfg.vue'
import { useRouter, useRoute } from 'vue-router'
@ -30,6 +29,7 @@ const { push } = useRouter()
const route = useRoute()
import { useCache } from '@/hooks/web/useCache'
import { useI18n } from '@/hooks/web/useI18n'
import { msgCountApi } from '@/api/msg'
const { wsCache } = useCache('localStorage')
const aiBaseUrl = ref('https://maxkb.fit2cloud.com/ui/chat/2ddd8b594ce09dbb?mode=embed')
const handleIconClick = () => {
@ -125,6 +125,10 @@ onMounted(() => {
initShowToolbox()
initAiBase()
initCopilotBase()
msgCountApi().then(res => {
console.log(res.data)
})
})
</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();
}