|
@ -7,7 +7,11 @@ |
|
|
:schema="formSchema" |
|
|
:schema="formSchema" |
|
|
:is-col="true" |
|
|
:is-col="true" |
|
|
@opensearchTable="opensearchTable" |
|
|
@opensearchTable="opensearchTable" |
|
|
/> |
|
|
> |
|
|
|
|
|
<template #crontab="formSchema"> |
|
|
|
|
|
<crontab v-model="formSchema.crontab" /> |
|
|
|
|
|
</template> |
|
|
|
|
|
</Form> |
|
|
<div class="table" v-if="isBusiness && formType == 'create'"> |
|
|
<div class="table" v-if="isBusiness && formType == 'create'"> |
|
|
<TableForm ref="tableFormRef" |
|
|
<TableForm ref="tableFormRef" |
|
|
class="w-[100%]" |
|
|
class="w-[100%]" |
|
@ -139,7 +143,7 @@ const formSchema = ref(props.formAllSchemas?.formSchema) |
|
|
// type 发起事件位置 type=tableForm 是明细中发起的 否则 为主表发起的 |
|
|
// type 发起事件位置 type=tableForm 是明细中发起的 否则 为主表发起的 |
|
|
// searchCondition 查询条件 |
|
|
// searchCondition 查询条件 |
|
|
const searchTableRef = ref() |
|
|
const searchTableRef = ref() |
|
|
const opensearchTable = (formField, searchField, searchTitle, searchAllSchemas, searchPage, searchCondition, type, row ) => { |
|
|
const opensearchTable = (formField, searchField, searchTitle, searchAllSchemas, searchPage, searchCondition,multiple, type, row ) => { |
|
|
const _searchCondition = {} |
|
|
const _searchCondition = {} |
|
|
// 判断查询条件中,是否存在指向主表的数据 |
|
|
// 判断查询条件中,是否存在指向主表的数据 |
|
|
if (searchCondition && searchCondition.length > 0) { |
|
|
if (searchCondition && searchCondition.length > 0) { |
|
@ -157,7 +161,7 @@ const opensearchTable = (formField, searchField, searchTitle, searchAllSchemas, |
|
|
const _searchTableTitle = searchTitle |
|
|
const _searchTableTitle = searchTitle |
|
|
const _searchTableAllSchemas = searchAllSchemas |
|
|
const _searchTableAllSchemas = searchAllSchemas |
|
|
const _searchTablePage = searchPage |
|
|
const _searchTablePage = searchPage |
|
|
searchTableRef.value.open(_searchTableTitle, _searchTableAllSchemas, _searchTablePage, formField, searchField, type, row, _searchCondition) |
|
|
searchTableRef.value.open(_searchTableTitle, _searchTableAllSchemas, _searchTablePage, formField, searchField,multiple, type, row, _searchCondition) |
|
|
} |
|
|
} |
|
|
// 弹层确定返回所选数据 |
|
|
// 弹层确定返回所选数据 |
|
|
// val : 弹层列表row 数据 |
|
|
// val : 弹层列表row 数据 |
|
@ -316,6 +320,8 @@ const handleAddTable = () => { |
|
|
} |
|
|
} |
|
|
// 输入框聚焦 |
|
|
// 输入框聚焦 |
|
|
const inpuFocus = (headerItem, row, index) => { |
|
|
const inpuFocus = (headerItem, row, index) => { |
|
|
|
|
|
console.log(headerItem.tableForm.multiple); |
|
|
|
|
|
|
|
|
opensearchTable( |
|
|
opensearchTable( |
|
|
headerItem.field, |
|
|
headerItem.field, |
|
|
headerItem.tableForm.searchField, |
|
|
headerItem.tableForm.searchField, |
|
@ -323,6 +329,7 @@ const inpuFocus = (headerItem, row, index) => { |
|
|
headerItem.tableForm.searchAllSchemas, |
|
|
headerItem.tableForm.searchAllSchemas, |
|
|
headerItem.tableForm.searchPage, |
|
|
headerItem.tableForm.searchPage, |
|
|
headerItem.tableForm.searchCondition, |
|
|
headerItem.tableForm.searchCondition, |
|
|
|
|
|
headerItem.tableForm.multiple, |
|
|
'tableForm', |
|
|
'tableForm', |
|
|
row, |
|
|
row, |
|
|
) |
|
|
) |
|
|