|
@@ -1,39 +1,19 @@
|
|
|
<template>
|
|
|
<div class="statistics-department-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"
|
|
|
- show-summary
|
|
|
- :summary-method="getSummaries"
|
|
|
- border
|
|
|
- :pagination="false"
|
|
|
- :toolButton="['refresh', 'setting', 'exportAll']"
|
|
|
- :exportMethod="departmentSatisfactionExport"
|
|
|
- :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>
|
|
|
- <el-button type="primary" @click="handleQuery" :loading="state.loading"> <SvgIcon name="ele-Search" class="mr5" />查询 </el-button>
|
|
|
- <el-button @click="drawer = true" class="default-button"> <SvgIcon name="ele-Search" class="mr5" />更多查询</el-button>
|
|
|
- <el-button type="primary" @click="onDetailList" :loading="state.loading"> <SvgIcon name="ele-List" 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>
|
|
|
+ <el-button type="primary" @click="handleQuery" :loading="state.loading"> <SvgIcon name="ele-Search" class="mr5" />查询 </el-button>
|
|
|
+ <el-button @click="drawer = true" class="default-button"> <SvgIcon name="ele-Search" 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>
|
|
@@ -58,8 +38,116 @@
|
|
|
<el-descriptions-item label="未接通率">未接通/小计</el-descriptions-item>
|
|
|
</el-descriptions>
|
|
|
</el-popover>
|
|
|
- </template>
|
|
|
- </ProTable>
|
|
|
+ <el-button type="primary" @click="onDetailList" :loading="state.loading"> <SvgIcon name="ele-List" class="mr5" />列表明细 </el-button>
|
|
|
+ </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="statisticsDepartmentSatisfied"
|
|
|
+ :custom-config="{
|
|
|
+ storage: true,
|
|
|
+ }"
|
|
|
+ showHeaderOverflow
|
|
|
+ :params="{ exportMethod: departmentSatisfactionExport, exportParams: requestParams }"
|
|
|
+ show-footer
|
|
|
+ :footer-method="footerMethod"
|
|
|
+ >
|
|
|
+ <vxe-column field="orgName" title="部门名称" min-width="200" fixed="left">
|
|
|
+ <template #default="scope">
|
|
|
+ <el-button type="primary" link @click="onDetailOrg(scope.row)" v-if="!['市直合计', '区县合计'].includes(scope.row.orgName)">
|
|
|
+ {{ scope.row.orgName }}
|
|
|
+ </el-button>
|
|
|
+ <span v-else>{{ scope.row.orgName }}</span>
|
|
|
+ </template>
|
|
|
+ </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(scope.row.verySatisfiedKey, 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(scope.row.satisfiedKey, 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(scope.row.regardedAsSatisfiedKey, 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(scope.row.defaultSatisfiedKey, 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(scope.row.noSatisfiedKey, 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(scope.row.noEvaluateKey, 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(scope.row.noPutThroughKey, 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>
|
|
|
<!-- 更多查询 -->
|
|
|
<el-drawer v-model="drawer" title="更多查询" size="500px">
|
|
@@ -106,199 +194,10 @@ import { callPeriodBase } from '@/api/statistics/call';
|
|
|
import Other from '@/utils/other';
|
|
|
import { useThemeConfig } from '@/stores/themeConfig';
|
|
|
import { storeToRefs } from 'pinia';
|
|
|
+import XEUtils from 'xe-utils';
|
|
|
|
|
|
|
|
|
const StatisticalTime = defineAsyncComponent(() => import('@/components/StatisticalTime/index.vue')); // 日期类型选择组件
|
|
|
-// 表格配置项
|
|
|
-const columns = ref<any[]>([
|
|
|
- {
|
|
|
- prop: 'orgName',
|
|
|
- label: '部门名称',
|
|
|
- minWidth: 200,
|
|
|
- fixed: 'left',
|
|
|
- render: (scope) => {
|
|
|
- return (
|
|
|
- <>
|
|
|
- {!['市直合计', '区县合计'].includes(scope.row.orgName) ? (
|
|
|
- <el-button type="primary" link onClick={() => onDetailOrg(scope.row)}>
|
|
|
- {scope.row.orgName}
|
|
|
- </el-button>
|
|
|
- ) : (
|
|
|
- <span>{scope.row.orgName}</span>
|
|
|
- )}
|
|
|
- </>
|
|
|
- );
|
|
|
- },
|
|
|
- },
|
|
|
- { prop: 'orgTypeText', label: '部门类别', minWidth: 120 },
|
|
|
- { prop: 'totalSumCount', label: '小计' },
|
|
|
- {
|
|
|
- prop: 'totalSumRateText',
|
|
|
- label: '总满意率',
|
|
|
- minWidth: 120,
|
|
|
- },
|
|
|
- {
|
|
|
- prop: 'verySatisfiedCount',
|
|
|
- label: '非常满意',
|
|
|
- minWidth: 120,
|
|
|
- render: (scope) => {
|
|
|
- return (
|
|
|
- <>
|
|
|
- {!['市直合计', '区县合计'].includes(scope.row.orgName) ? (
|
|
|
- <el-button type="primary" link onClick={() => onDetail(scope.row.verySatisfiedKey, scope.row)}>
|
|
|
- {scope.row.verySatisfiedCount}
|
|
|
- </el-button>
|
|
|
- ) : (
|
|
|
- <span>{scope.row.verySatisfiedCount}</span>
|
|
|
- )}
|
|
|
- </>
|
|
|
- );
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
- prop: 'verySatisfiedRateText',
|
|
|
- label: '非常满意率',
|
|
|
- minWidth: 120,
|
|
|
- },
|
|
|
- {
|
|
|
- prop: 'satisfiedCount',
|
|
|
- label: '满意',
|
|
|
- minWidth: 120,
|
|
|
- render: (scope) => {
|
|
|
- return (
|
|
|
- <>
|
|
|
- {!['市直合计', '区县合计'].includes(scope.row.orgName) ? (
|
|
|
- <el-button type="primary" link onClick={() => onDetail(scope.row.satisfiedKey, scope.row)}>
|
|
|
- {scope.row.satisfiedCount}
|
|
|
- </el-button>
|
|
|
- ) : (
|
|
|
- <span>{scope.row.satisfiedCount}</span>
|
|
|
- )}
|
|
|
- </>
|
|
|
- );
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
- prop: 'satisfiedRateText',
|
|
|
- label: '满意率',
|
|
|
- minWidth: 120,
|
|
|
- },
|
|
|
- {
|
|
|
- prop: 'regardedAsSatisfiedCount',
|
|
|
- label: '视为满意',
|
|
|
- minWidth: 120,
|
|
|
- render: (scope) => {
|
|
|
- return (
|
|
|
- <>
|
|
|
- {!['市直合计', '区县合计'].includes(scope.row.orgName) ? (
|
|
|
- <el-button type="primary" link onClick={() => onDetail(scope.row.regardedAsSatisfiedKey, scope.row)}>
|
|
|
- {scope.row.regardedAsSatisfiedCount}
|
|
|
- </el-button>
|
|
|
- ) : (
|
|
|
- <span>{scope.row.regardedAsSatisfiedCount}</span>
|
|
|
- )}
|
|
|
- </>
|
|
|
- );
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
- prop: 'regardedAsSatisfiedRateText',
|
|
|
- label: '视为满意率',
|
|
|
- minWidth: 120,
|
|
|
- },
|
|
|
- {
|
|
|
- prop: 'defaultSatisfiedCount',
|
|
|
- label: '默认满意',
|
|
|
- minWidth: 120,
|
|
|
- render: (scope) => {
|
|
|
- return (
|
|
|
- <>
|
|
|
- {!['市直合计', '区县合计'].includes(scope.row.orgName) ? (
|
|
|
- <el-button type="primary" link onClick={() => onDetail(scope.row.defaultSatisfiedKey, scope.row)}>
|
|
|
- {scope.row.defaultSatisfiedCount}
|
|
|
- </el-button>
|
|
|
- ) : (
|
|
|
- <span>{scope.row.defaultSatisfiedCount}</span>
|
|
|
- )}
|
|
|
- </>
|
|
|
- );
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
- prop: 'defaultSatisfiedRateText',
|
|
|
- label: '默认满意率',
|
|
|
- minWidth: 120,
|
|
|
- },
|
|
|
- {
|
|
|
- prop: 'noSatisfiedCount',
|
|
|
- label: '不满意',
|
|
|
- minWidth: 120,
|
|
|
- render: (scope) => {
|
|
|
- return (
|
|
|
- <>
|
|
|
- {!['市直合计', '区县合计'].includes(scope.row.orgName) ? (
|
|
|
- <el-button type="primary" link onClick={() => onDetail(scope.row.noSatisfiedKey, scope.row)}>
|
|
|
- {scope.row.noSatisfiedCount}
|
|
|
- </el-button>
|
|
|
- ) : (
|
|
|
- <span>{scope.row.noSatisfiedCount}</span>
|
|
|
- )}
|
|
|
- </>
|
|
|
- );
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
- prop: 'noSatisfiedRateText',
|
|
|
- label: '不满意率',
|
|
|
- minWidth: 120,
|
|
|
- },
|
|
|
- {
|
|
|
- prop: 'noEvaluateCount',
|
|
|
- label: '未作评价',
|
|
|
- minWidth: 120,
|
|
|
- render: (scope) => {
|
|
|
- return (
|
|
|
- <>
|
|
|
- {!['市直合计', '区县合计'].includes(scope.row.orgName) ? (
|
|
|
- <el-button type="primary" link onClick={() => onDetail(scope.row.noEvaluateKey, scope.row)}>
|
|
|
- {scope.row.noEvaluateCount}
|
|
|
- </el-button>
|
|
|
- ) : (
|
|
|
- <span>{scope.row.noEvaluateCount}</span>
|
|
|
- )}
|
|
|
- </>
|
|
|
- );
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
- prop: 'noEvaluateRateText',
|
|
|
- label: '未作评价率',
|
|
|
- minWidth: 120,
|
|
|
- },
|
|
|
- {
|
|
|
- prop: 'noPutThroughCount',
|
|
|
- label: '未接通',
|
|
|
- minWidth: 120,
|
|
|
- render: (scope) => {
|
|
|
- return (
|
|
|
- <>
|
|
|
- {!['市直合计', '区县合计'].includes(scope.row.orgName) ? (
|
|
|
- <el-button type="primary" link onClick={() => onDetail(scope.row.noPutThroughKey, scope.row)}>
|
|
|
- {scope.row.noPutThroughCount}
|
|
|
- </el-button>
|
|
|
- ) : (
|
|
|
- <span>{scope.row.noPutThroughCount}</span>
|
|
|
- )}
|
|
|
- </>
|
|
|
- );
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
- prop: 'noPutThroughRateText',
|
|
|
- label: '未接通率',
|
|
|
- minWidth: 120,
|
|
|
- },
|
|
|
-]);
|
|
|
// 定义变量内容
|
|
|
const state = reactive<any>({
|
|
|
queryParams: {
|
|
@@ -360,73 +259,17 @@ const resetQuery = (formEl: FormInstance | undefined) => {
|
|
|
statisticalTimeRef.value.reset();
|
|
|
queryList();
|
|
|
};
|
|
|
-// 合计
|
|
|
-const getSummaries = (param: any) => {
|
|
|
- const { columns } = param;
|
|
|
- const sums: string[] = [];
|
|
|
- columns.forEach((column: { property: string }, index: number) => {
|
|
|
- if (index === 0) {
|
|
|
- sums[index] = '合计';
|
|
|
- return;
|
|
|
- }
|
|
|
- switch (column.property) {
|
|
|
- case 'orgTypeText':
|
|
|
- sums[index] = state.totalCount?.orgTypeText;
|
|
|
- break;
|
|
|
- case 'totalSumCount':
|
|
|
- sums[index] = state.totalCount?.totalSumCount;
|
|
|
- break;
|
|
|
- case 'totalSumRateText':
|
|
|
- sums[index] = state.totalCount?.totalSumRateText;
|
|
|
- break;
|
|
|
- case 'verySatisfiedCount':
|
|
|
- sums[index] = state.totalCount?.verySatisfiedCount;
|
|
|
- break;
|
|
|
- case 'verySatisfiedRateText':
|
|
|
- sums[index] = state.totalCount?.verySatisfiedRateText;
|
|
|
- break;
|
|
|
- case 'satisfiedCount':
|
|
|
- sums[index] = state.totalCount?.satisfiedCount;
|
|
|
- break;
|
|
|
- case 'satisfiedRateText':
|
|
|
- sums[index] = state.totalCount?.satisfiedRateText;
|
|
|
- break;
|
|
|
- case 'regardedAsSatisfiedCount':
|
|
|
- sums[index] = state.totalCount?.regardedAsSatisfiedCount;
|
|
|
- break;
|
|
|
- case 'regardedAsSatisfiedRateText':
|
|
|
- sums[index] = state.totalCount?.regardedAsSatisfiedRateText;
|
|
|
- break;
|
|
|
- case 'defaultSatisfiedCount':
|
|
|
- sums[index] = state.totalCount?.defaultSatisfiedCount;
|
|
|
- break;
|
|
|
- case 'defaultSatisfiedRateText':
|
|
|
- sums[index] = state.totalCount?.defaultSatisfiedRateText;
|
|
|
- break;
|
|
|
- case 'noSatisfiedCount':
|
|
|
- sums[index] = state.totalCount?.noSatisfiedCount;
|
|
|
- break;
|
|
|
- case 'noSatisfiedRateText':
|
|
|
- sums[index] = state.totalCount?.noSatisfiedRateText;
|
|
|
- break;
|
|
|
- case 'noEvaluateCount':
|
|
|
- sums[index] = state.totalCount?.noEvaluateCount;
|
|
|
- break;
|
|
|
- case 'noEvaluateRateText':
|
|
|
- sums[index] = state.totalCount?.noEvaluateRateText;
|
|
|
- break;
|
|
|
- case 'noPutThroughCount':
|
|
|
- sums[index] = state.totalCount?.noPutThroughCount;
|
|
|
- break;
|
|
|
- case 'noPutThroughRateText':
|
|
|
- sums[index] = state.totalCount?.noPutThroughRateText;
|
|
|
- break;
|
|
|
- default:
|
|
|
- sums[index] = '';
|
|
|
- break;
|
|
|
- }
|
|
|
- });
|
|
|
- return sums;
|
|
|
+// 计算合计
|
|
|
+const footerMethod = ({ columns, data }) => {
|
|
|
+ return [
|
|
|
+ columns.map((column: any, columnIndex: number) => {
|
|
|
+ if (columnIndex === 0) {
|
|
|
+ return '合计';
|
|
|
+ }
|
|
|
+ // 后端返回了数据集合 state.totalCount 所以不需要计算 直接进行赋值
|
|
|
+ return XEUtils.get(state.totalCount, column.property);
|
|
|
+ }),
|
|
|
+ ];
|
|
|
};
|
|
|
const router = useRouter();
|
|
|
// 点击部门名称
|
|
@@ -445,7 +288,7 @@ const onDetailOrg = (row: any) => {
|
|
|
});
|
|
|
};
|
|
|
// 点击数字
|
|
|
-const onDetail = (key: string, row: any) => {
|
|
|
+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({
|
|
@@ -475,8 +318,13 @@ const onDetailList = () => {
|
|
|
name: 'statisticsDepartmentSatisfiedDetailList',
|
|
|
});
|
|
|
};
|
|
|
+const toolbarRef = ref<RefType>();
|
|
|
+const tableRef = ref<RefType>();
|
|
|
onMounted(() => {
|
|
|
- getBaseInfo();
|
|
|
queryList();
|
|
|
+ if (tableRef.value && toolbarRef.value) {
|
|
|
+ tableRef.value.connect(toolbarRef.value);
|
|
|
+ }
|
|
|
+ getBaseInfo();
|
|
|
});
|
|
|
</script>
|