Browse Source

健康上报数目的默认值

remotes/origin/HEAD
wally 5 years ago
parent
commit
91022bfd6e
  1. 70
      pages.json
  2. 8
      store/modules/statistics/mutations.js
  3. 7
      store/modules/statistics/state.js

70
pages.json

@ -41,43 +41,39 @@
"navigationBarTitleText": "基本信息填写"
}
},
{
"path": "pages/add-stroke/add-stroke",
"style": {
"navigationBarTitleText": "添加行程"
}
},
{
"path": "pages/apply-code/apply-code",
"style": {
"navigationBarTitleText": "申请健康码"
}
},
{
"path": "pages/statistics/statistics",
"style": { "navigationBarTitleText": "统计" }
},
{
"path": "pages/my-code/my-code",
"style": {
"navigationBarTitleText": "我的健康打卡"
}
},
{
"path": "pages/my-trips/my-trips",
"style": {
"navigationBarTitleText": "我的行程"
}
}
,{
"path" : "pages/healthy-card/healthy-card",
"style" : {}
}
,{
"path" : "pages/user-code/user-code",
"style" : {}
}
],
{
"path": "pages/add-stroke/add-stroke",
"style": {
"navigationBarTitleText": "添加行程"
}
},
{
"path": "pages/apply-code/apply-code",
"style": {
"navigationBarTitleText": "申请健康码"
}
},
{
"path": "pages/my-code/my-code",
"style": {
"navigationBarTitleText": "我的健康打卡"
}
},
{
"path": "pages/my-trips/my-trips",
"style": {
"navigationBarTitleText": "我的行程"
}
},
{
"path": "pages/healthy-card/healthy-card",
"style": {}
},
{
"path": "pages/user-code/user-code",
"style": {}
}
],
"globalStyle": {
"navigationBarTextStyle": "black",
"navigationBarTitleText": "山大健康码",

8
store/modules/statistics/mutations.js

@ -23,7 +23,13 @@ const mutations = {
* @param {array} data
*/
setShoolSignNumber(state, data) {
state.shoolSignNumber = data || [];
const arr = [
{ name: '正常', number: '-' },
{ name: '发烧', number: '-' },
{ name: '其他', number: '-' },
{ name: '未上报', number: '-' },
];
state.shoolSignNumber = data || arr;
},
};

7
store/modules/statistics/state.js

@ -1,7 +1,12 @@
const state = {
userSigns: [], // 用户个人打卡记录
shoolSigns: [], // 校园的打卡记录
shoolSignNumber: [], // 健康上报数目统计
shoolSignNumber: [
{ name: '正常', number: '-' },
{ name: '发烧', number: '-' },
{ name: '其他', number: '-' },
{ name: '未上报', number: '-' },
], // 健康上报数目统计
};
export default state;

Loading…
Cancel
Save