|
|
|
@ -145,7 +145,7 @@
|
|
|
|
|
<el-table-column
|
|
|
|
|
v-for="(column, index) in columns"
|
|
|
|
|
:key="index"
|
|
|
|
|
:label="column.fieldDesc"
|
|
|
|
|
:label="column.fieldDesc + '(' + column.unit + ')'"
|
|
|
|
|
:prop="column.field"
|
|
|
|
|
></el-table-column>
|
|
|
|
|
</el-table>
|
|
|
|
@ -288,29 +288,6 @@ export default {
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
handleNodeClick(data, node) {
|
|
|
|
|
console.log(data, node);
|
|
|
|
|
console.log(this.currentNodeKey);
|
|
|
|
|
if (data.hasOwnProperty("children")) {
|
|
|
|
|
this.$nextTick(() => {
|
|
|
|
|
this.$refs.tree.setCurrentKey(this.currentNodeKey);
|
|
|
|
|
});
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// if (data.children?.length) {
|
|
|
|
|
// this.$nextTick(() => {
|
|
|
|
|
// this.$refs.tree.setCurrentKey(this.currentNodeKey);
|
|
|
|
|
// });
|
|
|
|
|
// return;
|
|
|
|
|
// }
|
|
|
|
|
this.currentNodeKey = data.id;
|
|
|
|
|
this.crrrentName = data.name;
|
|
|
|
|
this.currentId = data.id;
|
|
|
|
|
this.page = 1;
|
|
|
|
|
this.pageSize = 20;
|
|
|
|
|
this.handleSearch();
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
async getSubNodes() {
|
|
|
|
|
try {
|
|
|
|
@ -339,6 +316,29 @@ export default {
|
|
|
|
|
console.error("Failed to fetch sub-nodes:", error); // 处理请求错误,可以根据实际需求进行错误处理操作
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
handleNodeClick(data, node) {
|
|
|
|
|
console.log(data, node);
|
|
|
|
|
console.log(this.currentNodeKey);
|
|
|
|
|
if (data.hasOwnProperty("children")) {
|
|
|
|
|
this.$nextTick(() => {
|
|
|
|
|
this.$refs.tree.setCurrentKey(this.currentNodeKey);
|
|
|
|
|
});
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// if (data.children?.length) {
|
|
|
|
|
// this.$nextTick(() => {
|
|
|
|
|
// this.$refs.tree.setCurrentKey(this.currentNodeKey);
|
|
|
|
|
// });
|
|
|
|
|
// return;
|
|
|
|
|
// }
|
|
|
|
|
this.currentNodeKey = data.id;
|
|
|
|
|
this.crrrentName = data.name;
|
|
|
|
|
this.currentId = data.id;
|
|
|
|
|
this.page = 1;
|
|
|
|
|
this.pageSize = 20;
|
|
|
|
|
this.handleSearch();
|
|
|
|
|
},
|
|
|
|
|
changestartdate(val) {
|
|
|
|
|
console.log(val);
|
|
|
|
|
if (val == null) {
|
|
|
|
@ -594,12 +594,12 @@ export default {
|
|
|
|
|
height: 100%;
|
|
|
|
|
//background: #fcc;
|
|
|
|
|
.leftTree {
|
|
|
|
|
min-width: 280px;
|
|
|
|
|
max-width: 280px;
|
|
|
|
|
min-width: 380px;
|
|
|
|
|
max-width: 380px;
|
|
|
|
|
height: 100%;
|
|
|
|
|
overflow: auto;
|
|
|
|
|
//border: 1px solid #fff;
|
|
|
|
|
margin-right: 16px;
|
|
|
|
|
margin-right: 12px;
|
|
|
|
|
background: rgba(8, 9, 36, 0.28);
|
|
|
|
|
-webkit-backdrop-filter: blur(10px);
|
|
|
|
|
backdrop-filter: blur(10px);
|
|
|
|
|