index.vue 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <!-- 交易服务-出境检测 -->
  2. <template>
  3. <app-view>
  4. <!-- 表格数据 -->
  5. <app-table :data="dataList" v-model:columns="columns" :loading="loading">
  6. <template #header>
  7. <app-auth-operation :menus="['add']" />
  8. </template>
  9. <!-- 操作 -->
  10. <template #operate="{ row }">
  11. <app-auth-operation :menus="handleOperateButtons(row)" :options="{ selectedRow: row }"
  12. @closed="getGZCJJCOrderList" />
  13. </template>
  14. <template #footer>
  15. <app-pagination :total="total" v-model:page-size="pageSize" v-model:page-index="pageIndex"
  16. @change="getGZCJJCOrderList" />
  17. </template>
  18. </app-table>
  19. {{ getGZCJStatusList() }}
  20. </app-view>
  21. </template>
  22. <script lang="ts" setup>
  23. import { ElMessage } from 'element-plus'
  24. import { getGZCJStatusList } from '@/constants/customs'
  25. import { useCJJCOrder } from '@/business/customs'
  26. import AppAuthOperation from '@pc/components/modules/auth-operation/index.vue'
  27. import AppTable from '@pc/components/base/table/index.vue'
  28. import AppPagination from '@pc/components/base/pagination/index.vue'
  29. const { loading, dataList, columns, total, pageIndex, pageSize, getGZCJJCOrderList } = useCJJCOrder()
  30. const handleOperateButtons = (row: Ermcp.GZCJJCOrderRsp) => {
  31. switch (row.gzcjstatus) {
  32. default: {
  33. return null
  34. }
  35. }
  36. }
  37. getGZCJJCOrderList().catch((err) => ElMessage.error(err))
  38. </script>