This commit is contained in:
2025-07-05 19:49:14 +08:00
parent 54711e4a34
commit 0b048b4a48
2 changed files with 19 additions and 9 deletions

View File

@ -56,9 +56,10 @@ const rules = reactive({
hjd: [{ required: true, message: "请输入户籍地", trigger: "blur" }],
})
const title = ref('')
const init = (type,row) =>{
const order = ref(null)
const init = (type,row,index) =>{
title.value = type == 'add' ? '新增' :'编辑';
order.value = index;
showDialog.value = true;
if(row) listQuery.value = {...row};
}
@ -79,7 +80,8 @@ const closeTag = (idx) =>{
const submitForm = () =>{
elform.value.submit((val)=>{
emit('change',val)
let obj = { data:val,type:title.value ,index:order.value}
emit('change',obj)
showDialog.value = false;
})
}