|
@@ -22,12 +22,51 @@
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<el-table-column prop="unit" fixed align="center" :width="185" label="名称">
|
|
<el-table-column prop="unit" fixed align="center" :width="185" label="名称">
|
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
|
- <span
|
|
|
|
|
- v-if="clickableTitle(scope.row)"
|
|
|
|
|
- class="unit-name"
|
|
|
|
|
- @click="viewDetail(scope.row.unit)"
|
|
|
|
|
- >{{ scope.row.unit }}</span
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ <el-tooltip v-if="clickableTitle(scope.row)" effect="light" placement="right">
|
|
|
|
|
+ <span class="unit-name" @click="viewDetail(scope.row.unit)">{{ scope.row.unit }}</span>
|
|
|
|
|
+ <template #content>
|
|
|
|
|
+ <div>
|
|
|
|
|
+ <div>
|
|
|
|
|
+ {{ scope.row.unit }} <span style="color: #409eff">{{ scope.row.total }}</span> 件
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <el-table
|
|
|
|
|
+ v-if="scope.row.children && scope.row.children.length"
|
|
|
|
|
+ :data="scope.row.children"
|
|
|
|
|
+ style="width: 100%"
|
|
|
|
|
+ >
|
|
|
|
|
+ <el-table-column
|
|
|
|
|
+ prop="unit"
|
|
|
|
|
+ :label="`${UnitType[scope.row.unitType]}单位`"
|
|
|
|
|
+ width="120"
|
|
|
|
|
+ />
|
|
|
|
|
+ <el-table-column prop="total" label="通报数量" width="120">
|
|
|
|
|
+ <template #default>
|
|
|
|
|
+ <div>
|
|
|
|
|
+ <span>{{ scope.row.total }}</span> 件
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ <el-table-column prop="proportion" label="占比">
|
|
|
|
|
+ <template #default>
|
|
|
|
|
+ <span style="color: #409eff">{{ scope.row.proportion || '-' }}</span>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ <el-table-column prop="proportion" label="同比">
|
|
|
|
|
+ <template #default>
|
|
|
|
|
+ <span style="color: #409eff">{{ scope.row.proportion || '-' }}</span>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ <el-table-column prop="proportion" label="环比">
|
|
|
|
|
+ <template #default>
|
|
|
|
|
+ <span style="color: #409eff">{{ scope.row.proportion || '-' }}</span>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ </el-table>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-tooltip>
|
|
|
|
|
+
|
|
|
|
|
+ <span v-else>{{ scope.row.unit }}</span>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
</el-table-column>
|
|
</el-table-column>
|