e82fd98db95f313b8b77df9e0ac648de2bb5d589.svn-base 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  1. <template>
  2. <div id="nysydJichuxinxiContainer">
  3. <el-dialog :title="formObj.waterSourceNm+'基础信息'" :visible.sync="dialogFormVisible" width="45%">
  4. <el-container>
  5. <el-main style="border:1px solid #d5d5ff;margin-left:5px;padding:0px;overflow-x: hidden;">
  6. <p style="font-weight:bolder;background-color:#d5d5ff;padding:3px;">详情</p>
  7. <el-row :gutter="5" style="padding:5px;">
  8. <el-col :span="8" style="color:#409EFF;text-align:left;font-weight:normal;">供水工程名称:</el-col>
  9. <el-col :span="4" style="text-align:left;">{{formObj.cwsCode}}</el-col>
  10. <el-col :span="8" style="color:#409EFF;text-align:left;font-weight:normal;">设计取水规模(m³/d):</el-col>
  11. <el-col :span="4" style="text-align:left;">{{formObj.planInsAmount}}</el-col>
  12. </el-row>
  13. <el-row :gutter="5" style="padding:5px;">
  14. <el-col :span="8" style="color:#409EFF;text-align:left;font-weight:normal;">周边是否有污染源:</el-col>
  15. <el-col :span="4" style="text-align:left;">{{formObj.isPollSource}}</el-col>
  16. <el-col :span="8" style="color:#409EFF;text-align:left;font-weight:normal;">水源类型:</el-col>
  17. <el-col :span="4" style="text-align:left;">{{formatSourceType(formObj.sourceType)}}</el-col>
  18. </el-row>
  19. <el-row :gutter="5" style="padding:5px;">
  20. <el-col :span="8" style="color:#409EFF;text-align:left;font-weight:normal;">水源水质评价:</el-col>
  21. <el-col :span="4" style="text-align:left;">{{formatWaterQuality(formObj.waterQuality)}}</el-col>
  22. <el-col :span="8" style="color:#409EFF;text-align:left;font-weight:normal;">是否划定水源保护区或保护范围:</el-col>
  23. <el-col :span="4" style="text-align:left;">{{formatBoo(formObj.isProtectArea)}}</el-col>
  24. </el-row>
  25. <el-row :gutter="5" style="padding:5px;">
  26. <el-col :span="8" style="color:#409EFF;text-align:left;font-weight:normal;">是否有水源保护标志:</el-col>
  27. <el-col :span="4" style="text-align:left;">{{formatBoo(formObj.isProtectMark)}}</el-col>
  28. <el-col :span="8" style="color:#409EFF;text-align:left;font-weight:normal;">是否有应急备用水源:</el-col>
  29. <el-col :span="4" style="text-align:left;">{{formatBoo(formObj.isSpare)}}</el-col>
  30. </el-row>
  31. </el-main>
  32. </el-container>
  33. </el-dialog>
  34. </div>
  35. </template>
  36. <script>
  37. import request from "../../../utils/gw_ajax_request.js";
  38. import { getSydBaseInfo } from "../../../api/zhxxAPI.js";
  39. import { dateFormat } from "../../../utils/gw_date.js";
  40. export default {
  41. components: {
  42. },
  43. props: ["currentResCode"],
  44. data() {
  45. return {
  46. dialogFormVisible:false,
  47. formObj: {
  48. rsName: "",
  49. rsAdmName: "",
  50. rsLoc: "",
  51. intm: "",
  52. engScal: "",
  53. totCap: "",
  54. damMaxHigh: "",
  55. damTypeStr: "",
  56. regCode: "",
  57. rsvrLong: "",
  58. rsvrLat: "",
  59. resCreateTime: ""
  60. },
  61. formLabelWidth: "160px",
  62. loading: true,
  63. currentResCode1: "",
  64. };
  65. },
  66. computed: {
  67. recPersId() {
  68. return localStorage.getItem("userid")
  69. ? localStorage.getItem("userid")
  70. : "";
  71. }
  72. },
  73. mounted() {
  74. this.dialogFormVisible = true;
  75. this.currentResCode1 = this.currentResCode;
  76. this.getBaseInfo();
  77. },
  78. watch: {
  79. currentResCode(n, o) {
  80. this.currentResCode1 = this.currentResCode;
  81. this.getBaseInfo();
  82. }
  83. },
  84. methods: {
  85. showDialog(){
  86. this.dialogFormVisible = true;
  87. },
  88. getBaseInfo() {
  89. var _self = this;
  90. if(_self.currentResCode1 == ""){
  91. return
  92. }
  93. getSydBaseInfo(_self.currentResCode1).then(
  94. res => {
  95. if (res.data) {
  96. _self.formObj = res.data;
  97. // _self.value1 = dateFormat(res.data.compDate, "yyyy-MM-dd");
  98. } else {
  99. _self.formObj = {};
  100. }
  101. },
  102. err => {}
  103. );
  104. },
  105. formatRadio(val) {
  106. if (val == "1") {
  107. return "是";
  108. } else if (val == "0") {
  109. return "否";
  110. } else {
  111. return val;
  112. }
  113. },
  114. formatEngScal(val) {
  115. switch (val) {
  116. case "1":
  117. val = "大(1)型";
  118. break;
  119. case "2":
  120. val = "大(2)型";
  121. break;
  122. case "3":
  123. val = "中型";
  124. break;
  125. case "4":
  126. val = "小(1)型";
  127. break;
  128. case "5":
  129. val = "小(2)型";
  130. break;
  131. case "9":
  132. val = "其他";
  133. break;
  134. }
  135. return val;
  136. },
  137. formatSourceType(value) {
  138. switch (value) {
  139. case "A":
  140. value = "A-地表水";
  141. break;
  142. case "B":
  143. value = "B-地下水";
  144. break;
  145. case "C":
  146. value = "C-混合";
  147. break;
  148. }
  149. return value;
  150. },
  151. formatWaterQuality(value) {
  152. switch (value) {
  153. case "A":
  154. value = "A-Ⅰ至Ⅲ类";
  155. break;
  156. case "B":
  157. value = "B-Ⅳ类及以下";
  158. break;
  159. }
  160. return value;
  161. },
  162. formatBoo(value) {
  163. return value == "1" ? "是" : "否";
  164. },
  165. }
  166. };
  167. </script>
  168. <style>
  169. #dcdxHeader {
  170. padding: 15px 20px;
  171. }
  172. #dxdcFooter {
  173. text-align: center;
  174. }
  175. #dxdcAside {
  176. border: 1px solid #d5d5ff;
  177. }
  178. .el-dialog__wrapper .el-treeWhite {
  179. /* max-height: 260px !important; */
  180. }
  181. .nysydJichuxinxiContainer .el-dialog__body{
  182. padding-top: 0px;
  183. padding-right: 20px;
  184. padding-bottom: 20px;
  185. padding-left: 20px;
  186. }
  187. </style>