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

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

parent 5efbcf65
...@@ -19,6 +19,19 @@ export default { ...@@ -19,6 +19,19 @@ export default {
type: Object, type: Object,
default: () => {}, default: () => {},
}, },
data() {
return {
info: this.info || {},
};
},
},
watch: {
info: {
deep: true,
handler(val) {
this._initEcharts();
},
},
}, },
mounted() { mounted() {
this._initEcharts(); this._initEcharts();
...@@ -29,7 +42,11 @@ export default { ...@@ -29,7 +42,11 @@ export default {
const echarts = this.$echarts; const echarts = this.$echarts;
let option = { let option = {
title: { 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", x: "center",
y: "center", y: "center",
textStyle: { textStyle: {
...@@ -107,4 +124,4 @@ export default { ...@@ -107,4 +124,4 @@ export default {
}, },
}, },
}; };
</script> </script>
\ No newline at end of file
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