<template>
  <!-- 列表 -->
  <ContentWrap>
    <el-table v-loading="loading" :data="list" :stripe="true" :show-overflow-tooltip="true">
      <el-table-column label="序号" type="index" width="60" align="center" />
      <el-table-column label="案件名称" align="center" prop="caseName" />
      <el-table-column label="发布日期" width="170" align="center" prop="publishDate" />
      <el-table-column label="案件原由" align="center" prop="caseReason" />
      <el-table-column label="案件内容" align="center" prop="caseContent" />
    </el-table>
    
  </ContentWrap>

</template>

<script setup lang="ts">
import { CompanyLawsuitInfoApi } from '@/api/crm/customer/companyInfo/companylawsuitinfo'

/** 企业法律诉讼信息 列表 */
defineOptions({ name: 'CompanyLawsuitInfo' })

const message = useMessage() // 消息弹窗
const { t } = useI18n() // 国际化

const loading = ref(true) // 列表的加载中
const list = ref<CompanyLawsuitInfoVO[]>([]) // 列表的数据
const total = ref(0) // 列表的总页数
const queryParams = reactive({
  pageNo: 1,
  pageSize: 999,
  
})
const queryFormRef = ref() // 搜索的表单
const exportLoading = ref(false) // 导出的加载中

/** 查询列表 */
const getList = async () => {
  loading.value = true
  try {
    const data = await CompanyLawsuitInfoApi.getCompanyLawsuitInfoPage(queryParams)
    list.value = data.list
    total.value = data.total
  } finally {
    loading.value = false
  }
}

/** 初始化 **/
onMounted(() => {
  getList()
})
</script>