mirror of
https://github.com/jumpserver/lina.git
synced 2025-11-07 18:08:50 +00:00
Compare commits
2 Commits
v4.3
...
pr@dev@per
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
150795ebac | ||
|
|
a636bb2037 |
@@ -3,7 +3,7 @@
|
||||
v-if="showColumnSettingPopover"
|
||||
:cancel-title="$tc('RestoreDefault')"
|
||||
:destroy-on-close="true"
|
||||
:title="$tc('TableSetting')"
|
||||
:title="$tc('ListPreference')"
|
||||
:visible.sync="showColumnSettingPopover"
|
||||
top="10%"
|
||||
width="50%"
|
||||
|
||||
@@ -106,7 +106,7 @@ export default {
|
||||
{
|
||||
name: 'actionSetting',
|
||||
icon: 'system-setting',
|
||||
tip: this.$t('TableSetting'),
|
||||
tip: this.$t('ListPreference'),
|
||||
has: this.hasColumnSetting,
|
||||
callback: this.handleTableSettingClick.bind(this)
|
||||
},
|
||||
|
||||
@@ -141,6 +141,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
|
||||
@@ -148,12 +149,15 @@ export default {
|
||||
case 'boolean':
|
||||
component = Switcher
|
||||
break
|
||||
case 'text':
|
||||
el['type'] = '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