From 2b574b6ddeb746b93bddbb3aecbe963a3905e72e Mon Sep 17 00:00:00 2001 From: 21819 Date: Mon, 18 Mar 2024 20:40:51 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E6=84=9F=E8=B0=A2=E4=BF=A1?= =?UTF-8?q?=E8=B7=B3=E8=BD=AC=E9=80=BB=E8=BE=91;=20=E5=A4=A7=E5=B1=8F?= =?UTF-8?q?=E4=B8=89=E7=8E=87=E6=8E=92=E8=A1=8C=E6=9F=A5=E7=9C=8B=E4=BD=93?= =?UTF-8?q?=E9=AA=8C=E4=BC=98=E5=8C=96;?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/work/index.ts | 22 ++-- src/stores/modules/routerParams.ts | 10 +- src/views/datascreen/index.vue | 151 ++++++++++++++-------------- src/views/home/components/Daily.vue | 8 +- src/views/work/Query.vue | 58 +++++++++-- 5 files changed, 154 insertions(+), 95 deletions(-) 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 @@