更新
This commit is contained in:
@ -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;
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user