This commit is contained in:
仲么了
2024-01-19 14:14:45 +08:00
parent 9b85e7125b
commit 489d4e2e53

View File

@@ -12,10 +12,7 @@
/>
<el-button :icon="Plus" type="primary" @click="addMenu" class="ml10">新增</el-button>
</div>
<Table
:tree-config="{ reserve: true, expandAll: !!tableStore.table.params.searchValue }"
@currentChange="currentChange"
/>
<Table @currentChange="currentChange" />
<popupMenu ref="popupRef" @init="emits('init')"></popupMenu>
</div>
</template>
@@ -116,7 +113,7 @@ provide('tableStore', tableStore)
const addMenu = () => {
console.log(popupRef)
popupRef.value.open('新增菜单',{})
popupRef.value.open('新增菜单', {})
}
const currentChange = (newValue: any) => {
emits('select', newValue.row.id)
@@ -127,10 +124,6 @@ const search = () => {
nextTick(() => {
tableStore.table.ref?.setAllTreeExpand(true)
})
} else {
nextTick(() => {
tableStore.table.ref?.setAllTreeExpand(false)
})
}
}