|
@@ -245,20 +245,16 @@
|
|
|
})
|
|
|
},
|
|
|
getBaseData() {
|
|
|
- if (uni.getStorageSync('dutys')) {
|
|
|
- this.groupView = uni.getStorageSync("groupView")
|
|
|
- } else {
|
|
|
- dutyApi.getByList().then((res) => {
|
|
|
- uni.setStorageSync("dutys", res.data)
|
|
|
- })
|
|
|
- selectGroupUser().then((res) => {
|
|
|
- uni.setStorageSync("groupUser", res.data)
|
|
|
- })
|
|
|
- getGroupView().then((res) => {
|
|
|
- uni.setStorageSync("groupView", res.data)
|
|
|
- this.groupView = res.data
|
|
|
- })
|
|
|
- }
|
|
|
+ //dutyApi.getByList().then((res) => {
|
|
|
+ // uni.setStorageSync("dutys", res.data)
|
|
|
+ //})
|
|
|
+ selectGroupUser().then((res) => {
|
|
|
+ uni.setStorageSync("groupUser", res.data)
|
|
|
+ })
|
|
|
+ getGroupView().then((res) => {
|
|
|
+ uni.setStorageSync("groupView", res.data)
|
|
|
+ this.groupView = res.data
|
|
|
+ })
|
|
|
},
|
|
|
getStatisticsData() {
|
|
|
if (this.statisticsIdx === 0) {
|