王震
2023-09-15 5c76f242b20281b51d01ce2266e8beaafe8ae5a6
src/components/view/self-inspection.vue
@@ -141,7 +141,7 @@
      <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 }">
@@ -448,8 +448,15 @@
         },
         //新增
         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,{
@@ -513,6 +520,7 @@
         })[0]
         console.log(one);
         let id =one.children[0].id
         this.checkTreeNode.id = id
         console.log(id);
         this.selectAllSelfStart(id)
         this.selectDataList();