b5101a9ebdbe97d714eeb6cb9ac55c7c51df00f9.svn-base 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <template>
  2. <div class="popupContentClass" :style="{'height':testHeight1+'px'}">
  3. <el-row class="rowClass">
  4. <el-col :span="6" class="nameClass"> 工程名称:</el-col>
  5. <el-col :span="6" class="valueClass" :style="{'height':testHeight+'px'}">{{formObj.nm}}</el-col>
  6. <el-col :span="6" class="nameClass"> 开工年份:</el-col>
  7. <el-col :span="6" class="valueClass" :style="{'height':testHeight+'px'}">{{formObj.stwktm}}</el-col>
  8. </el-row>
  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.estapp}}</el-col>
  12. <el-col :span="6" class="nameClass">计划工期(月):</el-col>
  13. <el-col :span="6" class="valueClass" :style="{'height':testHeight+'px'}">{{formObj.plantm}}</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.lgtd}}</el-col>
  18. <el-col :span="6" class="nameClass">纬度:</el-col>
  19. <el-col :span="6" class="valueClass" :style="{'height':testHeight+'px'}">{{formObj.lttd}}</el-col>
  20. </el-row>
  21. </div>
  22. </template>
  23. <script>
  24. import request from "../../../../../utils/gw_ajax_request.js";
  25. import { get172BaseInfo } from "../../../../../api/zhxxAPI.js";
  26. import { dateFormat } from "../../../../../utils/gw_date.js";
  27. export default {
  28. components: {
  29. },
  30. props: ["currentResCode"],
  31. data() {
  32. return {
  33. testHeight:(window.innerHeight * 0.5 - 114) / 3,
  34. testHeight1:window.innerHeight * 0.5,
  35. dialogFormVisible:false,
  36. formObj: {
  37. rsName: "",
  38. rsAdmName: "",
  39. rsLoc: "",
  40. intm: "",
  41. engScal: "",
  42. totCap: "",
  43. damMaxHigh: "",
  44. damTypeStr: "",
  45. regCode: "",
  46. rsvrLong: "",
  47. rsvrLat: "",
  48. resCreateTime: ""
  49. },
  50. formLabelWidth: "160px",
  51. loading: true,
  52. currentResCode1: "",
  53. };
  54. },
  55. computed: {
  56. recPersId() {
  57. return localStorage.getItem("userid")? localStorage.getItem("userid"): "";
  58. }
  59. },
  60. mounted() {
  61. this.dialogFormVisible = true;
  62. this.currentResCode1 = this.currentResCode;
  63. this.getBaseInfo();
  64. },
  65. watch: {
  66. currentResCode(n, o) {
  67. this.currentResCode1 = this.currentResCode;
  68. this.getBaseInfo();
  69. }
  70. },
  71. methods: {
  72. showDialog(){
  73. this.dialogFormVisible = true;
  74. },
  75. getBaseInfo() {
  76. var _self = this;
  77. if(_self.currentResCode1 == ""){
  78. return
  79. }
  80. get172BaseInfo(_self.currentResCode1).then(res => {
  81. if (res.data) {
  82. _self.formObj = res.data;
  83. } else {
  84. _self.formObj = {};
  85. }
  86. },err => {});
  87. }
  88. }
  89. };
  90. </script>
  91. <style>
  92. @import "../../../assets/css/popup.css";
  93. </style>