Commit 87ffd175 by Jaxon

Merge branch 'feature/statistics' into 'SAAS+V5.8.2'

feat(tab): 添加storeCount导航配置并修复代码格式

See merge request !10
2 parents e0bf5626 dca59dcc
......@@ -336,6 +336,7 @@ Page({
const { key } = e.currentTarget.dataset;
const urlMap = {
staffCount: "/packageIndex/pages/stationStaffPerformance/stationStaffPerformance",
storeCount: "/packageIndex/pages/storePerformance/storePerformance",
shopCount: "/packageIndex/pages/storePerformance/storePerformance",
};
const url = urlMap[key];
......
......@@ -225,6 +225,7 @@ Page({
const urlMap = {
staffCount: "/packageIndex/pages/stationStaffPerformance/stationStaffPerformance",
shopCount: "/packageIndex/pages/storePerformance/storePerformance",
storeCount: "/packageIndex/pages/storePerformance/storePerformance",
};
const url = urlMap[key];
if (!url) return;
......@@ -366,8 +367,8 @@ Page({
val.updatedDate = val.updatedDate ? dayjs(val.updatedDate).format("YYYY-MM-DD HH:mm:ss") : "";
val.createTime = val.createTime ? dayjs(val.createTime).format("YYYY-MM-DD HH:mm:ss") : "";
if (tabIndex == 3 && subTabIndex == 0) {
val.taskStatus = val.status === 'UNFINISHED' ? 0 : 2
if (val.completeTime) val.completeTime = dayjs(val.completeTime).format("YYYY-MM-DD HH:mm:ss")
val.taskStatus = val.status === "UNFINISHED" ? 0 : 2;
if (val.completeTime) val.completeTime = dayjs(val.completeTime).format("YYYY-MM-DD HH:mm:ss");
}
});
if (code == 0) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!