主界面,系数校准界面调整
This commit is contained in:
@@ -22,33 +22,33 @@
|
||||
<el-step>
|
||||
<template #title>
|
||||
<span>大电压/电流系数下装</span><br/>
|
||||
<span>源输出为:</span><br/>
|
||||
<span v-if="active > 0">Ua=Ub=Uc=57.74V</span><br/>
|
||||
<span v-if="active > 0">Ia=Ib=Ic=10A</span>
|
||||
<span class="spanStyle">源输出为:</span><br/>
|
||||
<span class="spanStyle" v-if="active > 0">Ua=Ub=Uc=57.74V</span><br/>
|
||||
<span class="spanStyle" v-if="active > 0">Ia=Ib=Ic=10A</span>
|
||||
</template>
|
||||
</el-step>
|
||||
<el-step>
|
||||
<template #title>
|
||||
<span>小电压/电流系数下装</span><br/>
|
||||
<span>源输出为:</span><br/>
|
||||
<span v-if="active > 1">Ua=Ub=Uc=5.774V</span><br/>
|
||||
<span v-if="active > 1">Ia=Ib=Ic=1A</span>
|
||||
<span class="spanStyle">源输出为:</span><br/>
|
||||
<span class="spanStyle" v-if="active > 1">Ua=Ub=Uc=5.774V</span><br/>
|
||||
<span class="spanStyle" v-if="active > 1">Ia=Ib=Ic=1A</span>
|
||||
</template>
|
||||
</el-step>
|
||||
<el-step>
|
||||
<template #title>
|
||||
<span>大电压/电流校准</span><br/>
|
||||
<span>源输出为:</span><br/>
|
||||
<span v-if="active > 2">Ua=Ub=Uc=57.74V</span><br/>
|
||||
<span v-if="active > 2">Ia=Ib=Ic=10A</span>
|
||||
<span class="spanStyle">源输出为:</span><br/>
|
||||
<span class="spanStyle" v-if="active > 2">Ua=Ub=Uc=57.74V</span><br/>
|
||||
<span class="spanStyle" v-if="active > 2">Ia=Ib=Ic=10A</span>
|
||||
</template>
|
||||
</el-step>
|
||||
<el-step>
|
||||
<template #title>
|
||||
<span>小电压/电流校准</span><br/>
|
||||
<span>源输出为:</span><br/>
|
||||
<span v-if="active > 3">Ua=Ub=Uc=5.774V</span><br/>
|
||||
<span v-if="active > 3">Ia=Ib=Ic=1A</span>
|
||||
<span class="spanStyle">源输出为:</span><br/>
|
||||
<span class="spanStyle" v-if="active > 3">Ua=Ub=Uc=5.774V</span><br/>
|
||||
<span class="spanStyle" v-if="active > 3">Ia=Ib=Ic=1A</span>
|
||||
</template>
|
||||
</el-step>
|
||||
<el-step title="结束"/>
|
||||
@@ -146,12 +146,11 @@ const webMsgSend = toRef(props, 'webMsgSend');
|
||||
|
||||
watch(webMsgSend,function (newValue,oldValue){
|
||||
switch (newValue.requestId){
|
||||
|
||||
}
|
||||
|
||||
})
|
||||
|
||||
|
||||
|
||||
// 定义 TableDataItem 接口
|
||||
interface TableDataItem {
|
||||
id: string;
|
||||
@@ -169,8 +168,6 @@ interface TableDataItem {
|
||||
IbChannel?: number | string;
|
||||
IcData?: number | string;
|
||||
IcChannel?: number | string;
|
||||
Result?: string | string;
|
||||
updateTime?: string;
|
||||
}
|
||||
|
||||
const dataTemplates3 = [
|
||||
@@ -542,6 +539,7 @@ const activities = [
|
||||
qualified.value = 0
|
||||
active.value = 0
|
||||
dialogVisible.value = false
|
||||
editableTabsValue.value = '0'
|
||||
}
|
||||
|
||||
const getTableDataForChannel = (index: number): any[] => {
|
||||
@@ -616,6 +614,7 @@ const checkForErrors = (data: TableDataItem[]): boolean => {
|
||||
};
|
||||
|
||||
const handleSubmit = async () => {
|
||||
debugger
|
||||
// 初始化 currentTableData
|
||||
let isTimer2Completed = false;
|
||||
// 初始化 loadingStates 为 true
|
||||
@@ -843,6 +842,10 @@ const initializeTableData = (templates: TableDataItem[], index: number): Ref<Tab
|
||||
}
|
||||
|
||||
.right-content {
|
||||
flex: 5;
|
||||
flex: 6;
|
||||
}
|
||||
|
||||
.spanStyle{
|
||||
font-size: 14px;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -7,7 +7,6 @@
|
||||
max-height="400px"
|
||||
:span-method="objectSpanMethod">
|
||||
<el-table-column prop="MonitorIdx" label="监测点序号" width="80"/>
|
||||
<!-- <el-table-column prop="updateTime" label="上送时刻" width="180"/> -->
|
||||
<el-table-column prop="deviceName" label="描述" width="90"/>
|
||||
<el-table-column label="电压通道" >
|
||||
<el-table-column prop="Ua" label="L1">
|
||||
@@ -21,7 +20,13 @@
|
||||
</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="UaChannel" label="系数">
|
||||
<el-table-column prop="UaChannel" label="结果">
|
||||
<template #header >
|
||||
<span>结果</span>
|
||||
<el-tooltip class="item" effect="light" placement="top-start" content="电压L1系数校准不合格原因">
|
||||
<el-icon style="margin-left:2px;vertical-align:-2px;"><QuestionFilled /></el-icon>
|
||||
</el-tooltip>
|
||||
</template>
|
||||
<template #default="scope">
|
||||
<el-tag type="danger" v-if="scope.row.UaChannel === '不合格'">
|
||||
{{ scope.row.UaChannel }}
|
||||
@@ -31,8 +36,7 @@
|
||||
</el-icon>
|
||||
<span v-else>
|
||||
{{ scope.row.UaChannel }}
|
||||
</span>
|
||||
<!-- <el-tag type="danger" v-if="scope.row.UaChannel === '不合格'">{{ scope.row.UaChannel }}</el-tag> -->
|
||||
</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table-column>
|
||||
@@ -47,7 +51,13 @@
|
||||
</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="UbChannel" label="系数">
|
||||
<el-table-column prop="UbChannel" label="结果">
|
||||
<template #header >
|
||||
<span>结果</span>
|
||||
<el-tooltip class="item" effect="light" placement="top-start" content="电压L2系数校准不合格原因">
|
||||
<el-icon style="margin-left:2px;vertical-align:-2px;"><QuestionFilled /></el-icon>
|
||||
</el-tooltip>
|
||||
</template>
|
||||
<template #default="scope">
|
||||
<el-tag type="danger" v-if="scope.row.UbChannel === '不合格'">
|
||||
{{ scope.row.UbChannel }}
|
||||
@@ -72,7 +82,13 @@
|
||||
</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="UcChannel" label="系数">
|
||||
<el-table-column prop="UcChannel" label="结果">
|
||||
<template #header >
|
||||
<span>结果</span>
|
||||
<el-tooltip class="item" effect="light" placement="top-start" content="电压L3系数校准不合格原因">
|
||||
<el-icon style="margin-left:2px;vertical-align:-2px;"><QuestionFilled /></el-icon>
|
||||
</el-tooltip>
|
||||
</template>
|
||||
<template #default="scope">
|
||||
<el-tag type="danger" v-if="scope.row.UcChannel === '不合格'">
|
||||
{{ scope.row.UcChannel }}
|
||||
@@ -99,7 +115,13 @@
|
||||
</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="IaChannel" label="系数">
|
||||
<el-table-column prop="IaChannel" label="结果">
|
||||
<template #header >
|
||||
<span>结果</span>
|
||||
<el-tooltip class="item" effect="light" placement="top-start" content="电流L1系数校准不合格原因">
|
||||
<el-icon style="margin-left:2px;vertical-align:-2px;"><QuestionFilled /></el-icon>
|
||||
</el-tooltip>
|
||||
</template>
|
||||
<template #default="scope">
|
||||
<el-tag type="danger" v-if="scope.row.IaChannel === '不合格'">
|
||||
{{ scope.row.IaChannel }}
|
||||
@@ -124,7 +146,13 @@
|
||||
</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="IbChannel" label="系数">
|
||||
<el-table-column prop="IbChannel" label="结果">
|
||||
<template #header >
|
||||
<span>结果</span>
|
||||
<el-tooltip class="item" effect="light" placement="top-start" content="电流L2系数校准不合格原因">
|
||||
<el-icon style="margin-left:2px;vertical-align:-2px;"><QuestionFilled /></el-icon>
|
||||
</el-tooltip>
|
||||
</template>
|
||||
<template #default="scope">
|
||||
<el-tag type="danger" v-if="scope.row.IbChannel === '不合格'">
|
||||
{{ scope.row.IbChannel }}
|
||||
@@ -149,7 +177,13 @@
|
||||
</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="IcChannel" label="系数">
|
||||
<el-table-column prop="IcChannel" label="结果">
|
||||
<template #header >
|
||||
<span>结果</span>
|
||||
<el-tooltip class="item" effect="light" placement="top-start" content="电流L3系数准不合格原因">
|
||||
<el-icon style="margin-left:2px;vertical-align:-2px;"><QuestionFilled /></el-icon>
|
||||
</el-tooltip>
|
||||
</template>
|
||||
<template #default="scope">
|
||||
<el-tag type="danger" v-if="scope.row.IcChannel === '不合格'">
|
||||
{{ scope.row.IcChannel }}
|
||||
@@ -164,13 +198,6 @@
|
||||
</el-table-column>
|
||||
</el-table-column>
|
||||
</el-table-column>
|
||||
<!-- <el-table-column label="校准结果">
|
||||
<template #default="scope">
|
||||
<el-tag type="danger" v-if="scope.row.Result === '不合格'">{{ scope.row.Result }}</el-tag>
|
||||
<span v-if="scope.row.Result != '不合格'">{{ scope.row.Result }}</span>
|
||||
</template>
|
||||
</el-table-column> -->
|
||||
|
||||
</el-table>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
<template #tableHeader="">
|
||||
<el-form :model="form" :inline="true">
|
||||
<el-form-item label="关键字">
|
||||
<el-input v-model="form.search" placeholder="请输入设备名称"></el-input>
|
||||
<el-input v-model="form.search" placeholder="请输入设备名称" clearable></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="检测状态" v-if="form.activeTabs != 3 && form.activeTabs != 4 && form.activeTabs != 5">
|
||||
<el-select v-model="form.checkStatus" clearable>
|
||||
@@ -26,7 +26,6 @@
|
||||
v-for="(item, index) in checkStatus"
|
||||
:label="item.label"
|
||||
:value="item.id"
|
||||
|
||||
:key="index"
|
||||
v-show="shouldShowOption(item)"
|
||||
></el-option>
|
||||
@@ -177,10 +176,10 @@
|
||||
link
|
||||
:icon="Switch"
|
||||
@click="openDrawer('误差体系更换', scope.row)"
|
||||
v-if="form.activeTabs === 5 && scope.row.documentState === 1"
|
||||
v-if="form.activeTabs === 5"
|
||||
>误差体系更换</el-button>
|
||||
|
||||
<div class='cn-render-buttons' v-if="form.activeTabs === 5 && scope.row.documentState === 1">
|
||||
<div class='cn-render-buttons' v-if="form.activeTabs === 5 ">
|
||||
<el-dropdown trigger='click'>
|
||||
<el-button link type='primary' :icon="Download" class='table-operate'>
|
||||
<div class='table-operate-text'>报告下载</div>
|
||||
@@ -290,8 +289,14 @@ const dialogForm = ref<any>({
|
||||
});
|
||||
const modeStore = useModeStore();
|
||||
const shouldShowOption = (item) => {
|
||||
//return !item.disabled;
|
||||
return item;
|
||||
// 检查 weiJianTab 是否不等于 0
|
||||
if (weiJianTab.value !== 0) {
|
||||
// 排除 label 为“归档”和“未检”的项
|
||||
return item.label !== '归档' && item.label !== '未检';
|
||||
} else {
|
||||
// 只排除 label 为“归档”的项
|
||||
return item.label !== '归档';
|
||||
}
|
||||
};
|
||||
|
||||
tableHeight.value = window.innerHeight - 600;
|
||||
@@ -303,7 +308,7 @@ const operationMinWidth = ref(200);
|
||||
const selectionShow = ref(true);
|
||||
const channelsTest = ref()
|
||||
const testPopup = ref()
|
||||
|
||||
const weiJianTab = ref(0)//除设备检测外,检测结果不显示'未检'
|
||||
const channelsSelection = ref<Device.ResPqDev[]>([])
|
||||
const props = defineProps({
|
||||
id: {
|
||||
@@ -506,18 +511,6 @@ const columns = reactive<ColumnProps<Device.ResPqDev>[]>([
|
||||
return '';
|
||||
}
|
||||
},
|
||||
{
|
||||
prop: 'documentState',
|
||||
label: '归档状态',
|
||||
minWidth: 100,
|
||||
sortable:true,
|
||||
isShow: documentStateShow,
|
||||
render: scope => {
|
||||
return (
|
||||
scope.row.documentState === 0 ? '未归档' : '已归档'
|
||||
)
|
||||
},
|
||||
},
|
||||
{ prop: 'operation', label: '操作', fixed: 'right', minWidth: 200 ,isShow: operationShow},
|
||||
])
|
||||
|
||||
@@ -606,6 +599,7 @@ const sortTable = ({
|
||||
|
||||
//顶部功能切换时修改activeTabs
|
||||
const changeActiveTabs = (val: number,val2: number,tabledata:any[]) => {
|
||||
|
||||
form.value.activeTabs = val;
|
||||
form.value.activeChildTabs= val2;
|
||||
deviceData.value = tabledata;
|
||||
@@ -615,6 +609,7 @@ const changeActiveTabs = (val: number,val2: number,tabledata:any[]) => {
|
||||
//根据当前功能,初始化表头下拉框中的默认值和禁用值
|
||||
function tableHeaderInit(val: number) {
|
||||
refreshStatusList()
|
||||
weiJianTab.value = val;
|
||||
switch (val) {
|
||||
case 0://设备检测
|
||||
case 1://手动检测
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
<div class='search_view'>
|
||||
<el-input
|
||||
placeholder='请输入计划名称'
|
||||
clearable
|
||||
v-model='searchForm.planName'
|
||||
></el-input>
|
||||
<Menu style='width: 26px;height: 26px; margin-left: 8px;cursor: pointer;color:var(--el-color-primary)'
|
||||
@@ -15,7 +16,8 @@
|
||||
:filter-node-method='filterNode'
|
||||
:props='defaultProps'
|
||||
node-key='id'
|
||||
class="filter-tree"
|
||||
class="filter-tree"
|
||||
:highlight-current="true"
|
||||
default-expand-all
|
||||
:default-checked-keys='defaultChecked'
|
||||
@node-click='handleNodeClick'
|
||||
@@ -35,13 +37,14 @@
|
||||
<script lang='ts' setup>
|
||||
import { type Plan } from '@/api/plan/interface';
|
||||
import { Menu, Platform, CircleCheck,Loading } from '@element-plus/icons-vue'
|
||||
import { onMounted, ref, watch } from 'vue';
|
||||
import { nextTick, onMounted, ref, watch } from 'vue';
|
||||
import { useRouter } from 'vue-router'
|
||||
import {useCheckStore} from "@/stores/modules/check";
|
||||
|
||||
const router = useRouter()
|
||||
const checkStore = useCheckStore()
|
||||
|
||||
const filterText = ref('')
|
||||
const treeRef = ref()
|
||||
const data: any = ref([])
|
||||
const defaultProps = {
|
||||
children: 'children',
|
||||
@@ -62,12 +65,16 @@ const getTreeData = (val: any) => {
|
||||
checkStore.setPlanCode(node.code)
|
||||
checkStore.setScriptId(node.scriptId)
|
||||
checkStore.setErrorSysId(node.errorSysId)
|
||||
console.log(checkStore.planId,checkStore.planCode,checkStore.scriptId,checkStore.errorSysId)
|
||||
// 高亮显示第一个节点
|
||||
// 使用 nextTick 确保在 DOM 更新后调用 setCurrentKey
|
||||
nextTick(() => {
|
||||
treeRef.value?.setCurrentKey(node.id);
|
||||
});
|
||||
//console.log(checkStore.planId,checkStore.planCode,checkStore.scriptId,checkStore.errorSysId)
|
||||
}
|
||||
|
||||
}
|
||||
const filterText = ref('')
|
||||
const treeRef = ref()
|
||||
|
||||
const {updateSelectedTreeNode} = defineProps<{
|
||||
updateSelectedTreeNode:Function;
|
||||
}>();
|
||||
@@ -89,8 +96,10 @@ const handleNodeClick = (data: Plan.ResPlan) => {
|
||||
}
|
||||
const filterNode = (value: string, data: any) => {
|
||||
if (!value) return true
|
||||
return data.name.includes(value)
|
||||
return data.name.includes(value)
|
||||
}
|
||||
|
||||
|
||||
// 点击详情
|
||||
const detail = () => {
|
||||
router.push('/plan')
|
||||
@@ -99,6 +108,8 @@ onMounted(() => {
|
||||
// console.log()
|
||||
})
|
||||
defineExpose({ getTreeData })
|
||||
|
||||
|
||||
</script>
|
||||
<style lang='scss' scoped>
|
||||
.plan_tree {
|
||||
@@ -108,7 +119,7 @@ defineExpose({ getTreeData })
|
||||
flex-direction: column;
|
||||
padding: 5px;
|
||||
// height: calc(100% - 70px);
|
||||
background-color: #fff;
|
||||
background-color: #ffffff;
|
||||
|
||||
.search_view {
|
||||
width: 100%;
|
||||
@@ -142,13 +153,16 @@ defineExpose({ getTreeData })
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.filter-tree {
|
||||
// border: 1px solid #dcdfe6;
|
||||
min-width: 100%;
|
||||
height: 97%;
|
||||
height: 97%;
|
||||
display: inline-block;
|
||||
overflow: auto;
|
||||
margin-top: 12px;
|
||||
|
||||
}
|
||||
|
||||
//.filter-tree span {
|
||||
@@ -160,7 +174,6 @@ defineExpose({ getTreeData })
|
||||
// text-overflow:ellipsis;
|
||||
// padding-right: 12px;
|
||||
//}
|
||||
|
||||
.leftBox {
|
||||
// float: left;
|
||||
// width: 20%;
|
||||
|
||||
Reference in New Issue
Block a user