lxf преди 1 година
родител
ревизия
0ba477a0e7

+ 2 - 1
src/views/group/product/groupSKU/index.vue

@@ -212,6 +212,7 @@ const getList = async (req, status) => {
     sourceList.value.pagination = {
       pageNum: sourceList.value.pagination.pageNum,
       pageSize: sourceList.value.pagination.pageSize,
+      type: 1,
     };
   } else {
     sourceList.value.pagination = { ...sourceList.value.pagination, ...req };
@@ -227,7 +228,7 @@ const getList = async (req, status) => {
 };
 getList();
 const clickReset = () => {
-  getList({ type: 1 }, true);
+  getList("", true);
 };
 const modalTitle = ref("添加SKU");
 const openDialog = ref(false);

+ 2 - 1
src/views/group/product/management/index.vue

@@ -240,6 +240,7 @@ const getList = async (req, status) => {
     sourceList.value.pagination = {
       pageNum: sourceList.value.pagination.pageNum,
       pageSize: sourceList.value.pagination.pageSize,
+      type: 0,
     };
   } else {
     sourceList.value.pagination = { ...sourceList.value.pagination, ...req };
@@ -255,7 +256,7 @@ const getList = async (req, status) => {
 };
 getList();
 const clickReset = () => {
-  getList({ type: 0 }, true);
+  getList("", true);
 };
 const modalTitle = ref("添加SKU");
 const openDialog = ref(false);

+ 2 - 1
src/views/subsidiary/product/management/index.vue

@@ -192,6 +192,7 @@ const getList = async (req, status) => {
     sourceList.value.pagination = {
       pageNum: sourceList.value.pagination.pageNum,
       pageSize: sourceList.value.pagination.pageSize,
+      type: 0,
     };
   } else {
     sourceList.value.pagination = { ...sourceList.value.pagination, ...req };
@@ -207,7 +208,7 @@ const getList = async (req, status) => {
 };
 getList();
 const clickReset = () => {
-  getList({ type: 0 }, true);
+  getList("", true);
 };
 const modalTitle = ref("编辑SKU");
 const openDialog = ref(false);