样式调整
This commit is contained in:
@@ -38,7 +38,7 @@ const handleSourceClick = (index: number) => {
|
||||
if (props.sourceIds && props.sourceIds[index]) {
|
||||
emit('source-clicked', props.sourceIds[index]);
|
||||
} else {
|
||||
console.log('sourceIds is undefined or the index is out of bounds');
|
||||
//console.log('sourceIds is undefined or the index is out of bounds');
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -240,7 +240,7 @@ const rules: Ref<Record<string, Array<FormItemRule>>> = ref({
|
||||
// pattern: device.pattern,
|
||||
// }));
|
||||
|
||||
console.log('保持',formContent.devIds)
|
||||
|
||||
if (formContent.id) {
|
||||
if( mode.value === '比对式'){
|
||||
await updatePlan(formContent)
|
||||
@@ -248,9 +248,7 @@ const rules: Ref<Record<string, Array<FormItemRule>>> = ref({
|
||||
await updatePlan({...formContent,'sourceIds':[formContent.sourceIds],'datasourceIds':[formContent.datasourceIds]});
|
||||
}
|
||||
ElMessage.success({ message: `${dialogTitle.value}成功!` })
|
||||
console.log('保存完成后还有绑定',boundPqDevList)
|
||||
console.log('保存完成后还有表单',formContent.devIds)
|
||||
console.log('保存完成后还有未绑定',unboundPqDevList)
|
||||
|
||||
} else {
|
||||
// 新增需要把设备模式转成字典ID
|
||||
const patternItem = dictStore.getDictData('Pattern').find(item => item.name === formContent.pattern);
|
||||
@@ -317,7 +315,7 @@ const open = async (sign: string,
|
||||
getPqScriptList(data),
|
||||
getPqErrSysList(),
|
||||
getBoundPqDevList({ 'planId': data.id }),
|
||||
getUnboundPqDevList(data,)
|
||||
getUnboundPqDevList(data)
|
||||
]);
|
||||
|
||||
pqSourceList.value = pqSource_Result.data as TestSource.ResTestSource[];
|
||||
@@ -325,6 +323,7 @@ const open = async (sign: string,
|
||||
pqErrSysList.value = PqErrSys_Result.data as unknown as ErrorSystem.ErrorSystemList[];
|
||||
const boundData = Array.isArray(boundPqDevList_Result.data) ? boundPqDevList_Result.data : [];
|
||||
const unboundData = Array.isArray(unboundPqDevList_Result.data) ? unboundPqDevList_Result.data : [];
|
||||
|
||||
pqDevList.value = [...boundData,...unboundData] as Device.ResPqDev[];
|
||||
formContent.devIds = boundData.map(i => i.id );// 已绑定设备id集合
|
||||
|
||||
|
||||
Reference in New Issue
Block a user