Commit e21474a7 authored by 李智书's avatar 李智书

1.班周消费报告页面修改

parent 24d28a68
faceico.ico

9.48 KB

...@@ -154,12 +154,28 @@ ...@@ -154,12 +154,28 @@
content: "统计周期为上周一至上周五", content: "统计周期为上周一至上周五",
}) })
}, },
bindPickerChange: function(e) { async bindPickerChange(e) {
console.log('picker发送选择改变,携带值为', e.target.value) try {
this.index = e.target.value uni.showLoading({
title: "加载中....."
// 切换班级获取报告 })
this.QueryClsReport(this.array[e.target.value].DepId) console.log('picker发送选择改变,携带值为', e.target.value)
this.index = e.target.value
// 切换班级获取报告
await this.QueryClsReport(this.array[e.target.value].DepId)
uni.setNavigationBarTitle({
title: (this.array[e.target.value].Name || "未知名班级") + "周消费报告"
})
uni.hideLoading()
} catch (e) {
//TODO handle the exception
uni.hideLoading()
uni.showModal({
title: "系统提示",
showCancel: false,
content: e.message,
})
}
}, },
// 切换班级选择汇总 // 切换班级选择汇总
...@@ -595,7 +611,6 @@ ...@@ -595,7 +611,6 @@
uni.showLoading({ uni.showLoading({
title: "加载中....." title: "加载中....."
}) })
try { try {
await this.tokenqrcode2Token(); await this.tokenqrcode2Token();
let AdminCls = await this.QueryAdminCls(); let AdminCls = await this.QueryAdminCls();
...@@ -613,6 +628,9 @@ ...@@ -613,6 +628,9 @@
// }] // }]
} }
await this.QueryClsReport(AdminCls.results[0].DepId); await this.QueryClsReport(AdminCls.results[0].DepId);
uni.setNavigationBarTitle({
title: (this.array[0].Name || "未知名班级") + "周消费报告"
})
await this.CaptureEvent() await this.CaptureEvent()
uni.hideLoading() uni.hideLoading()
} catch (e) { } catch (e) {
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
<meta charset="utf-8"> <meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<link rel="shortcut icon" type="image/x-icon" href="./faceico.ico"/>
<title> <title>
<%= htmlWebpackPlugin.options.title %> <%= htmlWebpackPlugin.options.title %>
</title> </title>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment