| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191 |
- <template>
- <div id="nysydJichuxinxiContainer">
- <el-dialog :title="formObj.waterSourceNm+'基础信息'" :visible.sync="dialogFormVisible" width="45%">
- <el-container>
- <el-main style="border:1px solid #d5d5ff;margin-left:5px;padding:0px;overflow-x: hidden;">
- <p style="font-weight:bolder;background-color:#d5d5ff;padding:3px;">详情</p>
- <el-row :gutter="5" style="padding:5px;">
- <el-col :span="8" style="color:#409EFF;text-align:left;font-weight:normal;">供水工程名称:</el-col>
- <el-col :span="4" style="text-align:left;">{{formObj.cwsCode}}</el-col>
- <el-col :span="8" style="color:#409EFF;text-align:left;font-weight:normal;">设计取水规模(m³/d):</el-col>
- <el-col :span="4" style="text-align:left;">{{formObj.planInsAmount}}</el-col>
- </el-row>
- <el-row :gutter="5" style="padding:5px;">
- <el-col :span="8" style="color:#409EFF;text-align:left;font-weight:normal;">周边是否有污染源:</el-col>
- <el-col :span="4" style="text-align:left;">{{formObj.isPollSource}}</el-col>
- <el-col :span="8" style="color:#409EFF;text-align:left;font-weight:normal;">水源类型:</el-col>
- <el-col :span="4" style="text-align:left;">{{formatSourceType(formObj.sourceType)}}</el-col>
- </el-row>
- <el-row :gutter="5" style="padding:5px;">
- <el-col :span="8" style="color:#409EFF;text-align:left;font-weight:normal;">水源水质评价:</el-col>
- <el-col :span="4" style="text-align:left;">{{formatWaterQuality(formObj.waterQuality)}}</el-col>
- <el-col :span="8" style="color:#409EFF;text-align:left;font-weight:normal;">是否划定水源保护区或保护范围:</el-col>
- <el-col :span="4" style="text-align:left;">{{formatBoo(formObj.isProtectArea)}}</el-col>
- </el-row>
- <el-row :gutter="5" style="padding:5px;">
- <el-col :span="8" style="color:#409EFF;text-align:left;font-weight:normal;">是否有水源保护标志:</el-col>
- <el-col :span="4" style="text-align:left;">{{formatBoo(formObj.isProtectMark)}}</el-col>
- <el-col :span="8" style="color:#409EFF;text-align:left;font-weight:normal;">是否有应急备用水源:</el-col>
- <el-col :span="4" style="text-align:left;">{{formatBoo(formObj.isSpare)}}</el-col>
- </el-row>
- </el-main>
- </el-container>
- </el-dialog>
- </div>
- </template>
- <script>
- import request from "../../../utils/gw_ajax_request.js";
- import { getSydBaseInfo } from "../../../api/zhxxAPI.js";
- import { dateFormat } from "../../../utils/gw_date.js";
- export default {
- components: {
- },
- props: ["currentResCode"],
- data() {
- return {
- dialogFormVisible:false,
- formObj: {
- rsName: "",
- rsAdmName: "",
- rsLoc: "",
- intm: "",
- engScal: "",
- totCap: "",
- damMaxHigh: "",
- damTypeStr: "",
- regCode: "",
- rsvrLong: "",
- rsvrLat: "",
- resCreateTime: ""
- },
- formLabelWidth: "160px",
- loading: true,
- currentResCode1: "",
- };
- },
- computed: {
- recPersId() {
- return localStorage.getItem("userid")
- ? localStorage.getItem("userid")
- : "";
- }
- },
- mounted() {
- this.dialogFormVisible = true;
- this.currentResCode1 = this.currentResCode;
- this.getBaseInfo();
- },
- watch: {
- currentResCode(n, o) {
- this.currentResCode1 = this.currentResCode;
- this.getBaseInfo();
- }
- },
- methods: {
- showDialog(){
- this.dialogFormVisible = true;
- },
- getBaseInfo() {
- var _self = this;
- if(_self.currentResCode1 == ""){
- return
- }
- getSydBaseInfo(_self.currentResCode1).then(
- res => {
- if (res.data) {
- _self.formObj = res.data;
- // _self.value1 = dateFormat(res.data.compDate, "yyyy-MM-dd");
- } else {
- _self.formObj = {};
- }
- },
- err => {}
- );
- },
- formatRadio(val) {
- if (val == "1") {
- return "是";
- } else if (val == "0") {
- return "否";
- } else {
- return val;
- }
- },
- formatEngScal(val) {
- switch (val) {
- case "1":
- val = "大(1)型";
- break;
- case "2":
- val = "大(2)型";
- break;
- case "3":
- val = "中型";
- break;
- case "4":
- val = "小(1)型";
- break;
- case "5":
- val = "小(2)型";
- break;
- case "9":
- val = "其他";
- break;
- }
- return val;
- },
- formatSourceType(value) {
- switch (value) {
- case "A":
- value = "A-地表水";
- break;
- case "B":
- value = "B-地下水";
- break;
- case "C":
- value = "C-混合";
- break;
- }
- return value;
- },
- formatWaterQuality(value) {
- switch (value) {
- case "A":
- value = "A-Ⅰ至Ⅲ类";
- break;
- case "B":
- value = "B-Ⅳ类及以下";
- break;
- }
- return value;
- },
- formatBoo(value) {
- return value == "1" ? "是" : "否";
- },
- }
- };
- </script>
- <style>
- #dcdxHeader {
- padding: 15px 20px;
- }
- #dxdcFooter {
- text-align: center;
- }
- #dxdcAside {
- border: 1px solid #d5d5ff;
- }
- .el-dialog__wrapper .el-treeWhite {
- /* max-height: 260px !important; */
- }
- .nysydJichuxinxiContainer .el-dialog__body{
- padding-top: 0px;
- padding-right: 20px;
- padding-bottom: 20px;
- padding-left: 20px;
- }
- </style>
|