Blame view

src/views/bdcsj/yydj/index.vue 5.03 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="105px">
5
        <el-form-item v-if="BASE_API.THEME == 'jg'">
任超 committed
6 7
          <Breadcrumb />
        </el-form-item>
任超 committed
8
        <el-row>
任超 committed
9
          <el-col :span="5">
任超 committed
10
            <el-form-item label="行政区" label-width="80px">
任超 committed
11 12 13
              <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
14 15 16
                <el-option v-for="item in dicData['A20']" :key="item.DCODE" :label="item.DNAME" :value="item.DCODE">
                </el-option>
              </el-select>
任超 committed
17 18
            </el-form-item>
          </el-col>
任超 committed
19

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

任超 committed
29
          <el-col :span="5">
任超 committed
30
            <el-form-item label="坐落" label-width="60px">
任超 committed
31
              <el-input v-model="form.ZL" clearable placeholder="坐落"></el-input>
任超 committed
32 33 34
            </el-form-item>
          </el-col>
          <el-col :span="5">
任超 committed
35
            <el-form-item label="不动产权证号">
任超 committed
36
              <el-input v-model="form.BDCQZH" clearable placeholder="不动产权证号"></el-input>
任超 committed
37 38
            </el-form-item>
          </el-col>
任超 committed
39 40
          <el-col :span="4">
            <el-form-item label="不动产单元号">
任超 committed
41
              <el-input v-model="form.BDCDYH" clearable placeholder="不动产单元号"></el-input>
任超 committed
42 43 44 45 46 47
            </el-form-item>
          </el-col>
        </el-row>
        <el-row class="mt-10">
          <el-col :span="5">
            <el-form-item label="权利人" label-width="80px">
任超 committed
48
              <el-input v-model="form.QLR" clearable placeholder="权利人"></el-input>
任超 committed
49 50
            </el-form-item>
          </el-col>
任超 committed
51 52 53 54 55 56
          <el-col :span="5">
            <el-form-item label="证件号">
              <el-input v-model="form.ZJH" clearable placeholder="证件号"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="14" class="btnColRight">
任超 committed
57
            <btn nativeType="cz" @click="resetForm">重置</btn>
任超 committed
58
            <btn nativeType="cx" @click="handleSearch">查询</btn>
任超 committed
59 60 61 62 63
          </el-col>
        </el-row>
      </el-form>
    </div>
    <div class="from-clues-content">
任超 committed
64 65 66
      <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
67 68
      </lb-table>
    </div>
任超 committed
69
    <!-- 编辑 -->
任超 committed
70
    <dataDetails ref="editLog" title="异议登记" :tabsActiveName="'qlfQlYydj'" />
任超 committed
71 72 73 74 75 76
  </div>
</template>

<script>
// 异议登记
import data from "./data"
yangwei committed
77
import qlfQlYydj from '@/api/qlfQlYydj'
任超 committed
78
import tableMixin from '@/mixins/tableMixin.js'
79
import treeSelect from '@/components/TreeSelect.vue'
任超 committed
80
export default {
1  
jiaozeping@pashanhoo.com committed
81
  name: "yydj",
任超 committed
82 83
  mixins: [tableMixin],
  components: {
任超 committed
84
    treeSelect
任超 committed
85 86 87 88
  },
  data () {
    return {
      form: {
任超 committed
89 90 91 92 93 94
        XZQDM: '',
        QSZT: '',
        ZL: '',
        BDCQZH: '',
        QLR: '',
        BDCDYH: '',
任超 committed
95
        ZJH: '',
任超 committed
96 97 98 99 100 101 102 103 104 105 106
        currentPage: 1
      },
      tableData: {
        columns: [{
          label: '序号',
          type: 'index',
          width: '50',
          index: this.indexMethod,
        }].concat(data.columns()).concat([
          {
            label: "操作",
任超 committed
107
            width: 80,
108
            fixed: "right",
任超 committed
109 110 111 112
            render: (h, scope) => {
              return (
                <div>
                  <el-button
任超 committed
113 114
                    type="text"
                    class='btnColor'
任超 committed
115
                    onClick={() => { this.handleEdit(scope.row) }}
任超 committed
116
                  >
任超 committed
117
                    详情
任超 committed
118 119
                  </el-button>
                </div>
任超 committed
120 121 122
              )
            }
          }
任超 committed
123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144
        ]),
        data: []
      },
      pageData: {
        total: 0,
        pageSize: 15,
        current: 1,
      },
      diaData: null,
      bsmSjsb: ''
    }
  },
  methods: {
    // 是否显示下拉框
    isShowSelectOptions (e) {
      if (!e) this.$refs.selectobjectionRegQL.blur()
      if (!e) this.$refs.selectobjectionRegDJ.blur()
    },
    async featchData () {
      try {
        this.form = Object.assign(this.form, this.formData)
        let { result: { list, total, pages: pageSize, pageNum: current }
yangwei committed
145
        } = await qlfQlYydj.getQlfQlYydjList(this.form)
任超 committed
146 147 148 149 150 151 152 153 154 155 156
        this.tableData.data = list
        this.pageData = {
          pageSize,
          current,
          total
        }
      } catch (error) {
        this.message = error
        this.$refs.msg.messageShow()
      }
    },
任超 committed
157 158
    handledetails (index, row) {
    }
任超 committed
159 160
  }
}
任超 committed
161
</script>