shish hace 4 años
padre
commit
2532908fba
Se han modificado 2 ficheros con 15 adiciones y 10 borrados
  1. 2 1
      ghsApp/src/admin/home/apply.vue
  2. 13 9
      ghsApp/src/admin/item/list.vue

+ 2 - 1
ghsApp/src/admin/home/apply.vue

@@ -33,7 +33,8 @@ export default {
                 {
                 {
                     title:'花材',
                     title:'花材',
                     list:[
                     list:[
-                        {name: "花材",img: `${this.$constant.imgUrl}/ghs/home/hcgl.png`,url: "/admin/item/list"},
+                        {name: "花材",img: `${this.$constant.imgUrl}/ghs/home/hcgl.png`,url: "/admin/item/list",query:{delStatus:1}},
+                        {name: "停用花材",img: `${this.$constant.imgUrl}/ghs/home/hcgl.png`,url: "/admin/item/list"},
                         {name: "花材分类",img: `${this.$constant.imgUrl}/ghs/home/hcgl.png`,url: "/admin/itemClass/list"},
                         {name: "花材分类",img: `${this.$constant.imgUrl}/ghs/home/hcgl.png`,url: "/admin/itemClass/list"},
                         {name: "小菊颜色",img: `${this.$constant.imgUrl}/ghs/home/hcgl.png`,url: "/admin/item/xjSelect"},
                         {name: "小菊颜色",img: `${this.$constant.imgUrl}/ghs/home/hcgl.png`,url: "/admin/item/xjSelect"},
                     ]
                     ]

+ 13 - 9
ghsApp/src/admin/item/list.vue

@@ -67,7 +67,9 @@ export default {
 			autoLoad: false,
 			autoLoad: false,
 			selectJobType: "stock",
 			selectJobType: "stock",
 			tabIndex: 0,
 			tabIndex: 0,
-			getAppIdList:{}
+			getAppIdList:{},
+			status:0,
+			delStatus:0
 		};
 		};
 	},
 	},
 	computed:{
 	computed:{
@@ -79,13 +81,15 @@ export default {
 	onLoad() {
 	onLoad() {
 		this.shopId = this.getMyShopInfo.id;
 		this.shopId = this.getMyShopInfo.id;
 		let type = '';
 		let type = '';
-		this.initData({ type, shopId: this.shopId,status:0});
-
-			let that = this
-			getWeixinId().then(res => {
-				that.getAppIdList = res.data
-			});
+		if(this.option.delStatus){
+			this.delStatus = this.option.delStatus
+		}
+		this.initData({ type, shopId: this.shopId,status:this.status,delStatus:this.delStatus})
 
 
+		let that = this
+		getWeixinId().then(res => {
+			that.getAppIdList = res.data
+		})
 	},
 	},
 	methods: {
 	methods: {
 		// #ifdef APP-PLUS
 		// #ifdef APP-PLUS
@@ -365,7 +369,7 @@ export default {
 				});
 				});
 				this.tabIndex = e.index;
 				this.tabIndex = e.index;
 				let type = "";
 				let type = "";
-				this.initData({ type, shopId: this.shopId });
+				this.initData({ type, shopId: this.shopId,delStatus:this.delStatus })
 			}
 			}
 		},
 		},
 		scrollTop() {},
 		scrollTop() {},
@@ -379,7 +383,7 @@ export default {
 			this.initProductInfo();
 			this.initProductInfo();
 			let type = "";
 			let type = "";
 			this.shopId = val.selectItem.id;
 			this.shopId = val.selectItem.id;
-			this.initData({ type, shopId: this.shopId });
+			this.initData({ type, shopId: this.shopId,delStatus:this.delStatus })
 		}
 		}
 	}
 	}
 };
 };