Giter Site home page Giter Site logo

lianluoyi / easyink_dashboard Goto Github PK

View Code? Open in Web Editor NEW
35.0 3.0 15.0 13.09 MB

easyink的前端服务之一,基于Vue、Element-UI开发的企业微信一站式私域流量运营管理平台,让操作更简单。

Home Page: http://www.easyink.net

License: GNU General Public License v3.0

JavaScript 10.27% Batchfile 0.01% HTML 0.03% Vue 87.81% SCSS 1.88%
javascript vue scrm wecom wxwork

easyink_dashboard's Introduction

easyink操作手册

自建应用操作手册

第三方应用操作手册

🚀 项目介绍

该项目为easyink的前端模块之一,负责后台UI界面展示,企业基础设置、内容管理、运营功能等均在该页面操作。

🏭 关联项目

项目名 项目说明 项目地址
easyink_System easyink后端服务 https://github.com/lianluoyi/easyink_System.git
easyink_Dashboard(当前项目) easyink前端服务,主要负责后台UI界面展示 https://github.com/lianluoyi/easyink_Dashboard.git
easyink_Sidebar easyink前端服务,主要负责企微客户端中的侧边栏界面展示 https://github.com/lianluoyi/easyink_Sidebar.git
easyink_middleProcessing easyink h5前端服务,主要负责雷达、智能表单等营销活动页面的展示(非必要模块) https://github.com/lianluoyi/easyink_middleProcessing
easyink_MiniProgram easyink 活码小程序服务,主要负责员工活码、群活码页面的展示(非必要模块) https://github.com/lianluoyi/easyink_MiniProgram

🌟 体验功能

🏁 开发

# 克隆项目
git clone https://github.com/lianluoyi/easyink_Dashboard.git

# 进入项目目录

# 安装依赖
npm install
或 yarn install

# 建议不要直接使用 cnpm 安装依赖,会有各种诡异的 bug。可以使用yarn安装,或者通过如下操作解决 npm 下载速度慢的问题
npm install --registry=https://registry.npm.taobao.org

# 如需修改后端地址,更改根目录中的.env.development 中的 VUE_APP_BASE_API常量

# 启动服务
npm run serve

启动服务后,使用谷歌浏览器访问http://localhost:80

🏁 发布

# 构建生产环境
npm run build

✈️ 技术栈

  • vue(基础框架)
  • element-ui(ui组件)
  • sass(样式语言)
  • es6(浏览器脚本语言的标准)

🏠 目录结构

├─src
  ├─api                   // 后端接口定义(文件命名以接口前缀来命名)
    ├─appTool
    ├─communityOperating
    ├─conversation
    ├─customer
    ├─drainageCode
    ├─material
    ├─monitor
    ├─system
    ├─task
    ├─tool
    ├─admin
    └─......
  ├─assets 静态资源文件
    ├─401_images         // 身份验证失败时的图片显示
    ├─404_images         // 页面找不到时的默认图片
    ├─example            // 示例图
    ├─icons              // 菜单图标
    ├─image              // 项目图片资源
    ├─index
    ├─logo               // logo图标
    └─poster
  ├─components            // 公共组件
  ├─directive             // 自定义指令
  ├─layout                // 布局
  ├─router                // 路由
  ├─store                 // 全局变量
  ├─styles                // 全局样式
  ├─utils                 // 公共方法/常量
  ├─views                 // 页面文件
  ├─App                   // 根节点
  ├─config                // 公共配置
  ├─event-bus             // 事件总线
  ├─main                  // 全局组件/方法挂载
  ├─permission            // 登录权限判断
├─public
├─build
├─bin                      // 二进制文件
├─.env.development         // 本地环境配置文件
├─.env.production          // 生产环境配置文件
├─package                  // 需要安装的依赖文件及对应启动命令
├─vue.config               // 配置文件
├─styleguide.config.js     // vue-styleguidist(自动化生成公共组件文档)的配置文件

🎨 系统图标

本系统界面中的图标存放在iconfont图标库里面,若需要添加图标可自己新建一个自用的项目图标库,在里面上传图标,之后再引入一个新的图标链接。具体操作如下:

  1. 在项目图标库中上传图标
  2. 在 public/index.html中增加引入样式文件。
<!-- 普通图标地址 -->
<link rel="stylesheet" href="//at.alicdn.com/t/font_2736732_o4jym6emvq9.css" />
<!-- 彩色图标地址 -->
<script src="//at.alicdn.com/t/font_2736732_o4jym6emvq9.js"></script>
  1. 代码中使用示例如下:"icon-tool-edit"为图标库中的类名
<!-- 普通图标 -->
<i class="iconfont icon-tool-edit"></i>
<!-- 彩色图标 -->
<svg class="icon-player" :width="25" :height="25">
    <use href="#icon-player" />
</svg>

🔒 元素权限

本系统中会根据登录者的角色对某些元素进行权限判断,已经自定义了指令,具体示例如下:

v-hasPermi="['enterpriseWechat:view']"

📄 文档

一、公共组件文档

  1. 简介

    使用了工具 Vue Styleguidist 自动化生成公共组件文档。

  2. 使用说明 目前配置的是将src/components中的 *.vue组件生成文档,注释使用方式可参考src/components/AddTag.vue组件。( 官方说明文档地址:https://vue-styleguidist.github.io/docs/Documenting.html#code-comments

  3. 文档预览需执行以下命令

# 文档本地运行
npm run styleguide
# 文档打包部署
npm run styleguide:build

默认通过 http://localhost:6060 访问组件预览效果地址。

二、皮肤组件文档

  1. 简介

    该系统支持不同主题色的皮肤,其中element ui对应的组件主题色已经进行全局设置,其余自定义组件需要自己设置颜色,因此封装了部分常用的皮肤组件/类名,用于自定义组件的皮肤颜色的便捷设置。

  2. 使用说明

    a. 文字颜色

    使用类名 theme-text-color

    <div class="theme-text-color">文字</div>
    

    使用效果:image

    b. 列表选中色

    使用类名 theme-list-hover-color

    <li :class="['theme-list-hover-color', isSelected ? 'theme-list-selected-color' : '']">
        列表项
    </li>
    

    使用效果:image

    c. 列表移入色

    使用类名 theme-list-selected-color(示例同上)

    使用效果:image

    d. 边框颜色

    使用BorderColor组件(无需单独引入,已在main.js中定义,全局可用)
    <BorderColor all-border class="tag-item inoneline theme-text-color">标签名</BorderColor>
    

    使用效果:image

    e. 空心按钮

    使用类名 btn-reset

    <el-button class="btn-reset" @click="resetQuery()">重置</el-button>
    

    使用效果:image

easyink_dashboard's People

Contributors

broccoli77 avatar iaomei avatar lianluoyi avatar zcl0731 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

easyink_dashboard's Issues

1

这个功能解决了什么问题?

1

你期望的 API 是怎样的?

1

配置https域名后登录页面无法显示二维码,提示参数错误

版本

1a38b70

项目环境信息

node v14.18.1 npm 6.14.15

是否必现

重现步骤

  1. 用系统管理员账户登录,进入【系统管理】-【企微配置】,完成企业微信配置,并验证能够正确同步员工信息。
  2. 进入【系统管理】-【企微配置】完成Sidebar服务域名配置,配置地址为https协议,且不带端口号。形式为:https://xxx.xxx.xxx 。域名配置无误,且在企业微信侧边栏验证能够正常访问企业话术库。
  3. 退出管理员账户后,登录界面界面未能正确显示登录二维码,提示「参数错误」。界面显示如下:
<iframe src="https://open.work.weixin.qq.com/wwopen/sso/qrConnect?login_type=jssdk& appid=[正确的APPID]& agentid=[正确的AGENTID]& redirect_uri=https:& state=0& href=https://wechattest-1253559996.cos.ap-guangzhou.myqcloud.com/qrcode.css&lang=zh&version=1.2.4" frameborder="0" scrolling="no" width="300px" height="400px"> </iframe>

期望的结果

能够支持不带端口的https域名

实际的结果

当前版本在配置不带端口的https域名后,登录时未能正确拼接二维码地址,导致二维码无法显示


打开登录页面,能够看到请求二维码URL地址拼接错误,其中redirect_uri仅包含 https: 未能正确匹配后端配置的dashboard地址

<div data-v-0df23dc7="" class="qrcode-area">
	<div data-v-0df23dc7="" id="qrcode" class="qrcode">
		<iframe src="https://open.work.weixin.qq.com/wwopen/sso/qrConnect?login_type=jssdk&amp;
                     appid=[正确的APPID]&amp;
                     agentid=[正确的AGENTID]&amp;
                     redirect_uri=https:&amp;
                     state=0&amp;
                     href=https://wechattest-1253559996.cos.ap-guangzhou.myqcloud.com/qrcode.css&amp;lang=zh&amp;version=1.2.4" 
                frameborder="0" 
                scrolling="no" 
                width="300px" 
                height="400px">
        </iframe>
	</div>
</div>

示例:话术库编辑后确定按钮状态异常

版本

V1.15.0

项目环境信息

Node 10.7.0

是否必现

重现步骤

在话术库中初次编辑话术内容,功能使用正常。此时随意选择一个话术,点击新增或编辑话术。

期望的结果

编辑话术后,再次编辑或新增话术内容正常。

实际的结果

编辑话术后,再次点击新增或编辑话术,“确定”按钮一直显示加载状态,无法点击。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.