|
@ -72,7 +72,7 @@ export default { |
|
|
presenter(), |
|
|
presenter(), |
|
|
header(), |
|
|
header(), |
|
|
form(function() { |
|
|
form(function() { |
|
|
return Object.assign({ dic_pid: this.dictId }, defaultForm) |
|
|
|
|
|
|
|
|
return Object.assign({ dic_pid: this.dicPid }, defaultForm) |
|
|
})], |
|
|
})], |
|
|
props: { |
|
|
props: { |
|
|
activeAddBtn: { |
|
|
activeAddBtn: { |
|
@ -81,7 +81,7 @@ export default { |
|
|
}, |
|
|
}, |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
|
dictId: null, |
|
|
|
|
|
|
|
|
dicPid: null, |
|
|
rules: { |
|
|
rules: { |
|
|
label: [ |
|
|
label: [ |
|
|
{ required: true, message: '请输入字典名称', trigger: 'blur' } |
|
|
{ required: true, message: '请输入字典名称', trigger: 'blur' } |
|
@ -108,7 +108,7 @@ export default { |
|
|
}, |
|
|
}, |
|
|
// 获取数据前设置默认参数 |
|
|
// 获取数据前设置默认参数 |
|
|
[CRUD.HOOK.beforeRefresh]() { |
|
|
[CRUD.HOOK.beforeRefresh]() { |
|
|
this.crud.query.id = this.dictId |
|
|
|
|
|
|
|
|
this.crud.query.id = this.dicPid |
|
|
return true |
|
|
return true |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|