|
@ -172,7 +172,7 @@ const butttondata = [ |
|
|
// 列表-操作按钮事件 |
|
|
// 列表-操作按钮事件 |
|
|
const buttonTableClick = async (val, row) => { |
|
|
const buttonTableClick = async (val, row) => { |
|
|
if (val == 'edit') { // 编辑 |
|
|
if (val == 'edit') { // 编辑 |
|
|
openForm('update', row) |
|
|
editForm('update', row) |
|
|
} else if (val == 'delete') { // 删除 |
|
|
} else if (val == 'delete') { // 删除 |
|
|
handleDelete(row.id) |
|
|
handleDelete(row.id) |
|
|
} |
|
|
} |
|
@ -184,7 +184,14 @@ const openForm = async (type: string, row?: any) => { |
|
|
tableData.value = [] |
|
|
tableData.value = [] |
|
|
basicFormRef.value.open(type, row) |
|
|
basicFormRef.value.open(type, row) |
|
|
} |
|
|
} |
|
|
|
|
|
const editForm = async (type: string, row?: any) => { |
|
|
|
|
|
tableData.value = [] |
|
|
|
|
|
detailMasterId.value = row.id |
|
|
|
|
|
InspectionStageApi.getInspectionStageNoPage({masterId:row.id}).then(res=>{ |
|
|
|
|
|
tableData.value = res |
|
|
|
|
|
}) |
|
|
|
|
|
basicFormRef.value.open(type, row) |
|
|
|
|
|
} |
|
|
// form表单提交 |
|
|
// form表单提交 |
|
|
const formsSuccess = async (formType,data) => { |
|
|
const formsSuccess = async (formType,data) => { |
|
|
var isHave =DynamicRule.allSchemas.formSchema.some(function (item) { |
|
|
var isHave =DynamicRule.allSchemas.formSchema.some(function (item) { |
|
|