|
@@ -98,8 +98,8 @@
|
|
|
</el-upload>
|
|
|
</el-dialog>
|
|
|
|
|
|
- <el-dialog title="文件信息预览" :visible.sync="dialogVisible3" destroy-on-close width="85%" top="6vh" height="90%">
|
|
|
- <el-table :data="tableData" border style="width: 100%">
|
|
|
+ <el-dialog title="文件信息预览" :visible.sync="dialogVisible3" destroy-on-close width="85%" top="6vh" height="90%" >
|
|
|
+ <el-table :data="tableData" border style="width: 100%" max-height="500" stripe = "true">
|
|
|
<el-table-column prop="createtime" label="上传时间" width="180">
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="createman" label="上传人" width="80">
|
|
@@ -614,7 +614,7 @@ export default {
|
|
|
that.changeDat(nodeModel);
|
|
|
|
|
|
// if (nodeModel.tlevel > 1) {
|
|
|
- // graph.changeData(JSON.parse(JSON.stringify(nodeModel))),
|
|
|
+ // graph.changeData(nodeModel),
|
|
|
// graph.fitView([230, 240, 390, 390]);
|
|
|
|
|
|
// }
|
|
@@ -714,20 +714,29 @@ export default {
|
|
|
//如果点击的是第四层,只显示导航到第二层和第一层还有第三层
|
|
|
if (node.tlevel === 4) {
|
|
|
no1 = 1;
|
|
|
- console.log('点击第四层', node)
|
|
|
const $id = node.parentid;
|
|
|
- console.log('点击第四层$id', $id)
|
|
|
- console.log('thereData', this.thereData)
|
|
|
const $node = data.children.find(item => item.id === this.thereData);
|
|
|
- console.log('$node', $node)
|
|
|
const $node2 = $node.children.find(item => item.id === $id)
|
|
|
- console.log('$$node2', $node2)
|
|
|
if ($node2) {
|
|
|
this.crumbNavs.push($node2);
|
|
|
this.crumbNavs.push($node);
|
|
|
+ this.fiveData = $node2.id;
|
|
|
|
|
|
}
|
|
|
}
|
|
|
+ if (node.tlevel === 5) {
|
|
|
+ no1 = 1;
|
|
|
+ const $id = node.parentid;
|
|
|
+ const $node = data.children.find(item => item.id === this.thereData);
|
|
|
+ console.log('$node', $node)
|
|
|
+ const $node2 = $node.children.find(item => item.id ===this.fiveData)
|
|
|
+ const $node3 = $node2.children.find(item => item.id === $id)
|
|
|
+ if ($node3) {
|
|
|
+ this.crumbNavs.push($node3);
|
|
|
+ this.crumbNavs.push($node2);
|
|
|
+ this.crumbNavs.push($node);
|
|
|
+ }
|
|
|
+ }
|
|
|
if (no1 === 1) {
|
|
|
this.crumbNavs.push(data);//第一层
|
|
|
}
|
|
@@ -749,7 +758,7 @@ export default {
|
|
|
//changeDat
|
|
|
changeDat(node) {
|
|
|
if (node) {
|
|
|
- if (node.tlevel > 1) {
|
|
|
+ if (node.tlevel > 1 && node.tlevel<6) {
|
|
|
//graph.changeData(JSON.parse(JSON.stringify(node))),
|
|
|
graph.changeData(node)
|
|
|
graph.fitView([230, 240, 390, 390]);
|