检测计划表格误差体系,检测源跳转

This commit is contained in:
sjl
2024-12-12 11:38:42 +08:00
parent 726f7841e8
commit 8bd5351d29
7 changed files with 117 additions and 149 deletions

View File

@@ -2,9 +2,6 @@
<el-dialog :title="dialogTitle" v-model='dialogVisible' @close="close" v-bind="dialogBig">
<div >
<el-form :model="formContent" ref='dialogFormRef' :rules='rules' :disabled="tableIsDisable" label-width="auto" class="form-three">
<!-- <el-form-item label="检测源名称" prop="name" >-->
<!-- <el-input v-model='formContent.name' placeholder="检测源类型+设备类型+数字"/>-->
<!-- </el-form-item>-->
<el-form-item label="设备类型" prop="devType" >
<el-select v-model='formContent.devType' placeholder="请选择源型号">
<el-option
@@ -15,7 +12,7 @@
/>
</el-select>
</el-form-item>
<el-form-item label="检测源类型" prop="type">
<el-form-item label="检测源类型" prop="type" >
<el-select v-model='formContent.type' placeholder="请选择检测源类型">
<el-option
v-for="item in dictStore.getDictData('Pq_Source_Type')"
@@ -144,7 +141,6 @@ const save = () => {
// 打开弹窗,可能是新增,也可能是编辑
const open = async (sign: string, data: TestSource.ResTestSource, currentMode: string) => {
console.log('打开弹窗', sign, data)
titleType.value = sign
dialogVisible.value = true
mode.value = currentMode

View File

@@ -50,6 +50,7 @@
const proTable = ref<ProTableInstance>()
const getTableList = (params: any) => {
console.log("getTableList",params)
let newParams = JSON.parse(JSON.stringify(params))
const patternId = dictStore.getDictData('Pattern').find(item=>item.name=== modeStore.currentMode)?.id//获取数据字典中对应的id
newParams.pattern = patternId
@@ -65,7 +66,7 @@
prop: 'name',
label: '名称',
search: { el: 'input' },
minWidth: 180,
minWidth: 300,
},
{
prop: 'devType',
@@ -73,7 +74,7 @@
enum: dictStore.getDictData('S_Dev_Type_'+dictStore.getDictData('Pattern').find(item=>item.name=== modeStore.currentMode)?.code),
fieldNames: { label: 'name', value: 'id' },
search: { el: 'select' },
minWidth: 220,
minWidth: 250,
},
{
prop: 'type',