fix: endpoint页二级弹框detail/asset不能显示bug

This commit is contained in:
陈劲松
2020-04-17 22:03:10 +08:00
parent 7cafaf12da
commit 0c5822b941
2 changed files with 6 additions and 4 deletions

View File

@@ -634,7 +634,7 @@ li{
margin-left: 14px; margin-left: 14px;
position: absolute; position: absolute;
right: 0; right: 0;
top: 8px; top: 5px;
z-index: 1; z-index: 1;
} }
.window-control-btn { .window-control-btn {

View File

@@ -24,7 +24,7 @@
<left-menu > <left-menu >
<div slot="content-left" class="slot-content"> <div slot="content-left" class="slot-content">
<el-scrollbar ref="leftScrollbar" style="height: 100%"> <el-scrollbar ref="leftScrollbar" style="height: 100%">
<div class="sidebar-title too-long-split" style="ma">{{$t('project.project.project')}}</div> <div class="sidebar-title too-long-split">{{$t('project.project.project')}}</div>
<!--<div class="sidebar-info"> <!--<div class="sidebar-info">
<div <div
v-for="item in moduleList" v-for="item in moduleList"
@@ -267,6 +267,7 @@
pageSize: 20, pageSize: 20,
total:0 total:0
}, },
curEndpoint: {},
tablelable: [], tablelable: [],
dropCol: [], dropCol: [],
currentProjectTitle:'', currentProjectTitle:'',
@@ -610,7 +611,7 @@
return year + "-" + month + "-" + day + " " + hours + ":" + minutes + ":" + seconds; return year + "-" + month + "-" + day + " " + hours + ":" + minutes + ":" + seconds;
}, },
viewAsset(endpoint) { viewAsset(endpoint) {
this.curEndpoint = endpoint; this.curEndpoint = Object.assign({}, endpoint);
this.targetTab = 'assetDetail'; this.targetTab = 'assetDetail';
this.showSubList = true; this.showSubList = true;
/*this.viewAssetState=true; /*this.viewAssetState=true;
@@ -618,7 +619,7 @@
this.$refs.assetEditUnit.tabView=true;*/ this.$refs.assetEditUnit.tabView=true;*/
}, },
showEndpoint(endpoint) { showEndpoint(endpoint) {
this.curEndpoint = endpoint; this.curEndpoint = Object.assign({}, endpoint);
this.targetTab = 'endpointQuery'; this.targetTab = 'endpointQuery';
this.showSubList = true; this.showSubList = true;
}, },
@@ -798,6 +799,7 @@
curEndpoint: { curEndpoint: {
deep: true, deep: true,
handler(n) { handler(n) {
console.info(n)
this.endpointDetail = this.convertToDetail(n); this.endpointDetail = this.convertToDetail(n);
this.$get('asset', {id: n.assetId}).then(response => { this.$get('asset', {id: n.assetId}).then(response => {
if (response.code === 200) { if (response.code === 200) {