Browse Source

健康上报数目的默认值

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

20
pages.json

@ -53,10 +53,6 @@
"navigationBarTitleText": "申请健康码" "navigationBarTitleText": "申请健康码"
} }
}, },
{
"path": "pages/statistics/statistics",
"style": { "navigationBarTitleText": "统计" }
},
{ {
"path": "pages/my-code/my-code", "path": "pages/my-code/my-code",
"style": { "style": {
@ -68,14 +64,14 @@
"style": { "style": {
"navigationBarTitleText": "我的行程" "navigationBarTitleText": "我的行程"
} }
} },
,{ {
"path" : "pages/healthy-card/healthy-card", "path": "pages/healthy-card/healthy-card",
"style" : {} "style": {}
} },
,{ {
"path" : "pages/user-code/user-code", "path": "pages/user-code/user-code",
"style" : {} "style": {}
} }
], ],
"globalStyle": { "globalStyle": {

8
store/modules/statistics/mutations.js

@ -23,7 +23,13 @@ const mutations = {
* @param {array} data * @param {array} data
*/ */
setShoolSignNumber(state, 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 = { const state = {
userSigns: [], // 用户个人打卡记录 userSigns: [], // 用户个人打卡记录
shoolSigns: [], // 校园的打卡记录 shoolSigns: [], // 校园的打卡记录
shoolSignNumber: [], // 健康上报数目统计 shoolSignNumber: [
{ name: '正常', number: '-' },
{ name: '发烧', number: '-' },
{ name: '其他', number: '-' },
{ name: '未上报', number: '-' },
], // 健康上报数目统计
}; };
export default state; export default state;

Loading…
Cancel
Save