[update] 修改UAT问题:外来标准和企标增加左侧树收起展开功能
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<a-card :bordered="false" class="page-left-right-layout">
|
<a-card :bordered="false" class="page-left-right-layout">
|
||||||
<div class="page-left-box">
|
<div class="page-left-box" :style="isLeftExpand ? {width: '0px', padding: '0px', borderRight: 'none'} : {}">
|
||||||
|
<template v-if="!isLeftExpand">
|
||||||
<a-input-search v-model="treeInput"
|
<a-input-search v-model="treeInput"
|
||||||
class="tree-search"
|
class="tree-search"
|
||||||
:placeholder="$t('pleaseEnterTreeSystem')"
|
:placeholder="$t('pleaseEnterTreeSystem')"
|
||||||
@@ -51,6 +52,10 @@
|
|||||||
</a-tree>
|
</a-tree>
|
||||||
</a-spin>
|
</a-spin>
|
||||||
</div>
|
</div>
|
||||||
|
</template>
|
||||||
|
<div class="control-standard-left-expand" @click="expandLeft">
|
||||||
|
<a-icon :type="isLeftExpand ? 'right' : 'left'" />
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="page-right-box">
|
<div class="page-right-box">
|
||||||
<div class="table-page-search-wrapper">
|
<div class="table-page-search-wrapper">
|
||||||
@@ -265,7 +270,8 @@ export default {
|
|||||||
defaultSearchParams: { // 默认查询条件
|
defaultSearchParams: { // 默认查询条件
|
||||||
standard_state: `${EnterpriseStandardStatus.CURRENTLY_EFFECTIVE.value}`
|
standard_state: `${EnterpriseStandardStatus.CURRENTLY_EFFECTIVE.value}`
|
||||||
},
|
},
|
||||||
disabledMixinsCreate: true
|
disabledMixinsCreate: true,
|
||||||
|
isLeftExpand: false // 是否左侧收齐
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@@ -305,6 +311,10 @@ export default {
|
|||||||
this.initTreeData()
|
this.initTreeData()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
// 左侧树收起展开
|
||||||
|
expandLeft () {
|
||||||
|
this.isLeftExpand = !this.isLeftExpand
|
||||||
|
},
|
||||||
// 获取左侧树数据
|
// 获取左侧树数据
|
||||||
initTreeData (params, isPackUpExpand = true) {
|
initTreeData (params, isPackUpExpand = true) {
|
||||||
this.treeLoading = true
|
this.treeLoading = true
|
||||||
@@ -845,4 +855,27 @@ export default {
|
|||||||
.icon-star {
|
.icon-star {
|
||||||
color: rgba(243, 129, 65, 0.50);
|
color: rgba(243, 129, 65, 0.50);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.page-left-box {
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
.control-standard-left-expand {
|
||||||
|
width: 12px;
|
||||||
|
height: 24px;
|
||||||
|
border-radius: 0 12px 12px 0;
|
||||||
|
background-color: @primary-color;
|
||||||
|
color: white;
|
||||||
|
position: absolute;
|
||||||
|
z-index: 3;
|
||||||
|
left: 100%;
|
||||||
|
top: calc(50% - 52px);
|
||||||
|
|
||||||
|
.anticon {
|
||||||
|
position: absolute;
|
||||||
|
top: 50%;
|
||||||
|
left: -2px;
|
||||||
|
transform: translateY(-50%);
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
<template>
|
<template>
|
||||||
<a-card :bordered="false" class="page-left-right-layout">
|
<a-card :bordered="false" class="page-left-right-layout">
|
||||||
<!-- 树部分-->
|
<!-- 树部分-->
|
||||||
<div class="page-left-box">
|
<div class="page-left-box" :style="isLeftExpand ? {width: '0px', padding: '0px', borderRight: 'none'} : {}">
|
||||||
|
<template v-if="!isLeftExpand">
|
||||||
<a-input-search v-model="treeInput" class="tree-search"
|
<a-input-search v-model="treeInput" class="tree-search"
|
||||||
:placeholder="$t('standardRegulationLibrary.foreignStandard.treeSearchPlaceholder')"
|
:placeholder="$t('standardRegulationLibrary.foreignStandard.treeSearchPlaceholder')"
|
||||||
@search="handleTreeSearch" />
|
@search="handleTreeSearch" />
|
||||||
@@ -55,6 +56,10 @@
|
|||||||
</a-tree>
|
</a-tree>
|
||||||
</a-spin>
|
</a-spin>
|
||||||
</div>
|
</div>
|
||||||
|
</template>
|
||||||
|
<div class="control-standard-left-expand" @click="expandLeft">
|
||||||
|
<a-icon :type="isLeftExpand ? 'right' : 'left'" />
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- 表格部分-->
|
<!-- 表格部分-->
|
||||||
<div class="page-right-box">
|
<div class="page-right-box">
|
||||||
@@ -313,7 +318,8 @@ export default {
|
|||||||
treeLoading: false,
|
treeLoading: false,
|
||||||
isCollection: false,
|
isCollection: false,
|
||||||
expandedKeys: [], // 展开的节点
|
expandedKeys: [], // 展开的节点
|
||||||
needFilterTableBtn: true
|
needFilterTableBtn: true,
|
||||||
|
isLeftExpand: false // 是否左侧收齐
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@@ -326,6 +332,10 @@ export default {
|
|||||||
this.initTreeData()
|
this.initTreeData()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
// 左侧树收起展开
|
||||||
|
expandLeft () {
|
||||||
|
this.isLeftExpand = !this.isLeftExpand
|
||||||
|
},
|
||||||
/**
|
/**
|
||||||
* 获取树数据
|
* 获取树数据
|
||||||
*/
|
*/
|
||||||
@@ -828,4 +838,27 @@ export default {
|
|||||||
.icon-star {
|
.icon-star {
|
||||||
color: rgba(243, 129, 65, 0.50);
|
color: rgba(243, 129, 65, 0.50);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.page-left-box {
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
.control-standard-left-expand {
|
||||||
|
width: 12px;
|
||||||
|
height: 24px;
|
||||||
|
border-radius: 0 12px 12px 0;
|
||||||
|
background-color: @primary-color;
|
||||||
|
color: white;
|
||||||
|
position: absolute;
|
||||||
|
z-index: 3;
|
||||||
|
left: 100%;
|
||||||
|
top: calc(50% - 52px);
|
||||||
|
|
||||||
|
.anticon {
|
||||||
|
position: absolute;
|
||||||
|
top: 50%;
|
||||||
|
left: -2px;
|
||||||
|
transform: translateY(-50%);
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user