返回
@@ -42,7 +45,7 @@
-
+
删除
@@ -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 + '¤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() {
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(