Blame view

src/views/zhcx/zxgcdycx/zxgcdycx.vue 3.29 KB
1
<!--
2
 * @Description:
3
 * @Autor: renchao
4
 * @LastEditTime: 2023-07-24 14:07:02
5
-->
任超 committed
6 7 8 9
<template>
  <div class="from-clues">
    <!-- 表单部分 -->
    <div class="from-clues-header">
1  
jiaozeping@pashanhoo.com committed
10
      <el-form :model="queryForm" ref="queryForm" label-width="80px">
任超 committed
11 12
        <el-row>
          <el-col :span="5">
蔡俊立 committed
13 14
            <el-form-item label="企业名称" label-width="70px">
              <el-input placeholder="请输入企业名称" v-model="queryForm.qymc" clearable>
任超 committed
15 16 17 18
              </el-input>
            </el-form-item>
          </el-col>
          <el-col :span="5">
蔡俊立 committed
19 20
            <el-form-item label="项目名称" label-width="70px">
              <el-input placeholder="请输入项目名称" v-model="queryForm.xmmc" clearable>
任超 committed
21 22 23 24 25
              </el-input>
            </el-form-item>
          </el-col>
          <el-col :span="5">
            <el-form-item label="自然幢号">
蔡俊立 committed
26
              <el-input placeholder="请输入自然幢号" v-model="queryForm.zrzh" clearable>
任超 committed
27 28 29
              </el-input>
            </el-form-item>
          </el-col>
蔡俊立 committed
30
          <el-col :span="9" class="btnColRight">
任超 committed
31
            <el-form-item>
yangwei committed
32
              <el-button type="primary" @click="handleSearch">查询</el-button>
1  
jiaozeping@pashanhoo.com committed
33
              <el-button @click="moreQueryClick">高级查询</el-button>
任超 committed
34 35 36 37 38 39 40
            </el-form-item>
          </el-col>
        </el-row>
      </el-form>
    </div>
    <!-- 表格 -->
    <div class="from-clues-content">
41
      <lb-table :page-size="pageData.size" class="loadingtext" :current-page.sync="pageData.current" :total="tableData.total"
任超 committed
42 43
        @size-change="handleSizeChange" @p-current-change="handleCurrentChange" :column="tableData.columns"
        :data="tableData.data">
任超 committed
44 45 46 47 48
      </lb-table>
    </div>
  </div>
</template>
<script>
49 50
  import table from "@/utils/mixin/table";
  import { datas, sendThis } from "./zxgcdycx";
51
  import { getZjgcdyList } from "@/api/search.js"
52
  export default {
53
    name: "zxgcdycx",
54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70
    mixins: [table],
    mounted () {
      sendThis(this);
    },
    data () {
      return {
        queryForm: {
          xmmc: "",
          qymc: "",
          zrzh: "",
        },
        tableData: {
          total: 0,
          columns: datas.columns(),
          data: [],
        },
      };
1  
jiaozeping@pashanhoo.com committed
71
    },
72 73 74
    activated () {
      this.queryClick()
    },
75 76
    methods: {
      // 查询
yuanbo committed
77 78 79 80
      /**
       * @description: 查询
       * @author: renchao
       */
81 82 83 84 85 86
      queryClick () {
        this.$startLoading()
        getZjgcdyList({ ...this.queryForm, ...this.pageData }).then(res => {
          this.$endLoading()
          if (res.code === 200) {
            let { total, records } = res.result
87
            this.tableData.total = total ? total : 0
88 89 90 91
            this.tableData.data = records ? records : []
          }
        })
      },
xiaomiao committed
92 93 94 95 96 97 98 99 100 101 102
    openDialog(){
        this.$popup('楼盘表', 'lpb/index', {
          width: '85%',
          formData: {
            bsm: item.bsm,
            zrzbsm: item.bsm,
            zdbsm: item.zdbsm,
            bsmSqyw: this.bsmSqyw,
            // onlyShow: true,
            djqxbm: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodecode : "",
            djqxmc: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodename : "",
103
            onlyShow: true
xiaomiao committed
104 105 106
          }
        })
      }
107 108
    }
  }
任超 committed
109 110
</script>
<style scoped lang="scss">
111
  @import "~@/styles/public.scss";
任超 committed
112
</style>