Commit d1f295bf authored by Gakki's avatar Gakki

so far

parent d006e02a
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<!-- {{checkedKeys}} --> <!-- {{checkedKeys}} -->
<div class="layoutMargin layoutPadding"> <div class="layoutMargin layoutPadding">
<a-row> <a-row>
<a-col :span="4" style="height:100%; position:relative"> <a-col :span="4" style="height:100%; position:relative;" v-if="leftPanelShow">
<span style="display: block; width: 90%; color:#1890ff; font-size: 16px; font-weight: 500; padding-bottom:5px; border-bottom:1px solid #1890ff;">标签筛选条件</span> <span style="display: block; width: 90%; color:#1890ff; font-size: 16px; font-weight: 500; padding-bottom:5px; border-bottom:1px solid #1890ff;">标签筛选条件</span>
<a-tree <a-tree
@check='onCheck' @check='onCheck'
...@@ -13,7 +13,11 @@ ...@@ -13,7 +13,11 @@
:replace-fields="replaceFields" :replace-fields="replaceFields"
/> />
</a-col> </a-col>
<a-col :span="20" style="padding-left: 10px; border-left:1px solid #ccc;">
<a-button v-if="!leftPanelShow" @click="showNHide" type='link' icon='right' style="position: absolute; left: -2%; top: 14%; color: grey"/>
<a-button v-else @click="showNHide" type='link' icon='left' style="position: absolute; left: 14.5%; top: 14%; color: grey"/>
<a-col :span="!!leftPanelShow ? 20 : 24" :style="!!leftPanelShow? `padding-left: 10px; border-left:1px solid #ccc;`:`padding-left: 10px;`">
<!-- <div v-if="$route.path == '/houseData/basicInfoByLabel'" class="layoutMargin layoutPadding"> --> <!-- <div v-if="$route.path == '/houseData/basicInfoByLabel'" class="layoutMargin layoutPadding"> -->
<a-form :form="form" class="protalForm" > <a-form :form="form" class="protalForm" >
<a-row class="formItem" type="flex" :justify="simpleSearchForm ? 'end' : ''" align="top" :gutter="simpleSearchForm ? 16 : 0"> <a-row class="formItem" type="flex" :justify="simpleSearchForm ? 'end' : ''" align="top" :gutter="simpleSearchForm ? 16 : 0">
...@@ -204,6 +208,7 @@ export default { ...@@ -204,6 +208,7 @@ export default {
key: '3' key: '3'
}, },
], ],
leftPanelShow: true,
finishDate: [ finishDate: [
{ {
name: '2000年以前', name: '2000年以前',
...@@ -486,6 +491,9 @@ export default { ...@@ -486,6 +491,9 @@ export default {
} }
}) })
}, },
showNHide() {
this.leftPanelShow = !this.leftPanelShow
},
onSelect(selectedKeys, node) { onSelect(selectedKeys, node) {
console.log(selectedKeys, node.node.$children.length) console.log(selectedKeys, node.node.$children.length)
}, },
......
This diff is collapsed.
<template> <template>
<div> <div style="position: relative">
请先在左侧选择一个标签或添加标签。 <div style="border: 1px dotted lightgrey; padding: 150px;">
<a-row style="text-align: center; margin-bottom: 50px;">
<img src="@/assets/icon/labelNone.png" />
</a-row>
<a-row style="text-align: center; font-weight: bold; font-size: 16px">
<span>请先在左侧选择一个标签或添加标签。</span>
</a-row>
</div>
</div> </div>
</template> </template>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment