lilei 2 سال پیش
والد
کامیت
bb0e032270
3فایلهای تغییر یافته به همراه11 افزوده شده و 6 حذف شده
  1. 1 1
      pages/statistics/index.vue
  2. 7 3
      pages/vinAnalyse/fitProductlist.vue
  3. 3 2
      pages/vinAnalyse/shelfAnalyse.vue

+ 1 - 1
pages/statistics/index.vue

@@ -127,7 +127,7 @@
 				opts: {},
 				opts1:{},
 				opts2:{},
-				allData: null,
+				allData: {xprhFlag:true},
 				showSearch: false,
 				showDate: false,
 				dateArray: '',

+ 7 - 3
pages/vinAnalyse/fitProductlist.vue

@@ -88,6 +88,7 @@ export default {
 			isSortFlag: 0,
 			list: [],
 			shelfSn: '',
+			shelfName: '',
 			pageNo: 1,
 			pageSize: 10,
 			noDataText: '暂无数据',
@@ -99,21 +100,24 @@ export default {
 				borderColor: this.$config('primaryColor'),
 				backgroundColor: this.$config('primaryColor'),
 				color: '#fff'
-			}
+			},
 		};
 	},
 	onLoad(options) {
 		this.theme = getApp().globalData.theme;
 		this.shelfSn = options.shelfSn;
+		this.shelfName = options.shelfName;
 		let ajaxData = {
 			pageNo: this.pageNo,
 			pageSize: this.pageSize,
 			shelfSn: this.shelfSn
 		};
 		this.loadData(ajaxData);
+	},
+	onReady() {
 		uni.setNavigationBarTitle({
-			title: options.shelfName
-		});
+			title: this.shelfName
+		})
 	},
 	onBackPress(e) {
 		if (this.sortShow) {

+ 3 - 2
pages/vinAnalyse/shelfAnalyse.vue

@@ -186,7 +186,6 @@
 		onLoad(option) {
 			this.shelfSn = option.shelfSn
 			this.shelfName = option.shelfName
-			console.log('222:',option.shelfName)
 			let ajaxData={
 				shelfSn:option.shelfSn,
 				pageNo: this.pageNo, 
@@ -194,8 +193,10 @@
 			}
 			this.getList(ajaxData);
 			this.theme = getApp().globalData.theme;
+		},
+		onReady() {
 			uni.setNavigationBarTitle({
-				title:option.shelfName
+				title: this.shelfName
 			})
 		},
 		methods:{