|
|
@@ -56,6 +56,8 @@ Page({
|
|
|
valueKey: "dateType", //返回Key
|
|
|
selectKey: "id",
|
|
|
value: "id", //选中值
|
|
|
+ index: 0,
|
|
|
+ default: 0,
|
|
|
list: [{
|
|
|
name: "近一年",
|
|
|
id: 1
|
|
|
@@ -110,7 +112,10 @@ Page({
|
|
|
|
|
|
data.list.map((v, i) => {
|
|
|
v.index = i;
|
|
|
- if (v.type == '人员' && v.id == wx.getStorageSync('userMsg').userid) data.index = i;
|
|
|
+ if (v.type == '人员' && v.id == wx.getStorageSync('userMsg').userid) {
|
|
|
+ data.index = i
|
|
|
+ data.default = i
|
|
|
+ };
|
|
|
return v
|
|
|
})
|
|
|
|