Explorar o código

头像名称回显

duy %!s(int64=2) %!d(string=hai) anos
pai
achega
c851c94f59

+ 4 - 3
src/views/tentative/material/approach.vue

@@ -398,9 +398,10 @@ const editFormModalClick = () => {
         addEditFormModel.value.materialType = addEditFormModel.value.materialType + ''
         addEditFormModel.value.materialCount = addEditFormModel.value.materialCount === -1 ? '' : addEditFormModel.value.materialCount
         addEditFormModel.value.materialPrice = addEditFormModel.value.materialPrice === -1 ? '' : addEditFormModel.value.materialPrice
-        productionCertificateName.name=addEditFormModel.value?.productionCertificateName
-        otherAccessoriesName.name=addEditFormModel.value?.otherAccessoriesName
-        qualityInspectionReportName.name=addEditFormModel.value?.qualityInspectionReportName
+        productionCertificateName.value=addEditFormModel.value.productionCertificateName
+        otherAccessoriesName.value=addEditFormModel.value.otherAccessoriesName
+        qualityInspectionReportName.value=addEditFormModel.value.qualityInspectionReportName
+
         addEditFormModal.value = true
     } else if (keys.length > 1) {
         window?.$message?.warning('只能选择一条数据编辑')

+ 0 - 1
src/views/tentative/material/components/FormItemUpload.vue

@@ -91,7 +91,6 @@ watch(() => [
 })
 
 onMounted(() => {
-    // getFileName(props.modelValue)
     fileNameValue.value=fileNameVal.value
 })