zouyu
5 天以前 2bd9b32aa6378ff6a841780628b844a42dbd8f01
src/views/standard/standardLibrary/index.vue
@@ -20,8 +20,8 @@
        " @node-click="handleNodeClick"
               @node-drop="handleDrop">
        <div slot-scope="{ node, data }" class="custom-tree-node" style="width: calc(100% - 15px)">
          <div style="display: flex;align-items: center;flex-wrap: nowrap;flex-direction: row;justify-content: space-between;">
            <div style="width: calc(100% - 50px);text-overflow: ellipsis;white-space: nowrap;"
          <div :title="data.label" style="display: flex;align-items: center;flex-wrap: nowrap;flex-direction: row;justify-content: space-between;">
            <div style="width: calc(100% - 50px);white-space: nowrap;text-overflow: ellipsis;"
                 :style="`overflow:${(node.data.children === null || node.data.children === undefined)?'clip':'visible'}`"
            >
              <i :class="`node_i ${data.children != undefined
@@ -41,46 +41,6 @@
              </el-button>
            </div>
          </div>
<!--          <div style="display: inline-block;width: calc(100% - 60px);text-overflow: ellipsis;white-space: nowrap;" :style="`overflow:${(node.data.children === null || node.data.children === undefined)?'clip':'visible'}`">-->
<!--              <i :class="`node_i ${data.children != undefined-->
<!--                ? data.code === '[1]'-->
<!--                  ? 'el-icon-folder-opened'-->
<!--                  : 'el-icon-folder'-->
<!--                : 'el-icon-tickets'-->
<!--                }`"></i>-->
<!--              {{ data.label }}-->
<!--          </div>-->
<!--          <span v-if="(node.data.children === null || node.data.children === undefined)" style="text-align: right">-->
<!--              <el-button style="width:20px" v-if="checkPermi(['standard:standardLibrary:delStandardTree'])" size="mini" type="text" @click.stop="editTreeName(node.data)">-->
<!--                <i class="el-icon-edit"></i>-->
<!--              </el-button>-->
<!--              <el-button style="width:20px;margin-left: 0" size="mini" v-if="checkPermi(['standard:standardLibrary:delStandardTree'])" type="text" @click.stop="remove(node, data)">-->
<!--                <i class="el-icon-delete"></i>-->
<!--              </el-button>-->
<!--          </span>-->
<!--          <el-row style="width: 100%">-->
<!--            <el-col :class="{ sort: node.level > 3 }" :span="19" :title="data.label" style="text-align: left">-->
<!--            </el-col>-->
<!--            <el-col v-if="-->
<!--              checkPermi(['standard:standardLibrary:delStandardTree']) &&-->
<!--              (node.data.children === null ||-->
<!--                node.data.children === undefined)-->
<!--            " :span="2" style="text-align: right">-->
<!--            </el-col>-->
<!--            <el-col v-if="-->
<!--              checkPermi(['standard:standardLibrary:delStandardTree']) &&-->
<!--              (node.data.children === null ||-->
<!--                node.data.children === undefined)-->
<!--            " :span="2" style="text-align: right">-->
<!--            </el-col>-->
<!--          </el-row>-->
        </div>
      </el-tree>
    </div>