createGuide.vue 8.5 KB
<!--
 * @Author: your name
 * @Date: 2022-03-03 17:45:22
 * @LastEditTime: 2022-04-15 17:54:32
 * @LastEditors: huyue
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \scrm-micro-settings\src\views\approvalConfig\createGuide.vue
-->
<template>
  <div>
    <div class="guide-page">
      <div class="guide-title">操作手册</div>
      <div class="guide-content">
        <div class="step-line"></div>
        <div class="step">
          <div class="step-icon">
            <span class="icon-shell"><span class="icon-number">1</span></span>
          </div>
          <div class="step-content">
            打开企微后台登录地址:
            <el-link type="primary" target="_blank" :underline="false" href="https://work.weixin.qq.com/login">https://work.weixin.qq.com/login</el-link>
            企微管理员用企微或者微信扫码进行登录
          </div>
        </div>
        <div class="step">
          <div class="step-icon">
            <span class="icon-shell"><span class="icon-number">2</span></span>
          </div>
          <div class="step-content">
            <div class="step-title">登录后,在【应用管理-应用】下,找到【嘀加企微管家】,点击进入</div>
            <img class="step2-img" src="../../../src/assets/guide/01@3x.png" alt="" />
          </div>
        </div>
        <div class="step">
          <div class="step-icon">
            <span class="icon-shell"><span class="icon-number">3</span></span>
          </div>
          <div class="step-content">
            <div class="step-title" style="margin-bottom: 16px">在【嘀加企微管家】应用页下方,根据接入方式,找到对应功能(自建应用模式和应用代开发模式为2存1,不会同时出现,企微管理员只需关注“审批设置”在企微后台那里 展示,点进去配置即可)</div>
            <div class="half-step">
              <div class="half-title">自建应用模式:</div>
              <div class="half-content third-content" :style="{ height: thirdHeight + 'px' }">在【开发者接口】模块,找到“审批接口”,点击【设置】,进入设置页</div>
              <img class="step3-img" src="../../../src/assets/guide/02@3x.png" alt="" />
            </div>
            <div class="half-step m-l-md">
              <div class="half-title">应用代开发模式:</div>
              <div class="half-content" :style="{ height: thirdHeight + 'px' }">在【功能】模块,找到“审批流程”,点击【前往设置】,进入设置页</div>
              <img class="step3-img" src="../../../src/assets/guide/03@3x.png" alt="" />
            </div>
          </div>
        </div>
        <div class="step">
          <div class="step-icon">
            <span class="icon-shell"><span class="icon-number">4</span></span>
          </div>
          <div class="step-content">
            <div class="step-title">配置审批人及审批流</div>
            <div class="half-title">自建应用模式:</div>
            <div class="half-content">点击【+添加模板】,进入审批模板配置页,按自店需要,配置好审批人信息后,点击【保存】</div>
            <div class="half-step">
              <img class="step4-img m-b-md" src="../../../src/assets/guide/04@3x.png" alt="" />
            </div>
            <div class="half-step m-b-md m-l-md">
              <img class="step4-img" src="../../../src/assets/guide/05@3x.png" alt="" />
            </div>
            <div class="half-title">应用代开发模式:</div>
            <div class="half-content">点击出现的对应模板(若为空或缺少需要审批的模板,请联系我们:18928408808进行配置),进入审批模板配置页,按自店需要,配置好审批人信息后,点击【保存】</div>
            <div class="half-step">
              <img class="step4-img" src="../../../src/assets/guide/06@3x.png" alt="" />
            </div>
            <div class="half-step m-l-md">
              <img class="step4-img" src="../../../src/assets/guide/07@3x.png" alt="" />
            </div>
          </div>
        </div>
        <div class="step">
          <div class="step-icon">
            <span class="icon-shell"><span class="icon-number">5</span></span>
          </div>
          <div class="step-content">
            <div class="step-title">复制审批模板的ID</div>
            <div class="half-step">
              <div class="half-title">自建应用模式:</div>
              <div class="half-content" :style="{ height: fiveHeight + 'px' }">点击【复制ID】,即可获取审批模板的ID</div>
              <img class="step5-img" src="../../../src/assets/guide/08@3x.png" alt="" />
            </div>
            <div class="half-step m-l-md">
              <div class="half-title">应用代开发模式:</div>
              <div class="half-content five-content" :style="{ height: fiveHeight + 'px' }">需进入模板的配置页,在浏览器链接中,复制如图位置的字符,即可获取审批 模板的ID</div>
              <img class="step5-img" src="../../../src/assets/guide/09@3x.png" alt="" />
            </div>
          </div>
        </div>
      </div>
    </div>
    <GLFooter>
      <el-button type="primary" @click="handleCancel">返回</el-button>
    </GLFooter>
  </div>
</template>

<script>
export default {
  name: 'CreateGuide',
  data() {
    return {
      lineHeight: 2200,
      // footerWidth: 800,
      // 当屏幕太小导致换行,出现对不齐问题
      fiveHeight: 40,
      thirdHeight: 40
    }
  },
  methods: {
    handleCancel() {
      this.$router.push({ path: '/approvalConfig/index' })
    }
  }
}
</script>

<style lang="scss">
.guide-page {
  background-color: #fff;
  margin-bottom: 20px;
  .guide-title {
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 500;
    color: #333333;
    line-height: 28px;
    border-bottom: 1px solid #d8d8d8;
  }
  .guide-content {
    position: relative;
    padding: 32px 20px 20px;
    z-index: 1;
    .step-line {
      position: absolute;
      background-color: #5850ff;
      width: 1px;
      height: calc(100% - 92px);
      left: 35px;
      top: 63px;
      z-index: -1;
    }
    .step {
      display: flex;
      margin-bottom: 10px;
      z-index: 1;
      .step-icon {
        display: inline-flex;
        // position: relative;
        width: 32px;
        height: 63px;
        align-items: center;
        // justify-content: center;
        color: #fff;
        .icon-shell {
          width: 100%;
          background-color: #fff;
          padding: 8px 0;
        }
        .icon-number {
          display: inline-flex;
          width: 100%;
          height: 32px;
          background-color: #5850ff;
          border-radius: 50%;
          align-items: center;
          justify-content: center;
        }
      }
      .step-content {
        position: relative;
        width: 100%;
        padding: 20px;
        margin-left: 20px;
        line-height: 20px;
        border: 1px solid #d8d8d8;
        height: 100%;
        .step-title {
          margin-bottom: 10px;
        }
        .step2-img {
          // width: 800px;
          // height: 725px;
          width: 100%;
          height: 100%;
        }
        .half-step {
          display: inline-flex;
          width: calc(50% - 10px);
          flex-direction: column;
          .step3-img {
            // width: 500px;
            // height: 430px;
            width: 100%;
            height: 100%;
            margin-top: 10px;
          }
          .step4-img,
          .step5-img {
            // width: 500px;
            // height: 345px;
            width: 100%;
            height: 100%;
            margin-top: 10px;
          }
        }
        .half-title {
          position: relative;
          font-size: 14px;
          color: #333;
          font-weight: 600;
          padding-left: 10px;
          &::after {
            content: '';
            display: inline-block;
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 5px;
            height: 5px;
            background-color: #5850ff;
            border-radius: 50%;
          }
        }
        .half-content {
          font-size: 14px;
          margin-left: 10px;
        }
      }
    }
  }
}
.el-link.el-link--primary {
  color: #5850ff;
  &:hover {
    color: #5850ff;
  }
}
.m-b-md {
  margin-bottom: 20px;
}
.m-l-md {
  margin-left: 20px;
}
</style>