|
|
@ -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) => { |
|
|
|