|
|
@ -108,6 +108,7 @@ const tableData = ref([]) |
|
|
|
const routeName = ref() |
|
|
|
const selectDictType = ref() |
|
|
|
const optionsList = ref() |
|
|
|
const existValue = ref([]) |
|
|
|
routeName.value = route.name |
|
|
|
const tableColumns = ref(SelectedSet.allSchemas.tableColumns) |
|
|
|
|
|
|
@ -377,16 +378,37 @@ const validateNotRepetition = (data) => { |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
const detailValidate = (data) => { |
|
|
|
const detailValidate = (formType,data) => { |
|
|
|
let tag = true; |
|
|
|
existValue.value.forEach(item=>{ |
|
|
|
if(data.dictionaryValue == item.dictionaryValue){ |
|
|
|
message.warning("选定集字典项不能重复!") |
|
|
|
tag = false; |
|
|
|
} |
|
|
|
}) |
|
|
|
return tag |
|
|
|
} |
|
|
|
|
|
|
|
const detailOpenForm = (type, row, masterParmas) => { |
|
|
|
let param = { |
|
|
|
masterId : masterParmas.masterId |
|
|
|
} |
|
|
|
if(type == 'create'){ |
|
|
|
SelectedProjectApi.getSelectedProjectNoPage(param).then(res => { |
|
|
|
if(res.length > 0){ |
|
|
|
existValue.value = res |
|
|
|
} |
|
|
|
}) |
|
|
|
}else if('update'){ |
|
|
|
SelectedProjectApi.getSelectedProjectNoPage(param).then(res => { |
|
|
|
if(res.length > 0){ |
|
|
|
existValue.value = res.filter(item=>{ |
|
|
|
return item?.id != row.id |
|
|
|
}) |
|
|
|
} |
|
|
|
}) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -396,6 +418,7 @@ const detailBasiFormOnChange = (field,val,detailFormRef) => { |
|
|
|
} |
|
|
|
|
|
|
|
const formSelectChange = (a,b,c,d) => { |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
/** 初始化 **/ |
|
|
|