| | |
| | | |
| | | let _searchId = searchId |
| | | |
| | | tab.components.forEach(cell => { |
| | | if (cell.type !== 'search') return |
| | | _searchId = cell.uuid |
| | | window.GLOB.SearchBox.set(cell.uuid, cell.$searches) |
| | | if (cell.$s_req) { |
| | | window.GLOB.SearchBox.set(cell.uuid + 'required', true) |
| | | if (tab.components.findIndex(cell => cell.type === 'search') > -1) { |
| | | _searchId = tab.uuid |
| | | } |
| | | }) |
| | | |
| | | tab.components = this.filterComponent(tab.components, roleId, balMap, urlparam, Tab, _searchId, tab.uuid) |
| | | |
| | | if (_searchId === tab.uuid) { |
| | | tab.components.forEach(cell => { |
| | | if (cell.type !== 'search') return |
| | | window.GLOB.SearchBox.set(_searchId, cell.$searches) |
| | | if (cell.$s_req) { |
| | | window.GLOB.SearchBox.set(_searchId + 'required', true) |
| | | } |
| | | }) |
| | | } |
| | | |
| | | return tab |
| | | }) |
| | | |
| | |
| | | } |
| | | |
| | | // 搜索条件初始化 |
| | | if (item.type === 'search' && item.search.length === 0) { |
| | | return false |
| | | } else if (item.search) { |
| | | if (item.search) { |
| | | Utils.initSearchVal(item) |
| | | |
| | | item.$searches = Utils.initMainSearch(item.search) |