|
@@ -26,13 +26,17 @@ function getapps() {
|
|
|
path: "/packageA/salesHourglass/index",
|
|
|
icon: "work-xiaoshouloudou"
|
|
|
}];
|
|
|
- let app = getApp().globalData.queryPer.query(wx.getStorageSync('userauth'), ['通用'], ['通用', '数据分析']),
|
|
|
+ let app = [...getApp().globalData.queryPer.query(wx.getStorageSync('userauth'), ['通用'], ['通用']), ...getApp().globalData.queryPer.query(wx.getStorageSync('userauth'), ['数据统计'], ['数据分析'])],
|
|
|
list = [];
|
|
|
app.forEach((v, i) => {
|
|
|
v.apps.forEach(s => {
|
|
|
authList[s.name] = {
|
|
|
options: s.meta.auth.map(a => a.option),
|
|
|
optionnames: s.meta.auth.map(a => a.optionname),
|
|
|
+ istask: s.istask == 1,
|
|
|
+ isdatafollowup: s.isdatafollowup == 1,
|
|
|
+ isdatatag: s.isdatatag == 1,
|
|
|
+ isdatateam: s.isdatateam == 1,
|
|
|
}
|
|
|
if (authList[s.name].options.some(s => s == "read")) {
|
|
|
let i = paths.findIndex(k => k.name == s.meta.title);
|