提交 c43fd82b authored 作者: fit2cloud-chenyw's avatar fit2cloud-chenyw

fix: 我的分享多个焦点

上级 6b7c0671
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<el-row> <el-row>
<span class="header-title">{{ $t('panel.share_in') }}</span> <span class="header-title">{{ $t('panel.share_in') }}</span>
<div class="block" style="margin-top:8px;"> <div class="block" style="margin-top:8px;">
<el-tree :data="datas" :props="defaultProps" :highlight-current="true" node-key="name" :default-expanded-keys="expandNodes" @node-click="handleNodeClick"> <el-tree ref="topTree" :data="datas" :props="defaultProps" :highlight-current="true" node-key="name" :default-expanded-keys="expandNodes" @node-click="handleNodeClick">
<span slot-scope="{ data }" class="custom-tree-node father"> <span slot-scope="{ data }" class="custom-tree-node father">
<span style="display: flex; flex: 1 1 0%; width: 0px;" :class="!!data.msgNode ? 'msg-node-class': ''"> <span style="display: flex; flex: 1 1 0%; width: 0px;" :class="!!data.msgNode ? 'msg-node-class': ''">
<span v-if="!!data.id"> <span v-if="!!data.id">
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
<el-row> <el-row>
<span class="header-title">{{ $t('panel.share_out') }}</span> <span class="header-title">{{ $t('panel.share_out') }}</span>
<div class="block" style="margin-top:8px;"> <div class="block" style="margin-top:8px;">
<el-tree :data="outDatas" :props="defaultProps" :highlight-current="true" node-key="name" :default-expand-all="true"> <el-tree ref="botTree" :data="outDatas" :props="defaultProps" :highlight-current="true" node-key="name" :default-expand-all="true">
<span slot-scope="{ data }" class="custom-tree-node father"> <span slot-scope="{ data }" class="custom-tree-node father">
<span style="display: flex; flex: 1 1 0%; width: 0px;" @click="viewMyShare(data)"> <span style="display: flex; flex: 1 1 0%; width: 0px;" @click="viewMyShare(data)">
<span v-if="!!data.id"> <span v-if="!!data.id">
...@@ -110,6 +110,7 @@ export default { ...@@ -110,6 +110,7 @@ export default {
this.$store.dispatch('panel/setPanelInfo', data) this.$store.dispatch('panel/setPanelInfo', data)
bus.$emit('set-panel-show-type', 1) bus.$emit('set-panel-show-type', 1)
}) })
this.$refs['botTree'].setCurrentKey(null)
}, },
viewMyShare(data) { viewMyShare(data) {
get('panel/group/findOne/' + data.id).then(response => { get('panel/group/findOne/' + data.id).then(response => {
...@@ -119,6 +120,7 @@ export default { ...@@ -119,6 +120,7 @@ export default {
this.$store.dispatch('panel/setPanelInfo', data) this.$store.dispatch('panel/setPanelInfo', data)
bus.$emit('set-panel-show-type', 2) bus.$emit('set-panel-show-type', 2)
}) })
this.$refs['topTree'].setCurrentKey(null)
}, },
resetID(data) { resetID(data) {
if (data) { if (data) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论