NEZ-1127 fix: 添加未选中的置灰效果
This commit is contained in:
@@ -33,8 +33,8 @@
|
|||||||
>
|
>
|
||||||
</my-date-picker><button @click="changeTime(10)" class="nz-btn nz-btn-size-normal nz-btn-style-light change-time-height nz-input-group-append"><i class="el-icon-d-arrow-right"></i></button>
|
</my-date-picker><button @click="changeTime(10)" class="nz-btn nz-btn-size-normal nz-btn-style-light change-time-height nz-input-group-append"><i class="el-icon-d-arrow-right"></i></button>
|
||||||
</div>
|
</div>
|
||||||
<div class="nz-btn-group nz-btn-group-size-normal nz-btn-group-light" style="height: 24px;">
|
<div class="nz-btn-group nz-btn-group-size-normal nz-btn-group-light" style="height: 28px;">
|
||||||
<button class="nz-btn nz-btn-size-normal nz-btn-style-light" @click="viewGraph">
|
<button class="nz-btn nz-btn-size-normal nz-btn-style-light" :class="{'control-icon-unchecked':selectedEndpoints.length<1,'control-icon-checked':selectedEndpoints.length>0}" @click="viewGraph">
|
||||||
<i class="nz-icon nz-icon-chart" :class="{'control-icon-unchecked':selectedEndpoints.length<1,'control-icon-checked':selectedEndpoints.length>0}"></i>
|
<i class="nz-icon nz-icon-chart" :class="{'control-icon-unchecked':selectedEndpoints.length<1,'control-icon-checked':selectedEndpoints.length>0}"></i>
|
||||||
</button><button @click="dropdownHandler(dropdownShow)" class="nz-btn nz-btn-size-normal nz-btn-style-light export-dropdown-btn" id="browser-go">
|
</button><button @click="dropdownHandler(dropdownShow)" class="nz-btn nz-btn-size-normal nz-btn-style-light export-dropdown-btn" id="browser-go">
|
||||||
<i class="nz-icon nz-icon-arrow-down"></i>
|
<i class="nz-icon nz-icon-arrow-down"></i>
|
||||||
@@ -57,6 +57,7 @@
|
|||||||
:hideSameLabels="hideSameLabels"
|
:hideSameLabels="hideSameLabels"
|
||||||
:queryExpression="queryExpression"
|
:queryExpression="queryExpression"
|
||||||
@changSelection="changSelectionF"
|
@changSelection="changSelectionF"
|
||||||
|
@selectedEndpointsChange="selectedEndpointsChange"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
<!-- <template v-slot:pagination>-->
|
<!-- <template v-slot:pagination>-->
|
||||||
@@ -201,6 +202,9 @@ export default {
|
|||||||
changSelectionF (arr) {
|
changSelectionF (arr) {
|
||||||
this.changSelection = arr
|
this.changSelection = arr
|
||||||
},
|
},
|
||||||
|
selectedEndpointsChange (n) {
|
||||||
|
this.selectedEndpoints = n
|
||||||
|
},
|
||||||
toTop (wrap) {
|
toTop (wrap) {
|
||||||
let currentTop = wrap.scrollTop
|
let currentTop = wrap.scrollTop
|
||||||
const interval = currentTop / 10
|
const interval = currentTop / 10
|
||||||
@@ -221,4 +225,9 @@ export default {
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
.control-icon-unchecked {
|
||||||
|
color: #bcbec2;
|
||||||
|
cursor: not-allowed;
|
||||||
|
background-color: #f4f4f5;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -9,6 +9,10 @@
|
|||||||
.project-calendar{
|
.project-calendar{
|
||||||
margin-top: 2px;
|
margin-top: 2px;
|
||||||
}
|
}
|
||||||
|
.control-icon-unchecked {
|
||||||
|
color: #999999;
|
||||||
|
cursor: not-allowed;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
<style>
|
<style>
|
||||||
.endpoint-dialog .el-dialog__body{
|
.endpoint-dialog .el-dialog__body{
|
||||||
|
|||||||
@@ -123,6 +123,15 @@ export default {
|
|||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
temp.queryEndpoint()
|
temp.queryEndpoint()
|
||||||
}, 100)
|
}, 100)
|
||||||
|
},
|
||||||
|
batchDeleteObjs: {
|
||||||
|
immediate: true,
|
||||||
|
deep: true,
|
||||||
|
handler (n) {
|
||||||
|
if (n) {
|
||||||
|
this.$emit('selectedEndpointsChange', n)
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
data () {
|
data () {
|
||||||
|
|||||||
Reference in New Issue
Block a user