| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687 |
- <template>
- <div class="popupContentClass" :style="{'height':testHeight1+'px'}">
- <el-row class="rowClass">
- <el-col :span="4" class="nameClass">行政区划:</el-col>
- <el-col :span="8" class="valueClass" :style="{'height':testHeight+'px'}">{{formObj.adName}}</el-col>
- <el-col :span="4" class="nameClass">编码:</el-col>
- <el-col :span="8" class="valueClass" :style="{'height':testHeight+'px'}">{{formObj.adCode}}</el-col>
- </el-row>
- <el-row class="rowClass">
- <el-col :span="4" class="nameClass">经度:</el-col>
- <el-col :span="8" class="valueClass" :style="{'height':testHeight+'px'}">{{formObj.lgtd}}</el-col>
- <el-col :span="4" class="nameClass">纬度:</el-col>
- <el-col :span="8" class="valueClass" :style="{'height':testHeight+'px'}">{{formObj.lttd}}</el-col>
- </el-row>
- <el-row class="rowClass">
- <el-col :span="4" class="nameClass">全称:</el-col>
- <el-col :span="20" class="valueClass" :style="{'height':testHeight+'px'}">{{formObj.adFullName}}</el-col>
- </el-row>
- </div>
- </template>
- <script>
- import request from "@util/gw_ajax_request.js"
- export default {
- components: {
- },
- props: ["currentJysglAdCode"],
- data() {
- return {
- testHeight:(window.innerHeight * 0.5 - 50) / 6,
- testHeight1:window.innerHeight * 0.5,
- dialogFormVisible:false,
- formObj: {},
- formLabelWidth: "160px",
- loading: true,
- currentJysglAdCode1: "",
- };
- },
- computed: {
- recPersId() {
- return localStorage.getItem("userid")
- ? localStorage.getItem("userid")
- : "";
- }
- },
- mounted() {
- this.dialogFormVisible = true;
- this.currentJysglAdCode1 = this.currentJysglAdCode;
- this.getBaseInfo();
- },
- watch: {
- currentJysglAdCode(n, o) {
- this.currentJysglAdCode1 = this.currentJysglAdCode;
- this.getBaseInfo();
- }
- },
- methods: {
- showDialog(){
- this.dialogFormVisible = true;
- },
- getBaseInfo() {
- var _self = this;
- if(_self.currentJysglAdCode1 == ""){
- return
- }
- request.get(`/dc/insp/base/getCityByCode?code=${_self.currentJysglAdCode1}`).then(res => {
- if (res.data) {
- _self.formObj = res.data;
- } else {
- _self.formObj = {};
- }
- }).catch(err =>{
- console.log(err);
- });
- }
- },
- filters:{
-
- }
- };
- </script>
- <style scoped>
- @import "../../../assets/css/popup.css";
- </style>
|