1
This commit is contained in:
parent
ccf8e88cde
commit
c17568b04b
|
|
@ -930,14 +930,7 @@ export default {
|
|||
this.highlightEntity(coffeeMatEntity)
|
||||
},
|
||||
|
||||
imageClick(entity, clickPosition) {
|
||||
entity.info?.chartData.sort((a, b) => {
|
||||
// 将时间字符串转为 Date 对象进行比较
|
||||
const timeA = new Date(a.collect_time);
|
||||
const timeB = new Date(b.collect_time);
|
||||
// 正序:timeA - timeB;倒序:timeB - timeA
|
||||
return timeA - timeB;
|
||||
});
|
||||
imageClick(entity, clickPosition) {
|
||||
// debugger
|
||||
this.selectedEntity = {
|
||||
id: entity.id,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user