瀏覽代碼

修改定位信息

sugb 10 月之前
父節點
當前提交
6ba5d29c29
共有 2 個文件被更改,包括 293 次插入318 次删除
  1. 76 88
      src/views/map/components/Map.vue
  2. 217 230
      src/views/sydwqcsb/QcSsgqzysytdqkList.vue

+ 76 - 88
src/views/map/components/Map.vue

@@ -1,19 +1,16 @@
 <template>
   <div class="main">
     <div id="Mapcontainer"></div><!-- 地图容器 -->
-
     <!-- <input type="text" v-model="keyword" class="keywordInput" @change="keywordsSearch" placeholder="输入关键字">
      <div id="panel" v-show="queryReusltIsshow"></div> 关键字查询结果展示框 -->
   </div>
-
 </template>
 
 <script>
 let map = undefined;
 let placeSearch = undefined;
- // import BMap from 'BMap'
+// import BMap from 'BMap'
 import AMapLoader from '@amap/amap-jsapi-loader';
-
 // window._AMapSecurityConfig = {
 //   // 安全密钥
 //   securityJsCode: "d6a497a6074277b5f144512f74e36d16",
@@ -46,95 +43,88 @@ export default {
 
   methods: {
     //初始化地图
-    // initMap() {
-    //   var that = this
-    //   AMapLoader.load({
-    //     key: "50a17f18b751052cc34771f93b897846", // 申请好的Web端开发者Key,首次调用 load 时必填
-    //     version: "2.0", // 指定要加载的 JSAPI 的版本,缺省时默认为 1.4.15
-    //     plugins: ['AMap.Geolocation,AMap.PlaceSearch'], // 需要使用的的插件列表,如比例尺'AMap.Scale'等
-    //   }).then((AMap) => {
-    //     // AMap = AMap
-    //     map = new AMap.Map("Mapcontainer", { //设置地图容器id
-    //       viewMode: "2D", //是否为3D地图模式
-    //       zoom: 16, //初始化地图级别
-    //     });
-    //     //地址逆解析插件
-    //     AMap.plugin("AMap.Geocoder", function () {
-    //       that.geoCoder = new AMap.Geocoder({
-    //         city: "010", //城市设为北京,默认:“全国”
-    //         radius: 1000, //范围,默认:500
-    //       });
-    //     })
-    //
-    //
-    //     /* // 搜索提示插件
-    //      this.AutoComplete = new AMap.AutoComplete({ city: "全国" });*/
-    //     map.on('click', this.MapClick); //绑定单机事件
-    //
-    //     if (this.lng && this.lat) {
-    //       let marker = new AMap.Marker({
-    //         position: new AMap.LngLat(this.lng, this.lat),
-    //         icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-default.png',
-    //         offset: new AMap.Pixel(-13, -30)
-    //       });
-    //       map.setCenter([this.lng, this.lat]);
-    //       map.add(marker)
-    //     } else {
-    //       this.getLocation(map)
-    //     }
-    //
-    //   }).catch(e => {
-    //     console.log(e);
-    //   })
-    // },
+    initMap() {
+      var that = this
+      AMapLoader.load({
+        key: "50a17f18b751052cc34771f93b897846", // 申请好的Web端开发者Key,首次调用 load 时必填
+        version: "2.0", // 指定要加载的 JSAPI 的版本,缺省时默认为 1.4.15
+        plugins: ['AMap.Geolocation,AMap.PlaceSearch'], // 需要使用的的插件列表,如比例尺'AMap.Scale'等
+      }).then((AMap) => {
+        // AMap = AMap
+        map = new AMap.Map("Mapcontainer", { //设置地图容器id
+          viewMode: "2D", //是否为3D地图模式
+          zoom: 16, //初始化地图级别
+        });
+        //地址逆解析插件
+        AMap.plugin("AMap.Geocoder", function () {
+          that.geoCoder = new AMap.Geocoder({
+            city: "010", //城市设为北京,默认:“全国”
+            radius: 1000, //范围,默认:500
+          });
+        })
+        /* // 搜索提示插件
+         this.AutoComplete = new AMap.AutoComplete({ city: "全国" });*/
+        map.on('click', this.MapClick); //绑定单机事件
+
+        console.log("🚀 ~ initMap ~ lat:", this.lat+ "---"+this.lng)
+        if (this.lng && this.lat) {
+          let marker = new AMap.Marker({
+            position: new AMap.LngLat(this.lng, this.lat),
+            icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-default.png',
+            offset: new AMap.Pixel(-13, -30)
+          });
+          map.setCenter([this.lng, this.lat]);
+          map.add(marker)
+        } else {
+          this.getLocation(map)
+        }
 
+      }).catch(e => {
+        console.log(e);
+      })
+    },
 
-    // 关键字搜索功能r
-    // keywordsSearch() {
-    //   if (!this.keyword) {
-    //     this.queryReusltIsshow = false
-    //   }
-    //   let self = this
-    //   map.plugin('AMap.PlaceSearch', function () {
-    //     placeSearch = new AMap.PlaceSearch({
-    //       pageSize: 8, // 单页显示结果条数
-    //       pageIndex: 1, // 页码
-    //       city: "全国", // 兴趣点城市
-    //       citylimit: false, //是否强制限制在设置的城市内搜索
-    //       type: "汽车服务|汽车销售|汽车维修|摩托车服务|餐饮服务|购物服务|生活服务|体育休闲服务|医疗保健服务|住宿服务|风景名胜|商务住宅|政府机构及社会团体|科教文化服务|交通设施服务|金融保险服务|公司企业|道路附属设施|地名地址信息|公共设施",
-    //       map: map, // 展现结果的地图实例
-    //       panel: "panel", // 结果列表将在此容器中进行展示。
-    //       autoFitView: true // 是否自动调整地图视野使绘制的 Marker点都处于视口的可见范围
-    //     });
-    //     //关键字查询
-    //     placeSearch.search(self.keyword, function (status, result) {
-    //       console.log('查询结果', result)
-    //       if (result == 'USER_DAILY_QUERY_OVER_LIMIT') {
-    //         window.alert('免费配额查询超出限制!')
-    //       } else {
-    //         self.queryReusltIsshow = true
-    //       }
-    //     });
-    //   })
-    // },
+
+    //关键字搜索功能r
+    keywordsSearch() {
+      if (!this.keyword) {
+        this.queryReusltIsshow = false
+      }
+      let self = this
+      map.plugin('AMap.PlaceSearch', function () {
+        placeSearch = new AMap.PlaceSearch({
+          pageSize: 8, // 单页显示结果条数
+          pageIndex: 1, // 页码
+          city: "全国", // 兴趣点城市
+          citylimit: false, //是否强制限制在设置的城市内搜索
+          type: "汽车服务|汽车销售|汽车维修|摩托车服务|餐饮服务|购物服务|生活服务|体育休闲服务|医疗保健服务|住宿服务|风景名胜|商务住宅|政府机构及社会团体|科教文化服务|交通设施服务|金融保险服务|公司企业|道路附属设施|地名地址信息|公共设施",
+          map: map, // 展现结果的地图实例
+          panel: "panel", // 结果列表将在此容器中进行展示。
+          autoFitView: true // 是否自动调整地图视野使绘制的 Marker点都处于视口的可见范围
+        });
+        //关键字查询
+        placeSearch.search(self.keyword, function (status, result) {
+          console.log('查询结果', result)
+          if (result == 'USER_DAILY_QUERY_OVER_LIMIT') {
+            window.alert('免费配额查询超出限制!')
+          } else {
+            self.queryReusltIsshow = true
+          }
+        });
+      })
+    },
 
     //地图单机事件
     MapClick(e) {
-
       this.position = {
         lng: e.lnglat.lng,
         lat: e.lnglat.lat,
       }
-      this.toaddress().then((data)=>{
+      console.log("🚀 ~ MapClick ~ position:", JSON.stringify(position))
+      this.toaddress().then((data) => {
         this.$emit('recievePosition', data)
       })
-
-
-
       this.clearMap()
-
-
-
       let marker = new AMap.Marker({
         position: new AMap.LngLat(e.lnglat.lng, e.lnglat.lat),
         icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-default.png',
@@ -143,8 +133,8 @@ export default {
       map.add(marker)
     },
 
-    toaddress(){
-      return new Promise((resolve)=>{
+    toaddress() {
+      return new Promise((resolve) => {
         var that = this;
         let lnglat = [this.position.lng, this.position.lat];
 
@@ -153,8 +143,8 @@ export default {
             that.position.address = result.regeocode.formattedAddress;
             resolve(that.position)
 
-            /* that.position.lng=e.lnglat.lng;
-             that.position.lng=e.lnglat.lng;*/
+            that.position.lng = e.lnglat.lng;
+            that.position.lng = e.lnglat.lng;
             // result为对应的地理位置详细信息
           }
         })
@@ -183,10 +173,8 @@ export default {
         });
 
         function onComplete(data) {
-
           map.setCenter([data.position.KL, data.position.kT]);
         }
-
         function onError(data) {
           // 定位出错
           console.log('定位出错', data)
@@ -224,7 +212,7 @@ export default {
       const Theta = Math.atan2(Y, x) - 0.000003 * Math.cos(x * X_PI);
       const lng = Z * Math.cos(Theta);
       const lat = Z * Math.sin(Theta);
-      return {lng, lat};
+      return { lng, lat };
     },
     //确定按钮
     btnEnter() {

+ 217 - 230
src/views/sydwqcsb/QcSsgqzysytdqkList.vue

@@ -21,7 +21,7 @@
           </a-col>
           <a-col :xl="6" :lg="7" :md="8" :sm="24">
             <a-form-item label="取得方式">
-              <j-dict-select-tag type='list' v-model='queryParam.syqsyfs'  dictCode='qdfs' placeholder='请选择取得方式' />
+              <j-dict-select-tag type='list' v-model='queryParam.syqsyfs' dictCode='qdfs' placeholder='请选择取得方式' />
             </a-form-item>
           </a-col>
           <template v-if="toggleSearchStatus">
@@ -37,7 +37,7 @@
             </a-col>
             <a-col :xl="6" :lg="7" :md="8" :sm="24">
               <a-form-item label="是否上报">
-                <j-dict-select-tag placeholder="请选择是否上报" v-model="queryParam.sfsb" dictCode="xxsbzt"/>
+                <j-dict-select-tag placeholder="请选择是否上报" v-model="queryParam.sfsb" dictCode="xxsbzt" />
               </a-form-item>
             </a-col>
           </template>
@@ -48,7 +48,7 @@
               <a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button>
               <a @click="handleToggleSearch" style="margin-left: 8px">
                 {{ toggleSearchStatus ? '收起' : '展开' }}
-                <a-icon :type="toggleSearchStatus ? 'up' : 'down'"/>
+                <a-icon :type="toggleSearchStatus ? 'up' : 'down'" />
               </a>
             </span>
           </a-col>
@@ -61,11 +61,12 @@
     <div class="table-operator">
       <a-button v-has="'conten:add'" @click="handleAdd2" type="primary" icon="plus">填报信息</a-button>
 
-    <a-button type="primary" icon="download" @click="handleExportXls('事业单位占有使用土地情况调查')">导出</a-button>
-       <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
-       <a-button v-has="'conten:dr'" type="primary" icon="import">导入</a-button>
-     </a-upload>
-      <a-button  @click="handleStag"  icon="plus">草稿箱</a-button>
+      <a-button type="primary" icon="download" @click="handleExportXls('事业单位占有使用土地情况调查')">导出</a-button>
+      <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl"
+        @change="handleImportExcel">
+        <a-button v-has="'conten:dr'" type="primary" icon="import">导入</a-button>
+      </a-upload>
+      <a-button @click="handleStag" icon="plus">草稿箱</a-button>
       <!--
      &lt;!&ndash; 高级查询区域 &ndash;&gt;
      <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query>
@@ -80,62 +81,48 @@
     <!-- table区域-begin -->
     <div>
       <div class="ant-alert ant-alert-info" style="margin-bottom: 16px;">
-        <i class="anticon anticon-info-circle ant-alert-icon"></i> 已选择 <a style="font-weight: 600">{{ selectedRowKeys.length }}</a>项
+        <i class="anticon anticon-info-circle ant-alert-icon"></i> 已选择 <a style="font-weight: 600">{{
+          selectedRowKeys.length
+          }}</a>项
         <a style="margin-left: 24px" @click="onClearSelected">清空</a>
       </div>
 
-      <a-table
-        ref="table"
-        size="middle"
-        :scroll="{x:true}"
-        bordered
-        rowKey="id"
-        :columns="columns"
-        :dataSource="dataSource"
-        :pagination="ipagination"
-        :loading="loading"
-        :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
-        class="j-table-force-nowrap"
+      <a-table ref="table" size="middle" :scroll="{ x: true }" bordered rowKey="id" :columns="columns"
+        :dataSource="dataSource" :pagination="ipagination" :loading="loading"
+        :rowSelection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }" class="j-table-force-nowrap"
         @change="handleTableChange">
-
         <template slot="htmlSlot" slot-scope="text">
           <div v-html="text"></div>
         </template>
         <template slot="imgSlot" slot-scope="text,record">
           <span v-if="!text" style="font-size: 12px;font-style: italic;">无图片</span>
-          <img v-else :src="getImgView(text)" :preview="record.id" height="25px" alt="" style="max-width:80px;font-size: 12px;font-style: italic;"/>
+          <img v-else :src="getImgView(text)" :preview="record.id" height="25px" alt=""
+            style="max-width:80px;font-size: 12px;font-style: italic;" />
         </template>
         <template slot="fileSlot" slot-scope="text">
           <span v-if="!text" style="font-size: 12px;font-style: italic;">无文件</span>
-          <a-button
-            v-else
-            :ghost="true"
-            type="primary"
-            icon="download"
-            size="small"
-            @click="downloadFile(text)">
+          <a-button v-else :ghost="true" type="primary" icon="download" size="small" @click="downloadFile(text)">
             下载
           </a-button>
         </template>
 
         <span slot="action" slot-scope="text, record">
-                        <a-space>
-                          <a-button v-has="'conten:bj'" v-if="record.sfsb===0" @click="handleEdit(record)">编辑</a-button>
-                               <a-button @click="handleDetail(record)" type='primary'>查看</a-button>
-                          <a-button v-if="record.sfsb===3" @click="handleEdit1(record)" type='primary'>变更</a-button>
-                          <a-popconfirm title="报送后将不可修改,是否确认上报?" @confirm="() => handleSB(record.id)">
-                  <a-button v-has="'conten:sb'" v-if="record.sfsb===0" >报送</a-button>
-                </a-popconfirm>
-                          <a-popconfirm title="是否撤回?" @confirm="() => handleCH(record.id)">
-                  <a-button v-has="'conten:ch'"  v-if="record.sfsb===1" >撤回</a-button>
-                </a-popconfirm>
-                          <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)">
-                  <a-button v-has="'conten:sc'"  v-if="record.sfsb===0" type='danger'>删除</a-button>
-                </a-popconfirm>
+          <a-space>
+            <a-button v-has="'conten:bj'" v-if="record.sfsb === 0" @click="handleEdit(record)">编辑</a-button>
+            <a-button @click="handleDetail(record)" type='primary'>查看</a-button>
+            <a-button v-if="record.sfsb === 3" @click="handleEdit1(record)" type='primary'>变更</a-button>
+            <a-popconfirm title="报送后将不可修改,是否确认上报?" @confirm="() => handleSB(record.id)">
+              <a-button v-has="'conten:sb'" v-if="record.sfsb === 0">报送</a-button>
+            </a-popconfirm>
+            <a-popconfirm title="是否撤回?" @confirm="() => handleCH(record.id)">
+              <a-button v-has="'conten:ch'" v-if="record.sfsb === 1">撤回</a-button>
+            </a-popconfirm>
+            <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)">
+              <a-button v-has="'conten:sc'" v-if="record.sfsb === 0" type='danger'>删除</a-button>
+            </a-popconfirm>
 
-                        </a-space>
+          </a-space>
         </span>
-
       </a-table>
     </div>
     <qc-ssgqzysytdqk-modal ref="modalForm" :toDk="this.dkxx" @ok="modalFormOk"></qc-ssgqzysytdqk-modal>
@@ -145,206 +132,206 @@
 
 <script>
 
-  import '@/assets/less/TableExpand.less'
-  import { mixinDevice } from '@/utils/mixin'
-  import { JeecgListMixin } from '@/mixins/JeecgListMixin'
-  import QcSsgqzysytdqkModal from './modules/QcSsgqzysytdqkModal'
-  import {filterMultiDictText} from '@/components/dict/JDictSelectUtil'
-  import { getAction } from '../../api/manage'
-  import { loadCategoryData } from '@/api/api'
-  import QcSsgqzysytdqkModal3 from "@views/sydwqcsb/sydwdwzc/modules/QcSsgqzysytdqkModal3";
-  import store from '@/store'
-  export default {
-    name: 'QcSsgqzysytdqkList',
-    mixins:[JeecgListMixin, mixinDevice],
-    components: {
-      QcSsgqzysytdqkModal,
-      QcSsgqzysytdqkModal3
-    },
-    data () {
-      return {
-        dlr:false,
-        isorter: {
-          column: 'createBy',
-          order: 'asc'
-        },
-        dkxx:{
+import '@/assets/less/TableExpand.less'
+import { mixinDevice } from '@/utils/mixin'
+import { JeecgListMixin } from '@/mixins/JeecgListMixin'
+import QcSsgqzysytdqkModal from './modules/QcSsgqzysytdqkModal.vue'
+import { filterMultiDictText } from '@/components/dict/JDictSelectUtil'
+import { getAction } from '../../api/manage'
+import { loadCategoryData } from '@/api/api'
+import QcSsgqzysytdqkModal3 from "@views/sydwqcsb/sydwdwzc/modules/QcSsgqzysytdqkModal3";
+import store from '@/store'
+export default {
+  name: 'QcSsgqzysytdqkList',
+  mixins: [JeecgListMixin, mixinDevice],
+  components: {
+    QcSsgqzysytdqkModal,
+    QcSsgqzysytdqkModal3
+  },
+  data() {
+    return {
+      dlr: false,
+      isorter: {
+        column: 'createBy',
+        order: 'asc'
+      },
+      dkxx: {
 
-        },
-        description: '省属国企占有使用土地情况调查管理页面',
-        // 表头
-        columns: [
-          {
-            title: '#',
-            dataIndex: '',
-            key:'rowIndex',
-            width:60,
-            align:"center",
-            customRender:function (t,r,index) {
-              return parseInt(index)+1;
-            }
-          },
-            {
-                title:'用地单位名称',
-                align:"center",
-                dataIndex: 'createBy'
-            },
-          {
-            title:'地块',
-            align:"center",
-            dataIndex: 'dk'
-          },
-          {
-            title:'证书类型',
-            align:"center",
-            dataIndex: 'zslx_dictText'
-          },
-          {
-            title:'证书/合同/文件编号',
-            align:"center",
-            dataIndex: 'wjbh'
-          },
-          {
-            title:'土地使用权人',
-            align:"center",
-            dataIndex: 'tdsyqr'
-          },
-          {
-            title:'使用权使用方式',
-            align:"center",
-            dataIndex: 'syqsyfs'
-          },
-          {
-            title:'实际用途',
-            align:"center",
-            dataIndex: 'sjyt',
-            customRender:
-              (text) => (text ? filterMultiDictText(this.dictOptions['sjyt'], text) : '')
-          },
-          {
-            title:'是否上报',
-            align:"center",
-            dataIndex: 'sfsb_dictText'
-          },
-          {
-            title: '操作',
-            dataIndex: 'action',
-            align:"center",
-            fixed:"right",
-            width:147,
-            scopedSlots: { customRender: 'action' }
+      },
+      description: '省属国企占有使用土地情况调查管理页面',
+      // 表头
+      columns: [
+        {
+          title: '#',
+          dataIndex: '',
+          key: 'rowIndex',
+          width: 60,
+          align: "center",
+          customRender: function (t, r, index) {
+            return parseInt(index) + 1;
           }
-        ],
-        url: {
-          list: "/qcsb/qcSsgqzysytdqk/list5",
-          delete: "/qcsb/qcSsgqzysytdqk/delete",
-          deleteBatch: "/qcsb/qcSsgqzysytdqk/deleteBatch",
-          exportXlsUrl: "/qcsb/qcSsgqzysytdqk/exportXls3",
-          importExcelUrl: "qcsb/qcSsgqzysytdqk/importExcel2",
-            sfsb:"/qcsb/qcSsgqzysytdqk/sfsb",
-            sfch:"/qcsb/qcSsgqzysytdqk/sfch"
         },
-        dictOptions:{},
-        superFieldList:[],
-      }
-    },
-    created() {
+        {
+          title: '用地单位名称',
+          align: "center",
+          dataIndex: 'createBy'
+        },
+        {
+          title: '地块',
+          align: "center",
+          dataIndex: 'dk'
+        },
+        {
+          title: '证书类型',
+          align: "center",
+          dataIndex: 'zslx_dictText'
+        },
+        {
+          title: '证书/合同/文件编号',
+          align: "center",
+          dataIndex: 'wjbh'
+        },
+        {
+          title: '土地使用权人',
+          align: "center",
+          dataIndex: 'tdsyqr'
+        },
+        {
+          title: '使用权使用方式',
+          align: "center",
+          dataIndex: 'syqsyfs'
+        },
+        {
+          title: '实际用途',
+          align: "center",
+          dataIndex: 'sjyt',
+          customRender:
+            (text) => (text ? filterMultiDictText(this.dictOptions['sjyt'], text) : '')
+        },
+        {
+          title: '是否上报',
+          align: "center",
+          dataIndex: 'sfsb_dictText'
+        },
+        {
+          title: '操作',
+          dataIndex: 'action',
+          align: "center",
+          fixed: "right",
+          width: 147,
+          scopedSlots: { customRender: 'action' }
+        }
+      ],
+      url: {
+        list: "/qcsb/qcSsgqzysytdqk/list5",
+        delete: "/qcsb/qcSsgqzysytdqk/delete",
+        deleteBatch: "/qcsb/qcSsgqzysytdqk/deleteBatch",
+        exportXlsUrl: "/qcsb/qcSsgqzysytdqk/exportXls3",
+        importExcelUrl: "qcsb/qcSsgqzysytdqk/importExcel2",
+        sfsb: "/qcsb/qcSsgqzysytdqk/sfsb",
+        sfch: "/qcsb/qcSsgqzysytdqk/sfch"
+      },
+      dictOptions: {},
+      superFieldList: [],
+    }
+  },
+  created() {
     this.getSuperFieldList();
-    },
-    mounted() {
-      this.show()
-    },
-    computed: {
+  },
+  mounted() {
+    this.show()
+  },
+  computed: {
 
-      importExcelUrl: function(){
-        return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`;
-      },
+    importExcelUrl: function () {
+      return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`;
     },
-    methods: {
-      handleAdd1: function () {
-        getAction("/qcsb/qcSsgqzysytdqk/selectUser").then(res=>{
-          if(res.result!=null){
-            debugger
-           this.dkxx=res.result
-            this.$refs.modalForm.add1();
-            this.$refs.modalForm.title = "新增";
-            this.$refs.modalForm.disableSubmit = false;
-          }else if(res.result==null){
-            this.$refs.modalForm.add();
-            this.$refs.modalForm.title = "新增";
-            this.$refs.modalForm.disableSubmit = false;
-          }
-        })
+  },
+  methods: {
+    handleAdd1: function () {
+      getAction("/qcsb/qcSsgqzysytdqk/selectUser").then(res => {
+        if (res.result != null) {
+          debugger
+          this.dkxx = res.result
+          this.$refs.modalForm.add1();
+          this.$refs.modalForm.title = "新增";
+          this.$refs.modalForm.disableSubmit = false;
+        } else if (res.result == null) {
+          this.$refs.modalForm.add();
+          this.$refs.modalForm.title = "新增";
+          this.$refs.modalForm.disableSubmit = false;
+        }
+      })
 
-      },
+    },
 
 
 
-      show(){
-        getAction("/qcsb.qyxx/qcQyxx/dlr").then(res => {
-          if (res.success) {
-            if(res.result=='gzw'){
-              this.dl=true
-            }
+    show() {
+      getAction("/qcsb.qyxx/qcQyxx/dlr").then(res => {
+        if (res.success) {
+          if (res.result == 'gzw') {
+            this.dl = true
           }
-        })
-      }
-      ,
-        handleSB(id){
-            getAction(this.url.sfsb,{id:id}).then(res => {
-                if (res.success) {
-                    this.$message.success('上报成功');
-                    this.loadData();
-                }
-            })
+        }
+      })
+    }
+    ,
+    handleSB(id) {
+      getAction(this.url.sfsb, { id: id }).then(res => {
+        if (res.success) {
+          this.$message.success('上报成功');
+          this.loadData();
+        }
+      })
 
-        },
-        handleCH(id){
-            getAction(this.url.sfch,{id:id}).then(res => {
-                if (res.success) {
-                    this.$message.success('撤回成功');
-                    this.loadData();
-                }
-            })
+    },
+    handleCH(id) {
+      getAction(this.url.sfch, { id: id }).then(res => {
+        if (res.success) {
+          this.$message.success('撤回成功');
+          this.loadData();
+        }
+      })
 
-        },
-      handleStag(){
-        this.$refs.modalStage.add1()
-      },
-      initDictConfig(){
-        loadCategoryData({code:'A04'}).then((res) => {
-          if (res.success) {
-            console.log(res.result)
-            this.$set(this.dictOptions, 'sjyt', res.result)
-          }
-        })
-      },
-      getSuperFieldList(){
-        let fieldList=[];
-        fieldList.push({type:'string',value:'dk',text:'地块',dictCode:''})
-        fieldList.push({type:'string',value:'wjlx',text:'文件类型',dictCode:'wjlx'})
-        fieldList.push({type:'string',value:'wjbh',text:'证书/合同/文件编号',dictCode:''})
-        fieldList.push({type:'string',value:'tdsyqr',text:'土地使用权人',dictCode:''})
-        fieldList.push({type:'double',value:'sjzytdmj',text:'实际占用土地面积',dictCode:''})
-        fieldList.push({type:'double',value:'qzpzsymj',text:'其中批准使用面积',dictCode:''})
-        fieldList.push({type:'double',value:'sjsyjzmj',text:'实际使用建筑面积',dictCode:''})
-        fieldList.push({type:'double',value:'qzpzsymj2',text:'其中批准使用面积',dictCode:''})
-        fieldList.push({type:'double',value:'sjrjl',text:'容积率',dictCode:''})
-        fieldList.push({type:'string',value:'syqsyfs',text:'使用权使用方式',dictCode:'syqsyfs'})
-        fieldList.push({type:'string',value:'zlwz',text:'坐落位置',dictCode:''})
-        fieldList.push({type:'string',value:'sjyt',text:'实际用途',dictCode:'tdyt'})
-        fieldList.push({type:'date',value:'qsqssj',text:'权属起始时间'})
-        fieldList.push({type:'date',value:'qsdqsj',text:'权属到期时间'})
-        fieldList.push({type:'string',value:'tdsyxz',text:'土地使用现状',dictCode:'tdsyxz'})
-        fieldList.push({type:'list_multi',value:'dbdycfqk',text:'担保、抵押、查封情况',dictTable:"", dictText:'', dictCode:'dbdycfqk'})
-        fieldList.push({type:'string',value:'bz',text:'备注',dictCode:''})
-        fieldList.push({type:'string',value:'xgwj',text:'附件材料',dictCode:''})
-        fieldList.push({type:'int',value:'sfsb',text:'是否上报',dictCode:'xxsbzt'})
-        this.superFieldList = fieldList
-      }
+    },
+    handleStag() {
+      this.$refs.modalStage.add1()
+    },
+    initDictConfig() {
+      loadCategoryData({ code: 'A04' }).then((res) => {
+        if (res.success) {
+          console.log(res.result)
+          this.$set(this.dictOptions, 'sjyt', res.result)
+        }
+      })
+    },
+    getSuperFieldList() {
+      let fieldList = [];
+      fieldList.push({ type: 'string', value: 'dk', text: '地块', dictCode: '' })
+      fieldList.push({ type: 'string', value: 'wjlx', text: '文件类型', dictCode: 'wjlx' })
+      fieldList.push({ type: 'string', value: 'wjbh', text: '证书/合同/文件编号', dictCode: '' })
+      fieldList.push({ type: 'string', value: 'tdsyqr', text: '土地使用权人', dictCode: '' })
+      fieldList.push({ type: 'double', value: 'sjzytdmj', text: '实际占用土地面积', dictCode: '' })
+      fieldList.push({ type: 'double', value: 'qzpzsymj', text: '其中批准使用面积', dictCode: '' })
+      fieldList.push({ type: 'double', value: 'sjsyjzmj', text: '实际使用建筑面积', dictCode: '' })
+      fieldList.push({ type: 'double', value: 'qzpzsymj2', text: '其中批准使用面积', dictCode: '' })
+      fieldList.push({ type: 'double', value: 'sjrjl', text: '容积率', dictCode: '' })
+      fieldList.push({ type: 'string', value: 'syqsyfs', text: '使用权使用方式', dictCode: 'syqsyfs' })
+      fieldList.push({ type: 'string', value: 'zlwz', text: '坐落位置', dictCode: '' })
+      fieldList.push({ type: 'string', value: 'sjyt', text: '实际用途', dictCode: 'tdyt' })
+      fieldList.push({ type: 'date', value: 'qsqssj', text: '权属起始时间' })
+      fieldList.push({ type: 'date', value: 'qsdqsj', text: '权属到期时间' })
+      fieldList.push({ type: 'string', value: 'tdsyxz', text: '土地使用现状', dictCode: 'tdsyxz' })
+      fieldList.push({ type: 'list_multi', value: 'dbdycfqk', text: '担保、抵押、查封情况', dictTable: "", dictText: '', dictCode: 'dbdycfqk' })
+      fieldList.push({ type: 'string', value: 'bz', text: '备注', dictCode: '' })
+      fieldList.push({ type: 'string', value: 'xgwj', text: '附件材料', dictCode: '' })
+      fieldList.push({ type: 'int', value: 'sfsb', text: '是否上报', dictCode: 'xxsbzt' })
+      this.superFieldList = fieldList
     }
   }
+}
 </script>
 <style scoped>
-  @import '~@assets/less/common.less';
+@import '~@assets/less/common.less';
 </style>