yangfeng
2024-02-29 71173a58ca6d4f50255074b2e752cc382d0db3d5
产量登记表公共搜索组件使用
2个文件已修改
31 ■■■■■ 已修改文件
src/components/makepager/CommonSearch.vue 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/productManage/productRegisterForm/index.vue 24 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/makepager/CommonSearch.vue
@@ -15,7 +15,12 @@
          </div>
        </el-button>
        <slot name="leftButton" />
        <div class="download" @click="downloadClick" :style="{ cursor: showDownload ? 'pointer' : 'no-drop' }">
        <div
          v-if="showDownload"
          class="download"
          @click="downloadClick"
          :style="{ cursor: showDownload ? 'pointer' : 'no-drop' }"
        >
          <img src="@/assets/img/xiazai.png" style="width: 13px" />
        </div>
      </div>
src/views/productManage/productRegisterForm/index.vue
@@ -1,5 +1,13 @@
<template>
  <div class="container"></div>
  <div class="productRegisterForm-container">
    <div class="filter-card">
      <CommonSearch :show-add="false" :amount-view="false" placeholder="请输入关键词" @searchClick="onFilterSearch">
        <template slot="leftButton">
          <el-button size="small" type="primary" @click="addBtnClick">新建</el-button>
        </template>
      </CommonSearch>
    </div>
  </div>
</template>
<script>
@@ -18,4 +26,16 @@
</script>
<!-- Add "scoped" attribute to limit CSS to this component only -->
<style lang="scss" scoped></style>
<style lang="scss" scoped>
.productRegisterForm-container {
  .filter-card {
    margin: 20px 30px;
    height: 80px;
    display: flex;
    align-items: center;
    padding: 0 20px 0 20px;
    border-radius: 12px;
    background-color: #fff;
  }
}
</style>