Browse Source

基础form组件优化

master
陈薪名 1 year ago
parent
commit
6cf60f1e0c
  1. 2
      src/components/BasicForm/src/BasicForm.vue

2
src/components/BasicForm/src/BasicForm.vue

@ -140,7 +140,7 @@ const opensearchTable = (formField, searchField, searchTitle, searchAllSchemas,
searchCondition.forEach(item => { searchCondition.forEach(item => {
// row // row
if (item.isMainValue) { if (item.isMainValue) {
_searchCondition[item.key] = formRef.value.formModel[item.value]?formRef.value.formModel[item.value]:props.detailData[item.value] _searchCondition[item.key] = formRef.value.formModel[item.value]?formRef.value.formModel[item.value]:props.detailData?props.detailData[item.value]:''
} else { } else {
_searchCondition[item.key] = item.value _searchCondition[item.key] = item.value
} }

Loading…
Cancel
Save