|
|
@@ -27,6 +27,21 @@ App({
|
|
|
})
|
|
|
wx.setStorageSync('userauth', res.data);
|
|
|
});
|
|
|
+ if (!wx.getStorageSync('templetList')) this.globalData.http.basic({
|
|
|
+ "classname": "sysmanage.develop.querytemplet.querytemplet",
|
|
|
+ "method": "query",
|
|
|
+ "content": {}
|
|
|
+ }).then(res => {
|
|
|
+ console.log("获取列表查询条件", res)
|
|
|
+ if (res.msg != '成功') return;
|
|
|
+ let data = res.data.find(v => v.templetname == '站点全部');
|
|
|
+ if (data) {
|
|
|
+ res.data = res.data.filter(v => v.templetname != '站点全部')
|
|
|
+ res.data.unshift(data)
|
|
|
+ }
|
|
|
+ wx.setStorageSync('templetList', res.data)
|
|
|
+ getCurrentPages()[getCurrentPages().length - 1].getList && getCurrentPages()[getCurrentPages().length - 1].getList(true);
|
|
|
+ })
|
|
|
}
|
|
|
},
|
|
|
initSocket() {
|