|
@@ -20,19 +20,20 @@ |
|
|
draggable :allow-drop="allowDrop" :allow-drag="allowDrag" |
|
|
draggable :allow-drop="allowDrop" :allow-drag="allowDrag" |
|
|
@node-drop="Peerdrag"> |
|
|
@node-drop="Peerdrag"> |
|
|
<span class="custom-tree-node" slot-scope="{ node, data }"> |
|
|
<span class="custom-tree-node" slot-scope="{ node, data }"> |
|
|
<el-tooltip :content="data.label" placement="top"> |
|
|
|
|
|
<span class="node-label" v-if="data.level==3">{{ data.label }}</span> |
|
|
|
|
|
|
|
|
<el-tooltip :content="data.label" placement="top"> |
|
|
|
|
|
<span class="node-label" v-if="data.level==3">{{ data.label }}</span> |
|
|
</el-tooltip> |
|
|
</el-tooltip> |
|
|
<span class="node-label" v-if="data.level==1||data.level==2">{{data.isInterval==0?(data.label+'~'+data.endName):data.label }}</span> |
|
|
|
|
|
<span> |
|
|
|
|
|
<el-button v-if="node.level==1" type="text" size="mini" @click.stop="() => openSet(node,data)">设置</el-button> |
|
|
|
|
|
<el-button v-if="data.level==1&&data.showLevel==1" type="text" size="mini" @click.stop="() => append(node,data)">新增话术</el-button> |
|
|
|
|
|
<el-button v-if="data.level==2&&data.showLevel==2" type="text" size="mini" @click.stop="() => append(node,data)">新增话术</el-button> |
|
|
|
|
|
<el-button v-if="data.level==3" type="text" size="mini" @click.stop="() => toEditor(node,data)">编辑</el-button> |
|
|
|
|
|
<el-button v-if="data.level==3&&pipeiShow" type="text" size="mini" @click.stop="() => pipei(node,data)">匹配模型</el-button> |
|
|
|
|
|
<el-button v-if="data.level==3" type="text" size="mini" @click.stop="() => remove(node,data)">删除</el-button> |
|
|
|
|
|
</span> |
|
|
|
|
|
</span> |
|
|
|
|
|
|
|
|
<span class="node-label" v-if="data.level==1">{{data.label}}</span> |
|
|
|
|
|
<span class="node-label" v-if="data.level==2">{{data.isInterval==0?(data.label+'~'+data.endName):data.label }}</span> |
|
|
|
|
|
<span> |
|
|
|
|
|
<el-button v-if="node.level==1" type="text" size="mini" @click.stop="() => openSet(node,data)">设置</el-button> |
|
|
|
|
|
<el-button v-if="data.level==1&&data.showLevel==1" type="text" size="mini" @click.stop="() => append(node,data)">新增话术</el-button> |
|
|
|
|
|
<el-button v-if="data.level==2&&data.showLevel==2" type="text" size="mini" @click.stop="() => append(node,data)">新增话术</el-button> |
|
|
|
|
|
<el-button v-if="data.level==3" type="text" size="mini" @click.stop="() => toEditor(node,data)">编辑</el-button> |
|
|
|
|
|
<el-button v-if="data.level==3&&pipeiShow" type="text" size="mini" @click.stop="() => pipei(node,data)">匹配模型</el-button> |
|
|
|
|
|
<el-button v-if="data.level==3" type="text" size="mini" @click.stop="() => remove(node,data)">删除</el-button> |
|
|
|
|
|
</span> |
|
|
|
|
|
</span> |
|
|
</el-tree> |
|
|
</el-tree> |
|
|
<div class="update-btn"> |
|
|
<div class="update-btn"> |
|
|
<el-button type="primary" size="mini" @click="getCheckedNode">获取选中节点</el-button> |
|
|
<el-button type="primary" size="mini" @click="getCheckedNode">获取选中节点</el-button> |
|
|