From 71173a58ca6d4f50255074b2e752cc382d0db3d5 Mon Sep 17 00:00:00 2001
From: yangfeng <wanwan926_4@163.com>
Date: 星期四, 29 二月 2024 15:36:00 +0800
Subject: [PATCH] 产量登记表公共搜索组件使用
---
src/views/productManage/productRegisterForm/index.vue | 24 ++++++++++++++++++++++--
src/components/makepager/CommonSearch.vue | 7 ++++++-
2 files changed, 28 insertions(+), 3 deletions(-)
diff --git a/src/components/makepager/CommonSearch.vue b/src/components/makepager/CommonSearch.vue
index e66ff33..0af4d23 100644
--- a/src/components/makepager/CommonSearch.vue
+++ b/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>
diff --git a/src/views/productManage/productRegisterForm/index.vue b/src/views/productManage/productRegisterForm/index.vue
index 98d35f9..db864a0 100644
--- a/src/views/productManage/productRegisterForm/index.vue
+++ b/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>
--
Gitblit v1.8.0