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

+ 1 - 1
src/views/data-fill/collapse-form/index.vue

@@ -394,7 +394,7 @@
 
     <!-- 含水率 -->
     <HcDialog is-to-body :show="waterModal" title="含水率" @close="waterModalClose" @save="waterSaveClick">
-        <HcWater v-if="waterModal" ref="waterRefs" :key-name="tableFormItemNode.KeyName" :contract-id="contract_id" :design-strength="designStrength" />
+        <HcWater v-if="waterModal" ref="waterRefs" :key-name="tableFormItemNode.KeyName" :contract-id="contract_id" :design-strength="designStrength" :p-key-id="tableFormItemNode.pkeyId" />
     </HcDialog>
 </template>
 

+ 6 - 1
src/views/data-fill/collapse-form/water.vue

@@ -34,10 +34,12 @@ const props = defineProps({
     contractId: [String, Number],
     keyName: [String, Number],
     designStrength:[String, Number],
+    pKeyId: [String, Number],
 })
 const key_name = ref(props.keyName)
 const contractId = ref(props.contractId)
 const design_strength = ref(props.designStrength)
+const pKeyId = ref(props.pKeyId)
 const waterModal = ref({})
 const waterRormref = ref(null)
 
@@ -46,11 +48,13 @@ watch(() => [
     props.contractId,
     props.keyName,
     props.designStrength,
+    props.pKeyId,
 
-], ([cid, keyName, strength]) => {
+], ([cid, keyName, strength, PKeyId]) => {
     contractId.value = cid
     key_name.value = keyName
     design_strength.value = strength
+    pKeyId.value = PKeyId
 },
 
 )
@@ -62,6 +66,7 @@ const waterSave = async ()=>{
         key: key_name.value,
         contractId: contractId.value,
         designStrength: design_strength.value,
+        pKeyId:pKeyId.value,
     })
     if (!error && code === 200) {
         window?.$message?.success('操作成功')