mirror of
https://github.com/jumpserver/lina.git
synced 2026-01-29 21:28:52 +00:00
Merge branch 'pam' of github.com:jumpserver/lina into pam
This commit is contained in:
@@ -86,7 +86,7 @@ export default {
|
||||
headerActions: {
|
||||
hasSearch: true,
|
||||
hasRefresh: true,
|
||||
hasLeftActions: true,
|
||||
hasLeftActions: false,
|
||||
hasRightActions: true,
|
||||
hasExport: false,
|
||||
hasImport: false,
|
||||
|
||||
@@ -147,6 +147,7 @@ export default {
|
||||
if (Object.keys(filterField?.children || {}).length > 0) {
|
||||
for (const [k, v] of Object.entries(filterField.children)) {
|
||||
let component = 'el-input'
|
||||
const el = {}
|
||||
switch (v?.type) {
|
||||
case 'list':
|
||||
component = DynamicInput
|
||||
@@ -155,12 +156,15 @@ export default {
|
||||
component = Switcher
|
||||
// component = 'checkbox'
|
||||
break
|
||||
case 'text':
|
||||
el['text'] = 'textarea'
|
||||
break
|
||||
}
|
||||
|
||||
if (param) {
|
||||
v.default = param[k] || v.default
|
||||
}
|
||||
const item = { ...v, component: component }
|
||||
const item = { ...v, component: component, el: el }
|
||||
fieldsMeta[method].fields.push(k)
|
||||
fieldsMeta[method].fieldsMeta[k] = item
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user