微调
This commit is contained in:
@@ -7,13 +7,17 @@ export namespace CheckData {
|
|||||||
chnNum: string,
|
chnNum: string,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface PhaseCheckResult {
|
||||||
|
standardValue: number,
|
||||||
|
|
||||||
|
}
|
||||||
/**
|
/**
|
||||||
* 用于定义 查看(设备)通道检测结果 类型
|
* 用于定义 查看(设备)通道检测结果 类型
|
||||||
*/
|
*/
|
||||||
export interface CheckResult {
|
export interface CheckResult {
|
||||||
chnNum: string,
|
chnNum: string,
|
||||||
standardValue: number,
|
standardValue: number,
|
||||||
A?: number,
|
dataA?: number,
|
||||||
A_errValue?: number,
|
A_errValue?: number,
|
||||||
B?: number,
|
B?: number,
|
||||||
B_errValue?: number,
|
B_errValue?: number,
|
||||||
|
|||||||
@@ -35,7 +35,8 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="content-tree">
|
<div class="content-tree">
|
||||||
<el-tree v-if="switchItem === 0" :default-expanded-keys="defaultExpandedKeys" node-key="index"
|
<el-tree v-if="switchItem === 0" :default-expanded-keys="defaultExpandedKeys" node-key="index"
|
||||||
:data="treeDataUnqualified" :props="defaultProps" @node-click="handleNodeClick" class="custom-tree">
|
:data="treeDataUnqualified" :props="defaultProps" @node-click="handleNodeClick"
|
||||||
|
class="custom-tree">
|
||||||
<template #default="{ node, data }">
|
<template #default="{ node, data }">
|
||||||
<span class="custom-tree-node">{{ data.scriptTypeName }}</span>
|
<span class="custom-tree-node">{{ data.scriptTypeName }}</span>
|
||||||
</template>
|
</template>
|
||||||
@@ -51,10 +52,18 @@
|
|||||||
|
|
||||||
<div class="content-right">
|
<div class="content-right">
|
||||||
<div class="content-right-title">
|
<div class="content-right-title">
|
||||||
<el-divider>当前检测项目</el-divider>
|
<span class="content-right-title-text">当前检测项目:</span>
|
||||||
<div class="content-right-title-desc">
|
<el-popover trigger="hover" :content="currentDesc? currentDesc : '无'" popper-class="popover-class" width="33%" placement="right">
|
||||||
{{ currentDesc ? currentDesc : "无" }}
|
<template #reference>
|
||||||
</div>
|
<el-button type="text" style="font-size: 16px;">
|
||||||
|
{{ currentScriptTypeName ? currentScriptTypeName : '无' }}
|
||||||
|
</el-button>
|
||||||
|
</template>
|
||||||
|
</el-popover>
|
||||||
|
<!-- <el-divider>当前检测项目</el-divider>-->
|
||||||
|
<!-- <div class="content-right-title-desc">-->
|
||||||
|
<!-- {{ currentDesc ? currentDesc : "无" }}-->
|
||||||
|
<!-- </div>-->
|
||||||
</div>
|
</div>
|
||||||
<div class="content-right-Tabs">
|
<div class="content-right-Tabs">
|
||||||
<el-tabs type="border-card" v-model="activeTab">
|
<el-tabs type="border-card" v-model="activeTab">
|
||||||
@@ -122,6 +131,9 @@ let treeDataAll: CheckData.TreeItem[] = []
|
|||||||
// 左侧树被选中的叶子节点id
|
// 左侧树被选中的叶子节点id
|
||||||
const checkIndex = ref<string>('')
|
const checkIndex = ref<string>('')
|
||||||
|
|
||||||
|
// 当前检测项目名称
|
||||||
|
const currentScriptTypeName = ref('')
|
||||||
|
// 当前检测项目描述
|
||||||
const currentDesc = ref('');
|
const currentDesc = ref('');
|
||||||
// 右侧Tab选中项
|
// 右侧Tab选中项
|
||||||
const activeTab = ref<string>('resultTab')
|
const activeTab = ref<string>('resultTab')
|
||||||
@@ -138,6 +150,7 @@ let defaultExpandedKeys: string[] = []
|
|||||||
const handleNodeClick = async (data: any) => {
|
const handleNodeClick = async (data: any) => {
|
||||||
if (!data.children) {
|
if (!data.children) {
|
||||||
checkIndex.value = data.index
|
checkIndex.value = data.index
|
||||||
|
currentScriptTypeName.value = data.scriptTypeName
|
||||||
currentDesc.value = data.sourceDesc
|
currentDesc.value = data.sourceDesc
|
||||||
|
|
||||||
if (checkIndex.value) {
|
if (checkIndex.value) {
|
||||||
@@ -281,10 +294,12 @@ const defaultOperate = () => {
|
|||||||
node = getDefaultNode(treeDataAll)
|
node = getDefaultNode(treeDataAll)
|
||||||
}
|
}
|
||||||
if (node) {
|
if (node) {
|
||||||
|
currentScriptTypeName.value = node.scriptTypeName
|
||||||
currentDesc.value = node.sourceDesc
|
currentDesc.value = node.sourceDesc
|
||||||
checkIndex.value = node.index
|
checkIndex.value = node.index
|
||||||
defaultExpandedKeys = [node.index]
|
defaultExpandedKeys = [node.index]
|
||||||
} else {
|
} else {
|
||||||
|
currentScriptTypeName.value = ''
|
||||||
currentDesc.value = ''
|
currentDesc.value = ''
|
||||||
checkIndex.value = ''
|
checkIndex.value = ''
|
||||||
defaultExpandedKeys = []
|
defaultExpandedKeys = []
|
||||||
@@ -310,6 +325,7 @@ const updateTableData = async () => {
|
|||||||
maxErrVaule: 0.05774,
|
maxErrVaule: 0.05774,
|
||||||
result: '合格',
|
result: '合格',
|
||||||
}])
|
}])
|
||||||
|
|
||||||
Object.assign(rawTableData, [
|
Object.assign(rawTableData, [
|
||||||
{
|
{
|
||||||
updateTime: "2024-10-10 09:30:00",
|
updateTime: "2024-10-10 09:30:00",
|
||||||
@@ -494,6 +510,7 @@ const close = () => {
|
|||||||
defaultExpandedKeys = []
|
defaultExpandedKeys = []
|
||||||
checkIndex.value = ''
|
checkIndex.value = ''
|
||||||
activeTab.value = 'resultTab'
|
activeTab.value = 'resultTab'
|
||||||
|
currentScriptTypeName.value = ''
|
||||||
currentDesc.value = ''
|
currentDesc.value = ''
|
||||||
switchItem = 0
|
switchItem = 0
|
||||||
|
|
||||||
@@ -651,29 +668,44 @@ defineExpose({
|
|||||||
flex: 1;
|
flex: 1;
|
||||||
|
|
||||||
.content-right-title {
|
.content-right-title {
|
||||||
.el-divider--horizontal {
|
margin-top: 10px;
|
||||||
//margin-top: 0px;
|
line-height: 1.5;
|
||||||
margin-bottom: 5px;
|
|
||||||
height: 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.content-right-title-desc {
|
.content-right-title-text {
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
height: 48px;
|
font-weight: bold;
|
||||||
max-height: 48px;
|
|
||||||
overflow-y: auto;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.content-right-Tabs {
|
//.el-divider--horizontal {
|
||||||
box-sizing: border-box;
|
// //margin-top: 0px;
|
||||||
margin-top: 20px;
|
// margin-bottom: 5px;
|
||||||
margin-bottom: 10px;
|
// height: 20px;
|
||||||
max-height: 400px;
|
//}
|
||||||
}
|
|
||||||
|
//.content-right-title-desc {
|
||||||
|
// font-size: 16px;
|
||||||
|
// height: 48px;
|
||||||
|
// max-height: 48px;
|
||||||
|
// overflow-y: auto;
|
||||||
|
//}
|
||||||
|
}
|
||||||
|
|
||||||
|
.content-right-Tabs {
|
||||||
|
box-sizing: border-box;
|
||||||
|
margin-top: 10px;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
max-height: 400px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
</style>
|
||||||
</style>
|
<!--<style lang="scss">-->
|
||||||
|
<!--.el-popover.popover-class {-->
|
||||||
|
<!-- .el-popover__title {-->
|
||||||
|
<!-- color: #fff;-->
|
||||||
|
<!-- background-color: #003078 !important;-->
|
||||||
|
<!-- }-->
|
||||||
|
<!--}-->
|
||||||
|
<!--</style>-->
|
||||||
Reference in New Issue
Block a user