forked from drone/command-center-dashboard

张含笑
2025-04-15 dd6912b96f3738458b29c993de26e501edfc4778
feat: 去掉分页,调整机巢详情列表样式
2 files modified
31 ■■■■ changed files
src/views/SignMachineNest/MachineRight/MachineStatus/MachineTableDetails/DeviceEvent.vue 16 ●●●●● patch | view | raw | blame | history
src/views/SignMachineNest/MachineRight/MachineStatus/MachineTableDetails/DeviceJob/DeviceJob.vue 15 ●●●● patch | view | raw | blame | history
src/views/SignMachineNest/MachineRight/MachineStatus/MachineTableDetails/DeviceEvent.vue
@@ -6,7 +6,7 @@
                >件
            </p>
        </div>
        <div class="deviceevent-table ztzf-table">
        <div class="deviceevent-table ztzf-table" >
            <el-table :data="list" :row-class-name="tableRowClassName"
            style="width: 100%;"
            :row-style="{ height: '38px', fontSize: '14px', 'text-align': 'center' }"
@@ -37,7 +37,7 @@
            </el-table-column>
        </el-table>
        </div>
        <el-pagination
        <!-- <el-pagination
        class="ztzf-pagination"
            background
            :page-sizes="[10, 20, 30, 50]"
@@ -46,7 +46,7 @@
            layout="prev, pager, next,sizes, jumper"
            :total="total"
            @change="pageChange"
        />
        /> -->
    </div>
</template>
<script setup>
@@ -60,7 +60,7 @@
})
const sizeParams = ref({
    current: 1,
    size: 5,
    size: 99999,
})
const store = useStore()
const device_sn = computed(() => store.state.home.singleUavHome.device_sn)
@@ -79,6 +79,7 @@
        const resData = res?.data?.data || {}
        list.value = resData.records
        total.value = resData.total
    })
    
    
@@ -102,7 +103,9 @@
</script>
<style scoped lang="scss">
.deviceevent-container {
margin-top:10px;
}
// 标题
.machineTableDetailsTitle {
    margin: 0 24px;
@@ -127,6 +130,9 @@
// 表格
.deviceevent-table {
padding: 0 17px;
height: 280px;
    overflow: hidden;
        overflow-y: scroll !important;
}
// 分页
src/views/SignMachineNest/MachineRight/MachineStatus/MachineTableDetails/DeviceJob/DeviceJob.vue
@@ -32,7 +32,7 @@
                </el-table-column>
            </el-table>
        </div>
        <el-pagination
        <!-- <el-pagination
        class="ztzf-pagination"
            background
            :page-sizes="[10, 20, 30, 50]"
@@ -41,7 +41,7 @@
            layout=" prev, pager, next,sizes, jumper"
            :total="total"
            @change="pageChange"
        />
        /> -->
    </div>
    <DeviceJobDetails v-model:show="deviceJobDetailsShow" />
@@ -57,7 +57,7 @@
})
const sizeParams = ref({
    current: 1,
    size: 5,
    size: 99999,
})
const store = useStore()
const device_sn = computed(() => store.state.home.singleUavHome.device_sn)
@@ -120,8 +120,15 @@
// 表格
.devicelob-table {
    padding: 0 17px;
    height: 280px;
    overflow: hidden;
        overflow-y: scroll !important;
}
:deep(::-webkit-scrollbar ){
                width: 0;
                display: none;
                background: none !important;
            }
// 分页
:deep(.el-pagination) {