|
@@ -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('操作成功')
|