<template>
    <global-page
        title="信息通报"
        isDataList
        refresherEnabled
        loadingMoreEnabled
        auto
        ref="paging"
        :params="searchData"
        navRightType="icon"
        navRightIcon="saixuan-01"
        @handleRightClick="handleRightClick"
        :api="getArrangeWorkListApi"
        :padding="24"
    >
        <template #="{ dataList }">
            <view
                v-for="(item, index) in dataList"
                :key="item.id"
                class="inforDisclosureItem flex mocp-bg-fill-4">
                <view class="top">
                    <view class="flex">{{ item.presenter }}</view>
                </view>
            </view>
        </template>
    </global-page>

</template>

<script setup>
import { ref } from 'vue'
//临时调用接口
import { getArrangeWorkListApi } from 'mocp/api/assign-work'
import useInformationDisclosureStore from 'mocp/store/information-disclosure'
import { storeToRefs } from 'pinia'


const informationDisclosureStore = useInformationDisclosureStore()
const { searchData } = storeToRefs(informationDisclosureStore)
const handleRightClick = () => {
    console.log('handleRightClick information-disclosure', informationDisclosureStore)
}


</script>

<style scoped lang="scss">
@import './constants/inforDisclosureList';
</style>