上下载点
This commit is contained in:
@ -24,7 +24,7 @@
|
||||
const { filterFormSchemaAuth } = usePermission();
|
||||
const { mergeFormSchemas,mergeFormEventConfigs } = useFormConfig();
|
||||
const { currentRoute } = useRouter();
|
||||
|
||||
const isView = currentRoute.value.query.isView
|
||||
const RowKey = 'id';
|
||||
const emits = defineEmits(['changeUploadComponentIds','loadingCompleted', 'form-mounted']);
|
||||
const props = defineProps({
|
||||
@ -52,7 +52,7 @@ watch(
|
||||
if (newVal.ownSign === 'Y') {
|
||||
data.formDataProps.schemas?.forEach(v => {
|
||||
if (v.field === 'staCodeLng') {
|
||||
v.componentProps.disabled = false
|
||||
v.componentProps.disabled = (isView ? true : false)
|
||||
v.componentProps.required = true
|
||||
}
|
||||
})
|
||||
@ -80,6 +80,7 @@ watch(
|
||||
formProps.schemas?.forEach(v => {
|
||||
if (v.field === 'staCodeLng') {
|
||||
v.componentProps.staticOptions = b
|
||||
v.componentProps.disabled = (isView ? true : false)
|
||||
}
|
||||
})
|
||||
try {
|
||||
|
||||
@ -164,7 +164,8 @@
|
||||
query: {
|
||||
formPath: 'mdm/PipelineGgasLine',
|
||||
formName: formName,
|
||||
formId:currentRoute.value.meta.formId
|
||||
formId:currentRoute.value.meta.formId,
|
||||
isView:true
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user