diff --git a/src/views/qms/basicDataManage/selectedSet/index.vue b/src/views/qms/basicDataManage/selectedSet/index.vue index f7b5d24c2..2ac80a8ef 100644 --- a/src/views/qms/basicDataManage/selectedSet/index.vue +++ b/src/views/qms/basicDataManage/selectedSet/index.vue @@ -177,7 +177,7 @@ const butttondata = [ // 列表-操作按钮事件 const buttonTableClick = async (val, row) => { if (val == 'edit') { // 编辑 - openForm('update', row) + editForm('update', row) } else if (val == 'delete') { // 删除 handleDelete(row.id) } @@ -189,6 +189,13 @@ const openForm = (type: string, row?: any) => { tableData.value = [] basicFormRef.value.open(type, row) } +const editForm = async (type: string, row?: any) => { + tableData.value = [] + SelectedProjectApi.getSelectedProjectNoPage({masterId:row.id}).then(res=>{ + tableData.value = res + }) + basicFormRef.value.open(type, row) +} // form表单提交 const formsSuccess = async (formType,data) => {