<template>
    <global-page :padding="24" title="事件分析详情" auto :localData="details?.analysisList || []">
        <template #default="{ item }">
            <view class="mocp-cell">
                <up-cell-group>
                    <up-cell title="序号" :value="item.ord || '-'"></up-cell>
                    <up-cell title="分析一级维度" :value="item.dimension1 || '-'"></up-cell>
                    <up-cell title="分析二级维度" :value="item.dimension2 || '-'"></up-cell>
                    <up-cell title="分析三级维度" :value="item.dimension3 || '-'"></up-cell>
                    <up-cell title="分析结论" :label="item.eventAnalysis || '-'"></up-cell>
                </up-cell-group>
            </view>
        </template>
    </global-page>
</template>

<script setup>
import { storeToRefs } from 'pinia'
import useOperationalSurveyStore from 'mocp/store/operationalSurvey'

const operationalSurveyStore = useOperationalSurveyStore()
const { details } = storeToRefs(operationalSurveyStore)
</script>
<style lang="scss" scoped>
.mocp-cell {
    background: #fff;
    margin-bottom: 16rpx;
}
</style>
