feat(xispeak): 反馈办理情况统计与脉搏一致
This commit is contained in:
@@ -1,12 +1,11 @@
|
|||||||
<template>
|
<template>
|
||||||
<a-modal
|
<a-modal
|
||||||
v-model:open="visible"
|
v-model:open="visible"
|
||||||
:title="title"
|
|
||||||
:width="width"
|
:width="width"
|
||||||
centered
|
:top="80"
|
||||||
:footer="null"
|
:footer="null"
|
||||||
:maskClosable="true"
|
:maskClosable="true"
|
||||||
:bodyStyle="{ maxHeight: '70vh', overflowY: 'auto', padding: '16px 24px 20px' }"
|
:bodyStyle="{ maxHeight: '70vh', overflowY: 'auto', padding: '4px 24px 20px' }"
|
||||||
wrapClassName="xispeak-detail-modal"
|
wrapClassName="xispeak-detail-modal"
|
||||||
destroyOnClose
|
destroyOnClose
|
||||||
>
|
>
|
||||||
@@ -66,12 +65,15 @@
|
|||||||
<Icon icon="ant-design:message-outlined" />
|
<Icon icon="ant-design:message-outlined" />
|
||||||
</span>
|
</span>
|
||||||
<span>办理情况</span>
|
<span>办理情况</span>
|
||||||
<a-tag class="feedback-summary-tag">共 {{ total }} 条</a-tag>
|
<a-tag class="feedback-summary-tag" color="warning" style="color: #8c6900">未开始 {{ count.notStarted }}</a-tag>
|
||||||
<a-tag class="feedback-summary-tag" color="success">已完成 {{ done }} 条</a-tag>
|
<a-tag class="feedback-summary-tag" color="error">进行中 {{ count.inProgress }}(已逾期 {{ count.overdue }})</a-tag>
|
||||||
|
<a-tag class="feedback-summary-tag" color="success">已完成 {{ count.completed }}</a-tag>
|
||||||
|
<a-tag class="feedback-summary-tag">共 {{ count.total }} 条</a-tag>
|
||||||
</div>
|
</div>
|
||||||
<div class="feedback-summary-desc">当前事项的落实情况反馈记录</div>
|
<div class="feedback-summary-desc">当前事项的落实情况反馈记录</div>
|
||||||
</div>
|
</div>
|
||||||
<a-table
|
<a-table
|
||||||
|
class="feedback-table"
|
||||||
rowKey="id"
|
rowKey="id"
|
||||||
size="small"
|
size="small"
|
||||||
bordered
|
bordered
|
||||||
@@ -111,10 +113,10 @@
|
|||||||
import BgXiSpeakFeedbackDetailModal from './BgXiSpeakFeedbackDetailModal.vue';
|
import BgXiSpeakFeedbackDetailModal from './BgXiSpeakFeedbackDetailModal.vue';
|
||||||
import { bgXiSpeakFeedbackList } from '../BgXiSpeak.api';
|
import { bgXiSpeakFeedbackList } from '../BgXiSpeak.api';
|
||||||
import { feedbackStatusRowClassName } from '/@/views/bg/utils/feedbackStatusRender';
|
import { feedbackStatusRowClassName } from '/@/views/bg/utils/feedbackStatusRender';
|
||||||
|
import { countFeedbackStatus } from '/@/views/bg/utils/feedbackStatusCount';
|
||||||
import type { BasicColumn } from '/@/components/Table';
|
import type { BasicColumn } from '/@/components/Table';
|
||||||
|
|
||||||
const visible = ref(false);
|
const visible = ref(false);
|
||||||
const title = ref('详情');
|
|
||||||
const width = 1100;
|
const width = 1100;
|
||||||
const activeKey = ref('item');
|
const activeKey = ref('item');
|
||||||
const record = ref<Recordable>({});
|
const record = ref<Recordable>({});
|
||||||
@@ -209,8 +211,7 @@
|
|||||||
{ title: '操作', dataIndex: 'action', key: 'action', align: 'center', width: 90, fixed: 'right' },
|
{ title: '操作', dataIndex: 'action', key: 'action', align: 'center', width: 90, fixed: 'right' },
|
||||||
];
|
];
|
||||||
|
|
||||||
const total = computed(() => feedbackList.value.length);
|
const count = computed(() => countFeedbackStatus(feedbackList.value, 'completionStatus', 'deadline'));
|
||||||
const done = computed(() => feedbackList.value.filter((item) => item.completionStatus_dictText === '已完成').length);
|
|
||||||
|
|
||||||
async function loadFeedback(mainId: string | number) {
|
async function loadFeedback(mainId: string | number) {
|
||||||
feedbackLoading.value = true;
|
feedbackLoading.value = true;
|
||||||
@@ -235,7 +236,6 @@
|
|||||||
|
|
||||||
function open(currentRecord: Recordable) {
|
function open(currentRecord: Recordable) {
|
||||||
record.value = currentRecord || {};
|
record.value = currentRecord || {};
|
||||||
title.value = '详情';
|
|
||||||
activeKey.value = 'item';
|
activeKey.value = 'item';
|
||||||
visible.value = true;
|
visible.value = true;
|
||||||
if (currentRecord?.id !== undefined && currentRecord?.id !== null && currentRecord?.id !== '') {
|
if (currentRecord?.id !== undefined && currentRecord?.id !== null && currentRecord?.id !== '') {
|
||||||
|
|||||||
Reference in New Issue
Block a user