fix: menubutton filter issue
parent
bc688e807a
commit
198f48d316
|
@ -82,7 +82,9 @@ export const crudOptions = (vm) => {
|
||||||
},
|
},
|
||||||
type: 'select',
|
type: 'select',
|
||||||
dict: {
|
dict: {
|
||||||
data: vm.dictionary('system_button')
|
data: vm.dictionary('system_button'),
|
||||||
|
label: 'label',
|
||||||
|
value: 'label'
|
||||||
},
|
},
|
||||||
form: {
|
form: {
|
||||||
rules: [ // 表单校验规则
|
rules: [ // 表单校验规则
|
||||||
|
@ -107,7 +109,7 @@ export const crudOptions = (vm) => {
|
||||||
// console.log('component.dictOptions', component.dictOptions)
|
// console.log('component.dictOptions', component.dictOptions)
|
||||||
const obj = component.dictOptions.find(item => {
|
const obj = component.dictOptions.find(item => {
|
||||||
// console.log(item.label, value)
|
// console.log(item.label, value)
|
||||||
return item.value === value
|
return item.label === value
|
||||||
})
|
})
|
||||||
if (obj && obj.value) {
|
if (obj && obj.value) {
|
||||||
form.name = obj.label
|
form.name = obj.label
|
||||||
|
|
Loading…
Reference in New Issue