Commit dca59dcc by Jaxon

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

在crew.js和index.js的urlMap中新增storeCount条目,指向店铺业绩页面;修复index.js中的代码格式问题,替换单引号为双引号并补充缺失的分号。
1 parent 391af9db
...@@ -336,6 +336,7 @@ Page({ ...@@ -336,6 +336,7 @@ Page({
const { key } = e.currentTarget.dataset; const { key } = e.currentTarget.dataset;
const urlMap = { const urlMap = {
staffCount: "/packageIndex/pages/stationStaffPerformance/stationStaffPerformance", staffCount: "/packageIndex/pages/stationStaffPerformance/stationStaffPerformance",
storeCount: "/packageIndex/pages/storePerformance/storePerformance",
shopCount: "/packageIndex/pages/storePerformance/storePerformance", shopCount: "/packageIndex/pages/storePerformance/storePerformance",
}; };
const url = urlMap[key]; const url = urlMap[key];
......
...@@ -225,6 +225,7 @@ Page({ ...@@ -225,6 +225,7 @@ Page({
const urlMap = { const urlMap = {
staffCount: "/packageIndex/pages/stationStaffPerformance/stationStaffPerformance", staffCount: "/packageIndex/pages/stationStaffPerformance/stationStaffPerformance",
shopCount: "/packageIndex/pages/storePerformance/storePerformance", shopCount: "/packageIndex/pages/storePerformance/storePerformance",
storeCount: "/packageIndex/pages/storePerformance/storePerformance",
}; };
const url = urlMap[key]; const url = urlMap[key];
if (!url) return; if (!url) return;
...@@ -366,8 +367,8 @@ Page({ ...@@ -366,8 +367,8 @@ Page({
val.updatedDate = val.updatedDate ? dayjs(val.updatedDate).format("YYYY-MM-DD HH:mm:ss") : ""; 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") : ""; val.createTime = val.createTime ? dayjs(val.createTime).format("YYYY-MM-DD HH:mm:ss") : "";
if (tabIndex == 3 && subTabIndex == 0) { if (tabIndex == 3 && subTabIndex == 0) {
val.taskStatus = val.status === 'UNFINISHED' ? 0 : 2 val.taskStatus = val.status === "UNFINISHED" ? 0 : 2;
if (val.completeTime) val.completeTime = dayjs(val.completeTime).format("YYYY-MM-DD HH:mm:ss") if (val.completeTime) val.completeTime = dayjs(val.completeTime).format("YYYY-MM-DD HH:mm:ss");
} }
}); });
if (code == 0) { if (code == 0) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!