|
@ -2,9 +2,10 @@ |
|
|
<div class="app-container"> |
|
|
<div class="app-container"> |
|
|
<!-- 门类列表 --> |
|
|
<!-- 门类列表 --> |
|
|
<el-row class="container-main" :gutter="20"> |
|
|
<el-row class="container-main" :gutter="20"> |
|
|
<el-col class="container-left curd-in-out" :xs="10" :sm="8" :md="5" :lg="6" :xl="5"> |
|
|
|
|
|
|
|
|
<el-col class="container-left curd-in-out" :xs="10" :sm="8" :md="5" :lg="6" :xl="5" style="height: calc(50vh - 70px)"> |
|
|
<span class="right-top-line" /> |
|
|
<span class="right-top-line" /> |
|
|
<span class="left-bottom-line" /> |
|
|
<span class="left-bottom-line" /> |
|
|
|
|
|
<div class="tree-title">档案门类</div> |
|
|
<!--门类树状结构--> |
|
|
<!--门类树状结构--> |
|
|
<el-tree ref="tree" v-loading="crud.loading" :data="crud.data" :props="defaultProps" node-key="id" :expand-on-click-node="false" highlight-current @node-click="handleNodeClick" /> |
|
|
<el-tree ref="tree" v-loading="crud.loading" :data="crud.data" :props="defaultProps" node-key="id" :expand-on-click-node="false" highlight-current @node-click="handleNodeClick" /> |
|
|
</el-col> |
|
|
</el-col> |
|
@ -12,7 +13,7 @@ |
|
|
<el-col class="container-right" :xs="14" :sm="18" :md="19" :lg="18" :xl="19"> |
|
|
<el-col class="container-right" :xs="14" :sm="18" :md="19" :lg="18" :xl="19"> |
|
|
<span class="right-top-line" /> |
|
|
<span class="right-top-line" /> |
|
|
<span class="left-bottom-line" /> |
|
|
<span class="left-bottom-line" /> |
|
|
<archivesDetail ref="archivesDetail" /> |
|
|
|
|
|
|
|
|
<archivesDetail ref="archivesDetail" :selected-category="selectedCategory" /> |
|
|
</el-col> |
|
|
</el-col> |
|
|
</el-row> |
|
|
</el-row> |
|
|
</div> |
|
|
</div> |
|
@ -29,9 +30,8 @@ export default { |
|
|
cruds() { |
|
|
cruds() { |
|
|
return [ |
|
|
return [ |
|
|
CRUD({ |
|
|
CRUD({ |
|
|
title: '门类', url: 'api/dictrionary/menu', |
|
|
|
|
|
crudMethod: { ...crudCategory }, |
|
|
|
|
|
sort: ['dicSequence,asc'] |
|
|
|
|
|
|
|
|
title: '门类', url: 'api/archives-type/menu', |
|
|
|
|
|
crudMethod: { ...crudCategory } |
|
|
}) |
|
|
}) |
|
|
] |
|
|
] |
|
|
}, |
|
|
}, |
|
@ -41,7 +41,8 @@ export default { |
|
|
defaultProps: { |
|
|
defaultProps: { |
|
|
children: 'children', |
|
|
children: 'children', |
|
|
label: 'cnName' |
|
|
label: 'cnName' |
|
|
} |
|
|
|
|
|
|
|
|
}, |
|
|
|
|
|
selectedCategory: {} |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
@ -56,6 +57,7 @@ export default { |
|
|
handleNodeClick(val) { |
|
|
handleNodeClick(val) { |
|
|
if (val) { |
|
|
if (val) { |
|
|
this.crud.selectionChangeHandler([val]) |
|
|
this.crud.selectionChangeHandler([val]) |
|
|
|
|
|
this.selectedCategory = val |
|
|
// this.$refs.dictDetail.query.id = val.id |
|
|
// this.$refs.dictDetail.query.id = val.id |
|
|
// this.$refs.dictDetail.dicPid = val.id |
|
|
// this.$refs.dictDetail.dicPid = val.id |
|
|
// this.$refs.dictDetail.crud.toQuery() |
|
|
// this.$refs.dictDetail.crud.toQuery() |
|
|