|
@@ -32,7 +32,43 @@
|
|
|
{{ row.markerName }}</span
|
|
|
>
|
|
|
<span v-else-if="row.markingGroupNumber == 0">全体</span>
|
|
|
- <span v-else>全组</span>
|
|
|
+ <span v-else>
|
|
|
+ <template v-if="row.isGroupTotalRow">
|
|
|
+ <el-tooltip effect="dark" content="双击收缩本组" placement="top">
|
|
|
+ <el-button size="small" link @click.stop="onExpendRow(row)">
|
|
|
+ <minus
|
|
|
+ style="
|
|
|
+ width: 1em;
|
|
|
+ height: 1em;
|
|
|
+ margin-right: 5px;
|
|
|
+ margin-top: -3px;
|
|
|
+ vertical-align: middle;
|
|
|
+ color: #0091ff;
|
|
|
+ "
|
|
|
+ />
|
|
|
+ </el-button>
|
|
|
+ </el-tooltip>
|
|
|
+ <span>全组</span>
|
|
|
+ </template>
|
|
|
+ <template v-else>
|
|
|
+ <el-tooltip effect="dark" content="双击展开本组" placement="top">
|
|
|
+ <el-button size="small" link @click.stop="onExpendRow(row)">
|
|
|
+ <plus
|
|
|
+ style="
|
|
|
+ width: 1em;
|
|
|
+ height: 1em;
|
|
|
+ margin-right: 5px;
|
|
|
+ margin-top: -3px;
|
|
|
+ vertical-align: middle;
|
|
|
+ color: #0091ff;
|
|
|
+ "
|
|
|
+ />
|
|
|
+ </el-button>
|
|
|
+ </el-tooltip>
|
|
|
+
|
|
|
+ <span>第{{ row.markingGroupNumber }}组</span>
|
|
|
+ </template>
|
|
|
+ </span>
|
|
|
</template>
|
|
|
</base-table>
|
|
|
</div>
|
|
@@ -69,6 +105,7 @@
|
|
|
import { ref, inject, computed, watch, nextTick, unref } from 'vue'
|
|
|
import { useRouter, useRoute } from 'vue-router'
|
|
|
import { ElButton, ElPopover, ElMenu, ElMenuItem, ElIcon, ElMessage } from 'element-plus'
|
|
|
+import { Plus, Minus } from '@element-plus/icons-vue'
|
|
|
import VueECharts from 'vue-echarts'
|
|
|
import BaseTable from '@/components/element/BaseTable.vue'
|
|
|
import SetWorkload from './SetWorkload.vue'
|
|
@@ -101,6 +138,9 @@ const props = defineProps<{
|
|
|
filterColumns?: any
|
|
|
result?: any
|
|
|
}>()
|
|
|
+const emits = defineEmits<{
|
|
|
+ (e: 'expend-row', value: number): void
|
|
|
+}>()
|
|
|
const rowClassName = (obj: any) => {
|
|
|
if (obj.row.markingGroupNumber === 0) {
|
|
|
return 'fixed-row'
|
|
@@ -330,7 +370,16 @@ const data = computed(() => {
|
|
|
})
|
|
|
|
|
|
const { tableRef, tableData, current, onCurrentChange, onDbClick, currentView, elTableRef } = useTableCheck(data, false)
|
|
|
+
|
|
|
+const onExpendRow = (row: any) => {
|
|
|
+ emits('expend-row', row.markingGroupNumber)
|
|
|
+}
|
|
|
const myDbClick = (row: any, column: any, e: any) => {
|
|
|
+ if (row.markerDetails) {
|
|
|
+ onExpendRow(row)
|
|
|
+ return
|
|
|
+ }
|
|
|
+
|
|
|
onDbClick(row, column, e)
|
|
|
if (currentView.value && !!currentView.value.markingGroupNumber && !!currentView.value.markerId) {
|
|
|
push({
|