Blame view

src/views/system/sqywgz/sqywgz.vue 2.98 KB
1 2 3 4
<template>
  <div class="from-clues">
    <!-- 表单部分 -->
    <div class="from-clues-header">
任超 committed
5
      <el-form @submit.native.prevent :model="queryForm" ref="queryForm">
任超 committed
6
        <el-row :gutter="20">
7 8
          <el-col :span="6">
            <el-form-item label="权利类型">
9
              <el-select v-model="queryForm.qllx" filterable class="width100" clearable placeholder="请选择权利类型">
田浩浩 committed
10
                <el-option v-for="item in qllxs" :key="item.value" :label="item.label" :value="item.value">
11 12 13 14 15 16
                </el-option>
              </el-select>
            </el-form-item>
          </el-col>
          <el-col :span="6">
            <el-form-item label="登记业务编码">
yangwei committed
17
              <el-input placeholder="请输入登记业务编码" v-model="queryForm.djywbm" clearable>
18 19 20
              </el-input>
            </el-form-item>
          </el-col>
21
          <el-col :span="12" class="btnColRight">
22
            <el-form-item>
yangwei committed
23
              <el-button type="primary" native-type="submit" icon="el-icon-search" @click="handleSearch">查询</el-button>
24 25 26 27 28 29 30
            </el-form-item>
          </el-col>
        </el-row>
      </el-form>
    </div>
    <!-- 表格 -->
    <div class="from-clues-content">
田浩浩 committed
31 32 33
      <lb-table :page-size="pageData.pageSize" class="loadingtext" :current-page.sync="pageData.currentPage"
        :total="tableData.total" @size-change="handleSizeChange" @p-current-change="handleCurrentChange"
        :column="tableData.columns" :data="tableData.data">
34 35 36 37 38
      </lb-table>
    </div>
  </div>
</template>
<script>
田浩浩 committed
39 40 41 42 43
import table from "@/utils/mixin/table";
import editDialog from "./components/editDialog.vue";
import componentDialog from "./sqywDetail.vue";
import { datas, sendThis } from "./sqywgzdata";
import { getSysSqdjywBysearch, getDjlxInfo } from "@/api/system.js";
44 45
export default {
  name: "djbcx",
任超 committed
46
  components: {
田浩浩 committed
47
    editDialog,
田浩浩 committed
48
    componentDialog,
任超 committed
49
  },
50
  mixins: [table],
51
  mounted () {
52
    sendThis(this);
田浩浩 committed
53
    this.queryClick();
54
  },
55
  data () {
56
    return {
田浩浩 committed
57
      qllxmc: "",
任超 committed
58
      isDialog: false,
59 60
      queryForm: {
        qllx: "",
61
        djywbm: "",
62
      },
63
      qllxs: datas.qllxs(),
64
      tableData: {
任超 committed
65
        total: 0,
66
        columns: datas.columns(),
田浩浩 committed
67
        data: [],
任超 committed
68
      },
69
      detailList: [],
田浩浩 committed
70 71 72
      bsmSqyw: "",
      sqqlRule: "",
    };
73 74 75
  },
  methods: {
    // 初始化数据
76
    queryClick () {
任超 committed
77
      this.$startLoading();
田浩浩 committed
78 79 80 81 82 83 84 85
      getSysSqdjywBysearch({ ...this.queryForm, ...this.pageData }).then(
        (res) => {
          this.$endLoading();
          if (res.code === 200) {
            let { total, records } = res.result;
            this.tableData.total = total ? total : 0;
            this.tableData.data = records ? records : [];
          }
任超 committed
86
        }
田浩浩 committed
87
      );
88
    },
89 90
    // 修改
    editClick (row) {
田浩浩 committed
91
      this.sqqlRule = row;
92 93 94 95 96
      // this.dialogVisible = true;
      this.$popupDialog(row.nodename, "system/sqywgz/sqywDetail", this.sqqlRule, '80%')
    }
  }
}
97 98 99 100
</script>
<style scoped lang="scss">
@import "~@/styles/public.scss";
</style>