shish 2 лет назад
Родитель
Сommit
5af0f21b50
2 измененных файлов с 6 добавлено и 4 удалено
  1. 1 1
      ghsApp/src/admin/home/apply.vue
  2. 5 3
      ghsApp/src/admin/stat/classProfit.vue

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

@@ -58,7 +58,7 @@ export default {
                         {name: "损耗花材",img: `${this.$constant.imgUrl}/ghs/home/jyzk.png`,url: "/admin/stat/wastage"},
                         {name: "损耗总览",img: `${this.$constant.imgUrl}/ghs/home/jyzk.png`,url: "/admin/stat/waste"},
                         {name: "结账跟踪",img: `${this.$constant.imgUrl}/ghs/home/jyzk.png`,url: "/admin/stat/clear"},
-                        {name: "分类",img: `${this.$constant.imgUrl}/ghs/home/jyzk.png`,url: "/admin/stat/classProfit"},
+                        {name: "分类收入",img: `${this.$constant.imgUrl}/ghs/home/jyzk.png`,url: "/admin/stat/classProfit"},
                     ]
                 },
                 {

+ 5 - 3
ghsApp/src/admin/stat/classProfit.vue

@@ -71,7 +71,7 @@ export default {
 	},
 	onPullDownRefresh() {
 		this.resetList();
-		this._list().then(res => {
+		this.getStatList().then(res => {
 			uni.stopPullDownRefresh();
 		});
 	},
@@ -93,11 +93,13 @@ export default {
 			this.init();			
 		},
 		async init() {
-			this._list();
+			this.getStatList();
 		},
-		_list() {
+		getStatList() {
 			let that = this
+			uni.showLoading({mask:true})
 			getClassProfit(this.params).then(res => {
+				uni.hideLoading()
 				that.profit = res.data
 			});
 		}