7569f7b89e7e465bc63fe2dd7137b47dd4c0ccec.svn-base 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. <template>
  2. <div class="popupContentClass" :style="{'height':testHeight1+'px'}">
  3. <p style="margin-top:20px;">
  4. <div style="display: flex;align-items: center;margin-bottom: 10px">
  5. <div style="width: 4px;height: 14px;background: rgba(44,158,255,1);border-radius: 1px;margin-right: 10px;"></div>
  6. <span style="font-size:14px;font-family:MicrosoftYaHei;color:rgba(51,51,51,1);">基础信息</span>
  7. </div>
  8. </p>
  9. <el-row class="rowClass">
  10. <el-col :span="6" class="nameClass">行政区名称:</el-col>
  11. <el-col :span="6" class="valueClass" :style="{'height':testHeight+'px'}">{{formObj.adName}}</el-col>
  12. <el-col :span="6" class="nameClass">行政区编码:</el-col>
  13. <el-col :span="6" class="valueClass" :style="{'height':testHeight+'px'}">{{formObj.adCode}}</el-col>
  14. </el-row>
  15. <el-row class="rowClass">
  16. <el-col :span="6" class="nameClass">项目名称:</el-col>
  17. <el-col :span="6" class="valueClass" :style="{'height':testHeight+'px'}">{{ formObj.name }}</el-col>
  18. <el-col :span="6" class="nameClass">所在详细位置:</el-col>
  19. <el-col :span="6" class="valueClass" :style="{'height':testHeight+'px'}">{{formObj.location }}</el-col>
  20. </el-row>
  21. <el-row class="rowClass">
  22. <el-col :span="6" class="nameClass">问题描述 :</el-col>
  23. <el-col :span="6" class="valueClass" :style="{'height':testHeight+'px'}">{{formObj.pblmDesc}}</el-col>
  24. <el-col :span="6" class="nameClass">问题分类:</el-col>
  25. <el-col :span="6" class="valueClass" :style="{'height':testHeight+'px'}">{{formObj.pblmType}}
  26. </el-col>
  27. </el-row>
  28. <el-row class="rowClass">
  29. <el-col :span="6" class="nameClass">问题整治情况:</el-col>
  30. <el-col :span="6" class="valueClass" :style="{'height':testHeight+'px'}">{{formObj.rectConc == '1' ? '已整改' :
  31. formObj.rectConc == '2' ? '整改中' : formObj.rectConc == '3' ? '未整改' : ''}}
  32. </el-col>
  33. <el-col :span="6" class="nameClass"> 河流、河段(湖泊)名称:</el-col>
  34. <el-col :span="6" class="valueClass" :style="{'height':testHeight+'px'}">{{formObj.rvReaLkName}}</el-col>
  35. </el-row>
  36. <el-row class="rowClass">
  37. <el-col :span="6" class="nameClass">航拍点:</el-col>
  38. <el-col :span="6" class="valueClass" :style="{'height':testHeight+'px'}">{{ formObj.aerialPoint}}</el-col>
  39. </el-row>
  40. <el-row class="rowClass">
  41. <el-col :span="6" class="nameClass">经度:</el-col>
  42. <el-col :span="6" class="valueClass" :style="{'height':testHeight+'px'}">{{formObj.centerX}}</el-col>
  43. <el-col :span="6" class="nameClass">纬度:</el-col>
  44. <el-col :span="6" class="valueClass" :style="{'height':testHeight+'px'}">{{formObj.centerY}}</el-col>
  45. </el-row>
  46. </div>
  47. </template>
  48. <script>
  49. import request from "@util/gw_ajax_request.js"
  50. export default {
  51. components: {},
  52. props: ["currentObjectId"],
  53. data() {
  54. return {
  55. testHeight: (window.innerHeight * 0.5 - 50) / 6,
  56. testHeight1: window.innerHeight * 0.5,
  57. dialogFormVisible: false,
  58. formObj: {},
  59. formLabelWidth: "160px",
  60. loading: true,
  61. };
  62. },
  63. computed: {
  64. recPersId() {
  65. return localStorage.getItem("userid")
  66. ? localStorage.getItem("userid")
  67. : "";
  68. }
  69. },
  70. mounted() {
  71. this.dialogFormVisible = true;
  72. this.getBaseInfo();
  73. },
  74. watch: {
  75. currentObjectId(n, o) {
  76. this.getBaseInfo();
  77. }
  78. },
  79. methods: {
  80. showDialog() {
  81. this.dialogFormVisible = true;
  82. },
  83. getBaseInfo() {
  84. var _self = this;
  85. request.get(`/att/jskejian/water/base/${_self.currentObjectId}`).then(res => {
  86. if (res.data) {
  87. _self.formObj = res.data;
  88. } else {
  89. _self.formObj = {};
  90. }
  91. }).catch(err => {
  92. console.log(err);
  93. });
  94. }
  95. },
  96. filters: {}
  97. };
  98. </script>
  99. <style scoped>
  100. @import "../../../assets/css/popup.css";
  101. </style>