|
|
|
@ -16,7 +16,10 @@
|
|
|
|
<div class="head-container">
|
|
|
|
<div class="head-container">
|
|
|
|
<el-tree
|
|
|
|
<el-tree
|
|
|
|
:data="dangAnOptions"
|
|
|
|
:data="dangAnOptions"
|
|
|
|
:props="defaultProps"
|
|
|
|
:props="{
|
|
|
|
|
|
|
|
children: 'children',
|
|
|
|
|
|
|
|
label: 'muName'
|
|
|
|
|
|
|
|
}"
|
|
|
|
:expand-on-click-node="false"
|
|
|
|
:expand-on-click-node="false"
|
|
|
|
:filter-node-method="filterNode"
|
|
|
|
:filter-node-method="filterNode"
|
|
|
|
ref="tree"
|
|
|
|
ref="tree"
|
|
|
|
@ -216,6 +219,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
|
import { catalogTreeselect } from "@/api/system/user";
|
|
|
|
import { catalogTreeselect } from "@/api/system/user";
|
|
|
|
|
|
|
|
import { listCatalog } from "@/api/dangan/catalog";
|
|
|
|
import Treeselect from "@riophae/vue-treeselect";
|
|
|
|
import Treeselect from "@riophae/vue-treeselect";
|
|
|
|
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
|
|
|
|
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
|
|
|
|
import { getCabinetTree } from "@/api/dangan/cabinet";
|
|
|
|
import { getCabinetTree } from "@/api/dangan/cabinet";
|
|
|
|
@ -245,10 +249,6 @@ export default {
|
|
|
|
dangAnOptions: undefined,
|
|
|
|
dangAnOptions: undefined,
|
|
|
|
// 档案目录名称
|
|
|
|
// 档案目录名称
|
|
|
|
muName: undefined,
|
|
|
|
muName: undefined,
|
|
|
|
defaultProps: {
|
|
|
|
|
|
|
|
children: "children",
|
|
|
|
|
|
|
|
label: "label"
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
// 用户导入参数
|
|
|
|
// 用户导入参数
|
|
|
|
upload: {
|
|
|
|
upload: {
|
|
|
|
loading: false,
|
|
|
|
loading: false,
|
|
|
|
@ -404,8 +404,9 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
/** 查询档案目录下拉树结构 */
|
|
|
|
/** 查询档案目录下拉树结构 */
|
|
|
|
getDeptTree() {
|
|
|
|
getDeptTree() {
|
|
|
|
catalogTreeselect().then(response => {
|
|
|
|
listCatalog({status: '0'}).then(response => {
|
|
|
|
this.dangAnOptions = response.data;
|
|
|
|
// this.dangAnOptions = response.data;
|
|
|
|
|
|
|
|
this.dangAnOptions = this.handleTree(response.data, "id","pid");
|
|
|
|
if(this.$route.query.id){
|
|
|
|
if(this.$route.query.id){
|
|
|
|
this.$nextTick(() => {
|
|
|
|
this.$nextTick(() => {
|
|
|
|
this.$refs.tree.setCurrentKey(this.$route.query.id);
|
|
|
|
this.$refs.tree.setCurrentKey(this.$route.query.id);
|
|
|
|
|