mirror of
https://github.com/jumpserver/lina.git
synced 2026-01-14 03:46:26 +00:00
Compare commits
2 Commits
v4.3.0
...
pr@dev@per
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
150795ebac | ||
|
|
a636bb2037 |
@@ -3,7 +3,7 @@
|
|||||||
v-if="showColumnSettingPopover"
|
v-if="showColumnSettingPopover"
|
||||||
:cancel-title="$tc('RestoreDefault')"
|
:cancel-title="$tc('RestoreDefault')"
|
||||||
:destroy-on-close="true"
|
:destroy-on-close="true"
|
||||||
:title="$tc('TableSetting')"
|
:title="$tc('ListPreference')"
|
||||||
:visible.sync="showColumnSettingPopover"
|
:visible.sync="showColumnSettingPopover"
|
||||||
top="10%"
|
top="10%"
|
||||||
width="50%"
|
width="50%"
|
||||||
|
|||||||
@@ -106,7 +106,7 @@ export default {
|
|||||||
{
|
{
|
||||||
name: 'actionSetting',
|
name: 'actionSetting',
|
||||||
icon: 'system-setting',
|
icon: 'system-setting',
|
||||||
tip: this.$t('TableSetting'),
|
tip: this.$t('ListPreference'),
|
||||||
has: this.hasColumnSetting,
|
has: this.hasColumnSetting,
|
||||||
callback: this.handleTableSettingClick.bind(this)
|
callback: this.handleTableSettingClick.bind(this)
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -141,6 +141,7 @@ export default {
|
|||||||
if (Object.keys(filterField?.children || {}).length > 0) {
|
if (Object.keys(filterField?.children || {}).length > 0) {
|
||||||
for (const [k, v] of Object.entries(filterField.children)) {
|
for (const [k, v] of Object.entries(filterField.children)) {
|
||||||
let component = 'el-input'
|
let component = 'el-input'
|
||||||
|
const el = {}
|
||||||
switch (v?.type) {
|
switch (v?.type) {
|
||||||
case 'list':
|
case 'list':
|
||||||
component = DynamicInput
|
component = DynamicInput
|
||||||
@@ -148,12 +149,15 @@ export default {
|
|||||||
case 'boolean':
|
case 'boolean':
|
||||||
component = Switcher
|
component = Switcher
|
||||||
break
|
break
|
||||||
|
case 'text':
|
||||||
|
el['type'] = 'textarea'
|
||||||
|
break
|
||||||
}
|
}
|
||||||
|
|
||||||
if (param) {
|
if (param) {
|
||||||
v.default = param[k] || v.default
|
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].fields.push(k)
|
||||||
fieldsMeta[method].fieldsMeta[k] = item
|
fieldsMeta[method].fieldsMeta[k] = item
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user