فهرست منبع

头像名称回显

duy 2 سال پیش
والد
کامیت
c851c94f59
2فایلهای تغییر یافته به همراه4 افزوده شده و 4 حذف شده
  1. 4 3
      src/views/tentative/material/approach.vue
  2. 0 1
      src/views/tentative/material/components/FormItemUpload.vue

+ 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
 })