08cc578dacef897d1a94da8d2b3a5ecf6bd9aedb.svn-base 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  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 == '1' ? '乱占' :
  26. formObj.pblmType == '2' ? '乱采' : formObj.pblmType == '3' ? '乱堆' : formObj.pblmType == '4' ? '乱建' :
  27. formObj.pblmType == '5' ? '其他' : '' }}
  28. </el-col>
  29. </el-row>
  30. <el-row class="rowClass">
  31. <el-col :span="6" class="nameClass">问题整治情况:</el-col>
  32. <el-col :span="6" class="valueClass" :style="{'height':testHeight+'px'}">{{formObj.rectConc == '1' ? '已销号' :
  33. formObj.rectConc == '2' ? '未销号' : ''}}
  34. </el-col>
  35. <el-col :span="6" class="nameClass"> 河流、河段(湖泊)名称:</el-col>
  36. <el-col :span="6" class="valueClass" :style="{'height':testHeight+'px'}">{{formObj.rvReaLkName}}</el-col>
  37. </el-row>
  38. <el-row class="rowClass">
  39. <el-col :span="6" class="nameClass">县级河长姓名及职务:</el-col>
  40. <el-col :span="6" class="valueClass" :style="{'height':testHeight+'px'}">{{formObj.contRvonNameDuty}}
  41. </el-col>
  42. <el-col :span="6" class="nameClass">乡级县级河长姓名及职务:</el-col>
  43. <el-col :span="6" class="valueClass" :style="{'height':testHeight+'px'}">{{formObj.townRvonNameDuty}}
  44. </el-col>
  45. </el-row>
  46. <el-row class="rowClass">
  47. <el-col :span="6" class="nameClass">经度:</el-col>
  48. <el-col :span="6" class="valueClass" :style="{'height':testHeight+'px'}">{{formObj.centerX}}</el-col>
  49. <el-col :span="6" class="nameClass">纬度:</el-col>
  50. <el-col :span="6" class="valueClass" :style="{'height':testHeight+'px'}">{{formObj.centerY}}</el-col>
  51. </el-row>
  52. <el-row class="rowClass">
  53. <el-col :span="6" class="nameClass">村级县级河长姓名及职务:</el-col>
  54. <el-col :span="6" class="valueClass" :style="{'height':testHeight+'px'}">{{formObj.vilgRvonNameDuty}}
  55. </el-col>
  56. </el-row>
  57. </div>
  58. </template>
  59. <script>
  60. import request from "@util/gw_ajax_request.js"
  61. export default {
  62. components: {},
  63. props: ["currentObjectId"],
  64. data() {
  65. return {
  66. testHeight: (window.innerHeight * 0.5 - 50) / 6,
  67. testHeight1: window.innerHeight * 0.5,
  68. dialogFormVisible: false,
  69. formObj: {},
  70. formLabelWidth: "160px",
  71. loading: true,
  72. };
  73. },
  74. computed: {
  75. recPersId() {
  76. return localStorage.getItem("userid")
  77. ? localStorage.getItem("userid")
  78. : "";
  79. }
  80. },
  81. mounted() {
  82. this.dialogFormVisible = true;
  83. this.getBaseInfo();
  84. },
  85. watch: {
  86. currentObjectId(n, o) {
  87. this.getBaseInfo();
  88. }
  89. },
  90. methods: {
  91. showDialog() {
  92. this.dialogFormVisible = true;
  93. },
  94. getBaseInfo() {
  95. var _self = this;
  96. var id = _self.currentObjectId;
  97. request.get(`/att/jskejian/flkdis/base/${id}`).then(res => {
  98. if (res.data) {
  99. _self.formObj = res.data;
  100. } else {
  101. _self.formObj = {};
  102. }
  103. }).catch(err => {
  104. console.log(err);
  105. });
  106. }
  107. },
  108. filters: {}
  109. };
  110. </script>
  111. <style scoped>
  112. @import "../../../assets/css/popup.css";
  113. </style>