|
|
@@ -59,7 +59,7 @@ import AppSearchModule from "@/components/module/app-search";
|
|
|
import OperateModule from "@/admin/home/components/module/operate";
|
|
|
import AppWrapperEmpty from "@/components/app-wrapper-empty";
|
|
|
import ModalModule from "@/components/plugin/modal";
|
|
|
-import {categoryListB,getCategoryGoodsB,delB,changeStatusB} from "@/api/goods";
|
|
|
+import {categoryListB,getCategoryGoodsB} from "@/api/goods";
|
|
|
import { list } from "@/mixins";
|
|
|
export default {
|
|
|
name: "list",
|
|
|
@@ -127,7 +127,7 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
getGoodsList() {
|
|
|
- return getCategoryGoodsB({ status: 1, page: this.list.page, ...this.form }).then(res => {
|
|
|
+ return getCategoryGoodsB({ status:'', page: this.list.page, ...this.form }).then(res => {
|
|
|
this.completes(res)
|
|
|
})
|
|
|
},
|
|
|
@@ -141,15 +141,6 @@ export default {
|
|
|
this.resetList();
|
|
|
this.getGoodsList();
|
|
|
}
|
|
|
- },
|
|
|
- changeStatus(item) {
|
|
|
- let status = item.status == 0 ? 1 : 0
|
|
|
- changeStatusB({id: item.id,status: status}).then(res => {
|
|
|
- if(res.code == 1){
|
|
|
- this.$msg("修改成功")
|
|
|
- item.status = status
|
|
|
- }
|
|
|
- })
|
|
|
}
|
|
|
}
|
|
|
};
|