parent
71cb404eb4
commit
2cd564302f
|
@ -4,6 +4,9 @@
|
||||||
<el-aside width="300px" style="background-color:#fff">
|
<el-aside width="300px" style="background-color:#fff">
|
||||||
<el-tree v-loading="treeLoading" ref="tree" :data="treeData" :props="defaultProps" :filter-node-method="filterNode" class="filter-tree" accordion @node-click="handleNodeClick" />
|
<el-tree v-loading="treeLoading" ref="tree" :data="treeData" :props="defaultProps" :filter-node-method="filterNode" class="filter-tree" accordion @node-click="handleNodeClick" />
|
||||||
</el-aside>
|
</el-aside>
|
||||||
|
<el-aside width="300px" style="background-color:#fff">
|
||||||
|
<el-tree v-loading="treeLoading" ref="tree" :data="supervisiontreeData" :props="defaultProps" :filter-node-method="filterNode" class="filter-tree" accordion @node-click="handleSupervisionNodeClick" />
|
||||||
|
</el-aside>
|
||||||
<el-main>
|
<el-main>
|
||||||
<div class="filter-container">
|
<div class="filter-container">
|
||||||
<el-button v-show="MFOLDER_ID != '0'" icon="el-icon-arrow-left" @click="getList(PARENT_ID)">返回</el-button>
|
<el-button v-show="MFOLDER_ID != '0'" icon="el-icon-arrow-left" @click="getList(PARENT_ID)">返回</el-button>
|
||||||
|
@ -42,7 +45,7 @@
|
||||||
<!-- <span v-else>公共文件</span>-->
|
<!-- <span v-else>公共文件</span>-->
|
||||||
<!-- </template>-->
|
<!-- </template>-->
|
||||||
<!-- </el-table-column>-->
|
<!-- </el-table-column>-->
|
||||||
<el-table-column prop="REMARKS" label="备注说明" show-overflow-tooltip />
|
<el-table-column prop="REMARKS" label="备注i说明" show-overflow-tooltip />
|
||||||
<el-table-column label="操作" align="center" width="200">
|
<el-table-column label="操作" align="center" width="200">
|
||||||
<template slot-scope="{row}">
|
<template slot-scope="{row}">
|
||||||
<el-button v-show="del && row.UNAME!='init'" type="danger" icon="el-icon-delete" plain @click="handleDelete(row.MFOLDER_ID,row.FILEPATH)">删除</el-button>
|
<el-button v-show="del && row.UNAME!='init'" type="danger" icon="el-icon-delete" plain @click="handleDelete(row.MFOLDER_ID,row.FILEPATH)">删除</el-button>
|
||||||
|
@ -211,6 +214,7 @@ export default {
|
||||||
corpInfoId: '',
|
corpInfoId: '',
|
||||||
SHARE: 'no',
|
SHARE: 'no',
|
||||||
treeData: [],
|
treeData: [],
|
||||||
|
supervisiontreeData: [],
|
||||||
defaultProps: {
|
defaultProps: {
|
||||||
children: 'nodes',
|
children: 'nodes',
|
||||||
label: 'name'
|
label: 'name'
|
||||||
|
@ -256,6 +260,7 @@ export default {
|
||||||
this.corpInfoId = this.$parent.indexVal
|
this.corpInfoId = this.$parent.indexVal
|
||||||
this.getList('0')
|
this.getList('0')
|
||||||
this.getDataTree()
|
this.getDataTree()
|
||||||
|
this.getSupervisionTree()
|
||||||
this.urlToBlob()
|
this.urlToBlob()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
@ -304,6 +309,27 @@ export default {
|
||||||
this.listLoading = false
|
this.listLoading = false
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
getSupervisionList(F_ID) {
|
||||||
|
this.listLoading = true
|
||||||
|
this.MFOLDER_ID = F_ID
|
||||||
|
requestFN(
|
||||||
|
'/mfolder/list?showCount=' + this.listQuery.limit + '¤tPage=' + this.listQuery.page,
|
||||||
|
{
|
||||||
|
KEYWORDS: this.KEYWORDS,
|
||||||
|
CORPINFO_ID: '1',
|
||||||
|
MFOLDER_ID: this.MFOLDER_ID,
|
||||||
|
SHARE: this.SHARE
|
||||||
|
}
|
||||||
|
).then((data) => {
|
||||||
|
this.listLoading = false
|
||||||
|
this.varList = data.varList
|
||||||
|
this.PARENT_ID = data.PARENT_ID
|
||||||
|
this.total = data.page.totalResult
|
||||||
|
this.hasButton()
|
||||||
|
}).catch((e) => {
|
||||||
|
this.listLoading = false
|
||||||
|
})
|
||||||
|
},
|
||||||
// 添加
|
// 添加
|
||||||
handleAdd() {
|
handleAdd() {
|
||||||
this.resetForm()
|
this.resetForm()
|
||||||
|
@ -483,6 +509,9 @@ export default {
|
||||||
handleNodeClick(node, data, value) {
|
handleNodeClick(node, data, value) {
|
||||||
this.getList(node.id)
|
this.getList(node.id)
|
||||||
},
|
},
|
||||||
|
handleSupervisionNodeClick(node, data, value) {
|
||||||
|
this.getSupervisionList(node.id)
|
||||||
|
},
|
||||||
handleDelete(id, FILEPATH) {
|
handleDelete(id, FILEPATH) {
|
||||||
this.$confirm('确定要删除吗?', {
|
this.$confirm('确定要删除吗?', {
|
||||||
confirmButtonText: '确定',
|
confirmButtonText: '确定',
|
||||||
|
@ -538,6 +567,21 @@ export default {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
getSupervisionTree() {
|
||||||
|
this.treeLoading = true
|
||||||
|
requestFN(
|
||||||
|
'/mfolder/getSupervisionTree',
|
||||||
|
{
|
||||||
|
corpInfoId: '1'
|
||||||
|
}
|
||||||
|
).then((data) => {
|
||||||
|
this.treeLoading = false
|
||||||
|
this.supervisiontreeData = JSON.parse(data.zTreeNodes)
|
||||||
|
})
|
||||||
|
.catch((e) => {
|
||||||
|
this.treeLoading = false
|
||||||
|
})
|
||||||
|
},
|
||||||
getDataTree() {
|
getDataTree() {
|
||||||
this.treeLoading = true
|
this.treeLoading = true
|
||||||
requestFN(
|
requestFN(
|
||||||
|
|
Loading…
Reference in New Issue