Selaa lähdekoodia

修改问题

newStyle
corala 1 vuosi sitten
vanhempi
commit
702a5e51d8
1 muutettua tiedostoa jossa 13 lisäystä ja 12 poistoa
  1. +13
    -12
      src/views/Template/requiremining.vue

+ 13
- 12
src/views/Template/requiremining.vue Näytä tiedosto

@@ -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>


Ladataan…
Peruuta
Tallenna