|
@@ -1,27 +1,33 @@
|
|
<template>
|
|
<template>
|
|
<div class="accessPageNodeBtn">
|
|
<div class="accessPageNodeBtn">
|
|
- <div class="accessPageNodeBtn-txt">
|
|
|
|
- <el-button @click="handleEdit" round>{{ nodeTxt }}</el-button>
|
|
|
|
- </div>
|
|
|
|
- <div v-if="isLine" class="accessPageNodeBtn-line">
|
|
|
|
- <div @click="handleAdd" class="accessPageNodeBtn-line-add">
|
|
|
|
- <i class="el-icon-circle-plus"></i>
|
|
|
|
|
|
+ <template v-if="!nodeItem.startid && !nodeItem.endid">
|
|
|
|
+ <div class="accessPageNodeBtn-txt">
|
|
|
|
+ <el-button @click="handleEdit" round>{{ nodeTxt }}</el-button>
|
|
</div>
|
|
</div>
|
|
- <div v-if="isDel" @click="handleDel" class="accessPageNodeBtn-line-del">
|
|
|
|
- <i class="el-icon-error"></i>
|
|
|
|
|
|
+ <div v-if="isLine" class="accessPageNodeBtn-line">
|
|
|
|
+ <div @click="handleAdd" class="accessPageNodeBtn-line-add">
|
|
|
|
+ <i class="el-icon-circle-plus"></i>
|
|
|
|
+ </div>
|
|
|
|
+ <div v-if="isDel" @click="handleDel" class="accessPageNodeBtn-line-del">
|
|
|
|
+ <i class="el-icon-error"></i>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
- </div>
|
|
|
|
- <div class="accessPageNodeBtn-sck">
|
|
|
|
- <i class="el-icon-caret-bottom"></i>
|
|
|
|
- </div>
|
|
|
|
|
|
+ <div class="accessPageNodeBtn-sck">
|
|
|
|
+ <i class="el-icon-caret-bottom"></i>
|
|
|
|
+ </div>
|
|
|
|
+ </template>
|
|
|
|
+ <template v-else>
|
|
|
|
+ <data-line :node-item="nodeItem" @handleEdit="handleEdit" />
|
|
|
|
+ </template>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
import PublicPageDialog from '@/components/PublicPageDialog'
|
|
import PublicPageDialog from '@/components/PublicPageDialog'
|
|
|
|
+import dataLine from './accessPageNodeLine.vue'
|
|
export default {
|
|
export default {
|
|
name: 'AccessPageNodeBtn',
|
|
name: 'AccessPageNodeBtn',
|
|
- components: { PublicPageDialog },
|
|
|
|
|
|
+ components: { PublicPageDialog, dataLine },
|
|
props: {
|
|
props: {
|
|
nodeTxt: {
|
|
nodeTxt: {
|
|
type: String,
|
|
type: String,
|