qinxianzhangyao
2024-05-20 41332257f7889df6032fa3c64a7f3998e4b65524
src/views/system/Blacklist/index.vue
@@ -8,10 +8,18 @@
      v-show="showSearch"
      label-width="68px"
    >
      <el-form-item label="姓名" prop="harmCode">
      <el-form-item label="姓名" prop="name">
        <el-input
          v-model="queryParams.harmCode"
          placeholder="请输入编码"
          v-model="queryParams.name"
          placeholder="请输入姓名"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="手机号" prop="phone">
        <el-input
          v-model="queryParams.phone"
          placeholder="请输入手机号"
          clearable
          @keyup.enter.native="handleQuery"
        />
@@ -69,7 +77,7 @@
        <pagination
          v-show="total > 0"
          :total="total"
          :page.sync="queryParams.pageNum"
          :page.sync="queryParams.page"
          :limit.sync="queryParams.pageSize"
          @pagination="getList"
        />
@@ -118,16 +126,10 @@
      open: false,
      // 查询参数
      queryParams: {
        pageNum: 1,
        page: 1,
        pageSize: 10,
        harmpinyin: null,
        harmtype: null,
        sort: null,
        harminfo: null,
        externalcode: null,
        harmcode: null,
        type: null,
        protection: null,
        name: null,
        phone: null,
      },
      // 表单参数
      form: {},
@@ -152,8 +154,11 @@
  },
  methods: {
    getList() {
      getCustomerBlack().then((res) => {
        this.harmTypeList = res.data;
      this.loading = true
      getCustomerBlack(this.queryParams).then((res) => {
        this.harmTypeList = res.data.records;
        this.total = res.data.total
        this.loading = false
      });
    },
@@ -174,7 +179,7 @@
    },
    /** 搜索按钮操作 */
    handleQuery() {
      this.queryParams.pageNum = 1;
      this.queryParams.page = 1;
      this.getList();
    },
    /** 重置按钮操作 */