Blame view

src/views/business-info/yydj/index.vue 4.59 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">
任超 committed
5 6 7
        <el-form-item>
          <Breadcrumb />
        </el-form-item>
任超 committed
8 9
        <el-row>
          <el-col :span="5">
任超 committed
10
            <el-form-item label="行政区" label-width="80px">
任超 committed
11
              <el-select v-model="form.XZQDM" class="width100" clearable placeholder="行政区">
任超 committed
12 13 14
                <el-option v-for="item in dicData['A20']" :key="item.DCODE" :label="item.DNAME" :value="item.DCODE">
                </el-option>
              </el-select>
任超 committed
15 16
            </el-form-item>
          </el-col>
任超 committed
17

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

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

<script>
// 异议登记
import data from "./data"
yangwei committed
70
import qlfQlYydj from '@/api/qlfQlYydj'
任超 committed
71
import tableMixin from '@/mixins/tableMixin.js'
72
import treeSelect from '@/components/TreeSelect.vue'
任超 committed
73
export default {
1  
jiaozeping@pashanhoo.com committed
74
  name: "yydj",
任超 committed
75 76
  mixins: [tableMixin],
  components: {
任超 committed
77
    treeSelect
任超 committed
78 79 80 81
  },
  data () {
    return {
      form: {
任超 committed
82 83 84 85 86 87
        XZQDM: '',
        QSZT: '',
        ZL: '',
        BDCQZH: '',
        QLR: '',
        BDCDYH: '',
任超 committed
88 89 90 91 92 93 94 95 96 97 98
        currentPage: 1
      },
      tableData: {
        columns: [{
          label: '序号',
          type: 'index',
          width: '50',
          index: this.indexMethod,
        }].concat(data.columns()).concat([
          {
            label: "操作",
任超 committed
99
            width: 80,
任超 committed
100 101 102 103
            render: (h, scope) => {
              return (
                <div>
                  <el-button
任超 committed
104
                    type="primary"
任超 committed
105
                    size="mini"
任超 committed
106
                    onClick={() => { this.handleEdit(scope.row) }}
任超 committed
107
                  >
任超 committed
108
                    详情
任超 committed
109 110
                  </el-button>
                </div>
任超 committed
111 112 113
              )
            }
          }
任超 committed
114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135
        ]),
        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
136
        } = await qlfQlYydj.getQlfQlYydjList(this.form)
任超 committed
137 138 139 140 141 142 143 144 145 146 147
        this.tableData.data = list
        this.pageData = {
          pageSize,
          current,
          total
        }
      } catch (error) {
        this.message = error
        this.$refs.msg.messageShow()
      }
    },
任超 committed
148 149
    handledetails (index, row) {
    }
任超 committed
150 151
  }
}
任超 committed
152 153 154
</script>
<style scoped lang="scss">
@import "~@/styles/public.scss";
xiaomiao committed
155
</style>