Sfoglia il codice sorgente

花材列表优化

shish 4 anni fa
parent
commit
b43794902c
1 ha cambiato i file con 23 aggiunte e 19 eliminazioni
  1. 23 19
      ghs/src/views/item/list.vue

+ 23 - 19
ghs/src/views/item/list.vue

@@ -330,37 +330,41 @@ export default {
 		app: null,
 		sortLink: '',
 		operateData: {},
-		statusOption: [{
-          value: '3',
-          label: '全部'
-        },{
-          value: '1',
-          label: '上架'
-        }, {
-          value: '2',
-          label: '下架'
-        }],
+		statusOption: [
+			{
+				value: '3',
+				label: '全部'
+			},
+			{
+				value: '1',
+				label: '上架'
+			}, 
+			{
+				value: '2',
+				label: '下架'
+			}
+		],
 		tabIndex: '0',
 		tabsData: [
 			{
-				text: '上架',
+				text: '全部',
 				key: '0'
 			},
 					{
-				text: '架',
+				text: '架',
 				key: '1'
 			},
 			{
-				text: '已停用',
+				text: '下架',
 				key: '2'
 			},
 			{
-				text: '全部',
+				text: '已停用',
 				key: '3'
 			}
 		],
 		selects: {},
-		status:1,
+		status:0,
 		delStatus:2,
 		sort: {
 			status: false
@@ -591,13 +595,13 @@ export default {
     tabClick (tab) {
 		let index = tab.index
 		if(index == 0){
-			this.app.refresh({ status: 1 ,delStatus:0});
+			this.app.refresh({ status:0,delStatus:2});
 		}else if(index == 1){
-			this.app.refresh({ status: 2 ,delStatus:0});
+			this.app.refresh({ status: 1 ,delStatus:0});
 		}else if(index == 2){
-			this.app.refresh({delStatus: 1,status:0});
+			this.app.refresh({status: 2 ,delStatus:0});
 		}else if(index == 3){
-			this.app.refresh({status:0,delStatus:2});
+			this.app.refresh({delStatus: 1,status:0});
 		}
     },
     onLoad ({ ctx, app }) {