fix(测试跟踪): 模块树顶部缺失搜索框问题
https://www.tapd.cn/55049933/bugtrace/bugs/view?bug_id=1155049933001028391
This commit is contained in:
parent
4f9f9ee2d1
commit
37b1caf8b3
|
@ -4,7 +4,7 @@
|
|||
<svg-icon icon-class="icon_folder-share" style="width: 1.3em;height: 1.3em;position: relative;top: 2px;left: 1px;margin-right: 9px;"/>
|
||||
<span style="margin-right: 12px;" class="to-public-content">{{ $t('project.case_public') }}</span>
|
||||
<span style="color: #8F959E">{{ '(' + publicTotal + ')' }}</span>
|
||||
<svg-icon icon-class="icon_arrow-right_outlined_1" class-name="enter-public" style="float: right;display: none;position: relative;top: 4px;left: 150px;width: 1.1em;height: 1.1em;"/>
|
||||
<svg-icon icon-class="icon_arrow-right_outlined_1" class-name="enter-public" style="display: none; width: 1.1em; height: 1.1em; order: 100; margin-left: auto; margin-top: 2px;"/>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
@ -28,27 +28,20 @@ export default {
|
|||
},
|
||||
data() {
|
||||
return {
|
||||
isXPack: false
|
||||
isXpack: false
|
||||
}
|
||||
},
|
||||
created() {
|
||||
if (hasLicense()) {
|
||||
this.isXpack = true;
|
||||
} else {
|
||||
this.isXpack = false;
|
||||
}
|
||||
this.isXpack = hasLicense();
|
||||
},
|
||||
methods: {}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
.recycle {
|
||||
padding: 14px 0px 14px 13px px;
|
||||
height: 26px;
|
||||
padding-bottom: 24px;
|
||||
line-height: 26px;
|
||||
height: 52px;
|
||||
height: 26px;
|
||||
border-bottom: 1px solid rgba(31, 35, 41, 0.15);
|
||||
}
|
||||
|
||||
|
@ -88,8 +81,4 @@ export default {
|
|||
.to-public:hover .enter-public{
|
||||
display: block!important;
|
||||
}
|
||||
|
||||
.to-public:hover .to-public-content{
|
||||
margin-left: -10.5px;
|
||||
}
|
||||
</style>
|
||||
|
|
|
@ -1,9 +1,6 @@
|
|||
<template>
|
||||
<div>
|
||||
|
||||
<slot name="header">
|
||||
<el-input :placeholder="$t('test_track.module.search')" v-model="filterText" size="small" :clearable="true" class="search-input"/>
|
||||
</slot>
|
||||
<slot name="header"></slot>
|
||||
|
||||
<el-scrollbar>
|
||||
<ms-left-2-right-container v-if="scroll">
|
||||
|
@ -536,7 +533,7 @@ export default {
|
|||
this.$emit('remove', nodeIds, data);
|
||||
}
|
||||
},
|
||||
handleDragEnd(draggingNode, dropNode, dropType, ev) {
|
||||
handleDragEnd(draggingNode, dropNode, dropType) {
|
||||
if (dropType === "none" || dropType === undefined) {
|
||||
return;
|
||||
}
|
||||
|
@ -563,7 +560,7 @@ export default {
|
|||
} else {
|
||||
param.level = 1;
|
||||
param.type = 'add';
|
||||
if (parentData.id != 'root') {
|
||||
if (parentData.id !== 'root') {
|
||||
// 非根节点
|
||||
param.parentId = parentData.id;
|
||||
param.level = parentData.level + 1;
|
||||
|
@ -714,7 +711,7 @@ export default {
|
|||
}
|
||||
|
||||
.node-tree {
|
||||
height: calc(100vh - 270px);
|
||||
height: calc(100vh - 300px);
|
||||
}
|
||||
|
||||
.father .child {
|
||||
|
@ -761,7 +758,7 @@ export default {
|
|||
width: auto;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
padding: 0px 5px;
|
||||
padding: 0 5px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
|
|
|
@ -21,6 +21,9 @@
|
|||
@filter="filter"
|
||||
ref="nodeTree">
|
||||
<template v-slot:header>
|
||||
<ms-search-bar
|
||||
:show-operator="showOperator"
|
||||
:condition="condition"/>
|
||||
<module-public-button
|
||||
v-if="showPublicBtn"
|
||||
:condition="condition"
|
||||
|
|
Loading…
Reference in New Issue