mirror of
https://github.com/jumpserver/lina.git
synced 2025-07-17 16:51:16 +00:00
feat: Custom change password supports configuration of interactive items
This commit is contained in:
parent
7bfc0ee507
commit
bee45ee7a0
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user