|
@@ -28,10 +28,11 @@
|
|
|
<el-step title="接口权限" />
|
|
|
</el-steps>
|
|
|
<div class="scroll-part mt-3">
|
|
|
- <el-tree ref="treeRef" :data="treeData" show-checkbox default-expand-all node-key="id" highlight-current :props="step === 0 ? {
|
|
|
+ <el-tree ref="treeRef" v-if="step === 0" :data="treeData" show-checkbox default-expand-all node-key="id" highlight-current :props="{
|
|
|
children: 'children',
|
|
|
label: 'title',
|
|
|
- } : defaultProps" check-on-click-node :expand-on-click-node="false" @check-change="checkChange" />
|
|
|
+ }" check-on-click-node :expand-on-click-node="false" @check-change="checkChange" />
|
|
|
+ <el-tree ref="treeRef" v-else :data="treeData" show-checkbox default-expand-all node-key="id" highlight-current :props="defaultProps" check-on-click-node :expand-on-click-node="false" @check-change="checkChange" />
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
</template>
|