Browse Source

修改bug

master_hella_20240701
zhaoyiran 8 months ago
parent
commit
e8e5dc4543
  1. 11
      src/views/qms/basicDataManage/dynamicRule/index.vue

11
src/views/qms/basicDataManage/dynamicRule/index.vue

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

Loading…
Cancel
Save