Commit 3f80dbda by 张杰

修复bug

1 parent ef16a493
...@@ -7,7 +7,7 @@ export const fenceShortcuts = [ ...@@ -7,7 +7,7 @@ export const fenceShortcuts = [
onClick(picker) { onClick(picker) {
const end = ""; const end = "";
const start = ""; const start = "";
picker.$emit("pick", [start, end]); picker.$emit("pick", []);
}, },
}, { }, {
text: "今日", text: "今日",
...@@ -66,7 +66,7 @@ export const shutDownShortcuts = [ ...@@ -66,7 +66,7 @@ export const shutDownShortcuts = [
onClick(picker) { onClick(picker) {
const end = ""; const end = "";
const start = ""; const start = "";
picker.$emit("pick", [start, end]); picker.$emit("pick", []);
}, },
}, },
{ {
......
...@@ -129,7 +129,7 @@ export default { ...@@ -129,7 +129,7 @@ export default {
label: "当前电量", label: "当前电量",
prop: "soc", prop: "soc",
formatter: (row) => { formatter: (row) => {
return `${row.soc||0}%`; return `${(row.soc || row.soc==0)?row.soc + '%':'--'}`;
}, },
}, },
], ],
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!