8c1acd422d08b3c11b8e38a3cc423c5fdfe64aae.svn-base 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  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.stnm}}</el-col>
  6. <el-col :span="4" class="nameClass">测站编码:</el-col>
  7. <el-col :span="8" class="valueClass" :style="{'height':testHeight+'px'}">{{formObj.stcd}}</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'}">{{dxsSttpFormat(formObj.sttp)}}</el-col>
  12. <el-col :span="4" class="nameClass">监测井类型:</el-col>
  13. <el-col :span="8" class="valueClass" :style="{'height':testHeight+'px'}">{{dxsWsttpFormat(formObj.wsttp)}}</el-col>
  14. </el-row>
  15. <el-row class="rowClass">
  16. <el-col :span="4" class="nameClass">管理单位:</el-col>
  17. <el-col :span="8" class="valueClass" :style="{'height':testHeight+'px'}">{{formObj.mnun}}</el-col>
  18. <el-col :span="4" class="nameClass">所属流域机构:</el-col>
  19. <el-col :span="8" class="valueClass" :style="{'height':testHeight+'px'}">{{formObj.rvnm}}</el-col>
  20. </el-row>
  21. <el-row class="rowClass">
  22. <el-col :span="4" class="nameClass">经度:</el-col>
  23. <el-col :span="8" class="valueClass" :style="{'height':testHeight+'px'}">{{formObj.lgtdPc}}</el-col>
  24. <el-col :span="4" class="nameClass">纬度:</el-col>
  25. <el-col :span="8" class="valueClass" :style="{'height':testHeight+'px'}">{{formObj.lttdPc}}</el-col>
  26. </el-row>
  27. </div>
  28. </template>
  29. <script>
  30. import request from "../../../../../utils/gw_ajax_request.js";
  31. import { getDxsBaseInfo } from "../../../../../api/zhxxAPI.js";
  32. import { dateFormat } from "../../../../../utils/gw_date.js";
  33. export default {
  34. components: {
  35. },
  36. props: ["currentDxsCode"],
  37. data() {
  38. return {
  39. testHeight:(window.innerHeight * 0.5 - 114) / 4,
  40. testHeight1:window.innerHeight * 0.5,
  41. dialogFormVisible:false,
  42. formObj: {
  43. rsName: "",
  44. rsAdmName: "",
  45. rsLoc: "",
  46. intm: "",
  47. engScal: "",
  48. totCap: "",
  49. damMaxHigh: "",
  50. damTypeStr: "",
  51. regCode: "",
  52. rsvrLong: "",
  53. rsvrLat: "",
  54. resCreateTime: ""
  55. },
  56. loading: true,
  57. currentDxsCode1: "",
  58. };
  59. },
  60. computed: {
  61. recPersId() {
  62. return localStorage.getItem("userid")? localStorage.getItem("userid"): "";
  63. }
  64. },
  65. mounted() {
  66. this.dialogFormVisible = true;
  67. this.currentDxsCode1 = this.currentDxsCode;
  68. this.getBaseInfo();
  69. },
  70. watch: {
  71. currentDxsCode(n, o) {
  72. this.currentDxsCode1 = this.currentDxsCode;
  73. this.getBaseInfo();
  74. }
  75. },
  76. methods: {
  77. showDialog(){
  78. this.dialogFormVisible = true;
  79. },
  80. getBaseInfo() {
  81. var _self = this;
  82. if(_self.currentDxsCode1 == ""){
  83. return
  84. }
  85. getDxsBaseInfo(_self.currentDxsCode1).then(res => {
  86. if (res.data) {
  87. _self.formObj = res.data;
  88. } else {
  89. _self.formObj = {};
  90. }
  91. },err => {});
  92. },
  93. dxsSttpFormat(sttp) {//地下水监测站类型
  94. return sttp == 'NATIONAL'? "国家级监测站":
  95. sttp == 'PROVAUTO'? "省级自动监测站":
  96. sttp == 'PROVHAND'? "省级手动监测站":
  97. sttp == 'PRO'? "省级监测站": '';
  98. },
  99. dxsWsttpFormat(sttp) {//地下水监测井类型
  100. return sttp == '0'? "专用井":
  101. sttp == '1'? "生产井":
  102. sttp == '2'? "民用井":
  103. sttp == '3'? "勘探井":
  104. sttp == '4'? "其它": '';
  105. }
  106. }
  107. };
  108. </script>
  109. <style>
  110. @import "../../../assets/css/popup.css";
  111. </style>