diff --git a/src/views/category/baseInfo/index.vue b/src/views/category/baseInfo/index.vue new file mode 100644 index 0000000..7402729 --- /dev/null +++ b/src/views/category/baseInfo/index.vue @@ -0,0 +1,76 @@ + + + + + diff --git a/src/views/category/fieldManage/index.vue b/src/views/category/fieldManage/index.vue new file mode 100644 index 0000000..e9f513a --- /dev/null +++ b/src/views/category/fieldManage/index.vue @@ -0,0 +1,173 @@ + + + + + diff --git a/src/views/category/fieldManage/module/form.vue b/src/views/category/fieldManage/module/form.vue new file mode 100644 index 0000000..f2d6b14 --- /dev/null +++ b/src/views/category/fieldManage/module/form.vue @@ -0,0 +1,107 @@ + + + + + diff --git a/src/views/category/index.vue b/src/views/category/index.vue index dbed9d9..37172ab 100644 --- a/src/views/category/index.vue +++ b/src/views/category/index.vue @@ -44,15 +44,16 @@ + @@ -63,12 +64,15 @@ import crudDict from '@/api/archivesConfig/dict' import CRUD, { presenter, header } from '@crud/crud' import eForm from './form' import sortDialog from './sortDialog' +import baseInfo from './baseInfo/index' +import fieldManage from './fieldManage/index' +import descriptionPreview from './descriptionPreview/index' import crudOperation from '@crud/CRUD.operation' import { findSubsetById } from '@/api/archivesConfig/dictDetail' export default { name: 'Category', - components: { crudOperation, eForm, sortDialog }, + components: { crudOperation, eForm, sortDialog, baseInfo, fieldManage, descriptionPreview }, cruds() { return [ CRUD({ @@ -114,6 +118,18 @@ export default { // sortTableData: [] } }, + computed: { + comName: function() { + if (this.activeIndex === 0) { + return 'baseInfo' + } else if (this.activeIndex === 1) { + return 'fieldManage' + } else if (this.activeIndex === 2) { + return 'descriptionPreview' + } + return 'baseInfo' + } + }, methods: { // 右边初始化数据是空 // [CRUD.HOOK.beforeRefresh]() { @@ -168,6 +184,9 @@ export default { this.$refs.sort.sortVisible = true // this.rowDrop() }) + }, + changeActiveTab(data) { + this.activeIndex = data } } }