Blame view

src/views/bdcsj/dyiq/index.vue 5.58 KB
任超 committed
1
<template>
任超 committed
2
  <div class="from-clues">
任超 committed
3
    <div class="from-clues-header">
任超 committed
4
      <el-form ref="form" :model="form" label-width="150px">
xiaomiao committed
5
        <!-- 判断进入监管还是上报系统 -->
‘jikai@pashanhoo.com’ committed
6
        <el-form-item v-if="BASE_API.THEME=='jg'">
任超 committed
7 8
          <Breadcrumb />
        </el-form-item>
任超 committed
9
        <el-row>
任超 committed
10
          <el-col :span="5">
任超 committed
11
            <el-form-item label="行政区" label-width="100px">
任超 committed
12 13 14
              <el-select
                v-model="$store.state.user.userInfo.grade === 'county' ? form.XZQDM = $store.state.user.userInfo.areaCode : form.XZQDM"
                class="width100" clearable placeholder="行政区" :disabled="$store.state.user.userInfo.grade === 'county'">
任超 committed
15 16 17
                <el-option v-for="item in dicData['A20']" :key="item.DCODE" :label="item.DNAME" :value="item.DCODE">
                </el-option>
              </el-select>
任超 committed
18 19
            </el-form-item>
          </el-col>
任超 committed
20

任超 committed
21
          <el-col :span="5">
任超 committed
22
            <el-form-item label="权属状态">
任超 committed
23
              <el-select v-model="form.QSZT" class="width100" clearable placeholder="权属状态">
任超 committed
24
                <el-option v-for="item in dicData['A22']" :key="item.DCODE" :label="item.DNAME" :value="item.DCODE">
任超 committed
25 26
                </el-option>
              </el-select>
任超 committed
27 28
            </el-form-item>
          </el-col>
任超 committed
29

任超 committed
30
          <el-col :span="5">
任超 committed
31
            <el-form-item label="坐落">
任超 committed
32
              <el-input v-model="form.ZL" clearable placeholder="坐落"></el-input>
任超 committed
33 34
            </el-form-item>
          </el-col>
任超 committed
35 36
          <el-col :span="5">
            <el-form-item label="不动产权证号">
任超 committed
37
              <el-input v-model="form.BDCQZH" clearable placeholder="不动产权证号"></el-input>
任超 committed
38 39
            </el-form-item>
          </el-col>
任超 committed
40
          <el-col :span="4">
任超 committed
41
            <el-form-item label="权利人" label-width="80px">
任超 committed
42
              <el-input v-model="form.QLR" clearable placeholder="权利人"></el-input>
任超 committed
43 44
            </el-form-item>
          </el-col>
任超 committed
45 46 47
        </el-row>
        <el-row class="mt-10">

任超 committed
48
          <el-col :span="5">
任超 committed
49
            <el-form-item label="不动产单元号" label-width="100px">
任超 committed
50
              <el-input v-model="form.BDCDYH" clearable placeholder="不动产单元号"></el-input>
任超 committed
51 52 53 54 55
            </el-form-item>
          </el-col>

          <el-col :span="5">
            <el-form-item label="供役地不动产单元号">
任超 committed
56
              <el-input v-model="form.GYDBDCDYH" clearable placeholder="供役地不动产单元号"></el-input>
任超 committed
57 58
            </el-form-item>
          </el-col>
任超 committed
59 60 61

          <el-col :span="5">
            <el-form-item label="需役地不动产单元号">
任超 committed
62
              <el-input v-model="form.XYDBDCDYH" clearable placeholder="需役地不动产单元号"></el-input>
任超 committed
63 64
            </el-form-item>
          </el-col>
任超 committed
65 66 67 68 69
          <el-col :span="5">
            <el-form-item label="证件号">
              <el-input v-model="form.ZJH" clearable placeholder="证件号"></el-input>
            </el-form-item>
          </el-col>
任超 committed
70
          <el-col :span="4" class="btnColRight">
任超 committed
71 72
            <el-form-item>
              <btn nativeType="cz" @click="resetForm">重置</btn>
任超 committed
73
              <btn nativeType="cx" @click="handleSearch">查询</btn>
任超 committed
74
            </el-form-item>
任超 committed
75 76 77 78 79
          </el-col>
        </el-row>
      </el-form>
    </div>
    <div class="from-clues-content">
任超 committed
80 81 82
      <lb-table :page-size="pageData.size" :current-page.sync="pageData.current" :total="pageData.total"
        @size-change="handleSizeChange" @p-current-change="handleCurrentChange" :column="tableData.columns"
        :data="tableData.data">
任超 committed
83 84
      </lb-table>
    </div>
任超 committed
85
    <!-- 编辑 -->
任超 committed
86
    <dataDetails ref="editLog" title="地役权登记" :tabsActiveName="'qlfQlDyiq'" />
任超 committed
87 88 89 90
  </div>
</template>

<script>
xiaomiao committed
91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140
  // 地役权登记
  import data from "./data"
  import qlfQlDyiq from '@/api/qlfQlDyiq'
  import tableMixin from '@/mixins/tableMixin.js'
  import treeSelect from '@/components/TreeSelect.vue'
  export default {
    name: "dyiq",
    mixins: [tableMixin],
    components: {
      treeSelect
    },
    data () {
      return {
        form: {
          XZQDM: '',
          QSZT: '',
          ZL: '',
          BDCQZH: '',
          QLR: '',
          BDCDYH: '',
          // 供役地不动产单元号
          GYDBDCDYH: '',
          // 需役地不动产单元号
          XYDBDCDYH: '',
          ZJH: '',
          currentPage: 1
        },
        tableData: {
          columns: [{
            label: '序号',
            type: 'index',
            width: '50',
            index: this.indexMethod,
          }].concat(data.columns()).concat([
            {
              label: "操作",
              width: 80,
              render: (h, scope) => {
                return (
                  <div>
                    <el-button
                      type="text"
                      class='btnColor'
                      onClick={() => { this.handleEdit(scope.row) }}
                    >
                      详情
                    </el-button>
                  </div>
                )
              }
任超 committed
141
            }
xiaomiao committed
142 143 144 145 146 147 148 149
          ]),
          data: []
        },
        pageData: {
          total: 0,
          pageSize: 15,
          current: 1,
        }
任超 committed
150
      }
xiaomiao committed
151 152 153 154 155 156 157 158 159 160 161 162 163 164
    },
    methods: {
      async featchData () {
        try {
          this.form = Object.assign(this.form, this.formData)
          let { result: { list, total, pages: pageSize, pageNum: current }
          } = await qlfQlDyiq.getQlfQlDyiqList(this.form)
          this.tableData.data = list
          this.pageData = {
            pageSize,
            current,
            total
          }
        } catch (error) {
任超 committed
165 166
        }
      }
任超 committed
167
    }
任超 committed
168
  }
赵千 committed
169
</script>