Commit b6e5a5fe authored by 姬鋆屾's avatar 姬鋆屾

推,修改签到准时率搜索后数据不更新

parent 5efbcf65
......@@ -19,6 +19,19 @@ export default {
type: Object,
default: () => {},
},
data() {
return {
info: this.info || {},
};
},
},
watch: {
info: {
deep: true,
handler(val) {
this._initEcharts();
},
},
},
mounted() {
this._initEcharts();
......@@ -29,7 +42,11 @@ export default {
const echarts = this.$echarts;
let option = {
title: {
text: `{c|${this.info.starttime}~${this.info.endtime}} \n{a|` + (this.info.success_rate * 100).toFixed(2) + "%" + "}",
text:
`{c|${this.info.starttime}~${this.info.endtime}} \n{a|` +
(this.info.success_rate * 100).toFixed(2) +
"%" +
"}",
x: "center",
y: "center",
textStyle: {
......@@ -107,4 +124,4 @@ export default {
},
},
};
</script>
\ No newline at end of file
</script>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment