heyujie
2021-07-22 eca3bc0ecb283d9e9402441c6ed3e3580621990f
src/pages/desktop/index/components/Tools.vue
@@ -15,13 +15,23 @@
        />
      </div>
      <div class="fast-path" :class="showFastPath?'fast-path-show':''" @click.stop>
      <div
        class="fast-path"
        :class="showFastPath ? 'fast-path-show' : ''"
        @click.stop
      >
        <div class="top">
          <img src="" alt="" />
          <img :src="`data:image/png;base64,${userInfo.headpic}`" alt="" />
          <span class="username">{{userInfo.username}}</span>
        </div>
        <div class="link-list">
          <div class="list-item" v-for="(x, i) in linkList" :key="i" @click="clickFastPath(x.name)">
          <div
            class="list-item"
            v-for="(x, i) in linkList"
            :key="i"
            @click="clickFastPath(x.name)"
          >
            {{ x.name }}
          </div>
        </div>
@@ -174,7 +184,11 @@
      notificationCenterVisible: false,
      notificationCenterMessageCount: 0,
      userInfo: {},
      linkList: [{name: "文档中心"}, {name: "系统监控器"}, { name: "日志管理" }],
      linkList: [
        { name: "文档中心" },
        { name: "系统监控器" },
        { name: "日志管理" },
      ],
      showPasswdForm: false,
      rules: {
        oldPwd: [{ required: true, message: "请输入旧密码", trigger: "blur" }],
@@ -211,9 +225,9 @@
      // debugger
      // this.showFastPath=false
      if (this.showFastPath) {
        this.showFastPath=false
        this.showFastPath = false;
      }
    })
    });
  },
  methods: {
    submitForm(formName) {
@@ -260,7 +274,7 @@
    },
    togglePreference() {
      this.showFastPath = !this.showFastPath
      this.showFastPath = !this.showFastPath;
      this.$store.state.desktop.frames.forEach((frame) => {
        this.$store.commit("desktop/addMinDock", {
          id: frame.id,
@@ -288,13 +302,10 @@
      }
    },
    clickFastPath(name){
      debugger
      this.$emit("jumpToDock", name)
      this.$emit("jumpToDock", name);
    },
    gotoSet(){
      this.$emit("jumpToDock", "系统设置")
      this.$emit("jumpToDock", "系统设置");
    },
    toolHover(dock) {
      //this.$parent.screenShot(dock)
@@ -430,17 +441,12 @@
  top: 55px;
  border-radius: 6px;
  background-color: rgba(255, 255, 255, 1);
  transition: .2s;
  transition: 0.2s;
  display: none;
  padding-top: 5px;
  box-sizing: border-box;
  .top{
        display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: space-evenly;
    -ms-flex-pack: space-evenly;
    /* justify-content: space-evenly; */
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    height: 70px;
    box-sizing: border-box;
@@ -456,7 +462,7 @@
    height: 30px;
    line-height: 30px;
    font-size: 16px;
    margin-left: 10px;
      margin-left: 15px;
    }
  }
  .link-list{
@@ -465,17 +471,15 @@
    flex-direction: column;
    align-items: center;
    .list-item{
          display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    width: 80%;
    -webkit-box-sizing: border-box;
      width: 90%;
    box-sizing: border-box;
    padding: 0 20px;
    border-radius: 5px;
    font-size: 14px;
    line-height: 25px;
    height: 25px;cursor: pointer;
      height: 25px;
      cursor: pointer;
    margin: 5px;
    }
    .list-item:hover{
@@ -489,7 +493,8 @@
    display: flex;
    width: 100%;
    justify-content: space-around;
    .set,.exit{
    .set,
    .exit {
          display: flex;
    align-items: center;
    width: 28%;
@@ -497,7 +502,6 @@
    font-size: 14px;
    cursor: pointer;
    }
  }
}
@@ -512,7 +516,7 @@
}
.fast-path-show {
  animation: move linear .2s 1;
  animation: move linear 0.2s 1;
  display: block;
}