主界面,系数校准界面调整
This commit is contained in:
@@ -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://手动检测
|
||||
|
||||
Reference in New Issue
Block a user