Commit 125e447f by ym

home

0 parents
Showing 97 changed files with 4774 additions and 0 deletions
NODE_ENV='development'
# must start with VUE_APP_
VUE_APP_ENV = 'development'
VUE_APP_PORT = 6652
NODE_ENV='production'
# must start with VUE_APP_
VUE_APP_ENV = 'production'
\ No newline at end of file
{
"root": true,
"env": {
"node": true
},
"extends": ["plugin:vue/essential", "@vue/prettier"],
"rules": {
"no-console": "off",
"no-unused-vars":"off",
"prettier.endOfLine": "crlf",
"endOfLine":"auto"
},
"parserOptions": {
"parser": "babel-eslint"
}
}
.DS_Store
node_modules
/dist
# local env files
.env.local
.env.*.local
# Log files
npm-debug.log*
yarn-debug.log*
yarn-error.log*
# Editor directories and files
.idea
.vscode
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
{
"printWidth": 800,
"tabWidth": 2,
"singleQuote": true,
"trailingComma": "none",
"semi": false,
"wrap_line_length": 820,
"wrap_attributes": "auto",
"proseWrap": "always",
"arrowParens": "avoid",
"bracketSpacing": true,
"htmlWhitespaceSensitivity": "ignore",
"javascript.format.insertSpaceBeforeFunctionParenthesis": true,
"jsxBracketSameLine": true,
"files.insertFinalNewline": true,
"useTabs": false,
"eslintIntegration": true,
"overrides": [
{
"files": ".prettierrc",
"options": {
"parser": "json"
}
}
],
"endOfLine": "auto"
}
# subapp-blog
微前端博客子应用
## Project setup
```
npm install
```
### Compiles and hot-reloads for development
```
npm run serve
```
### Compiles and minifies for production
```
npm run build
```
### Lints and fixes files
```
npm run lint
```
### Customize configuration
See [Configuration Reference](https://cli.vuejs.org/config/).
module.exports = {
presets: ["@vue/cli-plugin-babel/preset"],
plugins: [
[
"component",
{
libraryName: "element-ui",
styleLibraryName: "theme-chalk"
}
]
]
};
This diff could not be displayed because it is too large.
{
"name": "scrm-sub-blog",
"version": "0.1.0",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
"lint": "vue-cli-service lint"
},
"dependencies": {
"axios": "^0.21.1",
"core-js": "^3.4.4",
"echarts": "^5.2.0",
"el-tree-transfer": "^2.2.6",
"element-ui": "^2.4.5",
"glsx-common": "^1.4.0",
"glsx-components": "^1.0.4",
"glsx-table": "^1.0.9",
"vue": "^2.6.10",
"vue-router": "^3.1.3",
"vuex": "^3.1.2"
},
"devDependencies": {
"@vue/cli-plugin-babel": "^4.1.0",
"@vue/cli-plugin-eslint": "^4.1.0",
"@vue/cli-plugin-router": "^4.1.0",
"@vue/cli-plugin-vuex": "^4.1.0",
"@vue/cli-service": "^4.1.0",
"@vue/eslint-config-prettier": "^5.0.0",
"babel-eslint": "^10.0.3",
"babel-plugin-component": "^1.1.1",
"element-theme-chalk": "^2.15.6",
"eslint": "^5.16.0",
"eslint-plugin-prettier": "^3.1.1",
"eslint-plugin-vue": "^5.0.0",
"node-sass": "^4.14.1",
"prettier": "^1.19.1",
"sass-loader": "^8.0.0",
"vue-cli-plugin-element": "^1.0.1",
"vue-template-compiler": "^2.6.10"
},
"browserslist": [
"> 1%",
"last 2 versions"
]
}
No preview for this file type
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
<title>微前端子应用:博客</title>
</head>
<body>
<noscript>
<strong>We're sorry but module-report doesn't work properly without JavaScript enabled. Please enable it to
continue.</strong>
</noscript>
<div id="app"></div>
<!-- built files will be auto injected -->
</body>
</html>
\ No newline at end of file
var express = require('express')
// var history = require('connect-history-api-fallback')
var cors = require('cors')
var app = express()
// app.use(history())
app.use(cors())
app.use(express.static('./dist'))
app.get('/', function(req, res) {
res.send('Hello jq')
})
const port = 6652
app.listen(port)
console.log(`服务已运行:\r\n http://127.0.0.1:${port}`)
<template>
<div id="app">
<!-- <h2>
报表子应用
<span class="right">{{ gs }}</span>
</h2>
<div id="nav">
<span>切换路由:</span>
<el-button-group class="right">
<el-button type="primary" size="medium" @click="routerChange('/')">报表</el-button>
<el-button type="primary" size="medium" @click="routerChange('/about')">穿梭框</el-button>
<el-button type="primary" size="medium" @click="toAppReport('1-1')">表格</el-button>
<el-button type="primary" size="medium" @click="toAppReport('1-2')">日历</el-button>
<el-button type="primary" size="medium" @click="toAppReport('3-1')">aaaa</el-button>
</el-button-group>
</div>
<div class="parent-child-communication">
<h3>父子应用通信:</h3>
<div style="margin-bottom: 20px;">
<span>rxjs通信方案:{{ myMsg }}</span>
<el-button class="right" type="primary" size="medium" @click="callParentChange('rxjs')">通知父应用变天了</el-button>
</div>
<div>
<span>官方通信方案:{{ myMessage }}</span>
<el-button class="right" type="primary" size="medium" @click="callParentChange('default')">通知父应用收到</el-button>
</div>
<img src="./assets/logo.png" alt="" srcset="" />
</div> -->
<router-view />
</div>
</template>
<script>
export default {
name: 'report-app',
props: {
msg: String,
message: String
},
data() {
return {
myMsg: '',
gs: ''
}
},
created() {
this.myMsg = this.msg
this.myMessage = this.message
}
}
</script>
<style lang="scss">
.parent-child-communication {
padding: 20px 0;
line-height: 36px;
}
#app {
background: #F4F5FA;
}
</style>
/*
所有模块都定义在 modules
|-modules
|----demo.js
|----demo1.js
|----...
|-index.js ---动态对外暴露所有模块 无须手动添加
参考demo.js 用法 : this.$apis.demo.GETLISTDEVICEFILEUNSTOCK(...)
*/
const modulesFiles = require.context('./modules', true, /\.js$/)
const modules = modulesFiles.keys().reduce((modules, modulePath) => {
const moduleName = modulePath.replace(/^\.\/(.*)\.\w+$/, '$1')
const value = modulesFiles(modulePath)
modules[moduleName] = value.default
return modules
}, {})
export default modules
/**
* 新增参数sign 判断接口是否需要sign签名
*/
/**
* 用法 : this.$apis.demo.GETLISTDEVICEFILEUNSTOCK(...)
* @param {*} params
* @returns
*/
import { http } from '@/main'
const getEmpList = params => {
return http({
url: 'deviceInfo/listDeviceFileUnstock',
method: 'POST',
data: params,
sign: true
})
}
export default {
getEmpList
}
\ No newline at end of file
/**
* 新增参数sign 判断接口是否需要sign签名
*/
/**
* 用法 : this.$apis.demo.GETLISTDEVICEFILEUNSTOCK(...)
* @param {*} params
* @returns
*/
import { http } from '@/main'
const GETLISTDEVICEFILEUNSTOCK = params => {
return http({
url: 'deviceInfo/listDeviceFileUnstock',
method: 'POST',
data: params,
sign: true
})
}
const GETLISTDEVICEFILEUNSTOCK1 = params => {
return http({
url: 'deviceInfo/listDeviceFileUnstock',
method: 'POST',
data: params,
sign: true
})
}
export default {
GETLISTDEVICEFILEUNSTOCK,
GETLISTDEVICEFILEUNSTOCK1
}
\ No newline at end of file
* {
font-family: PingFangSC-Regular, PingFang SC;
margin: 0;
padding: 0;
}
img {
width: 100%;
height: 100%;
vertical-align: top;
}
.text-hide {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.text-hide-2 {
overflow:hidden;
text-overflow:ellipsis;
display:-webkit-box;
-webkit-box-orient:vertical;
-webkit-line-clamp:2;
}
.scrm-textRight {
position: relative;
text-align: right;
}
.scrm-textCenter {
text-align: center;
}
.scrm-c3 {
color: #333333;
}
.scrm-f12 {
font-size: 12px;
}
.scrm-f13 {
font-size: 13px;
}
.scrm-f14 {
font-size: 14px;
}
.scrm-f15 {
font-size: 15px;
}
.scrm-f16 {
font-size: 16px;
}
.scrm-f18 {
font-size: 18px;
}
.scrm-f20 {
font-size: 20px;
}
.scrm-f22 {
font-size: 22px;
}
.scrm-f24 {
font-size: 24px;
}
.scrm-m10 {
margin: 10px;
}
.scrm-m20 {
margin: 20px;
}
.scrm-ml10 {
margin-left: 10px;
}
.scrm-ml20 {
margin-left: 20px;
}
.scrm-mr10 {
margin-right: 10px;
}
.scrm-mr20 {
margin-right: 20px;
}
.scrm-p10 {
padding: 10px;
}
.scrm-p20 {
padding: 20px;
}
.scrm-box-f {
background: #FFFFFF;
box-shadow: 0 10px 20px 0 rgba(88,80,255,0.10);
}
\ No newline at end of file
.left {
float: left;
}
.right {
float: right;
}
.align-right {
text-align: right;
}
.left{float:left}.right{float:right}.align-right{text-align:right}
.left {
float: left;
}
.right {
float: right;
}
.align-right {
text-align: right;
}
/**
* 根据路由匹配地址
* @param {*} data 路由数据
* @param {*} base 路由前缀
* @param {*} options 粗略的配置项
*/
function routeMatch(data, base, options = { url: 'url', name: 'name', id: 'id', permissions: 'permissions' }) {
if (!Array.isArray(data)) return []
// 主视图路由 正式项目需要区分登陆注册等
/* let userRouter = {
path: "/layout",
name: "layout",
component: () => import('@/views/layout/index.vue'),
redirect: '/index',
children: []
}; */
// 创建路由盒子
let routerBox = []
// 将菜单数据处理为一维函数 如果有多级菜单
// let menu = flattenDeep(data, 'children');
let menu = data
// 遍历处理路由
menu.forEach(item => {
if (!item[options.url]) return
let _url = item[options.url].replace(base, '')
try {
let routerItem = {
path: _url, // 路由路径名
name: item[options.name] || item[options.id], // 命名路由 用于配合菜单简洁跳转
meta: {
purview: item[options.permissions]
}, // 路由元信息 定义路由时即可携带的参数,可用来管理每个路由的按钮操作权限
component: () => import(`@/views${_url}/index.vue`) // 路由映射真实视图路径
}
routerBox.push(routerItem)
} catch (err) {
item[options.url] = '/err-404'
}
})
// 推入需要授权后等异步加载的,非服务端获取的功能性页面
// routerBox.push(...nextRouter);
let errorBox = {
path: '*',
redirect: '/err-404'
}
routerBox.push(errorBox)
return routerBox
}
export default routeMatch
/**
* type : primary,success,default,error,danger
* size: 按钮大小,参照elementui
* id: 权限判断id
* mode:按钮类型 是a标签还是button,可选值为:button、link
*/
import { Button, Link } from 'element-ui'
// 权限校验
function judgePermissions(options) {
if (!options) {
return false
}
let _list = options.parent.permissions || []
let _o = options.props
let idx = _list.findIndex(k => k == _o.id)
// 如果没有权限,则返回空标签
if (idx < 0) {
return ''
}
if (_o.mode == 'link') {
return 'a'
}
return 'button'
}
// 获取class
function getClass(context) {
let o = context.props
let _class = []
_class.push('el-' + o.mode)
_class.push('el-' + o.mode + '--' + o.type)
if (o.size) {
_class.push('el-' + o.mode + '--' + o.size)
}
if (o.class) {
_class.push(o.class)
}
return _class
}
export default {
functional: true,
props: {
type: {
type: String,
default: 'default'
},
size: {
type: String,
default: 'medium'
},
id: {
type: [String, Number]
},
mode: {
type: String,
default: 'button'
},
class: {
type: String,
default: ''
}
},
render: function(createElement, context) {
let _props = context.props
let options = {
props: _props,
attrs: context.props,
class: getClass(context),
on: {
click: event => {
context.listeners.click('click', event)
}
}
}
return createElement(judgePermissions(context), options, context.children)
}
}
/*
* @Descripttion:
* @version: 1.0.0
* @Author: limin
* @Date: 2021-09-06 10:10:44
* @LastEditors: limin
* @LastEditTime: 2021-09-06 10:11:49
* @FilePath: \scrm\scrm-sub-blog\src\components\index.js
*/
import Vue from 'vue'
// 导入权限按钮
import _button from '@/components/glsx-button/index'
import glsxTable from '@/components/glsx-table/index.vue'
Vue.component('glsx-button', _button)
// Vue.component('glsx-table', glsxTable)
\ No newline at end of file
/*
* @Descripttion:
* @version:
* @Author: limin
* @Date: 2021-06-07 14:12:32
* @LastEditors: limin
* @LastEditTime: 2021-06-08 16:55:43
*/
// 根据环境引入不同配置 process.env.VUE_APP_ENV
const environment = process.env.NODE_ENV || 'production'
let config = require('./env.' + environment)
module.exports = config
/*
* @Descripttion:
* @version:
* @Author: limin
* @Date: 2021-06-07 14:12:32
* @LastEditors: limin
* @LastEditTime: 2021-09-06 17:38:28
*/
// 本地环境配置
module.exports = {
title: 'scrm-sub-blog',
response: {
data_key: 'data',
message_key: 'message',
code_key: 'returnCode',
code_success_value: '0',
code_message_map: {}
},
request: {
baseURL: 'http://192.168.2.106:8083/scrm-wechat',
// 设置超时时间
timeout: 180000,
// 携带凭证
withCredentials: true,
// 返回数据类型
responseType: 'json'
},
sign: {
app_key: '48e5e13229b82c1b4e6e8c96151f0637',
v: '1.0.0',
format: 'json',
source: ''
},
secret: 'c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b',
cdn: 'https://www.xxx.cn/static'
}
module.exports = {
title: 'gh-hall',
request: {
// baseURL: 'http://ghwx.cgacar.com/scrm-wechat' // 生产
baseURL: 'http://cim.chinagrandauto.com/scrm-wechat1111' // 生产
// baseURL: 'http://cim.chinagrandauto.com' // 生产
},
sign: {
app_key: '48e5e13229b82c1b4e6e8c96151f0637',
v: '1.0.0',
format: 'json',
source: ''
}
}
/*
* @Descripttion:
* @version:
* @Author: limin
* @Date: 2021-06-07 14:12:32
* @LastEditors: limin
* @LastEditTime: 2021-09-07 14:38:52
*/
// 根据环境引入不同配置 process.env.VUE_APP_ENV
// let request = require('@/http/request.js')
let cfg = require('./conf.js')
let timeout = 30000 //超时时间
export const fetchConfig = function(isEnv = true) {
if (isEnv) {
let { request } = cfg
Object.assign(request, { timeout })
return Promise.resolve(cfg)
}
//return window.fetch('https://', {}).then(res => res.json())
// request({ url: 'https://oss-config.test.glsx.com.cn/mock/5be17454f31545347559d499/config/oss_commodity_center', method: 'get' })
}
export const config = {
install(vue, cfg) {
vue.prototype.$config = cfg
}
}
/*
* @Descripttion:
* @version: 1.0.0
* @Author: limin
* @Date: 2021-08-13 14:12:11
* @LastEditors: limin
* @LastEditTime: 2021-09-14 09:34:52
* @FilePath: \scrm\scrm-sub-blog\src\main.js
*/
import Vue from 'vue'
import apis from './api'
import './public-path'
// import 'glsx-components/dist/glsx-components.css'
import { start } from '@/setup'
Vue.config.productionTip = false
Vue.prototype.$apis = apis
start()
export { bootstrap, mount, unmount }
from '@/setup'
export const http = params => Vue.prototype.$http(params)
\ No newline at end of file
File mode changed
import Vue from 'vue'
import { Message,Autocomplete,Popover,Tag,Tooltip, Table, TableColumn, Steps, Step, Loading, Drawer, Pagination, Button, ButtonGroup, Form, FormItem, Input, Radio, RadioGroup, Checkbox, CheckboxGroup, Switch, Select, Option, TimePicker,Row, Col, DatePicker, Tree } from 'element-ui'
Vue.use(Button)
Vue.use(ButtonGroup)
Vue.use(Form)
Vue.use(FormItem)
Vue.use(Input)
Vue.use(Radio)
Vue.use(RadioGroup)
Vue.use(Checkbox)
Vue.use(CheckboxGroup)
Vue.use(Switch)
Vue.use(Select)
Vue.use(Option)
Vue.use(TimePicker)
Vue.use(Col)
Vue.use(Row)
Vue.use(DatePicker)
Vue.use(Tree)
Vue.use(Table)
Vue.use(TableColumn)
Vue.use(Loading)
Vue.use(Drawer)
Vue.use(Pagination)
Vue.use(Steps)
Vue.use(Step)
Vue.use(Tooltip)
Vue.use(Autocomplete)
Vue.use(Tag)
Vue.use(Popover)
export const message = Message
\ No newline at end of file
if (window.__POWERED_BY_QIANKUN__) {
// eslint-disable-next-line no-undef
__webpack_public_path__ = window.__INJECTED_PUBLIC_PATH_BY_QIANKUN__;
}
import Vue from 'vue'
import VueRouter from 'vue-router'
import routes from './routes'
Vue.use(VueRouter)
// 处理重复点击同一个路由报错的问题
const originalPush = VueRouter.prototype.push
VueRouter.prototype.push = function push(location) {
return originalPush.call(this, location).catch(err => err)
}
function getRoutes({ name, id, routesData }) {
const routes = []
if (routesData && name && id) {
for (let i = 0, length = routesData.length; i < length; i += 1) {
const element = routesData[i]
if (element && element.path && element.path.includes(name) && element.meta && element.meta.id && element.meta.id.startsWith(id)) {
const path = element.path.slice(name.length + 1)
element.path = path
element.component = () => import('@/views' + path + '.vue')
routes.push(element)
}
}
}
return routes
}
export { VueRouter, routes, getRoutes }
\ No newline at end of file
const staticRoutes = Object.freeze([
{
name: 'Home',
path: '/',
meta: {},
component: resolve => require([`@/views/home/index.vue`], resolve)
},
{
name: 'Ehome',
path: '/ehome',
meta: {},
component: resolve => require([`@/views/ehome/index.vue`], resolve)
},
{
name: 'About',
path: '/about',
component: resolve => require([`@/views/about/index.vue`], resolve),
meta: {}
},
{
name: 'EnterpriseWechat',
path: '/enterpriseWechat',
component: resolve => require([`@/views/enterpriseWechat/index.vue`], resolve),
meta: {}
},
{
name: 'Service',
path: '/service',
component: resolve => require([`@/views/service/index.vue`], resolve),
meta: {}
},
{
name: 'FollowUp',
path: '/followUp',
component: resolve => require([`@/views/followUp/index.vue`], resolve),
meta: {}
}
])
export default staticRoutes
/*
* @Descripttion:
* @version: 1.0.0
* @Author: limin
* @Date: 2021-09-23 19:31:52
* @LastEditors: limin
* @LastEditTime: 2021-09-24 10:41:09
* @FilePath: \scrm\scrm-sub-blog\src\setup\index.js
*/
import { bootstrap, mount, unmount } from './qiankun'
import { start } from './single'
export { bootstrap, mount, unmount, start }
import Vue from 'vue'
// import { message } from '@/plugins/element.js'
import { fetchConfig } from '@/config'
import ElementUI from 'element-ui'
import { GLButton, GLTable } from 'glsx-components' //权限按钮 (根据权限动态创建)
// import glsxTable from 'glsx-table'
import { getRoutes } from '@/router'
import render from './render'
Vue.use(ElementUI)
Vue.use(GLTable)
import 'glsx-components/dist/glsx-components.css'
import '@/assets/css/common.scss'
let routes = []
let router = null
let instance = null
export async function bootstrap({ name, id, history, common, messenger, globalState }) {
const { response, request, sign, secret } = await fetchConfig()
Vue.prototype.$history = history
Vue.prototype.$messenger = messenger
Vue.prototype.$globalState = globalState
Vue.prototype.$common = common
Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: ElementUI.Message.error, headers: { token: globalState.session.token } })
// Vue.prototype.$setGlobalState = globalState.actions.setGlobalState
Vue.use(GLButton, { permissions: globalState.permissions || ['1-1-1-1', '2-1-1-1', '3-1-1-1'] })
const routesData = common.utils.deepClone(globalState.routers)
routes = getRoutes({ name, id, routesData })
subscribe({ messenger })
}
export async function mount(props) {
const insts = render(props.routerBase, routes)
router = insts.router
instance = insts.vm
}
export async function unmount() {
instance.$destroy()
instance.$el.innerHTML = ''
instance = null
router = null
}
function subscribe({ messenger }) {
messenger.subscribe(v => {
console.log(`监听到子应用${v.from}发来消息:`, v)
})
}
\ No newline at end of file
/*
* @Descripttion:
* @version: 1.0.0
* @Author: limin
* @Date: 2021-09-23 19:04:32
* @LastEditors: limin
* @LastEditTime: 2021-09-23 20:34:32
* @FilePath: \scrm\scrm-sub-blog\src\qiankun\render.js
*/
import App from '../App.vue'
import Vue from 'vue'
import store from '@/store'
import { VueRouter } from '@/router'
const render = (base, routes) => {
const router = new VueRouter({
base,
routes,
mode: 'history'
})
const vm = new Vue({
router,
store,
render: h => h(App)
}).$mount('#app')
return { router, vm }
}
export default render
/*
* @Descripttion:
* @version: 1.0.0
* @Author: limin
* @Date: 2021-09-23 19:02:23
* @LastEditors: limin
* @LastEditTime: 2021-09-24 10:41:17
* @FilePath: \scrm\scrm-sub-blog\src\setup\single.js
*/
import Vue from 'vue'
import { message } from '@/plugins/element.js'
import { fetchConfig } from '@/config'
import { GLButton } from 'glsx-components' //权限按钮 (根据权限动态创建)
import { Http, utils } from 'glsx-common'
import render from './render'
import { routes } from '@/router'
export async function start() {
if (window.__POWERED_BY_QIANKUN__) return
const { response, request, sign, secret } = await fetchConfig()
Vue.prototype.$http = new Http({ response, request, sign, secret, alert: message.error, headers: { token: '1112223333444' } })
Vue.use(GLButton, { permissions: ['1-1-1-1', '2-1-1-1', '3-1-1-1'] })
render('/', routes)
}
/*
* @Descripttion:
* @version: 1.0.0
* @Author: limin
* @Date: 2021-08-13 14:12:11
* @LastEditors: limin
* @LastEditTime: 2021-08-25 14:14:44
* @FilePath: \scrm\scrm-base\src\store\index.js
*/
import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)
const modulesFiles = require.context('./modules', true, /\.js$/)
const modules = modulesFiles.keys().reduce(
(result, modulePath) => {
const moduleName = modulePath.replace(/^\.\/(.*)\.\w+$/, '$1')
const value = modulesFiles(modulePath)
result.getters[moduleName] = state => state[moduleName]
result.modules[moduleName] = value.default
return result
},
{ modules: {}, getters: {} }
)
const store = new Vuex.Store(modules)
export default store
export default {
namespaced: true,
state: {
size: 10, // 分页 页大小
token: ''
},
mutations: {
// 设置分页大小
SET_PAGE_SIZE(state, data) {
state.size = data
},
// 设置token
SET_TOKEN(state, data) {
state.token = data
}
},
actions: {
// 设置分页大小
setPageSize({ commit }, data) {
commit('SET_PAGE_SIZE', data)
},
// 设置token
setToken({ commit }, data) {
commit('SET_TOKEN', data)
}
}
}
export default {
namespaced: true,
state: {},
mutations: {},
actions: {}
}
import { Message } from 'element-ui'
let util = {}
util.cloneText = function(message) {
let input = document.createElement('input')
input.value = message
document.body.appendChild(input)
input.select()
input.setSelectionRange(0, input.value.length), document.execCommand('Copy')
document.body.removeChild(input)
Message.success('复制成功')
}
export default util
<template>
<div class="report-about">
<h4>穿梭框1</h4>
<h4 class="align-center">
<label>请打开f12查看移动数据</label>
<el-button size="medium" type="info" @click="changeMode">当前模式:{{ mode }}</el-button>
<el-button size="medium" @click="clearChecked()">清除选中</el-button>
</h4>
<div class="box">
<!-- lazy -->
<!-- :lazyFn="lazyFn" -->
<tree-transfer ref="wl-tree-transfer" filter high-light default-transfer :mode="mode" :title="title" :to_data="toData" :from_data="fromData" :filterNode="filterNode" :defaultProps="defaultProps" :defaultCheckedKeys="defaultCheckedKeys" :defaultExpandedKeys="[2, 3]" @right-check-change="rightCheckChange" @left-check-change="leftCheckChange" @removeBtn="remove" @addBtn="add" height="540px" node_key="id">
<span slot="title-right" class="my-title-right" @click="handleTitleRight">自定义内容</span>
</tree-transfer>
</div>
</div>
</template>
<script>
import treeTransfer from 'el-tree-transfer'
export default {
name: 'App',
components: { treeTransfer },
data() {
return {
mode: 'transfer', // transfer addressList
defaultProps: { label: 'name', children: 'children' },
fromData: [
{
id: 1,
pid: 0,
name: '测试左侧',
children: [
{
id: 2,
pid: 1,
name: '水电费是打发斯蒂芬斯蒂芬gas噶水电费噶地方死光光',
disabled: true,
children: []
},
{
id: 3,
pid: 1,
name: '11-3',
children: []
},
{
id: 4,
pid: 1,
name: '11-4',
children: [
{
id: 5,
pid: 4,
name: '11-5',
children: [
{
id: 111,
pid: 5,
name: '11-111'
}
]
},
{
id: 6,
pid: 4,
name: '11-6',
children: []
}
]
}
]
},
{
id: 7127,
pid: 0,
name: 'debug',
children: [
{
id: 71272,
pid: 7127,
name: 'debug22',
// disabled: true,
children: []
},
{
id: 71273,
pid: 7127,
name: 'debug11',
children: []
}
]
}
], // 穿梭框 - 源数据 - 树形
toData: [],
fromArray: [
{
id: '1',
name: '1',
pid: '0'
},
{
id: '2',
name: '2',
pid: '0'
},
{
id: '1-1',
name: '1-1',
pid: '1'
},
{
id: '1-2',
name: '1-2',
pid: '1'
},
{
id: '1-1-1',
name: '1-1-1',
pid: '1-1'
},
{
id: '1-1-1-1',
name: '1-1-1-1',
pid: '1-1-1'
},
{
id: '2-1',
name: '2-1',
pid: '2'
},
{
id: '2-2',
name: '2-2',
pid: '2'
}
],
toArray: [],
defaultCheckedKeys: [] // 左侧默认选中数据
}
},
created() {},
mounted() {
this.$apis.demo.GETLISTDEVICEFILEUNSTOCK({ k: 2, kdj: 5 }).then(res => {})
// 测试延迟默认选中
setTimeout(() => {
this.defaultCheckedKeys = [1]
}, 1000)
},
methods: {
// 清除选中
clearChecked() {
this.$refs['wl-tree-transfer'].clearChecked()
},
// 自定义筛选函数
filterNode(value, data, where) {
console.log(value, data, where)
if (!value) return true
return data[this.defaultProps.label].indexOf(value) !== -1
},
// 懒加载回调
lazyFn(node, resolve) {
setTimeout(() => {
resolve([
{
id: 71272,
pid: 7127,
name: 'debug22',
// disabled: true,
children: []
},
{
id: 71273,
pid: 7127,
name: 'debug11',
children: []
}
])
}, 500)
},
// 切换模式 现有树形穿梭框模式transfer 和通讯录模式addressList
changeMode() {
if (this.mode == 'transfer') {
this.mode = 'addressList'
} else {
this.mode = 'transfer'
}
},
// 添加按钮
add(fromData, toData, obj) {
// 树形穿梭框模式transfer时,返回参数为左侧树移动后数据、右侧树移动后数据、移动的{keys,nodes,halfKeys,halfNodes}对象
// 通讯录模式addressList时,返回参数为右侧收件人列表、右侧抄送人列表、右侧密送人列表
console.log('fromData:', fromData)
console.log('toData:', toData)
console.log('obj:', obj)
},
// 移除按钮
remove(fromData, toData, obj) {
// 树形穿梭框模式transfer时,返回参数为左侧树移动后数据、右侧树移动后数据、移动的{keys,nodes,halfKeys,halfNodes}对象
// 通讯录模式addressList时,返回参数为右侧收件人列表、右侧抄送人列表、右侧密送人列表
console.log('fromData:', fromData)
console.log('toData:', toData)
console.log('obj:', obj)
},
// 左侧源数据选中事件
leftCheckChange(nodeObj, treeObj, checkAll) {
console.log(nodeObj)
console.log(treeObj)
console.log(checkAll)
},
// 右侧目标数据选中事件
rightCheckChange(nodeObj, treeObj, checkAll) {
console.log(nodeObj)
console.log(treeObj)
console.log(checkAll)
},
// 自定义节点 仅树形结构支持
renderContent(h, { node, data }) {
return (
<span class="custom-tree-node">
<span>{node.label}</span>
<span>
<el-button size="mini" type="text" on-click={() => this.append(data)}>
Append
</el-button>
<el-button size="mini" type="text" on-click={() => this.remove(node, data)}>
Delete
</el-button>
</span>
</span>
)
},
// 标题自定义区点击事件
handleTitleRight() {
alert('标题自定义区点击事件')
}
},
computed: {
title() {
if (this.mode == 'transfer') {
return ['源列表', '目标列表']
} else {
return ['通讯录', '收件人', '抄送人', '密送人']
}
}
}
}
</script>
<style>
.align-center {
text-align: center;
}
.box {
width: 600px;
margin: 0 auto;
text-align: left;
}
.btn {
border: 1px solid #ebeef5;
padding: 5px 10px;
background-color: #f5f7fa;
outline: none;
}
.my-title-right {
float: right;
font-size: 12px;
cursor: pointer;
}
</style>
<template>
<div :id="echartId" class="chart-line"></div>
</template>
<script>
import * as echarts from "echarts";
export default {
name: "linechart",
props: {
echartId: {
type: String,
default: ''
},
},
data() {
return {
};
},
methods: {
getChartTotal() {
console.log(this.echartId);
var chartDom = document.getElementById(this.echartId);
var myChart = echarts.init(chartDom);
var option;
option = {
xAxis: {
type: "category",
boundaryGap: false,
data: ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"],
},
yAxis: {
type: "value",
show: false,
},
series: [
{
data: [1, 932, 901, 934, 1290, 1330, 1320],
type: "line",
symbol: "none",
areaStyle: {
color: {
type: "linear",
x: 0,
y: 0,
x2: 0,
y2: 1,
colorStops: [
{
offset: 0,
color: "#5850FF", // 100% 处的颜色
},
{
offset: 1,
color: "#FFFFFF", // 0% 处的颜色
},
],
global: false, // 缺省为 false
},
},
},
],
};
option && myChart.setOption(option);
},
},
mounted() {
this.getChartTotal();
}
};
</script>
<style scoped lang="scss">
.chart-line {
height: 60px;
}
.summary-header {
display: flex;
color: #3a3a3a;
justify-content: space-between;
}
.summary-customer-panel {
display: flex;
.summary-item {
width: 25%;
box-sizing: border-box;
padding-right: 20px;
margin-right: 20px;
border-right: 1px solid rgba(0, 0, 0, 0.06);
&:last-of-type {
border: none;
}
.summary-item-title {
.item {
background: #ffffff;
box-shadow: 0px 2px 12px 0px rgba(0, 0, 0, 0.06);
border: 1px solid #e4e7ed;
}
i {
color: #999999;
background: none;
}
}
.summary-item-total {
font-size: 30px;
color: rgba(0, 0, 0, 0.85);
line-height: 38px;
margin: 20px 0px 10px 0px;
}
.summary-item-number {
font-size: 12px;
font-weight: 400;
color: #666666;
line-height: 20px;
margin-bottom: 20px;
}
#main-total {
height: 60px;
}
}
}
.expand-more {
margin: 20px 0px;
text-align: center;
height: 56px;
background: rgba(0, 0, 0, 0.02);
border-radius: 0px 0px 2px 2px;
font-size: 14px;
line-height: 56px;
color: #000000;
}
#main-customer {
height: 300px;
}
</style>
\ No newline at end of file
<template>
<div class="summary-ranking-panel">
<div class="scrm-box-f summary-ranking-box">
<div class="summary-ranking-title scrm-c3">
<span>门店企微客户数排行</span>
<span>
<el-radio v-model="radioStore" label="1">累计新增</el-radio>
<el-radio v-model="radioStore" label="2">今日新增</el-radio>
<el-radio v-model="radioStore" label="3">累计流失</el-radio>
</span>
</div>
<div class="summary-ranking-th">
<div class="summary-ranking-sno">序号</div>
<div class="summary-ranking-name">名店名称</div>
<div class="summary-ranking-value">总产值</div>
</div>
<div class="chart-empty" v-if="chartStatus">
<img src="@/assets/img/empty.png" />
<div class="chart-empty-d">暂无数据</div>
</div>
<template v-else>
<div class="summary-ranking-td" v-for="(item, index) in summaryArr" :key="index">
<div class="summary-ranking-sno">
<span class="ranking-sno-circle2" v-if="index > 2">{{ index + 1 }}</span>
<span class="ranking-sno-circle" v-else>{{ index + 1 }}</span>
</div>
<div class="summary-ranking-name">名店名称</div>
<div class="summary-ranking-value">
<div class="summary-process-panel">
<div class="summary-progress-bar">
<div class="summary-progress-barout"></div>
<div class="summary-progress-barin"></div>
</div>
<div class="summary-progress-value">100</div>
</div>
</div>
</div>
</template>
</div>
<div class="scrm-box-f summary-ranking-box">
<div class="summary-ranking-title scrm-c3">
<span>各门店产值排行 </span>
<span>
<el-radio v-model="radioOutput" label="1">累计新增</el-radio>
<el-radio v-model="radioOutput" label="2">今日新增</el-radio>
<el-select>
<el-option
v-for="item in monthOptions"
:key="item"
:label="item"
:value="item"
>
</el-option>
</el-select>
</span>
</div>
<div class="summary-ranking-th">
<div class="summary-ranking-sno">序号</div>
<div class="summary-ranking-name">名店名称</div>
<div class="summary-ranking-value">总产值</div>
</div>
<div class="chart-empty" v-if="chartStatus">
<img src="@/assets/img/empty.png" />
<div class="chart-empty-d">暂无数据</div>
</div>
<template v-else>
<div class="summary-ranking-td" v-for="(item, index) in summaryArr" :key="index">
<div class="summary-ranking-sno">
<span class="ranking-sno-circle2" v-if="index > 2">{{ index + 1 }}</span>
<span class="ranking-sno-circle" v-else>{{ index + 1 }}</span>
</div>
<div class="summary-ranking-name">名店名称</div>
<div class="summary-ranking-value">
<div class="summary-process-panel">
<div class="summary-progress-bar">
<div class="summary-progress-barout"></div>
<div class="summary-progress-barin"></div>
</div>
<div class="summary-progress-value">100</div>
</div>
</div>
</div>
</template>
</div>
</div>
</template>
<script>
export default {
name: "summaryRanking",
data() {
return {
chartStatus: false,
radioStore: "1",
radioOutput: "1",
summaryArr: [1, 2, 3, 4, 5, 6, 7, 8],
monthOptions: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12],
};
},
methods: {},
};
</script>
<style scoped lang="scss">
.summary-ranking-panel {
display: flex;
.summary-ranking-box {
width: 50%;
margin-right: 20px;
}
.summary-ranking-title {
height: 64px;
line-height: 64px;
padding: 0px 20px;
display: flex;
justify-content: space-between;
}
.summary-ranking-th {
display: flex;
border-radius: 2px 2px 0px 0px;
height: 46px;
line-height: 46px;
color: #000000;
background: rgba(0, 0, 0, 0.02);
.summary-ranking-sno {
width: 80px;
text-align: center;
}
.summary-ranking-name {
width: 160px;
}
.summary-ranking-value {
flex: 1;
}
}
.summary-ranking-td {
display: flex;
height: 30px;
height: 46px;
line-height: 46px;
align-items: center;
color: #333333;
.summary-ranking-sno {
width: 80px;
text-align: center;
.ranking-sno-circle {
display: inline-block;
text-align: center;
line-height: 18px;
width: 18px;
height: 18px;
background: #2a2946;
color: #ffffff;
border-radius: 50%;
font-size: 12px;
}
.ranking-sno-circle2 {
display: inline-block;
text-align: center;
line-height: 18px;
width: 18px;
height: 18px;
background: rgba(0, 0, 0, 0.15);
color: #ffffff;
border-radius: 50%;
font-size: 12px;
}
}
.summary-ranking-name {
width: 160px;
}
.summary-ranking-value {
flex: 1;
.summary-process-panel {
position: relative;
line-height: 1;
display: flex;
align-items: center;
.summary-progress-bar {
height: 10px;
flex: 1;
.summary-progress-barout {
width: 100%;
height: 100%;
background-color: #ebeef5;
}
.summary-progress-barin {
position: absolute;
top: 0px;
left: 0px;
width: 50%;
height: 100%;
background-color: #5850ff;
}
}
.summary-progress-value {
width: 80px;
margin-left: 20px;
}
}
}
}
}
.chart-empty {
width: 100px;
height: 100px;
margin: 100px auto;
text-align: center;
&-d {
font-size: 14px;
font-weight: 400;
color: #000000;
line-height: 32px;
}
img {
width: 64px;
height: 32px;
}
}
</style>
<template>
<div class="scrm-box-f">
<div class="summary-header">
<div class="summary-title">汇总</div>
<div class="summary-time">
<span>统计截止至</span>
<el-date-picker v-model="value1" type="date" placeholder="选择日期">
</el-date-picker>
</div>
</div>
<div class="summary-customer-panel">
<div class="summary-item">
<div class="summary-item-title">
<span>客户总数</span>
<el-popover
placement="top"
title="说明"
width="200"
trigger="hover"
content="各门店客户总数之和,门店之间不去重"
>
<img src="@/assets/img/question.png" slot="reference">
</el-popover>
</div>
<div class="summary-item-total">¥51 023 .08</div>
<div class="summary-item-number">未加企微客户数: <span>45,646</span></div>
<linechart :echartId="echartId1"></linechart>
</div>
<div class="summary-item">
<div class="summary-item-title">
<span>企微客户总数</span>
<el-popover
placement="top"
title="说明"
width="200"
trigger="hover"
content="各门店客户总数之和,门店之间不去重"
>
<img src="@/assets/img/question.png" slot="reference">
</el-popover>
</div>
<div class="summary-item-total">¥51 023 .08</div>
<div class="summary-item-number">未加企微客户数: <span>45,646</span></div>
<linechart :echartId="echartId2"></linechart>
</div>
<div class="summary-item">
<div class="summary-item-title">
<span>企微流失客户数</span>
<el-popover
placement="top"
title="说明"
width="200"
trigger="hover"
content="各门店客户总数之和,门店之间不去重"
>
<img src="@/assets/img/question.png" slot="reference">
</el-popover>
</div>
<div class="summary-item-total">¥51 023 .08</div>
<div class="summary-item-number">未加企微客户数: <span>45,646</span></div>
<linechart :echartId="echartId3"></linechart>
</div>
<div class="summary-item">
<div class="summary-item-title">
<span>总产值</span>
<el-popover
placement="top"
title="说明"
width="200"
trigger="hover"
content="各门店客户总数之和,门店之间不去重"
>
<img src="@/assets/img/question.png" slot="reference">
</el-popover>
</div>
<div class="summary-item-total">¥51 023 .08</div>
<div class="summary-item-number">未加企微客户数: <span>45,646</span></div>
<linechart :echartId="echartId4"></linechart>
</div>
</div>
<div :class="{ 'expand-panel': expandStatus }" class="summary-line-panel">
<div class="summary-title">汇总</div>
<div class="chart-empty" v-if="chartStatus">
<img src="@/assets/img/empty.png">
<div class="chart-empty-d">暂无数据</div>
</div>
<div id="main-customer" v-else></div>
</div>
<div class="expand-more">
<div v-if="expandStatus" class="expand-more-b" @click="handleExpand">
<span>展开查看详情</span>
<i class="el-icon-arrow-right"></i>
</div>
<div v-else class="expand-more-b" @click="handleExpand">
<span>收起详情</span>
<i class="el-icon-arrow-up"></i>
</div>
</div>
</div>
</template>
<script>
import linechart from "./linechart";
import * as echarts from "echarts";
export default {
name: "addSale",
components: {
linechart,
},
data() {
return {
value1: "",
expandStatus: true,
chartStatus: false,
echartId1: "customerEchartId1",
echartId2: "customerEchartId2",
echartId3: "customerEchartId3",
echartId4: "customerEchartId4",
};
},
methods: {
handleExpand() {
this.expandStatus = !this.expandStatus;
},
},
mounted() {
var chartDom = document.getElementById("main-customer");
var myChart = echarts.init(chartDom);
var option;
option = {
tooltip: {
trigger: "item",
formatter(params) {
console.log(params);
return (
params.name + "<br>" + params.marker + params.seriesName + ":" + params.value
);
},
},
legend: {
data: ["每日新增企微用户", "每日新增产值", "每日企微消失用户"],
left: "auto",
},
grid: {
left: "3%",
right: "4%",
bottom: "3%",
containLabel: true,
},
xAxis: {
type: "category",
boundaryGap: false,
color: "#A3A3A3",
data: ["周一", "周二", "周三", "周四", "周五", "周六", "周日"],
},
yAxis: {
type: "value",
show: false,
},
series: [
{
name: "每日新增企微用户",
type: "line",
stack: "总量",
lineStyle: { color: "#5850FF " },
data: [120, 132, 101, 134, 90, 230, 210],
},
{
name: "每日新增产值",
type: "line",
stack: "总量",
lineStyle: { color: "#2CCA74 " },
data: [220, 182, 191, 234, 290, 330, 310],
},
{
name: "每日企微消失用户",
type: "line",
stack: "总量",
lineStyle: { color: "#FF6D00 " },
data: [150, 232, 201, 154, 190, 330, 410],
},
],
};
option && myChart.setOption(option);
},
};
</script>
<style scoped lang="scss">
.summary-header {
display: flex;
color: #3a3a3a;
justify-content: space-between;
align-items: center;
padding: 10px 20px;
margin-bottom: 20px;
.summary-title {
color: #3a3a3a;
line-height: 20px;
letter-spacing: 1px;
font-size: 20px;
font-weight: 600;
}
.summary-time {
font-size: 14px;
font-weight: 400;
color: #3a4c5f;
line-height: 20px;
> span {
margin-right: 10px;
}
}
}
.summary-customer-panel {
display: flex;
padding: 0px 20px;
.summary-item {
width: 25%;
box-sizing: border-box;
padding-right: 20px;
margin-right: 20px;
border-right: 1px solid rgba(0, 0, 0, 0.06);
&:last-of-type {
border: none;
}
.summary-item-title {
.item {
background: #ffffff;
box-shadow: 0px 2px 12px 0px rgba(0, 0, 0, 0.06);
}
img {
width: 14px;
height: 14px;
margin-left: 6px;
margin-top: 4px;
}
}
.summary-item-total {
font-size: 30px;
color: rgba(0, 0, 0, 0.85);
line-height: 38px;
margin: 20px 0px 10px 0px;
}
.summary-item-number {
font-size: 12px;
font-weight: 400;
color: #666666;
line-height: 20px;
margin-bottom: 20px;
}
#main-total {
height: 60px;
}
}
}
.expand-more {
margin: 20px 0px;
text-align: center;
height: 56px;
background: rgba(0, 0, 0, 0.02);
border-radius: 0px 0px 2px 2px;
font-size: 14px;
line-height: 56px;
color: #000000;
&-b {
cursor: pointer;
display: inline-block;
}
}
#main-customer {
height: 300px;
}
.summary-line-panel {
margin-top: 30px;
padding: 0px 20px;
height: 400px;
overflow: hidden;
transition: height 0.2s;
.summary-title {
color: #3a3a3a;
line-height: 20px;
letter-spacing: 1px;
font-size: 20px;
font-weight: 600;
margin: 40px 0px 20px 0px;
}
}
.summary-line-panel.expand-panel {
height: 0px;
}
.chart-empty {
width: 100px;
height: 100px;
margin: 100px auto;
text-align: center;
&-d {
font-size: 14px;
font-weight: 400;
color: #000000;
line-height: 32px;
}
img {
width: 64px;
height: 32px;
}
}
</style>
<template>
<div class="scrm-main">
<summary-statistics></summary-statistics>
<summary-ranking></summary-ranking>
<el-dialog
center
:visible.sync="dialogVisible"
width="30%"
>
<span>您还没有门店,暂无数据,请先创建门店</span>
<span slot="footer" class="dialog-footer">
<el-button type="primary" @click="dialogVisible = false">确 定</el-button>
</span>
</el-dialog>
</div>
</template>
<script>
import summaryRanking from "./components/summary-ranking";
import summaryStatistics from "./components/summary-statistics";
export default {
name: "index",
components: {
summaryRanking,
summaryStatistics,
},
data() {
return {
dialogVisible: true,
};
},
};
</script>
<style scoped lang="scss"></style>
<template>
<div class="drawer-sale-panel">
<el-form label-width="150px" :model="addForm">
<div class="scrm-textRight sale-reload">
<el-button slot="append" type="primary" @click="addEmpType"
>同步有外部联系人权限的员工</el-button
>
</div>
<el-form-item label="请选择员工">
<div class="sale-select">
<div class="el-input-tag input-tag-wrapper" @click="foucusTagInput">
<el-tag
v-for="(tag, idx) in innerTags"
:key="idx"
closable
:disable-transitions="false"
@close="remove(idx)"
>
{{ tag.name }}
</el-tag>
<el-input
v-model.trim="newTag"
placeholder="选择员工"
style="outline: none; border: none"
></el-input>
</div>
<el-button class="sale-select-btn" type="primary" @click="addEmp"
>确定</el-button
>
</div>
<div>
<div class="select-sale-panel">
<select-emp ref="selectEmpTabel"></select-emp>
<div class="popper__arrow"></div>
</div>
</div>
</el-form-item>
<el-form-item label="请选择跟进员工类型:">
<div class="emp-type">
<div @click="handleType(index)" :class="{'checked': typeIndex == index}" class="emp-type-btn" v-for="(item, index) in empType" :key="index"
>{{ item.name }} <i class="el-icon-error" @click="delEmpType(index)" v-if="!item.status"></i
></div>
</div>
<div class="sale-select">
<el-input v-model="empTypeValue" placeholder="添加类型名称" maxlength="8" show-word-limit> </el-input>
<el-button class="sale-select-btn" type="primary" @click="addEmpType"
>新增</el-button
>
</div>
<div class="sale-type-desc">跟进员工类型最多新增30个,已新增{{32-empType.length}}个</div>
</el-form-item>
<el-form-item>
<el-button @click="onCancel">取消</el-button>
<el-button type="primary" @click="onSubmit">确定</el-button>
</el-form-item>
</el-form>
</div>
</template>
<script>
import selectEmp from "./selectEmp";
export default {
name: "addSale",
components: {
selectEmp,
},
data() {
return {
addForm: {},
typeIndex: 0,
empType: [
{ name: "新车跟进专员",status: 1},
{ name: "售后跟进专员",status: 1},
{ name: "sdfsdfsd"},
],
empTypeValue: "",
newTag: "",
innerTags: [],
dialog_temp: {},
};
},
methods: {
handleType(index) {
this.typeIndex = index;
},
foucusTagInput() {
if (this.readOnly || !this.$el.querySelector(".tag-input")) {
return;
} else {
this.$el.querySelector(".tag-input").focus();
}
},
// handleSelect是自己实现的方法
handleSelect(item) {
let addSuucess = false;
if (this.addTag(this.newTag.trim())) {
addSuucess = true;
}
if (addSuucess) {
this.tagChange();
this.newTag = "";
}
console.log("value---1");
console.log(this.innerTags); // 选中的数据保存在了this.innerTags中,这个用来和后端交互
console.log("value---2");
},
// addNew是https://github.com/xiispace/el-input-tag/blob/master/src/ElInputTag.vue上原先的方法
addNew(e) {
if (e && !this.addTagOnKeys.includes(e.keyCode) && e.type !== "blur") {
return;
}
if (e) {
e.stopPropagation();
e.preventDefault();
}
let addSuucess = false;
if (this.newTag.includes(",")) {
this.newTag.split(",").forEach((item) => {
if (this.addTag(item.trim())) {
addSuucess = true;
}
});
} else {
if (this.addTag(this.newTag.trim())) {
addSuucess = true;
}
}
if (addSuucess) {
this.tagChange();
this.newTag = "";
}
},
addTag(tag) {
tag = tag.trim();
if (tag && !this.innerTags.includes(tag)) {
this.innerTags.push(tag);
return true;
}
return false;
},
remove(index) {
this.innerTags.splice(index, 1);
this.reloadTags();
},
//添加员工
addEmp() {
this.innerTags = this.innerTags.concat(this.$refs.selectEmpTabel.$refs.saleTable.mutiSelectArr['salelist']);
this.reloadTags();
},
reloadTags() {
const arr = [];
this.innerTags.forEach(item=>{
arr.push(item.id)
})
this.$refs.selectEmpTabel.clearSelect(arr)
},
addEmpType() {
if(!this.empTypeValue) {
this.$message.error('请输入类型名称');
return;
}
this.empType.push({ name: this.empTypeValue });
this.empTypeValue = "";
},
delEmpType(index) {
this.empType.splice(index, 1);
},
onSubmit() {
this.$emit("handSelectdEmp");
},
onCancel() {
this.$emit("closeDrawer");
},
},
};
</script>
<style scoped lang="scss">
.drawer-sale-panel {
padding: 0px 20px;
.sale-reload {
margin-bottom: 10px;
}
.sale-select {
display: flex;
}
.sale-select-btn {
margin-left: 8px;
}
.sale-type-desc {
font-size: 14px;
font-weight: 400;
color: #ADADAD;
line-height: 17px;
margin-top: 10px;
}
}
.emp-type {
margin-bottom: 10px;
&-btn {
cursor: pointer;
display: inline-block;
padding: 10px 15px;
margin-bottom: 10px;
margin-right: 10px;
position: relative;
background: #FFFFFF;
border-radius: 4px;
border: 1px solid #E8E8EA;
line-height: 1;
font-size: 14px;
color: #7D7D7D;
&.checked {
border: 1px solid #5850FF;
color: #5850FF;
}
i {
position: absolute;
right: -6px;
top: -6px;
font-size: 12px;
color: #999999;
}
}
}
.input-tag-wrapper {
position: relative;
font-size: 14px;
background-color: #fff;
background-image: none;
border-radius: 4px;
border: 1px solid #dcdfe6;
box-sizing: border-box;
color: #606266;
display: inline-block;
outline: none;
padding: 0 10px 0 5px;
transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
width: 100%;
display: flex;
align-items: center;
/deep/ input {
/* input { */
/* background-color: red!important; 调试用的样式 */
outline: none !important;
border: none !important;
}
}
.el-tag {
margin-right: 4px;
}
.tag-input {
background: transparent;
border: none !important;
font-size: 14px;
height: 40px;
outline: none;
padding-left: 0;
width: 100px;
}
.el-input-tag--mini .tag-input {
height: 28px;
line-height: 28px;
}
.el-input-tag--small .tag-input {
height: 32px;
line-height: 32px;
}
.el-input-tag--medium .tag-input {
height: 36px;
line-height: 36px;
}
</style>
\ No newline at end of file
<template>
<div class="select-emp-panel">
<div class="scrm-p10 emp-tree-panel">
<div class="popper-arrow"></div>
<div class="tree-title">所在门店/部门</div>
<el-tree
:data="data"
:expand-on-click-node="false"
highlight-current
:props="defaultProps"
@node-click="handleNodeClick"
></el-tree>
</div>
<el-col class="scrm-p10 emp-table-panel">
<glsx-table
ref="saleTable"
:layout="layout"
:tableData="tableData"
:tableTotal="tableTotal"
:tableParams="tableParams"
:hasNum="false"
>
</glsx-table>
</el-col>
</div>
</template>
<script>
export default {
name: "selectEmp",
data() {
return {
data: [
{
label: "一级 1",
children: [
{
label: "二级 1-1",
children: [
{
label: "三级 1-1-1",
},
],
},
],
},
{
label: "一级 2",
children: [
{
label: "二级 2-1",
children: [
{
label: "三级 2-1-1",
},
],
},
{
label: "二级 2-2",
children: [
{
label: "三级 2-2-1",
},
],
},
],
},
],
defaultProps: {
children: "children",
label: "label",
},
// 表格参数
tableParams: {
checkSelectKey: "id",
checkSelectVal: [],
listName: "list",
// 行数据的key
mutiSelectUniqueKey: "id",
// 多选ref的名称
mutiSelectName: "salelist",
btnId: new Date().getTime() + parseInt(Math.random() * 1000),
tableColumns: [
{
label: "姓名",
prop: "name",
},
{
label: "职务",
prop: "部门",
},
],
},
layout: "sizes, prev, pager, next, jumper, ->, total",
tableData: [
{ name: 1, id: 1 },
{ name: 2, id: 2 },
{ name: 3, id: 3 },
],
tableTotal: 0,
};
},
methods: {
clearSelect(arr) {
this.tableParams.checkSelectVal = arr;
this.$refs.saleTable.$refs.salelistMutiTable.clearSelection();
},
handleNodeClick(data) {
console.log(data);
},
},
};
</script>
<style scoped lang="scss">
.select-emp-panel {
display: flex;
.emp-tree-panel {
margin-top: 10px;
width: 200px;
position: relative;
background: #FFFFFF;
box-shadow: 0px 2px 12px 0px rgba(0, 0, 0, 0.06);
border: 1px solid #E4E7ED;
.popper-arrow {
border-top-width: 0;
border-width: 6px;
position: absolute;
top: -12px;
left: 30px;
display: block;
width: 0;
height: 0;
border-color: transparent;
border-style: solid;
border-bottom-color: #E4E7ED;
&:after {
content: " ";
border-width: 6px;
top: 1px;
margin-left: -6px;
border-top-width: 0;
position: absolute;
display: block;
width: 0;
height: 0;
border-color: transparent;
border-style: solid;
border-bottom-color: #fff;
}
}
}
.emp-table-panel {
flex: 1;
margin-top: 10px;
background: #FFFFFF;
box-shadow: 0px 2px 12px 0px rgba(0, 0, 0, 0.06);
border: 1px solid #E4E7ED;
}
.emp-tree-panel {
margin-right: 10px;
font-size: 15px;
/deep/ .el-tree-node:focus > .el-tree-node__content {
color: #5850ff;
background: #f2f5fa;
}
}
.tree-title {
font-size: 16px;
font-weight: 500;
color: #333333;
line-height: 14px;
padding: 10px;
}
}
</style>
<template>
<div className="scrm-main">
<div class="follow-header">
<p>1、跟进专员可以接收/发放活动任务;</p>
<p>2、跟进专员接收任务后可分发给客户;</p>
<p>3、拥有“添加外部联系人权限”的员工才允许设置为跟进专员;</p>
<div class="follow-process-a">企微管理员为员工“设置外部联系人权限”流程>></div>
</div>
<div class="follow-form">
<el-form :inline="true" :model="searchForm" class="follow-form-item">
<el-form-item label="跟进专员类型">
<el-select v-model="searchForm.type" placeholder="请选择">
<el-option
v-for="item in optionsType"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</el-select>
</el-form-item>
<el-form-item label="员工搜索">
<el-input v-model="searchForm.name" placeholder="请输入员工姓名"></el-input>
</el-form-item>
<el-form-item>
<el-button type="primary" @click="handleSearch">查询</el-button>
</el-form-item>
<el-form-item class="follow-form-jump">
<el-button
icon="el-icon-plus"
type="primary"
@click="drawer = true"
class="scrm-mr10"
>跟进专员</el-button
>
</el-form-item>
</el-form>
<GLTable
ref="table"
:layout="layout"
:tableData="tableData"
:tableTotal="tableTotal"
:tableParams="tableParams"
:beforeSearchFn="beforeSearchFn"
>
<template slot="auth-button" slot-scope="scope" :data="scope.scope">
<el-button type="text" @click="handleDele(scope.scope)">删除</el-button>
</template>
</GLTable>
</div>
<el-drawer
size="60%"
title="添加跟进员工"
:visible.sync="drawer"
:direction="direction"
:before-close="handleClose"
>
<add-sale @closeDrawer="closeDrawer" @handSelectdEmp="handSelectdEmp"></add-sale>
</el-drawer>
</div>
</template>
<script>
import addSale from "./components/addSale";
export default {
name: "index",
components: {
addSale,
},
data() {
return {
drawer: false,
direction: "rtl",
searchForm: {
type: "",
name: "",
},
optionsType: [
{
value: "",
label: "全部",
},
{
value: "1",
label: "新车跟进专员",
},
{
value: "2",
label: "售后跟进专员",
},
],
scope: {
scope: "",
},
// 表格参数
tableParams: {
tableOption: true,
mutiSelectName: "user",
btnId: new Date().getTime() + parseInt(Math.random() * 1000),
tableColumns: [
{
label: "姓名",
prop: "name",
},
{
label: "一级订单",
prop: "部门",
},
{
label: "跟进专员类型",
prop: "部门",
},
{
label: "手机号",
prop: "部门",
},
{
label: "首次开通时间",
prop: "部门",
},
{
label: "是否有外部联系人权限",
prop: "部门",
},
],
},
layout: "sizes, prev, pager, next, jumper, ->, total",
tableData: [],
tableTotal: 0,
};
},
methods: {
beforeSearchFn() {
return new Promise((resolve) => {
// 调接口前,操作
resolve();
});
},
handleClose() {
this.drawer = false;
},
closeDrawer() {
this.handleClose();
},
handSelectdEmp() {
this.handleClose();
},
handleSearch() {},
handleDele() {},
},
mounted() {
this.$refs.table.setTableHeightFun();
console.log(this.$apis.emp.getEmpList())
},
};
</script>
<style scoped lang="scss">
.follow-header {
background: #ffffff;
border: 1px solid #5850ff;
border-radius: 4px;
line-height: 27px;
padding: 10px 20px;
font-size: 15px;
color: rgba(0, 0, 0, 0.65);
position: relative;
.follow-process-a {
position: absolute;
right: 50px;
bottom: 10px;
line-height: 24px;
color: #5850ff;
cursor: pointer;
}
}
.follow-form {
margin-top: 20px;
background: #ffffff;
box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1);
padding: 10px;
&-item {
position: relative;
.follow-form-jump {
position: absolute;
right: 0px;
}
}
}
</style>
\ No newline at end of file
<template>
<div class="accurate-sercives">
<div class="accurate-item scrm-box-f">
<div class="accurate-img">
<img
class="accurate-img"
src="@/assets/img/home/yx.png"
alt=""
/>
</div>
<div class="accurate-content">
<div class="accurate-content-l">
<div class="accurate-title">客户引流企微策略</div>
<div class="accurate-desc">
导入外部客户,系统智能匹配企微客户,并自动打标签。且不同的客户提供不同引流策略。
</div>
</div>
<div class="accurate-use-btn">
<el-button type="primary" size="small">立即使用</el-button>
</div>
</div>
</div>
<div class="accurate-item scrm-box-f">
<div class="accurate-img">
<img
class="accurate-img"
src="@/assets/img/home/cl.png"
alt=""
/>
</div>
<div class="accurate-content">
<div class="accurate-content-l">
<div class="accurate-title">续费策略</div>
<div class="accurate-desc">
提前给需要续费的客户精准推送续费活动,提高复购率。支持企业微信、短信、智能语音电话推送。
</div>
</div>
<div class="accurate-use-btn">
<el-button type="primary" size="small">立即使用</el-button>
</div>
</div>
</div>
</div>
</template>
<script>
export default {
name: "accurateMarketing",
data() {
return {};
},
methods: {
test() {
console.log("点击了按钮");
this.$messenger.send({ from: 11, message: "11111" });
},
},
};
</script>
<style lang="scss" scoped>
.accurate-sercives {
display: flex;
justify-content: space-around;
.accurate-item {
flex: 1;
padding: 20px;
margin-right: 30px;
text-align: center;
.accurate-img {
width: 100%;
height: auto;
}
.accurate-content {
display: flex;
align-items: flex-end;
margin-top: 20px;
&-l {
width: 50%;
}
.accurate-use-btn {
width: 50%;
text-align: right;
}
}
&:last-child {
margin-right: 0px;
}
.accurate-icon {
img {
width: 50px;
height: auto;
margin: 4px auto;
}
}
.accurate-title {
font-size: 16px;
font-weight: 400;
color: #000000;
line-height: 22px;
margin-bottom: 10px;
}
.accurate-desc {
font-size: 14px;
font-weight: 400;
color: #999999;
line-height: 20px;
}
}
}
</style>
\ No newline at end of file
<template>
<div class="chart-home-panel scrm-box-f">
<div class="chart-home-left">
<output-echart></output-echart>
</div>
<div class="chart-home-right">
<same-add-echart></same-add-echart>
</div>
</div>
</template>
<script>
import outputEchart from "./output-echart";
import sameAddEchart from "./same-add-echart";
export default {
name: "customerEchart",
components: {
outputEchart,
sameAddEchart,
},
data() {
return {
permissions: [1211],
};
},
methods: {
test() {
console.log("点击了按钮");
this.$messenger.send({ from: 11, message: "11111" });
},
},
};
</script>
<style lang="scss" scoped>
.chart-home-panel {
display: flex;
margin-top: 20px;
.chart-home-left {
width: 50%;
padding: 20px;
}
.chart-home-right {
width: 50%;
padding: 20px;
}
}
</style>
<template>
<div class="scrm-main">
<div class="info-border">
<div class="info-title">企业信息 <span>门店</span></div>
<div class="info-content">
<p>所属企业:</p>
<p>所属门店:</p>
<p>关联企微:</p>
<p>企微成员:</p>
</div>
</div>
<div class="info-border consult-box">
<div class="info-title scrm-textCenter">嘀加企微管家</div>
<div class="info-title scrm-textCenter">专属顾问</div>
<div class="info-content">
<div class="info-qrcode">
<div class="info-qrcode-image">
<img src="@/assets/img/home/logo.png" alt="" />
</div>
<div class="info-qrcode-desc">扫码添加您的专属顾问</div>
</div>
<div class="info-consult-icon">
<i class="el-icon-chat-dot-round">
</i><span>联系客服</span>
</div>
<div class="info-time">
<span>工作时间:9:00-18:00</span>
</div>
</div>
</div>
<div class="info-border">
<div class="info-title">赢销学院</div>
<div class="info-content">
<p>子账户的注册和管理>></p>
<p>老客户引流企微操作流程>></p>
<p>企微授权流程>></p>
<p>权益裂变操作流程>></p>
<p>优惠券营销使用手册>></p>
</div>
<div class="info-more">了解更多</div>
</div>
<div class="info-border">
<div class="info-title">版本更新</div>
<div class="info-content"></div>
<div class="info-more">了解更多</div>
</div>
</div>
</template>
<script>
export default {
name: "enterpriseInformation",
data() {
return {
permissions: [1211],
};
},
methods: {
test() {
console.log("点击了按钮");
this.$messenger.send({ from: 11, message: "11111" });
},
},
};
</script>
<style scoped lang="scss">
.info-border {
background: #ffffff;
box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1);
margin-bottom: 20px;
padding: 20px;
width: 218px;
box-sizing: border-box;
.info-title {
font-size: 20px;
font-weight: 500;
color: #333333;
line-height: 24px;
letter-spacing: 1px;
span {
display: inline-block;
font-size: 14px;
font-weight: 400;
color: #5850ff;
line-height: 20px;
padding: 0px 5px;
border-radius: 2px;
vertical-align: top;
border: 1px solid #5850ff;
}
}
}
.info-content {
margin-top: 20px;
p {
font-size: 14px;
font-weight: 400;
color: #333333;
line-height: 20px;
margin-bottom: 10px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
span {
color: #666666;
}
}
}
.info-more {
font-size: 14px;
font-weight: 400;
color: #5850ff;
line-height: 20px;
letter-spacing: 1px;
cursor: pointer;
}
.info-qrcode {
text-align: center;
}
.info-qrcode-image {
height: 100px;
width: 100px;
margin: 0 auto;
}
.info-qrcode-desc {
font-size: 14px;
font-weight: 400;
color: #333333;
line-height: 20px;
letter-spacing: 1px;
line-height: 24px;
margin: 10px 0px;
}
.info-time {
font-size: 14px;
font-weight: 400;
color: #333333;
line-height: 20px;
letter-spacing: 1px;
}
.info-consult-icon {
font-size: 14px;
font-weight: 400;
color: #333333;
line-height: 26px;
letter-spacing: 1px;
text-align: center;
i {
font-size: 20px;
color: #FE911A;
vertical-align: middle;
margin-right: 5px;
}
}
</style>
\ No newline at end of file
<template>
<div class="header-panel">
<img
class="info-consulting-icon"
src="@/assets/img/home/home-header.png"
alt=""
/>
</div>
</template>
<script>
export default {
name: 'overview',
data() {
return {
permissions: [1211]
}
},
methods: {
test() {
console.log('点击了按钮')
this.$messenger.send({ from: 11, message: '11111' })
}
}
}
</script>
<style lang="scss" scoped>
.header-panel {
width: 100%;
height: auto;
>img {
width: 100%;
height: auto;
}
}
</style>
\ No newline at end of file
<template>
<div :id="echartId" class="chart-line"></div>
</template>
<script>
import * as echarts from "echarts";
export default {
name: "linechart",
props: {
echartId: {
type: String,
default: "",
},
},
data() {
return {};
},
methods: {
getChartTotal() {
console.log(this.echartId);
var chartDom = document.getElementById(this.echartId);
var myChart = echarts.init(chartDom);
var option;
option = {
xAxis: {
type: "category",
boundaryGap: false,
show: false,
data: ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"],
},
grid: {
bottom: 0,
top: 0,
},
yAxis: {
type: "value",
show: false,
},
series: [
{
data: [1, 12, 33, 23, 45, 65, 4445],
type: "line",
symbol: "none",
areaStyle: {
color: {
type: "linear",
x: 0,
y: 0,
x2: 0,
y2: 1,
colorStops: [
{
offset: 0,
color: "#5850FF", // 100% 处的颜色
},
{
offset: 1,
color: "#FFFFFF", // 0% 处的颜色
},
],
global: false, // 缺省为 false
},
},
},
],
};
option && myChart.setOption(option);
},
},
mounted() {
this.getChartTotal();
},
};
</script>
<style scoped lang="scss">
.chart-line {
height: 100px;
}
.summary-header {
display: flex;
color: #3a3a3a;
justify-content: space-between;
}
.summary-customer-panel {
display: flex;
.summary-item {
width: 25%;
box-sizing: border-box;
padding-right: 20px;
margin-right: 20px;
border-right: 1px solid rgba(0, 0, 0, 0.06);
&:last-of-type {
border: none;
}
.summary-item-title {
.item {
background: #ffffff;
box-shadow: 0px 2px 12px 0px rgba(0, 0, 0, 0.06);
border: 1px solid #e4e7ed;
}
i {
color: #999999;
background: none;
}
}
.summary-item-total {
font-size: 30px;
color: rgba(0, 0, 0, 0.85);
line-height: 38px;
margin: 20px 0px 10px 0px;
}
.summary-item-number {
font-size: 12px;
font-weight: 400;
color: #666666;
line-height: 20px;
margin-bottom: 20px;
}
#main-total {
height: 60px;
}
}
}
.expand-more {
margin: 20px 0px;
text-align: center;
height: 56px;
background: rgba(0, 0, 0, 0.02);
border-radius: 0px 0px 2px 2px;
font-size: 14px;
line-height: 56px;
color: #000000;
}
#main-customer {
height: 300px;
}
</style>
\ No newline at end of file
<template>
<div class="marketing-tools scrm-box-f">
<div class="marketing-item" v-for="(item, index) in tools" :key="index">
<div class="marketing-icon"><img :src="require('../../../assets/img/service/tool' + (index+1) + '.png')"></div>
<div class="marketing-desc">{{ item.name }}</div>
</div>
</div>
</template>
<script>
export default {
name: "marketingTools",
data() {
return {
tools: [
{
name: "活码引流",
},
{
name: "批量加好友",
},
{
name: "群发助手",
},
{
name: "企业素材库",
},
{
name: "权益裂变",
},
{
name: "优惠券营销",
},
],
};
},
methods: {
test() {
console.log("点击了按钮");
this.$messenger.send({ from: 11, message: "11111" });
},
},
};
</script>
<style lang="scss" scoped>
.marketing-tools {
display: flex;
justify-content: space-around;
padding: 25px;
.marketing-item {
margin: 0 auto;
text-align: center;
.marketing-icon {
img {
width: 50px;
height: 50px;
margin: 4px auto;
}
}
.marketing-desc {
font-size: 14px;
font-weight: 500;
color: #333333;
line-height: 16px;
letter-spacing: 1px;
margin-top: 6px;
}
}
}
</style>
\ No newline at end of file
<template>
<div class="operational-sercives">
<div class="operational-item scrm-box-f">
<div class="operational-icon"><img src="@/assets/img/home/service1.png" /></div>
<div class="operational-title">新车售前打包增值方案</div>
<div class="operational-desc">4S店会员权益服务——赚钱 、锁客两不误</div>
<div class="operational-btn">立即使用</div>
</div>
<div class="operational-item scrm-box-f">
<div class="operational-icon"><img src="@/assets/img/home/service2.png" /></div>
<div class="operational-title">精品售中升级</div>
<div class="operational-desc">驻店升级转化精品——帮助门店新车流量托管式增值变现</div>
<div class="operational-btn">立即使用</div>
</div>
<div class="operational-item scrm-box-f">
<div class="operational-icon"><img src="@/assets/img/home/service3.png" /></div>
<div class="operational-title">售后直播代运营服务</div>
<div class="operational-desc">专业直播带货服务,助力商家直播带货,快速提高销量</div>
<div class="operational-btn">立即使用</div>
</div>
</div>
</template>
<script>
export default {
name: "operationalSercives",
data() {
return {
permissions: [1211],
};
},
methods: {
test() {
console.log("点击了按钮");
this.$messenger.send({ from: 11, message: "11111" });
},
},
};
</script>
<style lang="scss" scoped>
.operational-sercives {
display: flex;
justify-content: space-around;
.operational-item {
padding: 20px 55px;
margin-right: 30px;
text-align: center;
&:last-child {
margin-right: 0px;
}
.operational-icon {
img {
width: 56px;
height: auto;
margin: 20px auto;
}
}
.operational-title {
font-size: 16px;
font-weight: 500;
color: #333333;
line-height: 14px;
margin: 20px 0px 10px;
}
.operational-desc {
font-size: 14px;
font-weight: 400;
color: #666666;
line-height: 24px;
}
.operational-btn {
cursor: pointer;
display: inline-block;
margin: 20px auto 10px;
background: #ffffff;
border-radius: 4px;
border: 1px solid #5850ff;
padding: 8px 28px;
font-size: 14px;
font-weight: 400;
color: #5850ff;
line-height: 14px;
&:hover {
background: #ededff;
}
}
}
}
</style>
\ No newline at end of file
<template>
<div class="output-panel">
<div id="echarts1"></div>
</div>
</template>
<script>
import * as echarts from 'echarts';
export default {
name: 'outputEchart',
data() {
return {
permissions: [1211]
}
},
methods: {
test() {
console.log('点击了按钮')
this.$messenger.send({ from: 11, message: '11111' })
}
},
mounted() {
var chartDom = document.getElementById('echarts1');
var myChart = echarts.init(chartDom);
var option;
option = {
tooltip: {
trigger: 'item'
},
legend: {
left: 'left'
},
color: ['#FE9C1C','#716AFF','#3DA4F4'],
series: [
{
name: '访问来源',
type: 'pie',
data: [
{value: 580, name: '精品升级'},
{value: 484, name: '权益'},
{value: 300, name: '其他'}
]
}
]
};
option && myChart.setOption(option);
}
};
</script>
<style>
#echarts1 {
height: 300px;
}
</style>
\ No newline at end of file
<template>
<div class="scrm-box-f scrm-p20">
<div class="view-prise-panel">
<div class="view-prise-l">
<div class="view-l-title">
<div class="view-title-desc">
<span>客户总数</span>
<el-popover
placement="top"
title="说明"
width="200"
trigger="hover"
content="各门店客户总数之和,门店之间不去重"
>
<img src="@/assets/img/question.png" slot="reference">
</el-popover>
</div>
<div class="view-title-num">10,000人</div>
</div>
<div class="view-num-panel">
<div class="view-num-y">
<img
class="accurate-img"
src="@/assets/img/home/count1.png"
alt=""
/>
<div class="view-customer-desc">企微客户数</div>
<div class="view-customer-num">10,000人</div>
</div>
<div class="view-num-n">
<img
class="accurate-img"
src="@/assets/img/home/count2.png"
alt=""
/>
<div class="view-customer-desc">未加企微客户数</div>
<div class="view-customer-num">10,000人</div>
</div>
</div>
<div class="view-l-loss">
<div class="view-loss-desc">企微流失客户总数<span>100</span>人</div>
<div class="view-loss-btn">
<el-button type="primary" size="small">立即召回</el-button>
</div>
</div>
</div>
<div class="view-prise-r">
<div class="view-prise-h">
<div class="view-h-title">当日新增客户数<span>700人</span></div>
<div class="view-h-desc">当日新增企微客户数:60人</div>
</div>
<div class="view-prise-h">
<div class="view-h-title">当日新增群客户数<span>700人</span></div>
<div class="view-h-desc">群客户总数:110人</div>
</div>
<div class="view-prise-f">
<div class="view-h-title">当日企微流失数<span>700人</span></div>
</div>
</div>
</div>
</div>
</template>
<script>
export default {
name: "overviewEnterprise",
data() {
return {
permissions: [1211],
};
},
methods: {
test() {
console.log("点击了按钮");
this.$messenger.send({ from: 11, message: "11111" });
},
},
};
</script>
<style lang="scss" scoped>
.view-prise-panel {
display: flex;
.view-prise-l {
width: 60%;
padding: 20px 40px 20px 20px;
border-right: 1px solid rgba(0,0,0,.06);
.view-l-title {
display: flex;
justify-content: space-between;
font-size: 18px;
font-weight: 600;
color: #333333;
line-height: 18px;
img {
width: 14px;
height: 14px;
margin-left: 6px;
margin-top: 2px;
}
}
.view-num-panel {
display: flex;
justify-content: center;
margin: 50px 0px;
img {
width: 50px;
height: 50px;
margin-bottom: 30px;
}
.view-num-y {
width: 25%;
text-align: center;
.view-customer-desc {
font-size: 14px;
font-weight: 400;
color: #333333;
line-height: 20px;
}
.view-customer-num {
font-size: 22px;
font-weight: 600;
color: #333333;
line-height: 30px;
margin-top: 8px;
}
}
.view-num-n {
width: 25%;
text-align: center;
.view-customer-desc {
font-size: 14px;
font-weight: 400;
color: #333333;
line-height: 20px;
}
.view-customer-num {
font-size: 22px;
font-weight: 600;
color: #333333;
line-height: 30px;
margin-top: 8px;
}
}
}
.view-l-loss {
display: flex;
justify-content: space-between;
font-size: 16px;
font-weight: 500;
color: #333333;
line-height: 22px;
span {
font-size: 30px;
margin: 0px 10px;
font-weight: 500;
color: #eb4e4e;
line-height: 38px;
}
}
}
.view-prise-r {
margin-left: 60px;
width: 40%;
.view-prise-h {
padding-bottom: 30px;
border-bottom: 1px solid rgba(0, 0, 0, 0.06);
margin-bottom: 10px;
}
.view-prise-f {
padding-bottom: 10px;
margin-bottom: 10px;
}
.view-h-title {
height: 22px;
font-size: 16px;
font-weight: 400;
color: #333333;
line-height: 22px;
display: flex;
justify-content: space-between;
span {
font-size: 26px;
font-weight: 500;
color: #333333;
}
}
.view-h-desc {
font-size: 12px;
margin-top: 30px;
font-weight: 400;
color: #999999;
line-height: 17px;
}
}
}
</style>
\ No newline at end of file
<template>
<div class="report-home">
HOME
<glsx-button type="danger" @click="test()" class="test555" id="1211" mode="link">权限按钮测试</glsx-button>
<glsx-button type="success" size="small" @click="test()" id="1211" class="test">权限按钮测试2</glsx-button>
<el-button class="test" @click="test()">东方网分</el-button>
</div>
</template>
<script>
export default {
name: 'home',
data() {
return {
permissions: [1211]
}
},
methods: {
test() {
console.log('点击了按钮')
this.$messenger.send({ from: 11, message: '11111' })
}
}
}
</script>
<template>
<div class="add-chart">
<linechart :echartId="echartId1"></linechart>
<linechart :echartId="echartId2"></linechart>
</div>
</template>
<script>
import * as echarts from 'echarts';
import linechart from "./linechart";
export default {
name: 'sameAddEchart',
components: {
linechart,
},
data() {
return {
permissions: [1211],
echartId1: "addEchartId1",
echartId2: "addEchartId2",
echartId3: "addrEchartId3",
echartId4: "addEchartId4",
}
},
methods: {
test() {
console.log('点击了按钮')
this.$messenger.send({ from: 11, message: '11111' })
}
},
mounted() {
}
};
</script>
<style>
#echarts2 {
height: 300px;
}
</style>
\ No newline at end of file
<template>
<div class="main">
<div class="main-panel" :class="{ 'main-isScroll': guideStatus }">
<div class="main-left">
<div class="header-panel">
<img
class="info-consulting-icon"
src="@/assets/img/home/home-header.png"
alt=""
/>
</div>
<div class="home-statistics-title">企业数据概览</div>
<overview-enterprise></overview-enterprise>
<customer-echart></customer-echart>
<div class="home-overview-content"></div>
<div class="home-statistics-title">精准营销</div>
<accurate-marketing></accurate-marketing>
<div class="operational-panel-s">
<div class="home-statistics-title">免费代运营服务</div>
<operational-services></operational-services>
</div>
<div class="home-statistics-title">精选营销工具</div>
<marketing-tools></marketing-tools>
</div>
<div class="main-right">
<enterprise-information></enterprise-information>
</div>
</div>
<div class="guide-panel" v-if="guideStatus">
<div
v-if="step == 1"
@click="handleNext(1)"
class="guide-btn"
:style="{
left: guideLeft + guideWidth / 2 + imgWidth / 2 - 40 + 'px',
top: guideTop + guideHeight + imgHeight - 20 + 'px',
}"
>
我知道了
</div>
<div
v-if="step == 2"
@click="handleNext(2)"
class="guide-btn"
:style="{
right: guideRight + guideWidth + imgWidth / 2 - 40 + 'px',
top: guideTop + imgHeight - 40 + 'px',
}"
>
我知道了
</div>
<div
v-if="step == 3"
@click="handleNext(3)"
class="guide-btn"
:style="{
left: guideLeft + guideWidth / 4 + imgWidth / 2 - 100 + 'px',
top: guideTop - guideWidth / 4+imgHeight - 80 + 'px',
}"
>
我知道了
</div>
<img
v-if="step == 1"
class="guide-step-1"
src="@/assets/img/home/guide1.png"
alt=""
:style="{
width: imgWidth + 'px',
height: imgHeight + 'px',
left: guideLeft + guideWidth / 2 + 'px',
top: guideTop + guideHeight + 20 + 'px',
}"
/>
<img
@click="handleNext(2)"
v-if="step == 2"
class="guide-step-2"
src="@/assets/img/home/guide2.png"
alt=""
:style="{
width: imgWidth + 'px',
height: imgHeight + 'px',
right: guideRight + guideWidth + 'px',
top: guideTop + 'px',
}"
/>
<img
@click="handleNext(3)"
v-if="step == 3"
class="guide-step-3"
src="@/assets/img/home/guide3.png"
alt=""
:style="{
width: guideWidth / 1.5 + 'px',
left: guideLeft + guideWidth / 4+ 'px',
top: guideTop - guideWidth / 4 + 'px',
}"
/>
<div
v-if="step == 1"
class="guide-box-highlight"
:style="{
width: guideWidth + 'px',
height: guideHeight + 'px',
left: guideLeft + 'px',
top: guideTop + 'px',
}"
></div>
<div
v-if="step == 2"
class="guide-box-highlight border-b"
:style="{
width: guideWidth + 'px',
height: guideHeight + 'px',
right: guideRight + 'px',
top: guideTop + 'px',
}"
></div>
<div
v-if="step == 3"
class="guide-box-highlight border-b"
:style="{
width: guideWidth + 'px',
height: guideHeight + 'px',
left: guideLeft + 'px',
top: guideTop + 'px',
}"
></div>
</div>
</div>
</template>
<script>
import overviewEnterprise from "./components/overview-enterprise";
import customerEchart from "./components/customer-echart";
import marketingTools from "./components/marketing-tools";
import operationalServices from "./components/operational-services";
import enterpriseInformation from "./components/enterprise-information";
import accurateMarketing from "./components/accurate-marketing";
export default {
name: "home",
components: {
overviewEnterprise,
customerEchart,
operationalServices,
marketingTools,
enterpriseInformation,
accurateMarketing,
},
data() {
return {
guideStatus: true,
step: 1,
guideWidth: "",
guideHeight: "",
guideLeft: 0,
guideTop: 0,
guideRight: 0,
imgHeight: 0,
imgWidth: 0,
};
},
methods: {
handleNext(val) {
if (val == 3) {
this.guideStatus = false;
document.documentElement.scrollTop = 0;
document.body.parentNode.style.overflowY = "auto";
} else {
this.step++;
this.getRezie();
}
},
getRezie() {
// document.body.parentNode.style.overflowY = "hidden";
if (this.step == 1) {
this.guideWidth = document.querySelector(".header-panel").offsetWidth;
this.guideHeight = document.querySelector(".header-panel").offsetHeight;
this.imgWidth = this.guideWidth / 2;
this.imgHeight = (this.imgWidth * 342) / 541;
this.guideLeft = document.querySelector(".header-panel").offsetLeft;
this.guideTop = document.querySelector(".header-panel").offsetTop;
} else if (this.step == 2) {
this.guideWidth = document.querySelector(".consult-box").offsetWidth;
this.guideHeight = document.querySelector(".consult-box").offsetHeight;
this.imgHeight = this.guideHeight;
this.imgWidth = (this.imgHeight * 614) / 285;
this.guideRight =
document.body.clientWidth -
document.querySelector(".consult-box").offsetLeft -
document.querySelector(".consult-box").offsetWidth;
this.guideTop = document.querySelector(".consult-box").offsetTop;
} else {
this.guideLeft = document.querySelector(".operational-panel-s").offsetLeft;
this.guideTop = document.querySelector(".operational-panel-s").offsetTop;
document.documentElement.scrollTop = document.body.scrollHeight - 100;
this.guideWidth = document.querySelector(".operational-panel-s").offsetWidth;
this.guideHeight = document.querySelector(".operational-panel-s").offsetHeight;
this.imgWidth = this.guideWidth / 1.5;
this.imgHeight = (this.imgWidth * 229) / 668;
}
},
},
mounted() {
this.getRezie();
window.addEventListener("onresize", () => {
this.getRezie();
});
},
};
</script>
<style lang="scss" scoped>
.header-panel {
width: 100%;
height: 170px;
> img {
width: 100%;
height: 170px;
}
}
.main-isScroll2 {
position: absolute;
overflow: hidden;
width: 100%;
height: 100%;
}
.main-panel {
display: flex;
}
.home-statistics-title {
font-size: 20px;
font-weight: 500;
color: #333333;
line-height: 20px;
letter-spacing: 1px;
margin: 20px 0;
}
.operational-panel-s {
margin-top: 20px;
}
.main-left {
flex: 1;
margin-right: 10px;
}
.main-right {
width: 230px;
}
.h-overview-content {
border: 1px solid #000000;
margin-top: 10px;
padding: 10px;
}
.enterprise-statistics {
display: flex;
justify-content: space-between;
}
.statistics-time {
span {
margin-right: 6px;
}
}
.guide-panel {
.guide-btn {
cursor: pointer;
z-index: 1000;
position: absolute;
background: #5850ff;
border-radius: 4px;
padding: 12px 20px;
color: #ffffff;
display: inline-block;
}
.guide-box {
position: relative;
width: 100%;
height: 100%;
}
.guide-box-highlight {
position: absolute;
outline: 5000px solid rgba(0, 0, 0, 0.75);
border: 2px solid #ffffff;
border-radius: 4px;
&.border-b {
border-color: #5850ff;
}
}
.guide-step-1 {
z-index: 999;
height: auto;
position: absolute;
top: 10px;
left: 10px;
}
.guide-step-2 {
z-index: 999;
width: auto;
position: absolute;
top: 10px;
}
.guide-step-3 {
z-index: 999;
height: auto;
position: absolute;
}
}
</style>
\ No newline at end of file
<template>
<div class="report-home">
<h2>
报表子应用
<span class="right">{{ gs }}</span>
</h2>
<div id="nav">
<span>切换路由:</span>
<el-button-group class="right">
<el-button type="primary" size="medium" @click="routerChange('/')">报表</el-button>
<el-button type="primary" size="medium" @click="routerChange('/about')">穿梭框</el-button>
<el-button type="primary" size="medium" @click="toAppReport('1-1')">表格</el-button>
<el-button type="primary" size="medium" @click="toAppReport('1-2')">日历</el-button>
<el-button type="primary" size="medium" @click="toAppReport({ path: 'sub01/changeData' })">aaaa</el-button>
</el-button-group>
</div>
<div class="parent-child-communication">
<h3>父子应用通信:</h3>
<div style="margin-bottom: 20px;">
<span>rxjs通信方案:{{ myMsg }}</span>
<el-button class="right" type="primary" size="medium" @click="callParentChange('rxjs')">通知父应用变天了</el-button>
</div>
<div>
<span>官方通信方案:{{ myMessage }}</span>
<el-button class="right" type="primary" size="medium" @click="callParentChange('default')">通知父应用收到</el-button>
</div>
<img src="../assets/logo.png" alt="" srcset="" />
</div>
</div>
</template>
<script>
export default {
name: 'report-home',
data() {
return {
myMsg: '',
gs: '',
myMessage: ''
}
},
methods: {
/**
* 路由切换
* url 路由地址
*/
routerChange(url) {
this.$router.push(url).catch(err => {
console.log(err)
})
},
/**
* 跨应用路由切换
* url 路由地址
*/
toAppReport(menu) {
this.$history.push(menu)
},
/**
* 通知父应用变天了
* type 通信方案
*/
callParentChange(type) {
if (type === 'default') {
this.myMessage = '子应用scrm-sub-blog收到'
this.$messenger.send({
route: {
id: '3-1',
url: '/test1.html'
},
message: {
from: 'scrm-sub-blog',
token: '倘若有你,西湖一路无雨'
}
})
return
}
this.myMsg = '倘若有你,西湖一路无雨'
this.$globalState.dispatch({
from: 'scrm-sub-blog',
message: this.myMsg,
time: new Date()
})
}
}
}
</script>
<style lang="scss">
.parent-child-communication {
padding: 20px 0;
line-height: 36px;
}
</style>
<template>
<div class="scrm-main">
<div class="service-panel scrm-box-f">
<div class="service-active">
<div class="service-active-wrap">
<div class="service-active-l">
<div class="service-active-h1">帮助企业盘活客户</div>
<div class="service-active-h2">实现私域裂变增长</div>
<div class="service-active-btn">
<el-button type="primary" size="small">化流量为销量</el-button>
</div>
</div>
<div class="service-active-r"></div>
</div>
<hr />
</div>
<div class="service-content">
<div class="service-content-wrap">
<div class="service-content-l">
<div class="service-content-title">
嘀加智慧门店SCRM——赢在销售 Win Consumer
</div>
<div class="service-content-desc">
面向汽车营销场景,依托嘀加智慧门店SaaS产品服务能力,帮助汽车经销商及门店打通引流-互动-转化-复购的路径,满足企业精准营销+全链路SaaS+数字化运营的一站式增长需求,助力汽车经销商打造自己的数字化营销平台。
</div>
<div class="service-content-in">
我们不仅提供管理工具,我们更有方法论与策略 。
</div>
</div>
<div class="service-content-r"></div>
</div>
<div class="service-content-cause">
<div class="service-cause-border" v-for="(item, index) in cause" :key="index">
<div class="cause-icon"><img :src="require('../../assets/img/service/tool' + (index+1) + '.png')"></div>
<div class="cause-name">{{ item.name }}</div>
</div>
</div>
<hr />
</div>
</div>
<div class="service-footer">
<div class="service-footer-title">嘀加智慧门店——功能服务清单</div>
<table cellspacing="0" cellpadding="0" border="0" class="service-footer-table">
<tr>
<th>产品</th>
<th>功能</th>
<th>标准版</th>
<th>升级版</th>
</tr>
<tr v-for="item in 8" :key="item">
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</table>
<hr />
<div class="service-contact">
<div class="service-contact-h scrm-f20">联系方式</div>
<div class="service-contact-p">深圳市广联赛讯股份有限公司</div>
<div class="service-contact-p">联系人:杨经理</div>
<div class="service-contact-p">联系电话:13500001234</div>
<div class="service-contact-p">微信:13500001234</div>
<div class="service-contact-p">
地址:广东省深圳市南山区XXXXXX智园1栋14楼(整层)
</div>
<hr />
<div class="service-contact-f scrm-f20">
您也可在线申请,我们会24小时内安排工作人员主动跟您联系!
</div>
<div class="service-form">
<el-form ref="form" :model="form" label-width="150px">
<el-row>
<el-col :span="8">
<el-form-item label="您的姓名">
<el-input v-model="form.name"></el-input>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="您的电话号码">
<el-input v-model="form.name"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="16">
<el-form-item label="描述说明">
<el-input type="textarea" rows="5" v-model="form.remark"></el-input>
</el-form-item>
</el-col>
</el-row>
</el-form>
<div class="service-form-btn">
<el-button type="primary" size="small">确定</el-button>
</div>
</div>
</div>
</div>
</div>
</template>
<script>
const cause = [
{ name: "活码引流" },
{ name: "批量加好友" },
{ name: "群发助手" },
{ name: "企业素材库" },
{ name: "权益裂变" },
{ name: "会员中心" },
{ name: "分销裂变" },
{ name: "优惠券营销" },
];
export default {
name: "index",
data() {
return {
cause,
form: {
name: "",
phone: "",
remark: "",
},
};
},
};
</script>
<style scoped lang="scss">
.service-panel {
background: #ffffff;
box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1);
padding: 68px;
width: 100%;
box-sizing: border-box;
}
.service-active {
.service-active-wrap {
display: flex;
.service-active-l {
flex: 1;
}
.service-active-r {
width: 380px;
height: 200px;
border: 1px solid #f2f2f2;
margin: 0px 135px;
}
}
.service-active-h1 {
font-size: 42px;
font-weight: 400;
color: #333333;
line-height: 59px;
}
.service-active-h2 {
font-size: 42px;
font-weight: 600;
color: #333333;
line-height: 59px;
}
.service-active-btn {
margin-top: 20px;
}
hr {
margin: 60px 0px;
border: 2px solid #e8e8ea;
}
}
.service-content {
.service-content-wrap {
display: flex;
.service-content-l {
flex: 1;
}
.service-content-r {
width: 380px;
height: 200px;
border: 1px solid #f2f2f2;
margin: 0px 135px;
}
.service-content-desc {
margin-top: 15px;
line-height: 22px;
}
.service-content-title {
font-size: 32px;
font-weight: 500;
color: #333333;
line-height: 45px;
margin: 20px 0px;
}
.service-content-desc {
font-size: 14px;
font-weight: 400;
color: #333333;
line-height: 24px;
}
.service-content-in {
font-size: 18px;
font-weight: 600;
color: #333333;
line-height: 25px;
margin: 30px 0px;
}
}
.service-content-cause {
margin-top: 30px;
display: flex;
justify-content: space-around;
padding: 15px;
.service-cause-border {
text-align: center;
.cause-icon {
img {
width: 50px;
height: 50px;
margin: 4px auto;
}
}
.cause-name {
font-size: 14px;
font-weight: 500;
color: #333333;
line-height: 16px;
letter-spacing: 1px;
margin-top: 6px;
}
}
}
hr {
margin: 60px 0px;
border: 2px solid #e8e8ea;
}
}
.service-footer {
background: #ffffff;
box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1);
padding: 30px 40px;
width: 100%;
box-sizing: border-box;
&-title {
font-size: 32px;
font-weight: 600;
color: #333333;
line-height: 45px;
margin: 10px 0px 60px;
}
&-table {
border-width: 1px;
border-color: #979797;
border-collapse: collapse;
width: 100%;
font-size: 14px;
color: #979797;
margin-bottom: 20px;
th {
color: #ffffff;
border-width: 1px;
border-left-width: 0px;
border-right-width: 0px;
height: 50px;
border-style: solid;
border-color: #979797;
background-color: #5850ff;
}
td {
border-width: 1px;
height: 40px;
border-left-width: 0px;
border-right-width: 0px;
border-style: solid;
border-color: #979797;
background-color: #ffffff;
}
}
hr {
margin: 60px 0px;
border: 2px solid #e8e8ea;
}
}
.service-contact {
hr {
margin: 40px 0px;
border: 2px solid #e8e8ea;
}
}
.service-contact-h {
font-size: 32px;
font-weight: 500;
color: #333333;
line-height: 45px;
margin: 20px 0;
}
.service-contact-p {
font-size: 14px;
font-weight: 400;
color: #333333;
line-height: 20px;
padding: 5px 0px;
}
.service-contact-f {
font-size: 18px;
font-weight: 600;
color: #333333;
line-height: 25px;
margin-top: 50px;
}
.service-form {
margin-top: 60px;
.service-form-btn {
margin-left: 150px;
/deep/ .el-button--small {
padding: 9px 45px;
}
}
}
</style>
\ No newline at end of file
No preview for this file type
No preview for this file type
$defaultColor: #5850FF;
$lightColor: #7973ff;
$dackColor: #4f48e6;
/* 按钮 */
.el-button {
padding: 12px 20px;
font-size: 14px;
border-radius: 4px
}
.el-button:hover,
.el-button:focus {
color: $defaultColor;
border-color: #cdcbff;
background-color: #eef;
}
.el-button:active {
color: $dackColor;
border-color: $dackColor;
outline: none;
}
.el-button.is-round {
padding: 12px 20px
}
.el-button--primary {
color: #fff;
background-color: $defaultColor;
border-color: $defaultColor;
}
.el-button--primary:focus,
.el-button--primary:hover {
background: $lightColor;
border-color: $lightColor;
color: #fff;
}
.el-button--text:focus,
.el-button--text:hover {
color: $lightColor;
border-color: transparent;
background-color: transparent;
}
.el-button.is-plain:focus,
.el-button.is-plain:hover {
background: #FFF;
border-color: $lightColor;
color: $lightColor;
}
.el-button--primary.is-active,
.el-button--primary:active {
background: $dackColor;
border-color: $dackColor;
color: #fff;
}
.el-select .el-input__inner:focus {
border-color: $dackColor;
}
.el-button--small {
padding: 8px 16px;
font-size: 14px;
border-radius: 4px;
}
.el-button--small.is-round {
padding: 8px 16px;
}
.el-button--mini {
padding: 5px 10px;
font-size: 14px;
border-radius: 4px;
}
.el-button--mini.is-round {
padding: 5px 10px;
}
.el-dialog__title {
font-size: 20px;
font-weight: 500;
color: #333333;
line-height: 28px;
}
/* 输入框 下拉框 选择器 开关 单选 多选*/
.el-input__inner:focus {
outline: none;
border-color: $defaultColor;
}
.el-date-table td.today span {
color: $defaultColor;
font-weight: bold;
}
.el-date-table td.current:not(.disabled) span {
color: #fff;
background-color: $defaultColor;
}
.el-date-table td.available:hover {
color: $defaultColor;
}
.el-time-panel__btn.confirm {
font-weight: 800;
color: $defaultColor;
}
.el-date-picker__header-label.active,
.el-date-picker__header-label:hover {
color: $defaultColor;
}
.el-year-table td.today .cell {
color: $defaultColor;
font-weight: 700;
}
.el-month-table td .cell:hover {
color: $defaultColor;
}
.el-picker-panel__icon-btn:hover {
color: $defaultColor;
}
.el-date-table td.end-date span,
.el-date-table td.start-date span {
background-color: $defaultColor;
}
.el-year-table td .cell:hover,
.el-year-table td.current:not(.disabled) .cell {
color: $defaultColor;
}
.el-select .el-input.is-focus .el-input__inner {
border-color: $defaultColor;
}
.el-button--text {
color: $defaultColor;
}
.el-select-dropdown__item.selected {
color: $defaultColor;
font-weight: bold;
}
.el-switch.is-checked .el-switch__core {
border-color: $defaultColor;
background-color: $defaultColor;
}
.el-radio__input.is-checked .el-radio__inner {
border-color: $defaultColor;
background: #fff;
}
.el-radio__inner:after {
background-color: $defaultColor;
width: 10px;
height: 10px;
}
.el-radio__inner:hover {
border-color: $defaultColor;
}
.el-radio__input.is-checked+.el-radio__label {
color: $defaultColor;
}
.el-checkbox__input.is-checked .el-checkbox__inner {
background-color: $defaultColor;
border-color: $defaultColor;
}
.el-checkbox__inner:hover {
border-color: $defaultColor;
}
.el-checkbox__input.is-checked+.el-checkbox__label {
color: $defaultColor;
}
.el-checkbox__input.is-checked .el-checkbox__inner,
.el-checkbox__input.is-indeterminate .el-checkbox__inner {
background-color: $defaultColor;
border-color: $defaultColor;
}
.el-checkbox__input.is-focus .el-checkbox__inner {
border-color: $defaultColor;
}
/* 标签*/
.el-tag {
color: $lightColor;
background: #E6E9FF;
border: 1px solid #5850FF;
}
.el-tag .el-tag__close {
color: $lightColor;
}
.el-tag .el-tag__close:hover {
background-color: $lightColor;
}
/* 面包屑*/
.el-breadcrumb__inner a,
.el-breadcrumb__inner.is-link {
font-weight: 400;
color: #999999;
}
.el-breadcrumb__inner a:hover,
.el-breadcrumb__inner.is-link:hover {
color: $defaultColor;
}
.el-breadcrumb__inner {
font-weight: 700;
color: #3A3A3A;
}
.el-breadcrumb__item:last-child .el-breadcrumb__inner,
.el-breadcrumb__item:last-child .el-breadcrumb__inner a,
.el-breadcrumb__item:last-child .el-breadcrumb__inner a:hover,
.el-breadcrumb__item:last-child .el-breadcrumb__inner:hover {
font-weight: 700;
color: #3A3A3A;
}
/* 树形 */
.el-tree--highlight-current .el-tree-node.is-current>.el-tree-node__content {
color: $defaultColor;
background-color: #F2F5FA;
height: 34px;
}
.el-tree-node__content {
height: 34px;
}
/* 表格 */
.el-table--medium .el-table__cell {
padding: 8.5px 0px;
}
.el-table .cell {
line-height: 36px;
}
.el-table .el-table__header tr {
background: #F4F6FC;
font-size: 14px;
font-weight: 500;
color: #333333;
line-height: 20px;
}
.el-table th.el-table__cell {
background: #F4F6FC;
font-size: 14px;
font-weight: 600;
color: #333333;
line-height: 20px;
}
.el-table__body {
font-size: 14px;
font-weight: 400;
color: #666666;
line-height: 14px;
}
.el-table--striped .el-table__body tr.el-table__row--striped.current-row td.el-table__cell {
background-color: #F4F3FF;
}
.el-table__body tr.current-row>td.el-table__cell {
background-color: #F4F3FF;
}
.el-table--striped .el-table__body tr.el-table__row--striped td.el-table__cell {
background: #fff;
}
.el-table__body tr.hover-row.current-row>td.el-table__cell,
.el-table__body tr.hover-row.el-table__row--striped.current-row>td.el-table__cell,
.el-table__body tr.hover-row.el-table__row--striped>td.el-table__cell,
.el-table__body tr.hover-row>td.el-table__cell {
background-color: #F4F3FF;
}
/* 分页 */
.el-pager li.active {
color: $defaultColor;
cursor: default;
}
.el-pager li:hover {
color: $defaultColor;
}
.el-pagination button:hover {
color: $defaultColor;
}
.el-pagination.is-background .el-pager li:not(.disabled).active {
background-color: $defaultColor;
}
.el-pagination__sizes .el-input .el-input__inner:hover {
border-color: $defaultColor;
}
.el-form-item__label {
font-size: 14px;
font-weight: 400;
color: #666666;
}
/* common.css */
/* img {
width: 100%;
height: 100%;
vertical-align: top;
} */
.text-hide {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.text-hide-2 {
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
}
.scrm-textRight {
text-align: right;
}
.scrm-textCenter {
text-align: center;
}
.scrm-f12 {
font-size: 12px;
}
.scrm-f13 {
font-size: 13px;
}
.scrm-f14 {
font-size: 14px;
}
.scrm-f15 {
font-size: 15px;
}
.scrm-f16 {
font-size: 16px;
}
.scrm-f18 {
font-size: 18px;
}
.scrm-f20 {
font-size: 20px;
}
.scrm-f22 {
font-size: 22px;
}
.scrm-f24 {
font-size: 24px;
}
.scrm-m10 {
margin: 10px;
}
.scrm-m20 {
margin: 20px;
}
.scrm-ml10 {
margin-left: 10px;
}
.scrm-ml20 {
margin-left: 20px;
}
.scrm-mr10 {
margin-right: 10px;
}
.scrm-mr20 {
margin-right: 20px;
}
.scrm-p10 {
padding: 10px;
}
.scrm-p20 {
padding: 20px;
}
.scrm-box-background {
background: #FFFFFF;
box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.10);
}
.scrm-h1-title {
font-size: 20px;
font-weight: 600;
color: #424242;
line-height: 20px;
}
.scrm-h2-title {
font-size: 16px;
font-weight: 600;
color: #333333;
line-height: 28px;
}
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!