|
@ -46,7 +46,7 @@ import CRUD, { presenter, header, form } from '@crud/crud' |
|
|
import crudOperation from '@crud/CRUD.operation' |
|
|
import crudOperation from '@crud/CRUD.operation' |
|
|
import pagination from '@crud/Pagination' |
|
|
import pagination from '@crud/Pagination' |
|
|
|
|
|
|
|
|
const defaultForm = { id: null, dic_name: null, dic_code: null, dic_explain: null } |
|
|
|
|
|
|
|
|
const defaultForm = { id: null, dic_name: null, dic_code: null, dic_explain: null, dic_type: false } |
|
|
|
|
|
|
|
|
export default { |
|
|
export default { |
|
|
components: { crudOperation, pagination }, |
|
|
components: { crudOperation, pagination }, |
|
@ -72,7 +72,7 @@ export default { |
|
|
presenter(), |
|
|
presenter(), |
|
|
header(), |
|
|
header(), |
|
|
form(function() { |
|
|
form(function() { |
|
|
return Object.assign({ dict: { id: this.dictId }}, defaultForm) |
|
|
|
|
|
|
|
|
return Object.assign({ dic_pid: this.dictId }, defaultForm) |
|
|
})], |
|
|
})], |
|
|
props: { |
|
|
props: { |
|
|
activeAddBtn: { |
|
|
activeAddBtn: { |
|
|