瀏覽代碼

修改问题

newStyle
corala 1 年之前
父節點
當前提交
702a5e51d8
共有 1 個檔案被更改,包括 13 行新增12 行删除
  1. +13
    -12
      src/views/Template/requiremining.vue

+ 13
- 12
src/views/Template/requiremining.vue 查看文件

@@ -20,19 +20,20 @@
draggable :allow-drop="allowDrop" :allow-drag="allowDrag"
@node-drop="Peerdrag">
<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>
<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>
<div class="update-btn">
<el-button type="primary" size="mini" @click="getCheckedNode">获取选中节点</el-button>


Loading…
取消
儲存