|
@@ -1,49 +1,32 @@
|
|
|
<template>
|
|
|
<div class="statistics-department-sh-satisfied-container layout-padding">
|
|
|
<div class="layout-padding-auto layout-padding-view pd20">
|
|
|
- <ProTable
|
|
|
- ref="proTableRef"
|
|
|
- :columns="columns"
|
|
|
- :data="state.tableData"
|
|
|
- @updateTable="queryList"
|
|
|
- :loading="state.loading"
|
|
|
- border
|
|
|
- :pagination="false"
|
|
|
- :toolButton="['refresh', 'setting', 'exportAll']"
|
|
|
- :exportMethod="departmentSecondSatisfactionExport"
|
|
|
- :exportParams="requestParams"
|
|
|
- >
|
|
|
- <template #table-search>
|
|
|
- <el-form :model="state.queryParams" ref="ruleFormRef" @submit.native.prevent inline>
|
|
|
- <el-form-item prop="crTime">
|
|
|
- <statistical-time v-model="state.queryParams.crTime" @change="handleQuery" ref="statisticalTimeRef" :disabled="state.loading"/>
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="部门名称" prop="OrgName">
|
|
|
- <el-input v-model="state.queryParams.OrgName" placeholder="部门名称" clearable @keyup.enter="handleQuery" class="keyword-input" />
|
|
|
- </el-form-item>
|
|
|
- <!-- <el-form-item label="类型" prop="VisitTypeId">
|
|
|
- <el-select v-model="state.queryParams.VisitTypeId" placeholder="类型" @change="handleQuery">
|
|
|
- <el-option label="办件结果" value="1" />
|
|
|
- <el-option label="办件态度" value="2" />
|
|
|
- </el-select>
|
|
|
- </el-form-item>-->
|
|
|
- <el-form-item label="热线号码" prop="CDPN">
|
|
|
- <el-select v-model="state.queryParams.CDPN" placeholder="请选择热线号码" clearable @change="handleQuery">
|
|
|
- <el-option v-for="item in state.callForwardingSource" :value="item.dicDataValue" :key="item.dicDataValue" :label="item.dicDataName" />
|
|
|
- </el-select>
|
|
|
- </el-form-item>
|
|
|
- <el-form-item>
|
|
|
- <el-button type="primary" @click="handleQuery" :loading="state.loading"> <SvgIcon name="ele-Search" class="mr5" />查询 </el-button>
|
|
|
- <el-button @click="resetQuery(ruleFormRef)" class="default-button" :loading="state.loading">
|
|
|
- <SvgIcon name="ele-Refresh" class="mr5" />重置
|
|
|
- </el-button>
|
|
|
- </el-form-item>
|
|
|
- </el-form>
|
|
|
- </template>
|
|
|
- <template #description>
|
|
|
+ <el-form :model="state.queryParams" ref="ruleFormRef" @submit.native.prevent inline>
|
|
|
+ <el-form-item prop="crTime">
|
|
|
+ <statistical-time v-model="state.queryParams.crTime" @change="handleQuery" ref="statisticalTimeRef" :disabled="state.loading"/>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="部门名称" prop="OrgName">
|
|
|
+ <el-input v-model="state.queryParams.OrgName" placeholder="部门名称" clearable @keyup.enter="handleQuery" class="keyword-input" />
|
|
|
+ </el-form-item>
|
|
|
+ <!-- <el-form-item label="类型" prop="VisitTypeId">
|
|
|
+ <el-select v-model="state.queryParams.VisitTypeId" placeholder="类型" @change="handleQuery">
|
|
|
+ <el-option label="办件结果" value="1" />
|
|
|
+ <el-option label="办件态度" value="2" />
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>-->
|
|
|
+ <el-form-item label="热线号码" prop="CDPN">
|
|
|
+ <el-select v-model="state.queryParams.CDPN" placeholder="请选择热线号码" clearable @change="handleQuery">
|
|
|
+ <el-option v-for="item in state.callForwardingSource" :value="item.dicDataValue" :key="item.dicDataValue" :label="item.dicDataName" />
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item>
|
|
|
+ <el-button type="primary" @click="handleQuery" :loading="state.loading"> <SvgIcon name="ele-Search" class="mr5" />查询 </el-button>
|
|
|
+ <el-button @click="resetQuery(ruleFormRef)" class="default-button" :loading="state.loading">
|
|
|
+ <SvgIcon name="ele-Refresh" class="mr5" />重置
|
|
|
+ </el-button>
|
|
|
<el-popover :width="500" trigger="click">
|
|
|
<template #reference>
|
|
|
- <el-button circle title="口径说明"><SvgIcon name="ele-QuestionFilled" /></el-button>
|
|
|
+ <el-button type="primary" title="口径说明"><SvgIcon name="ele-QuestionFilled" class="mr5"/>口径说明</el-button>
|
|
|
</template>
|
|
|
<el-descriptions title="" :column="1" border style="max-height: 400px; overflow: auto">
|
|
|
<el-descriptions-item label="部门名称">办理工单的部门名称</el-descriptions-item>
|
|
@@ -68,57 +51,114 @@
|
|
|
<el-descriptions-item label="未接通率">未接通/小计</el-descriptions-item>
|
|
|
</el-descriptions>
|
|
|
</el-popover>
|
|
|
- </template>
|
|
|
- <template #verySatisfiedCount="{ row }">
|
|
|
- <el-button link type="primary" @click="onDetail('verySatisfiedCount', row)" v-if="!['市直合计', '区县合计'].includes(row.orgName)">{{
|
|
|
- row.verySatisfiedCount
|
|
|
- }}</el-button>
|
|
|
- <span v-else>{{ row.verySatisfiedCount }}</span>
|
|
|
- </template>
|
|
|
- <template #satisfiedCount="{ row }">
|
|
|
- <el-button link type="primary" @click="onDetail('satisfiedCount', row)" v-if="!['市直合计', '区县合计'].includes(row.orgName)">{{
|
|
|
- row.satisfiedCount
|
|
|
- }}</el-button>
|
|
|
- <span v-else>{{ row.satisfiedCount }}</span>
|
|
|
- </template>
|
|
|
- <template #regardedAsSatisfiedCount="{ row }">
|
|
|
- <el-button link type="primary" @click="onDetail('regardedAsSatisfiedCount', row)" v-if="!['市直合计', '区县合计'].includes(row.orgName)">{{
|
|
|
- row.regardedAsSatisfiedCount
|
|
|
- }}</el-button>
|
|
|
- <span v-else>{{ row.regardedAsSatisfiedCount }}</span>
|
|
|
- </template>
|
|
|
- <template #defaultSatisfiedCount="{ row }">
|
|
|
- <el-button link type="primary" @click="onDetail('defaultSatisfiedCount', row)" v-if="!['市直合计', '区县合计'].includes(row.orgName)">{{
|
|
|
- row.defaultSatisfiedCount
|
|
|
- }}</el-button>
|
|
|
- <span v-else>{{ row.defaultSatisfiedCount }}</span>
|
|
|
- </template>
|
|
|
- <template #noSatisfiedCount="{ row }">
|
|
|
- <el-button link type="primary" @click="onDetail('noSatisfiedCount', row)" v-if="!['市直合计', '区县合计'].includes(row.orgName)">{{
|
|
|
- row.noSatisfiedCount
|
|
|
- }}</el-button>
|
|
|
- <span v-else>{{ row.noSatisfiedCount }}</span>
|
|
|
- </template>
|
|
|
- <template #noEvaluateCount="{ row }">
|
|
|
- <el-button link type="primary" @click="onDetail('noEvaluateCount', row)" v-if="!['市直合计', '区县合计'].includes(row.orgName)">{{
|
|
|
- row.noEvaluateCount
|
|
|
- }}</el-button>
|
|
|
- <span v-else>{{ row.noEvaluateCount }}</span>
|
|
|
- </template>
|
|
|
- <template #noPutThroughCount="{ row }">
|
|
|
- <el-button link type="primary" @click="onDetail('noPutThroughCount', row)" v-if="!['市直合计', '区县合计'].includes(row.orgName)">{{
|
|
|
- row.noPutThroughCount
|
|
|
- }}</el-button>
|
|
|
- <span v-else>{{ row.noPutThroughCount }}</span>
|
|
|
- </template>
|
|
|
- </ProTable>
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
+ <vxe-toolbar
|
|
|
+ ref="toolbarRef"
|
|
|
+ :loading="state.loading"
|
|
|
+ custom
|
|
|
+ :refresh="{
|
|
|
+ queryMethod: handleQuery,
|
|
|
+ }"
|
|
|
+ :tools="[{ toolRender: { name: 'exportAll' } }]"
|
|
|
+ >
|
|
|
+ </vxe-toolbar>
|
|
|
+ <div style="overflow: hidden; width: 100%; height: 100%; flex: 1">
|
|
|
+ <vxe-table
|
|
|
+ border
|
|
|
+ :loading="state.loading"
|
|
|
+ :data="state.tableData"
|
|
|
+ :column-config="{ resizable: true }"
|
|
|
+ :row-config="{ isCurrent: true, isHover: true, height: 30, useKey: true }"
|
|
|
+ ref="tableRef"
|
|
|
+ height="auto"
|
|
|
+ auto-resize
|
|
|
+ show-overflow
|
|
|
+ :scrollY="{ enabled: true, gt: 20, mode: 'wheel' }"
|
|
|
+ id="statisticsDepartmentShSatisfied"
|
|
|
+ :custom-config="{
|
|
|
+ storage: true,
|
|
|
+ }"
|
|
|
+ showHeaderOverflow
|
|
|
+ :params="{ exportMethod: departmentSatisfactionExport, exportParams: requestParams }"
|
|
|
+ >
|
|
|
+ <vxe-column field="orgName" title="部门名称" min-width="200" fixed="left">
|
|
|
+ </vxe-column>
|
|
|
+ <vxe-column field="orgTypeText" title="部门类别" min-width="100" fixed="left"> </vxe-column>
|
|
|
+ <vxe-column field="totalSumCount" title="小计" min-width="90" fixed="left"> </vxe-column>
|
|
|
+ <vxe-column field="totalSumRateText" title="总满意率" min-width="120"> </vxe-column>
|
|
|
+ <vxe-column field="verySatisfiedCount" title="非常满意" min-width="100">
|
|
|
+ <template #default="scope">
|
|
|
+ <el-button type="primary" link @click="linkDetail('verySatisfiedCount', scope.row)" v-if="!['市直合计', '区县合计'].includes(scope.row.orgName)">
|
|
|
+ {{ scope.row.verySatisfiedCount }}
|
|
|
+ </el-button>
|
|
|
+ <span v-else>{{ scope.row.verySatisfiedCount }}</span>
|
|
|
+ </template>
|
|
|
+ </vxe-column>
|
|
|
+ <vxe-column field="verySatisfiedRateText" title="非常满意率" min-width="120"> </vxe-column>
|
|
|
+ <vxe-column field="satisfiedCount" title="满意" min-width="100">
|
|
|
+ <template #default="scope">
|
|
|
+ <el-button type="primary" link @click="linkDetail('satisfiedCount', scope.row)" v-if="!['市直合计', '区县合计'].includes(scope.row.orgName)">
|
|
|
+ {{ scope.row.satisfiedCount }}
|
|
|
+ </el-button>
|
|
|
+ <span v-else>{{ scope.row.satisfiedCount }}</span>
|
|
|
+ </template>
|
|
|
+ </vxe-column>
|
|
|
+ <vxe-column field="satisfiedRateText" title="满意率" min-width="120"> </vxe-column>
|
|
|
+ <vxe-column field="regardedAsSatisfiedCount" title="视为满意" min-width="100">
|
|
|
+ <template #default="scope">
|
|
|
+ <el-button type="primary" link @click="linkDetail('regardedAsSatisfiedCount', scope.row)" v-if="!['市直合计', '区县合计'].includes(scope.row.orgName)">
|
|
|
+ {{ scope.row.regardedAsSatisfiedCount }}
|
|
|
+ </el-button>
|
|
|
+ <span v-else>{{ scope.row.regardedAsSatisfiedCount }}</span>
|
|
|
+ </template>
|
|
|
+ </vxe-column>
|
|
|
+ <vxe-column field="regardedAsSatisfiedRateText" title="视为满意率" min-width="120"> </vxe-column>
|
|
|
+ <vxe-column field="defaultSatisfiedCount" title="默认满意" min-width="100">
|
|
|
+ <template #default="scope">
|
|
|
+ <el-button type="primary" link @click="linkDetail('defaultSatisfiedCount', scope.row)" v-if="!['市直合计', '区县合计'].includes(scope.row.orgName)">
|
|
|
+ {{ scope.row.defaultSatisfiedCount }}
|
|
|
+ </el-button>
|
|
|
+ <span v-else>{{ scope.row.defaultSatisfiedCount }}</span>
|
|
|
+ </template>
|
|
|
+ </vxe-column>
|
|
|
+ <vxe-column field="defaultSatisfiedRateText" title="默认满意率" min-width="120"> </vxe-column>
|
|
|
+ <vxe-column field="noSatisfiedCount" title="不满意" min-width="100">
|
|
|
+ <template #default="scope">
|
|
|
+ <el-button type="primary" link @click="linkDetail('noSatisfiedCount', scope.row)" v-if="!['市直合计', '区县合计'].includes(scope.row.orgName)">
|
|
|
+ {{ scope.row.noSatisfiedCount }}
|
|
|
+ </el-button>
|
|
|
+ <span v-else>{{ scope.row.defaultSatisfiedCount }}</span>
|
|
|
+ </template>
|
|
|
+ </vxe-column>
|
|
|
+ <vxe-column field="noSatisfiedRateText" title="不满意率" min-width="120"> </vxe-column>
|
|
|
+ <vxe-column field="noEvaluateCount" title="未作评价" min-width="100">
|
|
|
+ <template #default="scope">
|
|
|
+ <el-button type="primary" link @click="linkDetail('noEvaluateCount', scope.row)" v-if="!['市直合计', '区县合计'].includes(scope.row.orgName)">
|
|
|
+ {{ scope.row.noEvaluateCount }}
|
|
|
+ </el-button>
|
|
|
+ <span v-else>{{ scope.row.noEvaluateCount }}</span>
|
|
|
+ </template>
|
|
|
+ </vxe-column>
|
|
|
+ <vxe-column field="noEvaluateRateText" title="未作评价率" min-width="120"> </vxe-column>
|
|
|
+ <vxe-column field="noPutThroughCount" title="未接通" min-width="100">
|
|
|
+ <template #default="scope">
|
|
|
+ <el-button type="primary" link @click="linkDetail('noPutThroughCount', scope.row)" v-if="!['市直合计', '区县合计'].includes(scope.row.orgName)">
|
|
|
+ {{ scope.row.noPutThroughCount }}
|
|
|
+ </el-button>
|
|
|
+ <span v-else>{{ scope.row.noPutThroughCount }}</span>
|
|
|
+ </template>
|
|
|
+ </vxe-column>
|
|
|
+ <vxe-column field="noPutThroughRateText" title="未接通率" min-width="120"> </vxe-column>
|
|
|
+ </vxe-table>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
|
<script setup lang="tsx" name="statisticsDepartmentShSatisfied">
|
|
|
import { defineAsyncComponent, onMounted, reactive, ref } from 'vue';
|
|
|
import { FormInstance } from 'element-plus';
|
|
|
-import { departmentSecondSatisfaction, departmentSecondSatisfactionExport } from '@/api/statistics/department';
|
|
|
+import { departmentSatisfactionExport, departmentSecondSatisfaction, departmentSecondSatisfactionExport } from '@/api/statistics/department';
|
|
|
import { defaultDate } from '@/utils/constants';
|
|
|
import { useRouter } from 'vue-router';
|
|
|
import { callPeriodBase } from '@/api/statistics/call';
|
|
@@ -126,59 +166,6 @@ import Other from '@/utils/other';
|
|
|
|
|
|
|
|
|
const StatisticalTime = defineAsyncComponent(() => import('@/components/StatisticalTime/index.vue')); // 日期类型选择组件
|
|
|
-// 表格配置项
|
|
|
-const columns = ref<any[]>([
|
|
|
- { prop: 'orgName', label: '部门名称', minWidth: 150 },
|
|
|
- { prop: 'orgTypeText', label: '部门类别', minWidth: 100 },
|
|
|
- { prop: 'totalSumCount', label: '小计' },
|
|
|
- {
|
|
|
- prop: 'totalSumRateText',
|
|
|
- label: '总满意率',
|
|
|
- minWidth: 110,
|
|
|
- },
|
|
|
- { prop: 'verySatisfiedCount', label: '非常满意', minWidth: 110 },
|
|
|
- {
|
|
|
- prop: 'verySatisfiedRateText',
|
|
|
- label: '非常满意率',
|
|
|
- minWidth: 110,
|
|
|
- },
|
|
|
- { prop: 'satisfiedCount', label: '满意', minWidth: 110 },
|
|
|
- {
|
|
|
- prop: 'satisfiedRateText',
|
|
|
- label: '满意率',
|
|
|
- minWidth: 110,
|
|
|
- },
|
|
|
- { prop: 'regardedAsSatisfiedCount', label: '视为满意', minWidth: 110 },
|
|
|
- {
|
|
|
- prop: 'regardedAsSatisfiedRateText',
|
|
|
- label: '视为满意率',
|
|
|
- minWidth: 110,
|
|
|
- },
|
|
|
- { prop: 'defaultSatisfiedCount', label: '默认满意', minWidth: 110 },
|
|
|
- {
|
|
|
- prop: 'defaultSatisfiedRateText',
|
|
|
- label: '默认满意率',
|
|
|
- minWidth: 110,
|
|
|
- },
|
|
|
- { prop: 'noSatisfiedCount', label: '不满意', minWidth: 110 },
|
|
|
- {
|
|
|
- prop: 'noSatisfiedRateText',
|
|
|
- label: '不满意率',
|
|
|
- minWidth: 110,
|
|
|
- },
|
|
|
- { prop: 'noEvaluateCount', label: '未作评价', minWidth: 110 },
|
|
|
- {
|
|
|
- prop: 'noEvaluateRateText',
|
|
|
- label: '未作评价率',
|
|
|
- minWidth: 110,
|
|
|
- },
|
|
|
- { prop: 'noPutThroughCount', label: '未接通', minWidth: 110 },
|
|
|
- {
|
|
|
- prop: 'noPutThroughRateText',
|
|
|
- label: '未接通率',
|
|
|
- minWidth: 110,
|
|
|
- },
|
|
|
-]);
|
|
|
// 定义变量内容
|
|
|
const ruleFormRef = ref<RefType>(); // 表单ref
|
|
|
const state = reactive<any>({
|
|
@@ -229,7 +216,7 @@ const resetQuery = (formEl: FormInstance | undefined) => {
|
|
|
};
|
|
|
const router = useRouter();
|
|
|
// 点击数字
|
|
|
-const onDetail = (key: string, row) => {
|
|
|
+const linkDetail = (key: string, row:any) => {
|
|
|
const StartTime = state.queryParams.crTime === null ? null : state.queryParams.crTime[0];
|
|
|
const EndTime = state.queryParams.crTime === null ? null : state.queryParams.crTime[1];
|
|
|
router.push({
|
|
@@ -254,8 +241,13 @@ const getBaseInfo = async () => {
|
|
|
console.log(e);
|
|
|
}
|
|
|
};
|
|
|
+const toolbarRef = ref<RefType>();
|
|
|
+const tableRef = ref<RefType>();
|
|
|
onMounted(() => {
|
|
|
- getBaseInfo();
|
|
|
queryList();
|
|
|
+ if (tableRef.value && toolbarRef.value) {
|
|
|
+ tableRef.value.connect(toolbarRef.value);
|
|
|
+ }
|
|
|
+ getBaseInfo();
|
|
|
});
|
|
|
</script>
|