| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127 |
- <template>
- <div id="jichuxinxiContainer172">
- <el-dialog :title="formObj.nm+'基础信息'" :visible.sync="dialogFormVisible" :append-to-body="true" width="45%" height="500">
- <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="6" style="color:#409EFF;text-align:left;font-weight:normal;"> 工程名称:</el-col>
- <el-col :span="6" style="text-align:left;">{{formObj.nm}}</el-col>
- <el-col :span="6" style="color:#409EFF;text-align:left;font-weight:normal;"> 开工年份:</el-col>
- <el-col :span="6" style="text-align:left;">{{formObj.stwktm}}</el-col>
- </el-row>
- <el-row :gutter="5" style="padding:5px;">
- <el-col :span="6" style="color:#409EFF;text-align:left;font-weight:normal;"> 概算批复总投资(亿元):</el-col>
- <el-col :span="6" style="text-align:left;">{{formObj.estapp}}</el-col>
- <el-col :span="6" style="color:#409EFF;text-align:left;font-weight:normal;">计划工期(月):</el-col>
- <el-col :span="6" style="text-align:left;">{{formObj.plantm}}</el-col>
- </el-row>
- <el-row :gutter="5" style="padding:5px;">
- <el-col :span="6" style="color:#409EFF;text-align:left;font-weight:normal;">经度:</el-col>
- <el-col :span="6" style="text-align:left;">{{formObj.lgtd}}</el-col>
- <el-col :span="6" style="color:#409EFF;text-align:left;font-weight:normal;">纬度:</el-col>
- <el-col :span="6" style="text-align:left;">{{formObj.lttd}}</el-col>
- </el-row>
- </el-main>
- </el-container>
- </el-dialog>
- </div>
- </template>
- <script>
- import request from "../../../utils/gw_ajax_request.js";
- import { get172BaseInfo } 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
- }
- get172BaseInfo(_self.currentResCode1).then(
- res => {
- if (res.data) {
- _self.formObj = res.data;
- } else {
- _self.formObj = {};
- }
- },
- err => {}
- );
- }
- }
- };
- </script>
- <style>
- #dcdxHeader {
- padding: 15px 20px;
- }
- #dxdcFooter {
- text-align: center;
- }
- #dxdcAside {
- border: 1px solid #d5d5ff;
- }
- .el-dialog__wrapper .el-treeWhite {
- /* max-height: 260px !important; */
- }
- .jichuxinxiContainer172 .el-dialog__body{
- padding-top: 0px;
- padding-right: 20px;
- padding-bottom: 20px;
- padding-left: 20px;
- }
- </style>
|