Authored by xwx

Merge branch 'master' of http://113.200.75.45:82/monitor_v3/hg-monitor-web into master-v32-xwx

... ... @@ -58,4 +58,11 @@ custom-class="config-dialog"
}
.button-more{
position: absolute;right: 0;top: 33px;z-index: 1;background: #f5f7fa;width: 80px; padding: 10px;
}
.breadcrumb .el-breadcrumb{
background: #ffffff;
padding: 20px 5px 0;
}
.breadcrumb .el-breadcrumb .el-breadcrumb__item{
cursor: pointer;
}
\ No newline at end of file
... ...
... ... @@ -91,6 +91,17 @@
</div>
<!--列表-->
<div v-if="activeBtn == 'list'">
<el-row>
<el-col :span="24" class="breadcrumb">
<el-breadcrumb :separator-icon="ArrowRight">
<template v-for="(item,index) in breadcrumbList">
<el-breadcrumb-item :key="index" v-if="item.data.name" @click="nodeClick(item, item.data)">{{item.data.name}}</el-breadcrumb-item>
</template>
</el-breadcrumb>
</el-col>
</el-row>
<cm-table-page :columns="columns" :dataList="dataList" @loaddata="getPage" :showIndex="true"
:showBorder="false" :showSelection="false" :showTools="isEditName"
:showPage="false" :height="height - 54">
... ...
... ... @@ -132,6 +132,11 @@ export default {
let historyNode = Vue.ref([]);
let isUserFolder = Vue.ref(false);
/*面包屑路径数据
* lu
*/
let breadcrumbList=Vue.ref([]);
let addHistoryNode = (item) => {
if (item.name == undefined && item.fileName) {
... ... @@ -148,6 +153,8 @@ export default {
arr.push(item);
historyNode.value = arr;
}
breadcrumbList.value.push({data:item});
console.log("breadcrumbList",breadcrumbList.value)
currentNodeData.value = item;
}
... ... @@ -307,8 +314,14 @@ export default {
let arr = [];
arr.push(id);
defaultExpandedKeys.value = arr;
let indexSlice='';
let arrList= breadcrumbList.value;
arrList.map((item,index)=>{
if(id == item.data.id){
indexSlice=index
}
})
breadcrumbList.value=arrList.slice(0,indexSlice)
addHistoryNode(data);
getPage(id);
... ... @@ -866,6 +879,7 @@ export default {
return {
/* viewEdit,*/
breadcrumbList,
editFileName,
isInput,
iconclass,
... ...