浏览代码

查询优化 重置优化

liziliang 4 周之前
父节点
当前提交
df903d6ff0
共有 2 个文件被更改,包括 3 次插入2 次删除
  1. 2 1
      src/components/Search/index.vue
  2. 1 1
      src/views/sales/index.vue

+ 2 - 1
src/components/Search/index.vue

@@ -62,7 +62,8 @@ const getData = () => {
   emit("dataList");
   emit("dataList");
 };
 };
 const reset = () => {
 const reset = () => {
-  emit("resetList");
+  searchForm.value = {};
+  emit("dataList");
 };
 };
 const setSearchFrom = () => {
 const setSearchFrom = () => {
   props.searchOptions.forEach((option) => {});
   props.searchOptions.forEach((option) => {});

+ 1 - 1
src/views/sales/index.vue

@@ -113,7 +113,7 @@ const searchForm = [
   },
   },
   {
   {
     label: "顾客名称",
     label: "顾客名称",
-    prop: "custome",
+    prop: "customer",
     type: "input",
     type: "input",
   },
   },
   {
   {