|
|
@@ -1,19 +1,50 @@
|
|
|
<template>
|
|
|
<div class="jbd-tree">
|
|
|
- <ibps-tree :title="title" :width="width" :height="height" :data="treeData" :location="location"
|
|
|
- :options="treeOptions" :contextmenus="hasContextmenu ? treeContextmenus : []" :position="position"
|
|
|
- :hasPermission="hasPermission" @action-event="handleTreeAction" @node-click="handleNodeClick"
|
|
|
- @expand-collapse="handleExpandCollapse" ref="treeIndex" />
|
|
|
+ <ibps-tree
|
|
|
+ :title="title"
|
|
|
+ :width="width"
|
|
|
+ :height="height"
|
|
|
+ :data="treeData"
|
|
|
+ :location="location"
|
|
|
+ :options="treeOptions"
|
|
|
+ :contextmenus="hasContextmenu ? treeContextmenus : []"
|
|
|
+ :position="position"
|
|
|
+ :hasPermission="hasPermission"
|
|
|
+ @action-event="handleTreeAction"
|
|
|
+ @node-click="handleNodeClick"
|
|
|
+ @expand-collapse="handleExpandCollapse"
|
|
|
+ ref="treeIndex"
|
|
|
+ />
|
|
|
<!-- 分类编辑 -->
|
|
|
- <type-edit :id="editId" :parent-data="typeData" :is-private="isPrivate" :category-key="categoryKey"
|
|
|
- :visible="typeFormVisible" :title="editTitle" @callback="loadTreeData"
|
|
|
- @close="(visible) => (typeFormVisible = visible)" />
|
|
|
- <type-move :id="editId" :parent-data="typeData" :is-private="isPrivate" :category-key="categoryKey"
|
|
|
- :data="treeData" :visible="moveFormVisible" :title="editTitle" @callback="loadTreeData"
|
|
|
- @close="(visible) => (moveFormVisible = visible)" />
|
|
|
+ <type-edit
|
|
|
+ :id="editId"
|
|
|
+ :parent-data="typeData"
|
|
|
+ :is-private="isPrivate"
|
|
|
+ :category-key="categoryKey"
|
|
|
+ :visible="typeFormVisible"
|
|
|
+ :title="editTitle"
|
|
|
+ @callback="loadTreeData"
|
|
|
+ @close="visible => typeFormVisible = visible"
|
|
|
+ />
|
|
|
+ <type-move
|
|
|
+ :id="editId"
|
|
|
+ :parent-data="typeData"
|
|
|
+ :is-private="isPrivate"
|
|
|
+ :category-key="categoryKey"
|
|
|
+ :data="treeData"
|
|
|
+ :visible="moveFormVisible"
|
|
|
+ :title="editTitle"
|
|
|
+ @callback="loadTreeData"
|
|
|
+ @close="visible => moveFormVisible = visible"
|
|
|
+ />
|
|
|
<!-- 分类排序 -->
|
|
|
- <type-sort :id="editId" :visible="sortFormVisible" title="分类排序" @callback="loadTreeData"
|
|
|
- @close="(visible) => (sortFormVisible = visible)" />
|
|
|
+ <type-sort
|
|
|
+ :id="editId"
|
|
|
+ :visible="sortFormVisible"
|
|
|
+ title="分类排序"
|
|
|
+ @callback="loadTreeData"
|
|
|
+ @close="visible => sortFormVisible = visible"
|
|
|
+ />
|
|
|
</div>
|
|
|
</template>
|
|
|
|