lzhe
2024-06-21 dd0cc539598b599240ac3d95a74170544ed5741c
src/views/home/widgets/components/Entrance.vue
@@ -82,19 +82,13 @@
            //console.log(this.setCard,222)
         },
         getCard() {  //获取快捷菜单
            var data = this.$TOOL.data.get("MENU");
            this.workid = data[0].children[0].id;  //记录第一个children的id
            this.$HTTP.get(`/api/blade-system/workbench-card/list?workbenchId=${this.workid}`).then(res=> {
               if(res.code == 200) {
                  this.setCard = res.data;
                  res.data.forEach(item=> {
                     if(item.cardKey == "Entrance") {
                        this.$TOOL.data.set("CARD_INFO", item.textContent);
                     }
                  })
                  this.init(); //根据获取的快捷菜单和菜单确定最后一级和勾选状态
            this.setCard = this.$CONFIG.DEFAULT_GRID.data;
            this.setCard.forEach(item=> {
               if(item.cardKey == "Entrance") {
                  this.$TOOL.data.set("CARD_INFO", item.textContent);
               }
            })
            this.init(); //根据获取的快捷菜单和菜单确定最后一级和勾选状态
         },
         init() {
            this.titleList = [];
@@ -165,7 +159,7 @@
   ul li div,.addMenu{border: 1px solid #409eff;margin-top: 10px;height: 43px;margin-left: 10px;display: flex;align-items: center;justify-content: center;color: #409eff;border-radius: 2px;border-radius: 2px;white-space: nowrap;cursor: pointer;min-width: 112px;}
   ul li div:hover {background-color: #ebf4f4;}
   .addMenu {border: 1px dashed #409eff;}
   ..addMenu:hover {border: 1px dashed #104E8B;}
   .addMenu:hover {border: 1px dashed #104E8B;}
   .parent-children-title {margin-left: 10px;margin-top: 24px;font-weight: 700;font-size: 14px;text-align: left;color: #333;}
   .parent-children {display: flex;flex-direction: row;flex-wrap: wrap;justify-content: flex-start;align-items: flex-start;padding-left: 10px;box-sizing: border-box;}
   .parent-children span {margin-left: 10px;margin-top: 10px;width: 22%;border: 0.5px solid #20B2AA;border-radius: 2px;height: 43px;display: flex;align-items: center;justify-content: center;cursor: pointer;position: relative;min-width: 112px;}