| | |
| | | <div class="thing"> |
| | | <div class="left"> |
| | | <el-input v-model="search.technology" suffix-icon="el-icon-search" placeholder="请输入搜索内容" size="small" clearable @input="(val)=>$refs.tree.filter(val)"></el-input> |
| | | <el-tree :data="list" style="height: 500px;overflow-y: auto;" ref="tree" :props="{children: 'children',label: 'name'}" node-key="name" default-expand-all |
| | | <el-tree :data="list" ref="tree" :props="{children: 'children',label: 'name'}" node-key="name" default-expand-all |
| | | @node-click="handleNodeClick" highlight-current @node-expand="nodeOpen" @node-collapse="nodeClose" :filter-node-method="filterNode" |
| | | :key="upIndex"> |
| | | <div class="custom-tree-node" slot-scope="{ node, data }"> |
| | |
| | | }, |
| | | //新增 |
| | | add() { |
| | | this.dialogVisible = false |
| | | if (this.form.standard[0] !== "<" && this.form.standard[0] !== "<=" && this.form.standard[0] !== ">"){ |
| | | this.$message({ |
| | | message: '输入的第一个字符必须是 '<' 或 '<='!', |
| | | type: 'warning' |
| | | }); |
| | | return; |
| | | } |
| | | this.addSelfcheck() |
| | | this.dialogVisible = false |
| | | }, |
| | | addSelfcheck() { |
| | | this.$axios.post(this.$api.url.addSelfcheck,{ |
| | |
| | | })[0] |
| | | console.log(one); |
| | | let id =one.children[0].id |
| | | this.checkTreeNode.id = id |
| | | console.log(id); |
| | | this.selectAllSelfStart(id) |
| | | this.selectDataList(); |