树控件样式微调
This commit is contained in:
@@ -55,13 +55,13 @@
|
|||||||
type="primary"
|
type="primary"
|
||||||
@click="handleTest"
|
@click="handleTest"
|
||||||
v-if="form.activeTabs === 0"
|
v-if="form.activeTabs === 0"
|
||||||
>自动检测</el-button
|
>手动检测</el-button
|
||||||
>
|
>
|
||||||
<el-button
|
<el-button
|
||||||
type="primary"
|
type="primary"
|
||||||
@click="handleTest"
|
@click="handleTest"
|
||||||
v-if="form.activeTabs === 0"
|
v-if="form.activeTabs === 0"
|
||||||
>手动检测</el-button
|
>自动检测</el-button
|
||||||
>
|
>
|
||||||
<el-button type="primary" v-if="form.activeTabs === 2"
|
<el-button type="primary" v-if="form.activeTabs === 2"
|
||||||
>不合格项复检</el-button
|
>不合格项复检</el-button
|
||||||
@@ -114,6 +114,14 @@
|
|||||||
>生成</el-button
|
>生成</el-button
|
||||||
>
|
>
|
||||||
<el-button
|
<el-button
|
||||||
|
type="primary"
|
||||||
|
link
|
||||||
|
:icon="View"
|
||||||
|
@click="openDrawer('数据查看', scope.row)"
|
||||||
|
v-if="form.activeTabs === 4"
|
||||||
|
>数据查看</el-button
|
||||||
|
>
|
||||||
|
<el-button
|
||||||
type="primary"
|
type="primary"
|
||||||
link
|
link
|
||||||
:icon="EditPen"
|
:icon="EditPen"
|
||||||
@@ -685,7 +693,7 @@ function disablecheckResultList(val: string){
|
|||||||
const handleTest = () => {
|
const handleTest = () => {
|
||||||
//自动检测
|
//自动检测
|
||||||
if (form.value.activeTabs === 0) {
|
if (form.value.activeTabs === 0) {
|
||||||
ElMessage.success("自动检测");
|
ElMessage.success("手动检测");
|
||||||
router.push({
|
router.push({
|
||||||
path: "/plan/autoTest",
|
path: "/plan/autoTest",
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -124,7 +124,7 @@ const form: any = ref({
|
|||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
const activeNames = ref(['2'])
|
const activeNames = ref(['2'])
|
||||||
const tabShow= ref(false);
|
const tabShow= ref(false);
|
||||||
const tabLabel1 = ref('自动检测')
|
const tabLabel1 = ref('设备检测')
|
||||||
const editableTabsValue = ref('0')
|
const editableTabsValue = ref('0')
|
||||||
const handleChange = (val: string[]) => {
|
const handleChange = (val: string[]) => {
|
||||||
// console.log(val)
|
// console.log(val)
|
||||||
|
|||||||
@@ -64,17 +64,21 @@ const getTreeData = (val: any) => {
|
|||||||
|
|
||||||
treeRef.value.setCurrentKey(defaultChecked.value);
|
treeRef.value.setCurrentKey(defaultChecked.value);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const getCurrentIndex = (val: number) => {
|
||||||
|
currentIndex.value = val;
|
||||||
|
};
|
||||||
const filterText = ref("");
|
const filterText = ref("");
|
||||||
const treeRef = ref();
|
const treeRef = ref();
|
||||||
const currentIndex = ref(0);
|
const currentIndex = ref(0);
|
||||||
|
|
||||||
const timer = setInterval(() => {
|
// const timer = setInterval(() => {
|
||||||
currentIndex.value++;
|
// currentIndex.value++;
|
||||||
if (currentIndex.value > 14)
|
// if (currentIndex.value > 14)
|
||||||
currentIndex.value = 0;
|
// currentIndex.value = 0;
|
||||||
// console.log(currentIndex.value);
|
// // console.log(currentIndex.value);
|
||||||
|
|
||||||
}, 2000);
|
// }, 2000);
|
||||||
|
|
||||||
|
|
||||||
watch(
|
watch(
|
||||||
@@ -103,7 +107,7 @@ const detail = (e: any) => {
|
|||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
console.log();
|
console.log();
|
||||||
});
|
});
|
||||||
defineExpose({ getTreeData });
|
defineExpose({ getTreeData,getCurrentIndex });
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.plan_tree {
|
.plan_tree {
|
||||||
|
|||||||
@@ -443,8 +443,17 @@ const refreshProgress = () => {
|
|||||||
if(testModel.value === "preTest")
|
if(testModel.value === "preTest")
|
||||||
ElMessage.success("预检测过程全部结束")
|
ElMessage.success("预检测过程全部结束")
|
||||||
else if(testModel.value === "Test")
|
else if(testModel.value === "Test")
|
||||||
ElMessage.success("正式检测全部结束,你可以停留在此页面查看检测结果,或返回首页进行复检、报告生成和归档等操作")
|
//ElMessage.success("正式检测全部结束,你可以停留在此页面查看检测结果,或返回首页进行复检、报告生成和归档等操作")
|
||||||
|
ElMessageBox.confirm(
|
||||||
|
'检测全部结束,你可以停留在此页面查看检测结果,或返回首页进行复检、报告生成和归档等操作',
|
||||||
|
'检测完成',
|
||||||
|
{
|
||||||
|
confirmButtonText: 'OK',
|
||||||
|
cancelButtonText: 'Cancel',
|
||||||
|
type: 'success',
|
||||||
|
}
|
||||||
|
)
|
||||||
|
.then()
|
||||||
// percentage.value = 0;
|
// percentage.value = 0;
|
||||||
// statusList.value = [];
|
// statusList.value = [];
|
||||||
// deviceTestList.value = [];
|
// deviceTestList.value = [];
|
||||||
@@ -510,6 +519,7 @@ const interValTest = () => {
|
|||||||
});
|
});
|
||||||
// console.log(deviceTestList.value,11111);
|
// console.log(deviceTestList.value,11111);
|
||||||
currentIndex++;
|
currentIndex++;
|
||||||
|
treeRef.value && treeRef.value.getCurrentIndex(currentIndex)
|
||||||
refreshProgress();
|
refreshProgress();
|
||||||
}, 2000);
|
}, 2000);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user