树控件样式微调
This commit is contained in:
@@ -64,17 +64,21 @@ const getTreeData = (val: any) => {
|
||||
|
||||
treeRef.value.setCurrentKey(defaultChecked.value);
|
||||
};
|
||||
|
||||
const getCurrentIndex = (val: number) => {
|
||||
currentIndex.value = val;
|
||||
};
|
||||
const filterText = ref("");
|
||||
const treeRef = ref();
|
||||
const currentIndex = ref(0);
|
||||
|
||||
const timer = setInterval(() => {
|
||||
currentIndex.value++;
|
||||
if (currentIndex.value > 14)
|
||||
currentIndex.value = 0;
|
||||
// console.log(currentIndex.value);
|
||||
// const timer = setInterval(() => {
|
||||
// currentIndex.value++;
|
||||
// if (currentIndex.value > 14)
|
||||
// currentIndex.value = 0;
|
||||
// // console.log(currentIndex.value);
|
||||
|
||||
}, 2000);
|
||||
// }, 2000);
|
||||
|
||||
|
||||
watch(
|
||||
@@ -103,7 +107,7 @@ const detail = (e: any) => {
|
||||
onMounted(() => {
|
||||
console.log();
|
||||
});
|
||||
defineExpose({ getTreeData });
|
||||
defineExpose({ getTreeData,getCurrentIndex });
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
.plan_tree {
|
||||
|
||||
@@ -443,8 +443,17 @@ const refreshProgress = () => {
|
||||
if(testModel.value === "preTest")
|
||||
ElMessage.success("预检测过程全部结束")
|
||||
else if(testModel.value === "Test")
|
||||
ElMessage.success("正式检测全部结束,你可以停留在此页面查看检测结果,或返回首页进行复检、报告生成和归档等操作")
|
||||
|
||||
//ElMessage.success("正式检测全部结束,你可以停留在此页面查看检测结果,或返回首页进行复检、报告生成和归档等操作")
|
||||
ElMessageBox.confirm(
|
||||
'检测全部结束,你可以停留在此页面查看检测结果,或返回首页进行复检、报告生成和归档等操作',
|
||||
'检测完成',
|
||||
{
|
||||
confirmButtonText: 'OK',
|
||||
cancelButtonText: 'Cancel',
|
||||
type: 'success',
|
||||
}
|
||||
)
|
||||
.then()
|
||||
// percentage.value = 0;
|
||||
// statusList.value = [];
|
||||
// deviceTestList.value = [];
|
||||
@@ -510,6 +519,7 @@ const interValTest = () => {
|
||||
});
|
||||
// console.log(deviceTestList.value,11111);
|
||||
currentIndex++;
|
||||
treeRef.value && treeRef.value.getCurrentIndex(currentIndex)
|
||||
refreshProgress();
|
||||
}, 2000);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user