diff --git a/src/api/work/index.ts b/src/api/work/index.ts index cef80c6..b8d9b47 100644 --- a/src/api/work/index.ts +++ b/src/api/work/index.ts @@ -1,33 +1,37 @@ import request from '@/utils/request' // 我的待办 -export function getTodos(query) { +export function getTodos(query: any) { return request.get({ url: '/work/todo', query }) } // 我的已办 -export function getDones(query) { +export function getDones(query: any) { return request.get({ url: '/work/done', query }) } // 信件查询 -export function getMails(query) { +export function getMails(query: any) { return request.get({ url: '/work/query', query }) } -export function getDissatisfied(query) { +export function getDissatisfied(query: any) { return request.get({ url: '/work/dissatisfied', query }) } // 获取信件详情 -export function getMailDetail(query) { +export function getMailDetail(query: any) { return request.get({ url: '/work/mail/detail', query }) } -export function getSendMsg(query){ - return request.get({url:'/work/send',query}) +export function getSendMsg(query: any) { + return request.get({ url: '/work/send', query }) } -export function mailChange(query){ - return request.get({url:'/work/change',query}) +export function mailChange(query: any) { + return request.get({ url: '/work/change', query }) +} + +export function exportLedger(query: any) { + return request.get({ url: '/work/exportLedger', query }) } \ No newline at end of file diff --git a/src/stores/modules/routerParams.ts b/src/stores/modules/routerParams.ts index f4b66e6..28b6574 100644 --- a/src/stores/modules/routerParams.ts +++ b/src/stores/modules/routerParams.ts @@ -6,18 +6,24 @@ export const useRouterParamsStore = defineStore('routerParams', { flowKey: '', mailState: '', signRoleId: '', - signDeptId: '' + signDeptId: '', + mailCategory: '' }, + }), actions: { setParams(params: any) { this.params = params; }, + setMailCategory(mailCategory: string) { + this.params.mailCategory = mailCategory; + }, removeParams() { this.params.flowKey = ''; this.params.mailState = ''; this.params.signRoleId = ''; - this.params.signDeptId = '' + this.params.signDeptId = ''; + this.params.mailCategory = ''; } }, }); diff --git a/src/views/datascreen/index.vue b/src/views/datascreen/index.vue index dcee8f9..787dd69 100644 --- a/src/views/datascreen/index.vue +++ b/src/views/datascreen/index.vue @@ -61,8 +61,8 @@
- -
+
+
@@ -113,63 +113,70 @@
-
- + - -
- - -
-
    -
  • - {{ item.name }} -
    -
    -
    -
    -

    {{ item.rate }}{{ item.completed }} / {{ item.sum }} -

    -
    -
  • -
-
-
- -
-
    -
  • - {{ item.name }} -
    -
    -
    -
    -

    {{ item.rate }}{{ item.resolved }} / {{ item.sum }} -

    -
    -
  • -
-
-
- -
-
    -
  • - {{ item.name }} -
    -
    -
    -
    -

    {{ item.rate }}{{ item.satisfied }} / {{ item.sum }} -

    -
    -
  • -
-
-
-
-
-
+ + +
+ + +
+
    +
  • + {{ item.name + }} +
    +
    +
    +
    +

    {{ item.rate }}{{ item.completed }} / {{ item.sum + }} +

    +
    +
  • +
+
+
+ +
+
    +
  • + {{ item.name + }} +
    +
    +
    +
    +

    {{ item.rate }}{{ item.resolved }} / {{ item.sum + }} +

    +
    +
  • +
+
+
+ +
+
    +
  • + {{ item.name + }} +
    +
    +
    +
    +

    {{ item.rate }}{{ item.satisfied }} / {{ item.sum + }} +

    +
    +
  • +
+
+
+
+
+
+
@@ -184,7 +191,7 @@

{{ consoleMap.allSum }}

来信总数
  • -

    {{ consoleMap.completed }}

    办结总数 +

    {{ consoleMap.completedsum }}

    办结总数
  • { return date.toLocaleString(); } const startRateAutoSwitch = () => { + console.log("startRateAutoSwitch") intervalIdRate = setInterval(() => { if (rateActiveName.value === 'completionRate') { rateActiveName.value = 'resolutionRate'; @@ -566,6 +574,8 @@ const startRateAutoSwitch = () => { }, intervalTimeRate); }; + + const startTrendAutoSwitch = () => { var dayChart = echarts.init(day_echart.value); var monthChart = echarts.init(month_echart.value); @@ -619,6 +629,7 @@ const clearCarouselTime = () => { }; const clearRateTimer = () => { if (intervalIdRate) { + console.log("clearCarouselTime") clearInterval(intervalIdRate); intervalIdRate = null; } @@ -692,24 +703,16 @@ const changsMap = () => { trigger: 'item', position: 'right', formatter: function (params) { - const data = params.data || { - todaysum: 0, - allsum: 0, - completed: 0, - completedrate: '0%', - resolvedrate: '0%', - satisfiedrate: '0%' - }; var tt = '
    ' + '
    ' + params.name + '
    ' + '
    ' + '
      ' + - '
    • 今日来信 ' + data.todaysum + '
    • ' + - '
    • 来信总数 ' + data.allsum + '
    • ' + - '
    • 办结总数 ' + data.completed + '
    • ' + - '
    • 办结率 ' + data.completedrate + '
    • ' + - '
    • 解决率 ' + data.resolvedrate + '
    • ' + - '
    • 满意率 ' + data.satisfiedrate + '
    • ' + + '
    • 今日来信 ' + params.data.todaysum + '
    • ' + + '
    • 来信总数 ' + params.data.allsum + '
    • ' + + '
    • 办结总数 ' + params.data.completed + '
    • ' + + '
    • 办结率 ' + params.data.completedrate + '
    • ' + + '
    • 解决率 ' + params.data.resolvedrate + '
    • ' + + '
    • 满意率 ' + params.data.satisfiedrate + '
    • ' + '
    ' return tt; }, diff --git a/src/views/home/components/Daily.vue b/src/views/home/components/Daily.vue index 571b5e7..d1fb4a1 100644 --- a/src/views/home/components/Daily.vue +++ b/src/views/home/components/Daily.vue @@ -19,7 +19,7 @@
    {{ daily.completedTotal }}
    累计办结 -
    +
    {{ daily.thankTotal }}
    @@ -30,9 +30,11 @@