Crunchy
2025-04-29 e5454b769d44a34af423bf87ac8a740bf8c20341
src/views/system/customer/index.vue
@@ -1,17 +1,16 @@
<template>
  <div class="app-container">
    <div class="search">
      <div>
        <el-form :model="queryParams" ref="queryForm" size="small" :inline="true">
          <el-form-item label="客户名称" prop="company">
            <el-input size="small" placeholder="请输入" clearable v-model="queryParams.company"
                      @keyup.enter.native="getList"></el-input>
          </el-form-item>
          <el-form-item>
            <el-button type="primary" icon="el-icon-search" size="mini" @click="getList">查 询</el-button>
            <el-button icon="el-icon-refresh" size="mini" @click="refresh">重 置</el-button>
          </el-form-item>
        </el-form>
    <div style="display: flex;justify-content: space-between">
      <div class="search_box">
        <div class="search_item">
          <span class="search_label">客户名称</span>
          <el-input size="small" placeholder="请输入" clearable v-model="queryParams.company"
                    @keyup.enter.native="getList"></el-input>
        </div>
        <div class="search_button">
          <el-button type="primary" size="mini" @click="getList">查询</el-button>
          <el-button size="mini" @click="refresh">重置</el-button>
        </div>
      </div>
      <div>
        <el-button size="small" type="primary" @click="openFormDia('add')" icon="el-icon-plus">新增</el-button>
@@ -64,6 +63,7 @@
import limsTable from '@/components/Table/lims-table.vue'
import {addCustom, delCustomById, selectCustomPageList, upCustom} from "@/api/system/customer";
export default {
  name: 'Customer',
  components: {
    limsTable
  },
@@ -105,8 +105,8 @@
      ],
      page: {
        total:0,
        size:10,
        current:0
        size:20,
        current:1
      },
      tableLoading: false,
      // 编辑客户弹框
@@ -219,9 +219,23 @@
</script>
<style scoped>
.search {
  height: 46px;
.search_box {
  display: flex;
  justify-content: space-between;
}
.search_item {
  margin-bottom: 18px;
  margin-right: 10px;
  display: flex;
  align-items: center;
  line-height: 32px;
}
.search_label {
  width: 88px;
  font-size: 14px;
  font-weight: 700;
  color: #606266;
}
.search_button {
  line-height: 30px;
}
</style>