This commit is contained in:
GYYM
2024-11-22 13:27:41 +08:00
parent b77ad54309
commit 428c74047b
3 changed files with 43 additions and 33 deletions

View File

@@ -2,17 +2,25 @@
<!-- 基础信息弹出框 --> <!-- 基础信息弹出框 -->
<el-dialog :model-value="visible" title="被检监测点匹配" v-bind="dialogSmall" @close="handleCancel" width="500" draggable> <el-dialog :model-value="visible" title="被检监测点匹配" v-bind="dialogSmall" @close="handleCancel" width="500" draggable>
<div> <div>
<el-form :model="formData" ref='formRuleRef' :rules='rules'> <el-form :model="formData" ref='formRuleRef' :rules='rules' change-event="selectChange">
<el-form-item label="监测点名称:" :label-width="100"> <el-form-item label="监测点名称:" :label-width="100">
<el-tree-select v-model="value" :data="sourcesList" style="width: 240px" /> <el-tree-select v-model="value1" :data="sourcesList" style="width: 240px" />
</el-form-item>
<el-form-item label="监测点名称:" :label-width="100">
<el-tree-select v-model="value2" :data="sourcesList" style="width: 240px" />
</el-form-item>
<el-form-item label="监测点名称:" :label-width="100">
<el-tree-select v-model="value3" :data="sourcesList" style="width: 240px" />
</el-form-item>
<el-form-item label="监测点名称:" :label-width="100">
<el-tree-select v-model="value4" :data="sourcesList" style="width: 240px" />
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>
<template #footer> <template #footer>
<div class="dialog-footer"> <div class="dialog-footer">
<el-button @click="handleCancel"> </el-button> <el-button @click="handleCancel"> </el-button>
<el-button type="primary" @click="handleSubmit" :disabled="isReadOnly"> </el-button> <el-button type="primary" @click="handleSubmit"> </el-button>
</div> </div>
</template> </template>
</el-dialog> </el-dialog>
@@ -24,68 +32,80 @@
import { dialogSmall} from '@/utils/elementBind' import { dialogSmall} from '@/utils/elementBind'
import {dictPattern,dictTestState,dictReportState,dictResult,testPlanDataList,sourceDataList,deviceDataList,testSoureDataList,testScriptDataList,testErrSystDataList,planData,testFatherPlanList} from '@/api/plan/planData' import {dictPattern,dictTestState,dictReportState,dictResult,testPlanDataList,sourceDataList,deviceDataList,testSoureDataList,testScriptDataList,testErrSystDataList,planData,testFatherPlanList} from '@/api/plan/planData'
const value = ref() const selectChange = (val: any) => {
console.log(val)
}
const value1 = ref()
const value2 = ref()
const value3 = ref()
const value4 = ref()
const sourcesList = [ const sourcesList = [
{ {
value: '1', value: '1',
label: '高精度设备-PQV520-1', label: '高精度设备-PQV520-1',
disabled: true, disabled: false,
children: [ children: [
{ {
value: '1-1', value: '1-1',
label: '监测点1', label: '监测点1',
disabled: true, disabled: false,
}, },
{ {
value: '1-2', value: '1-2',
label: '监测点2', label: '监测点2',
disabled: true, disabled: false,
}, },
], ],
}, },
{ {
value: '2', value: '2',
label: '高精度设备-PQV520-2', label: '高精度设备-PQV520-2',
disabled: false,
children: [ children: [
{ {
value: '2-1', value: '2-1',
label: '监测点1', label: '监测点1',
disabled: false,
}, },
{ {
value: '2-2', value: '2-2',
label: '监测点2', label: '监测点2',
disabled: false,
}, },
], ],
}, },
{ {
value: '3', value: '3',
label: '高精度设备-PQV520-3', label: '高精度设备-PQV520-3',
disabled: true, disabled: false,
children: [ children: [
{ {
value: '3-1', value: '3-1',
label: '监测点1', label: '监测点1',
disabled: true, disabled: false,
}, },
{ {
value: '3-2', value: '3-2',
label: '监测点2', label: '监测点2',
disabled: true, disabled: false,
}, },
], ],
}, },
{ {
value: '4', value: '4',
label: '高精度设备-PQV520-4', label: '高精度设备-PQV520-4',
disabled: false,
children: [ children: [
{ {
value: '4-1', value: '4-1',
label: '监测点1', label: '监测点1',
disabled: false,
}, },
{ {
value: '4-2', value: '4-2',
label: '监测点2', label: '监测点2',
disabled: false,
}, },
], ],
}, },
@@ -93,24 +113,6 @@ const sourcesList = [
const props = defineProps<{ const props = defineProps<{
visible: boolean; visible: boolean;
dialogTitle: string;
isReadOnly: boolean,
formData: {
id:string;
name: string;
pattern: string; //模式,字典表(数字、模拟、比对)
father_Plan_Id: string; //父计划ID
source_Id: string;//检测源ID
dataSource_Id: string; //数据源ID
script_Id: string; //检测脚本ID
error_Sys_Id: string;//误差体系ID
device_Id: string;//被检设备ID
test_State: string; //检测状态
report_State: string; //报告生成状态
result: string;//检测结果
state: number; //状态
};
}>(); }>();
const fatherPlanList = [ const fatherPlanList = [

View File

@@ -180,6 +180,11 @@
:visible="dataCheckChangeErrSysDialogVisible" :visible="dataCheckChangeErrSysDialogVisible"
@update:visible="dataCheckChangeErrSysDialogVisible = $event" @update:visible="dataCheckChangeErrSysDialogVisible = $event"
></dataCheckChangeErrSysPopup> ></dataCheckChangeErrSysPopup>
<matchPopup
:visible="matchDialogVisible"
@update:visible="matchDialogVisible = $event"
></matchPopup>
</div> </div>
</template> </template>
@@ -211,6 +216,7 @@ const dialogFormVisible = ref(false)
const reportDialogVisible = ref(false) const reportDialogVisible = ref(false)
const dataCheckDialogVisible = ref(false) const dataCheckDialogVisible = ref(false)
const dataCheckChangeErrSysDialogVisible = ref(false) const dataCheckChangeErrSysDialogVisible = ref(false)
const matchDialogVisible = ref(false)
const dialogTitle = ref('手动检测') const dialogTitle = ref('手动检测')
const dialogForm = ref<any>({ const dialogForm = ref<any>({
id: '', id: '',
@@ -590,7 +596,8 @@ const resetSearchForm = () => {
}; };
//查询 //查询
const handleSearch = () => { const handleSearch = () => {
proTable.value?.getTableList(); matchDialogVisible.value = true;
//proTable.value?.getTableList();
}; };
//重置 //重置
const handleRefresh = () => { const handleRefresh = () => {

View File

@@ -291,7 +291,7 @@ const planDetail = () => {
}; };
//功能选择css切换 //功能选择css切换
const handleCheckFunction = (val: any) => { const handleCheckFunction = (val: any) => {
// console.log("test",val);
editableTabsValue.value = '0'; editableTabsValue.value = '0';
form.value.activeChildTabs = 0; form.value.activeChildTabs = 0;
tabsList.value.map((item: any, index: any) => { tabsList.value.map((item: any, index: any) => {
@@ -303,7 +303,7 @@ const handleCheckFunction = (val: any) => {
}); });
tabShow.value = false; tabShow.value = false;
console.log("test",val,tabLabel1.value);
switch (val) { switch (val) {
case 0://自动检测 case 0://自动检测
tabLabel1.value = "设备检测"; tabLabel1.value = "设备检测";
@@ -320,11 +320,12 @@ const handleCheckFunction = (val: any) => {
break; break;
case 4://设备归档 case 4://设备归档
tabLabel1.value = "设备归档"; tabLabel1.value = "设备归档";
break;
case 5://数据查询 case 5://数据查询
tabLabel1.value = "数据查询"; tabLabel1.value = "数据查询";
break; break;
} }
console.log("test",val,tabLabel1.value);
form.value.activeTabs = val; form.value.activeTabs = val;
}; };