billboarddetail.vue 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. <template>
  2. <div class="ZTGlobal" style="height: 100%; width: 100%; padding: 5px">
  3. <el-row>
  4. <el-col span="24">
  5. <el-descriptions
  6. :title="'项目名称:' + info.projectInfo.projectname"
  7. :column="1"
  8. >
  9. <el-descriptions-item label="项目地址">{{
  10. info.projectInfo.address
  11. }}</el-descriptions-item>
  12. <el-descriptions-item label="设计单位">{{
  13. info.projectInfo.design
  14. }}</el-descriptions-item>
  15. <el-descriptions-item label="申报日期">{{
  16. info.projectInfo.checkDate
  17. }}</el-descriptions-item>
  18. <el-descriptions-item label="简介">
  19. {{ info.projectInfo.description }}
  20. </el-descriptions-item>
  21. </el-descriptions>
  22. </el-col>
  23. </el-row>
  24. <el-row>
  25. <el-col span="24">
  26. <el-table :data="billboardModelList" style="width: 100%">
  27. <el-table-column prop="billboardName" label="模型名称">
  28. </el-table-column>
  29. <el-table-column prop="billboardType" label="模型类型">
  30. </el-table-column>
  31. </el-table>
  32. </el-col>
  33. </el-row>
  34. </div>
  35. </template>
  36. <script>
  37. import {
  38. cartesian3ToWGS84,
  39. mapQuery,
  40. flatten,
  41. mercator2lonLat,
  42. undergroundMode,
  43. } from "@/utils/MapHelper/MapHelper.js";
  44. import { listBillboardModelList } from "@/api/zt/ztApi.js";
  45. export default {
  46. data() {
  47. return {
  48. billboardModelList: [],
  49. };
  50. },
  51. props: {
  52. info: {
  53. type: Object,
  54. default: () => {
  55. return {};
  56. },
  57. },
  58. layerid: {
  59. type: String,
  60. default: "",
  61. },
  62. lydata: {
  63. type: Object,
  64. default: () => {
  65. return {};
  66. },
  67. },
  68. lyoption: {
  69. type: Object,
  70. default: () => {
  71. return {};
  72. },
  73. },
  74. },
  75. mounted() {
  76. this.init();
  77. },
  78. methods: {
  79. async init() {
  80. let that = this;
  81. debugger;
  82. // if (that.info.projectInfo.dataurl) {
  83. // let queryBySQLParameters = {
  84. // getFeatureMode: "SQL",
  85. // datasetNames: [that.info.projectInfo.datasourcename + ":" + "GGP"],
  86. // queryParameter: {
  87. // attributeFilter: "1=1",
  88. // },
  89. // hasGeometry: "true",
  90. // };
  91. // let e = await mapQuery(
  92. // that.info.projectInfo.dataurl +
  93. // "/featureResults.json?returnContent=true",
  94. // queryBySQLParameters
  95. // );
  96. // if (e && e.totalCount > 0) {
  97. // e.features.forEach((feature) => {
  98. // let featureData = {
  99. // id: uuidv4(),
  100. // data: [],
  101. // geometry: feature.geometry,
  102. // };
  103. // feature.fieldNames.forEach((fieldName, i) => {
  104. // let Field = e.datasetInfos
  105. // ? e.datasetInfos[0].fieldInfos.find(
  106. // (c) =>
  107. // c.name &&
  108. // c.name.toUpperCase() == fieldName.toUpperCase() &&
  109. // c.name.toUpperCase().indexOf("SM") == -1
  110. // )
  111. // : null;
  112. // if (Field) {
  113. // featureData.data.push({
  114. // label: fieldName,
  115. // labelCN: Field ? Field.caption : fieldName,
  116. // value: feature.fieldValues[i],
  117. // });
  118. // }
  119. // });
  120. // featureDataList.push(featureData);
  121. // });
  122. // debugger;
  123. // this.billboardModelList = [];
  124. // } else {
  125. // this.billboardModelList = [];
  126. // }
  127. // } else {
  128. let data = await listBillboardModelList({
  129. billboardInfoId: that.info.projectInfo.id,
  130. });
  131. debugger;
  132. this.billboardModelList = data.rows;
  133. // }
  134. // this.billboardModelList = window.billboardModelList.filter(
  135. // (c) => c.billboardInfoId == that.info.projectInfo.id
  136. // );
  137. },
  138. },
  139. };
  140. </script>
  141. <style lang="scss">
  142. @import "@/../../zt.scss";
  143. </style>
  144. <style scoped></style>