shish hace 5 años
padre
commit
da7a5cf76a
Se han modificado 2 ficheros con 22 adiciones y 12 borrados
  1. 21 11
      ghs/src/service/product/index.js
  2. 1 1
      ghs/src/views/item/list.vue

+ 21 - 11
ghs/src/service/product/index.js

@@ -28,18 +28,28 @@ list(data) {
     method: 'POST',
     data: data
   });
+ }
+
+  /** *
+   * 新增花材  姜枫2021.06.22
+   */
+  addProduct(data) {
+      return this.request({
+          url: '/add',
+          method: 'POST',
+          data: data
+      });
   }
-    /** *
-     * 新增花材  姜枫2021.06.22
-     */
-    addProduct(data) {
-        return this.request({
-            url: '/add',
-            method: 'POST',
-            data: data
-        });
-    }
-  
+
+	//花材上下架
+	delStatusUpdate(data) {
+	return this.request({
+	    url: '/del-status-update',
+	    method: 'POST',
+	    data: data
+	});
+	}
+
 }
   
 export default new ProductService();

+ 1 - 1
ghs/src/views/item/list.vue

@@ -453,7 +453,7 @@ export default {
 			this.addDialog = false;
 		},
     setStatusFun(id,type){
-      this.$service.product.update({id:id,delStatus:type}).then(res => {
+      this.$service.product.delStatusUpdate({id:id,delStatus:type}).then(res => {
         this.$message.success('操作成功!')
         this.app.refresh()
       }).catch(err => {})