[BUG修复](hyx_2024-9-9_prevention)

- 企业端查看监管端的体系文件
hyx_2024-9-9_prevention
huangyuxuan 2024-09-10 15:14:34 +08:00
parent 71cb404eb4
commit 2cd564302f
1 changed files with 45 additions and 1 deletions

View File

@ -4,6 +4,9 @@
<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-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>
<div class="filter-container">
<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>-->
<!-- </template>-->
<!-- </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">
<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>
@ -211,6 +214,7 @@ export default {
corpInfoId: '',
SHARE: 'no',
treeData: [],
supervisiontreeData: [],
defaultProps: {
children: 'nodes',
label: 'name'
@ -256,6 +260,7 @@ export default {
this.corpInfoId = this.$parent.indexVal
this.getList('0')
this.getDataTree()
this.getSupervisionTree()
this.urlToBlob()
},
methods: {
@ -304,6 +309,27 @@ export default {
this.listLoading = false
})
},
getSupervisionList(F_ID) {
this.listLoading = true
this.MFOLDER_ID = F_ID
requestFN(
'/mfolder/list?showCount=' + this.listQuery.limit + '&currentPage=' + 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() {
this.resetForm()
@ -483,6 +509,9 @@ export default {
handleNodeClick(node, data, value) {
this.getList(node.id)
},
handleSupervisionNodeClick(node, data, value) {
this.getSupervisionList(node.id)
},
handleDelete(id, FILEPATH) {
this.$confirm('确定要删除吗?', {
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() {
this.treeLoading = true
requestFN(