Merge branch 'pam' of github.com:jumpserver/lina into pam

This commit is contained in:
ibuler
2025-02-08 17:28:50 +08:00
2 changed files with 6 additions and 2 deletions

View File

@@ -86,7 +86,7 @@ export default {
headerActions: {
hasSearch: true,
hasRefresh: true,
hasLeftActions: true,
hasLeftActions: false,
hasRightActions: true,
hasExport: false,
hasImport: false,

View File

@@ -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
}