qinzhipeng_v 5 лет назад
Родитель
Сommit
acee686266
1 измененных файлов с 5 добавлено и 15 удалено
  1. 5 15
      src/views/apiManagement/index.vue

+ 5 - 15
src/views/apiManagement/index.vue

@@ -22,7 +22,7 @@
           >
             <span slot-scope="{ node, data }" class="custom-tree-node" @mouseenter="mouseenter(data)" @mouseleave="mouseleave(data)">
               <span>{{ node.label }}</span>
-              <span v-show="data.del">
+              <span v-show="data.row && data.del">
                 <el-tooltip class="item" effect="dark" content="添加接口" placement="top">
                   <span v-if="Interface_list === '接口分类'" class="el-icon-plus Api_btn" @click="() => append(data)" />
                 </el-tooltip>
@@ -124,7 +124,8 @@ export default {
   data() {
     var data1 = [{
       id: 1,
-      label: '一级 1',
+      label: '质惠平台-迭代接口',
+      row: 1,
       children: [{
         id: 4,
         label: '二级 1-1',
@@ -139,6 +140,7 @@ export default {
     }, {
       id: 2,
       label: '一级 2',
+      row: 1,
       children: [{
         id: 5,
         label: '二级 2-1'
@@ -148,6 +150,7 @@ export default {
       }]
     }, {
       id: 3,
+      row: 1,
       label: '一级 3',
       children: [{
         id: 7,
@@ -164,7 +167,6 @@ export default {
       node_Name: {},
       Interface_list: '接口列表',
       data1: JSON.parse(JSON.stringify(data1)),
-      fullHeight: document.documentElement.clientHeight,
       value: '',
       screenWidth: '',
       Details: false,
@@ -192,17 +194,6 @@ export default {
       }
     }
   },
-  mounted() {
-    const that = this
-    window.onresize = () => {
-      return (() => {
-        window.fullHeight = document.documentElement.clientHeight
-        that.fullHeight = window.fullHeight
-        console.log(that.fullHeight, 'DSCDSSASC')
-      })()
-    }
-    console.log(this.fullHeight, 'DSCDSC')
-  },
   methods: {
     InterfaceLeft(vel) {
       vel === '接口分类' ? this.Interface_list = '接口分类' : this.Interface_list = '接口列表'
@@ -212,7 +203,6 @@ export default {
       this.dialogStatus = 'addType'
     },
     mouseenter(data) { // 导航栏显示新建/删除/编辑
-      console.log(data, '划入')
       this.$set(data, 'del', true)
     },
     mouseleave(data) { // 导航栏隐藏新建/删除/编辑