update
1.根据新疆反馈,修改相关问题
This commit is contained in:
@@ -84,13 +84,59 @@
|
||||
type: Number,
|
||||
default: () => 0,
|
||||
},
|
||||
bKey: {
|
||||
type: String,
|
||||
default: () => '',
|
||||
},
|
||||
});
|
||||
|
||||
onMounted(() => {
|
||||
init();
|
||||
});
|
||||
watch(props, () => {
|
||||
init();
|
||||
});
|
||||
watch(
|
||||
() => props.orgCode,
|
||||
() => {
|
||||
init();
|
||||
}
|
||||
);
|
||||
watch(
|
||||
() => props.bKey,
|
||||
() => {
|
||||
init();
|
||||
}
|
||||
);
|
||||
watch(
|
||||
() => props.type,
|
||||
() => {
|
||||
init();
|
||||
}
|
||||
);
|
||||
watch(
|
||||
() => props.themeType,
|
||||
() => {
|
||||
init();
|
||||
}
|
||||
);
|
||||
watch(
|
||||
() => props.refreshState,
|
||||
() => {
|
||||
init();
|
||||
}
|
||||
);
|
||||
watch(
|
||||
() => props.chooseType,
|
||||
() => {
|
||||
initByLocal();
|
||||
}
|
||||
);
|
||||
|
||||
async function initByLocal() {
|
||||
if (localStorage.getItem('monitorDataOne')) {
|
||||
dataList.value = JSON.parse(localStorage.getItem('monitorDataOne') || '{}');
|
||||
} else {
|
||||
await init();
|
||||
}
|
||||
}
|
||||
|
||||
const emit = defineEmits(['clickPie']);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user