bae9ed58f26d984341750a442d9c5f15aec0dff9.svn-base 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. <template>
  2. <div class="popupContentClass" :style="{'height':testHeight1+'px'}">
  3. <el-row class="rowClass">
  4. <el-col :span="4" class="nameClass">取水单位名称:</el-col>
  5. <el-col :span="8" class="valueClass" :style="{'height':testHeight+'px'}">{{formObj.wiuName}}</el-col>
  6. <el-col :span="4" class="nameClass">行政区划:</el-col>
  7. <el-col :span="8" class="valueClass" :style="{'height':testHeight+'px'}">{{formObj.adName}}</el-col>
  8. </el-row>
  9. <el-row class="rowClass">
  10. <el-col :span="4" class="nameClass">单位地址:</el-col>
  11. <el-col :span="8" class="valueClass" :style="{'height':testHeight+'px'}">{{formObj.wiuLoc}}
  12. </el-col>
  13. <el-col :span="4" class="nameClass">取水许可证号:</el-col>
  14. <el-col :span="8" class="valueClass" :style="{'height':testHeight+'px'}">{{formObj.watLicCode}}</el-col>
  15. </el-row>
  16. <el-row class="rowClass">
  17. <el-col :span="4" class="nameClass">经度:</el-col>
  18. <el-col :span="8" class="valueClass" :style="{'height':testHeight+'px'}">{{formObj.gdX}}</el-col>
  19. <el-col :span="4" class="nameClass">纬度:</el-col>
  20. <el-col :span="8" class="valueClass" :style="{'height':testHeight+'px'}">{{formObj.gdY}}</el-col>
  21. </el-row>
  22. <el-row class="rowClass">
  23. <el-col :span="4" class="nameClass">取水单位联系人:</el-col>
  24. <el-col :span="8" class="valueClass" :style="{'height':testHeight+'px'}">{{formObj.wiuContact}}</el-col>
  25. <el-col :span="4" class="nameClass">联系方式:</el-col>
  26. <el-col :span="8" class="valueClass" :style="{'height':testHeight+'px'}">{{formObj.wiuContactTel}}</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.apprUnit}}</el-col>
  31. <el-col :span="4" class="nameClass">部门联系人:</el-col>
  32. <el-col :span="8" class="valueClass" :style="{'height':testHeight+'px'}">{{formObj.apprContact}}</el-col>
  33. </el-row>
  34. <el-row class="rowClass">
  35. <el-col :span="6" class="nameClass">联系方式:</el-col>
  36. <el-col :span="6" class="valueClass" :style="{'height':testHeight+'px'}">{{formObj.apprContactTel}}</el-col>
  37. </el-row>
  38. </div>
  39. </template>
  40. <script>
  41. import request from "@util/gw_ajax_request.js"
  42. export default {
  43. components: {
  44. },
  45. props: ["currentResCode","currentObjectRgstrId"],
  46. data() {
  47. return {
  48. testHeight:(window.innerHeight * 0.5 - 30) / 6,
  49. testHeight1:window.innerHeight * 0.5,
  50. dialogFormVisible:false,
  51. formObj: {},
  52. formLabelWidth: "160px",
  53. loading: true,
  54. currentObjectRgstrId1: "",
  55. };
  56. },
  57. computed: {
  58. recPersId() {
  59. return localStorage.getItem("userid")
  60. ? localStorage.getItem("userid")
  61. : "";
  62. }
  63. },
  64. mounted() {
  65. this.dialogFormVisible = true;
  66. this.currentObjectRgstrId1 = this.currentObjectRgstrId;
  67. this.getBaseInfo();
  68. },
  69. watch: {
  70. currentObjectRgstrId(n, o) {
  71. this.currentObjectRgstrId1 = this.currentObjectRgstrId;
  72. this.getBaseInfo();
  73. }
  74. },
  75. methods: {
  76. showDialog(){
  77. this.dialogFormVisible = true;
  78. },
  79. getBaseInfo() {
  80. var _self = this;
  81. if(_self.currentObjectRgstrId == ""){
  82. return
  83. }
  84. request.get(`/bis/insp/wiu/rgstr/${_self.currentObjectRgstrId}`).then(res => {
  85. if (res.data) {
  86. _self.formObj = res.data;
  87. _self.formObj.gdX = _self.formObj.gdX ? _self.formObj.gdX : _self.formObj.wiuLong;
  88. _self.formObj.gdY = _self.formObj.gdY ? _self.formObj.gdY : _self.formObj.wiuLat;
  89. } else {
  90. _self.formObj = {};
  91. }
  92. }).catch(err =>{
  93. console.log(err);
  94. });
  95. }
  96. }
  97. };
  98. </script>
  99. <style scoped>
  100. @import "../../../assets/css/popup.css";
  101. </style>