tenderConsole.vue 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. <template>
  2. <div class="map-main-container df">
  3. <AMapContainer class="map-container"></AMapContainer>
  4. <div class="right-bar tac df fdc jcsa">
  5. <div>2024年4月</div>
  6. <div>数据展示</div>
  7. <div>
  8. <el-button
  9. type="primary"
  10. @click="router.push('/tenderManage/inviteTender')"
  11. >
  12. 发起新招标
  13. </el-button>
  14. </div>
  15. </div>
  16. </div>
  17. <el-divider class="mt20 mb20"></el-divider>
  18. <div class="data ml20">
  19. <div class="t20 mb10">江运招标</div>
  20. <TenderTable ref="tableRef" class="mb30" :transType="1" :status="1">
  21. <el-table-column label="操作">
  22. <template #default="{ row }">
  23. <el-button
  24. size="small"
  25. type="primary"
  26. @click="router.push(`/tenderManage/tenderDetail?id=${row.id}`)"
  27. >
  28. 详情
  29. </el-button>
  30. </template>
  31. </el-table-column>
  32. </TenderTable>
  33. <div class="t20 mb10">海运招标</div>
  34. <TenderTable ref="tableRef" class="mb30" :transType="2" :status="1">
  35. <el-table-column label="操作">
  36. <template #default="{ row }">
  37. <el-button
  38. size="small"
  39. type="primary"
  40. @click="router.push(`/tenderManage/tenderDetail?id=${row.id}`)"
  41. >
  42. 详情
  43. </el-button>
  44. </template>
  45. </el-table-column>
  46. </TenderTable>
  47. </div>
  48. </template>
  49. <script setup>
  50. import api from "../../apis/fetch";
  51. import store from "../../store";
  52. import router from "../../router";
  53. import { ref, onMounted, reactive, computed } from "vue";
  54. import { ElNotification, ElMessageBox } from "element-plus";
  55. import { mapGetters } from "vuex";
  56. import { useRoute } from "vue-router";
  57. const route = useRoute();
  58. async function getShipPoints() {
  59. let { data } = await api.getShipPoints({});
  60. console.log(data);
  61. }
  62. onMounted(() => {
  63. getShipPoints();
  64. });
  65. </script>
  66. <style scoped>
  67. .map-main-container {
  68. height: 600px;
  69. }
  70. .map {
  71. width: 100%;
  72. height: 600px;
  73. }
  74. .right-bar {
  75. width: 300px;
  76. border: 1px solid #ddd;
  77. }
  78. .map-container {
  79. width: 100%;
  80. }
  81. </style>