Blame view

src/views/zhcx/zxgcdycx/zxgcdycx.vue 2.5 KB
任超 committed
1 2 3 4
<template>
  <div class="from-clues">
    <!-- 表单部分 -->
    <div class="from-clues-header">
1  
jiaozeping@pashanhoo.com committed
5
      <el-form :model="queryForm" ref="queryForm" label-width="80px">
任超 committed
6 7
        <el-row>
          <el-col :span="5">
蔡俊立 committed
8 9
            <el-form-item label="企业名称" label-width="70px">
              <el-input placeholder="请输入企业名称" v-model="queryForm.qymc" clearable>
任超 committed
10 11 12 13
              </el-input>
            </el-form-item>
          </el-col>
          <el-col :span="5">
蔡俊立 committed
14 15
            <el-form-item label="项目名称" label-width="70px">
              <el-input placeholder="请输入项目名称" v-model="queryForm.xmmc" clearable>
任超 committed
16 17 18 19 20
              </el-input>
            </el-form-item>
          </el-col>
          <el-col :span="5">
            <el-form-item label="自然幢号">
蔡俊立 committed
21
              <el-input placeholder="请输入自然幢号" v-model="queryForm.zrzh" clearable>
任超 committed
22 23 24
              </el-input>
            </el-form-item>
          </el-col>
蔡俊立 committed
25
          <el-col :span="9" class="btnColRight">
任超 committed
26
            <el-form-item>
yangwei committed
27
              <el-button type="primary" @click="handleSearch">查询</el-button>
1  
jiaozeping@pashanhoo.com committed
28
              <el-button @click="moreQueryClick">高级查询</el-button>
任超 committed
29 30 31 32 33 34 35
            </el-form-item>
          </el-col>
        </el-row>
      </el-form>
    </div>
    <!-- 表格 -->
    <div class="from-clues-content">
任超 committed
36 37 38
      <lb-table :page-size="pageData.size" :current-page.sync="pageData.current" :total="tableData.total"
        @size-change="handleSizeChange" @p-current-change="handleCurrentChange" :column="tableData.columns"
        :data="tableData.data">
任超 committed
39 40 41 42 43 44 45
      </lb-table>
    </div>
  </div>
</template>
<script>
import table from "@/utils/mixin/table";
import { datas, sendThis } from "./zxgcdycx";
蔡俊立 committed
46
import { getZjgcdyList } from "@/api/zhcx"
任超 committed
47 48 49
export default {
  components: {},
  mixins: [table],
任超 committed
50
  mounted () {
任超 committed
51 52
    sendThis(this);
  },
任超 committed
53
  data () {
任超 committed
54 55
    return {
      queryForm: {
1  
jiaozeping@pashanhoo.com committed
56
        xmmc: "",
蔡俊立 committed
57
        qymc: "",
1  
jiaozeping@pashanhoo.com committed
58
        zrzh: "",
任超 committed
59 60
      },
      tableData: {
蔡俊立 committed
61
        total: 0,
任超 committed
62
        columns: datas.columns(),
1  
jiaozeping@pashanhoo.com committed
63 64 65
        data: [],
      },
    };
任超 committed
66 67
  },
  methods: {
1  
jiaozeping@pashanhoo.com committed
68
    // 查询
任超 committed
69
    queryClick () {
蔡俊立 committed
70 71 72 73 74 75 76 77 78
      this.$startLoading()
      getZjgcdyList({ ...this.queryForm, ...this.pageData }).then(res => {
        this.$endLoading()
        if (res.code === 200) {
          let { total, records } = res.result
          this.tableData.total = total;
          this.tableData.data = records ? records : []
        }
      })
1  
jiaozeping@pashanhoo.com committed
79 80 81 82
    },

  },
};
任超 committed
83 84 85 86
</script>
<style scoped lang="scss">
@import "~@/styles/public.scss";
</style>