Commit 7e03ef30 by yangming

output

1 parent 07a71de2
{
"name": "home",
"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",
"el-tree-transfer": "^2.2.6",
"glsx-common": "^1.4.6",
"glsx-components": "^1.1.1",
"glsx-table": "^1.0.9"
},
"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",
"autoprefixer": "^8.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",
"postcss-loader": "^6.2.0",
"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 3 versions",
"not ie <= 8",
"chrome >= 14",
"safari >= 3"
]
}
\ No newline at end of file
"name": "home",
"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",
"el-tree-transfer": "^2.2.6",
"glsx-common": "^1.4.6",
"glsx-components": "^1.2.3",
"glsx-table": "^1.0.9"
},
"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",
"autoprefixer": "^8.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",
"postcss-loader": "^6.2.0",
"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 3 versions",
"not ie <= 8",
"chrome >= 14",
"safari >= 3"
]
}
......@@ -9,7 +9,7 @@
import { http } from '@/main'
const sessionId = 'mini-a8d84762-da6a-4ff7-b009-eb7fa0c80dfb-rop';
const listFollowerStaffByPage = params => {
params.method = 'cn.com.glsx.entmicro.staff.listFollowerStaffByPage'
params.method = 'entmicro.api.staff.listFollowerStaffByPage'
params.sessionId = sessionId
return http({
url: '/rop-scrm-entmicro/router',
......@@ -20,7 +20,7 @@ const listFollowerStaffByPage = params => {
}
// 获取跟进类型列表
const listEntFollowerType = params => {
params.method = 'cn.com.glsx.entmicro.staff.listEntFollowerType'
params.method = 'entmicro.api.staff.listEntFollowerType'
params.sessionId = sessionId
return http({
url: '/rop-scrm-entmicro/router',
......@@ -31,7 +31,7 @@ const listEntFollowerType = params => {
}
// 删除根据员工
const deleteFollowerStaff = params => {
params.method = 'cn.com.glsx.entmicro.staff.deleteFollowerStaff'
params.method = 'entmicro.api.staff.deleteFollowerStaff'
params.sessionId = sessionId
return http({
url: '/rop-scrm-entmicro/router',
......@@ -43,7 +43,7 @@ const deleteFollowerStaff = params => {
// 删除跟进类型
const deleteFollowerType = params => {
params.sessionId = sessionId
params.method = 'cn.com.glsx.entmicro.staff.deleteFollowerType'
params.method = 'entmicro.api.staff.deleteFollowerType'
return http({
url: '/rop-scrm-entmicro/router',
method: 'POST',
......@@ -54,7 +54,7 @@ const deleteFollowerType = params => {
// 查询外部联系人员工
const listEntmicroStaff = params => {
params.sessionId = sessionId
params.method = 'cn.com.glsx.entmicro.staff.listEntmicroStaff'
params.method = 'entmicro.api.staff.listEntmicroStaff'
return http({
url: '/rop-scrm-entmicro/router',
method: 'POST',
......@@ -65,7 +65,7 @@ const listEntmicroStaff = params => {
// 添加跟进员工
const saveFollowerStaff = params => {
params.sessionId = sessionId
params.method = 'cn.com.glsx.entmicro.staff.saveFollowerStaff'
params.method = 'entmicro.api.staff.saveFollowerStaff'
return http({
url: '/rop-scrm-entmicro/router',
method: 'POST',
......@@ -76,7 +76,7 @@ const saveFollowerStaff = params => {
// 新增跟进类型
const saveFollowerType = params => {
params.sessionId = sessionId
params.method = 'cn.com.glsx.entmicro.staff.saveFollowerType'
params.method = 'entmicro.api.staff.saveFollowerType'
return http({
url: '/rop-scrm-entmicro/router',
method: 'POST',
......@@ -87,7 +87,7 @@ const saveFollowerType = params => {
// 同步企微外部联系人
const syncEntmicroIsOutsiderStaff = params => {
params.sessionId = sessionId
params.method = 'cn.com.glsx.entmicro.staff.syncEntmicroIsOutsiderStaff'
params.method = 'entmicro.api.staff.syncEntmicroIsOutsiderStaff'
return http({
url: '/rop-scrm-entmicro/router',
method: 'POST',
......@@ -98,7 +98,7 @@ const syncEntmicroIsOutsiderStaff = params => {
// 查询组织树
const listDepartmentTree = params => {
params.sessionId = sessionId
params.method = 'cn.com.glsx.entmicro.department.listDepartmentTree'
params.method = 'entmicro.api.department.listDepartmentTree'
return http({
url: '/rop-scrm-entmicro/router',
method: 'POST',
......
......@@ -8,8 +8,9 @@
*/
import { http } from '@/main'
const url = '/rop-scrm-entmicro/router'
const urlc = '/rop-scrm-wwbench/router'
const getChart = params => {
params.method = 'org.ore.api.home.view.chart'
params.method = 'entmicro.api.home.view.chart'
return http({
url,
method: 'POST',
......@@ -19,7 +20,7 @@ const getChart = params => {
}
const getSort = params => {
params.method = 'org.ore.api.home.view.sort'
params.method = 'entmicro.api.home.view.sort'
return http({
url,
......@@ -29,7 +30,7 @@ const getSort = params => {
})
}
const getStore = params => {
params.method = 'org.ore.api.home.view.store.data'
params.method = 'entmicro.api.home.view.store.data'
return http({
url,
......@@ -39,7 +40,7 @@ const getStore = params => {
})
}
const getShop = params => {
params.method = 'org.ore.api.home.view.shop.data'
params.method = 'entmicro.api.home.view.shop.data'
return http({
url,
......@@ -49,7 +50,7 @@ const getShop = params => {
})
}
const getView = params => {
params.method = 'org.ore.api.home.view.data'
params.method = 'entmicro.api.home.view.data'
return http({
url,
......@@ -59,7 +60,7 @@ const getView = params => {
})
}
const findLoginCount = params => {
params.method = 'org.ore.api.common.findLoginCount'
params.method = 'entmicro.api.common.findLoginCount'
return http({
url,
......@@ -69,7 +70,7 @@ const findLoginCount = params => {
})
}
const findMerchantInfoByMerchantNo = params => {
params.method = 'org.ore.api.common.findMerchantInfoByMerchantNo.list'
params.method = 'entmicro.api.common.findMerchantInfoByMerchantNo.list'
return http({
url,
......@@ -78,6 +79,36 @@ const findMerchantInfoByMerchantNo = params => {
sign: true
})
}
const outputValue = params => {
params.method = 'scrm.api.wwbench.outputValue.stat'
return http({
url: urlc,
method: 'POST',
data: params,
sign: true
})
}
const merchantRank = params => {
params.method = 'scrm.api.wwbench.outputValue.stat.merchantRank'
return http({
url: urlc,
method: 'POST',
data: params,
sign: true
})
}
const outputValueTotal = params => {
params.method = 'scrm.api.wwbench.outputValue.stat.total'
return http({
url: urlc,
method: 'POST',
data: params,
sign: true
})
}
export default {
getChart,
getView,
......@@ -85,5 +116,8 @@ export default {
getShop,
getStore,
findLoginCount,
findMerchantInfoByMerchantNo
findMerchantInfoByMerchantNo,
outputValue,
outputValueTotal,
merchantRank
}
\ No newline at end of file

797 Bytes | W: | H:

919 Bytes | W: | H:

src/assets/img/enterprise/clone.png
src/assets/img/enterprise/clone.png
src/assets/img/enterprise/clone.png
src/assets/img/enterprise/clone.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -35,6 +35,7 @@ const render = (base, routes) => {
next('/enterpriseWechat/index')
sessionStorage.setItem('wxStatus', 1)
} else {
sessionStorage.setItem('wxAcess', 1)
next()
}
})
......
import { Message } from 'element-ui'
let util = {}
util.cloneText = function(message) {
util.cloneText = function (message) {
let input = document.createElement('input')
input.value = message
document.body.appendChild(input)
......@@ -9,7 +9,7 @@ util.cloneText = function(message) {
document.body.removeChild(input)
Message.success('复制成功')
}
util.getBeforeDate = function(sign = '-') {
util.getBeforeDate = function (sign = '-') {
let day = new Date();
let month = day.getMonth() + 1;
let date = day.getDate();
......@@ -18,7 +18,7 @@ util.getBeforeDate = function(sign = '-') {
var s = day.getFullYear() + sign + month + sign + date;
return s;
}
util.getBeforeMonth = function(days) {
util.getBeforeMonth = function (days) {
let month = new Date().getMonth() + 1;
let year = new Date().getFullYear();
let arr = new Array();
......@@ -33,4 +33,14 @@ util.getBeforeMonth = function(days) {
}
return arr;
}
util.getCurrentMonthLast = function (date) {
var endDate = new Date(date);
var month = endDate.getMonth();
var nextMonth = ++month;
var nextMonthFirstDay = new Date(endDate.getFullYear(), nextMonth, 1);
var oneDay = 1000 * 60 * 60 * 24;
var dateString = new Date(nextMonthFirstDay - oneDay);
return dateString.toLocaleDateString().replace(new RegExp('/','g'),"-"); //toLocaleDateString() 返回 如:2018/8/31
}
export default util
\ No newline at end of file
<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>
......@@ -7,6 +7,7 @@
slot="append"
type="primary"
@click="syncEntmicroIsOutsiderStaff"
:loading="loading"
>同步有外部联系人权限的员工</el-button
>
</div>
......@@ -91,6 +92,7 @@ export default {
data() {
return {
loading: false,
addForm: {},
typeIndex: 0,
empType: [],
......@@ -165,6 +167,7 @@ export default {
});
},
syncEntmicroIsOutsiderStaff() {
this.loading = true;
let params = {
departmentId: 1,
merchantId: this.$globalState.session.merchantId,
......@@ -177,6 +180,7 @@ export default {
type: "success",
});
}
this.loading = false;
});
},
onSubmit() {
......
......@@ -5,74 +5,60 @@
<div
class="emp-scroll-panel"
:style="{
height: treeHeight + 'px',
height: treeHeight + 'px'
}"
>
<div class="tree-title">所在门店/部门</div>
<el-tree
:data="listTree"
:expand-on-click-node="false"
highlight-current
:props="defaultProps"
@node-click="handleNodeClick"
></el-tree>
<el-tree :data="listTree" :expand-on-click-node="false" highlight-current :props="defaultProps" @node-click="handleNodeClick"></el-tree>
</div>
</div>
<el-col
class="scrm-p10 emp-table-panel"
:style="{
height: treeHeight+20 + 'px',
height: treeHeight + 20 + 'px'
}"
>
<GLTable
ref="saleTable"
:tableData="tableEmpData"
:tableParams="tableParams"
:hasNum="false"
:hasPage="false"
@selectionTable="selectionTable"
>
</GLTable>
<GLTable ref="saleTable" :tableData="tableEmpData" :tableParams="tableParams" :hasNum="false" :hasPage="false" @selectionTable="selectionTable"></GLTable>
</el-col>
</div>
</template>
<script>
export default {
name: "selectEmp",
name: 'selectEmp',
data() {
return {
treeHeight: 0,
staffName: "",
staffName: '',
listTree: [],
defaultProps: {
children: "children",
label: "departmentName",
children: 'children',
label: 'departmentName'
},
// 表格参数
tableParams: {
checkSelectKey: "id",
checkSelectKey: 'id',
checkSelectVal: [],
listName: "list",
listName: 'list',
// 行数据的key
mutiSelectUniqueKey: "id",
mutiSelectUniqueKey: 'id',
// 多选ref的名称
mutiSelectName: "salelist",
mutiSelectName: 'salelist',
btnId: new Date().getTime() + parseInt(Math.random() * 1000),
tableColumns: [
{
label: "姓名",
prop: "staffName",
label: '姓名',
prop: 'staffName'
},
{
label: "职务",
prop: "staffTitle",
},
],
label: '职务',
prop: 'staffTitle'
}
]
},
tableEmpData: [],
};
tableEmpData: []
}
},
methods: {
......@@ -80,42 +66,46 @@ export default {
this.$emit('selectTable', val)
},
listDepartmentTree() {
this.$apis.emp.listDepartmentTree({ id: 1 }).then((res) => {
this.listTree = res;
this.$apis.emp.listDepartmentTree({ id: 1 }).then(res => {
this.listTree = res
this.$nextTick(() => {
document.getElementsByClassName('el-tree-node__expand-icon')[0].click();
document.getElementsByClassName('el-tree-node__content')[0].click();
});
});
document.getElementsByClassName('el-tree-node__expand-icon')[0].click()
document.getElementsByClassName('el-tree-node__content')[0].click()
})
})
},
clearSelect(row) {
this.$refs.saleTable.$refs.salelistMutiTable.toggleRowSelection(row);
this.tableEmpData.forEach(item => {
if (item.id == row.id) {
this.$refs.saleTable.$refs.salelistMutiTable.toggleRowSelection(item)
}
})
},
clearSelection() {
this.$refs.saleTable.$refs.salelistMutiTable.clearSelection();
this.$refs.saleTable.$refs.salelistMutiTable.clearSelection()
},
handleNodeClick(data) {
this.departmentId = data.id;
this.listEntmicroStaff();
this.departmentId = data.id
this.listEntmicroStaff()
},
listEntmicroStaff(staffName) {
let params = {
departmentId: this.departmentId,
staffName: staffName ? staffName : this.staffName,
merchantid: this.$globalState.session.merchantId,
};
this.$apis.emp.listEntmicroStaff(params).then((res) => {
this.tableEmpData = res;
});
},
merchantid: this.$globalState.session.merchantId
}
this.$apis.emp.listEntmicroStaff(params).then(res => {
this.tableEmpData = res
})
}
},
mounted() {
let clientHeight = document.documentElement.clientHeight;
this.treeHeight = clientHeight - 450;
this.listDepartmentTree();
},
};
let clientHeight = document.documentElement.clientHeight
this.treeHeight = clientHeight - 480
this.listDepartmentTree()
}
}
</script>
<style scoped lang="scss">
......@@ -131,7 +121,7 @@ export default {
.emp-scroll-panel {
min-height: 200px;
overflow: auto;
box-sizing: border-box;
box-sizing: border-box;
}
.popper-arrow {
border-top-width: 0;
......@@ -146,7 +136,7 @@ export default {
border-style: solid;
border-bottom-color: #e4e7ed;
&:after {
content: " ";
content: ' ';
border-width: 6px;
top: 1px;
margin-left: -6px;
......
<template>
<div className="scrm-main">
<div class="follow-header">
<p>1、跟进专员可以接收/发放活动任务,接收任务后可分发给客户。</p>
<p>2、拥有“添加外部联系人权限”的员工才允许设置为跟进专员。</p>
<div class="follow-process-a">企微管理员为员工“设置外部联系人权限”流程>></div>
<p>为不同的业务部门设置对应的跟进专员,方便后续业务部门创办相关的活动时能为其成员创建活动和发送企微消息,引导其跟进活动。跟进专员接收任务后可转发给客户/客户群,拥有“添加外部联系人权限”的员工才允许设置为跟进专员。<a class="follow-process-a" @click="jumpUrl('https://open.work.weixin.qq.com/help2/pc/16853?person_id=1&is_tencent=')">企微管理员为员工“设置外部联系人权限”流程>></a></p>
</div>
<div class="follow-form">
<div class="follow-form" :style="{'min-height': formHeight+'px'}">
<el-form :inline="true" :model="searchForm" class="follow-form-item">
<el-form-item label="跟进专员类型">
<el-select
......@@ -85,6 +84,7 @@ export default {
data() {
return {
formHeight: 300,
drawer: false,
direction: "rtl",
searchForm: {
......@@ -160,6 +160,9 @@ export default {
},
},
methods: {
jumpUrl(url) {
window.open(url)
},
openDrawer() {
this.drawer = true;
this.$nextTick(() => {
......@@ -236,6 +239,7 @@ export default {
mounted() {
this.listEntFollowerType();
this.handleSearch();
this.formHeight = document.documentElement.clientHeight - 190;
},
};
</script>
......@@ -248,11 +252,11 @@ export default {
font-size: 15px;
color: rgba(0, 0, 0, 0.65);
position: relative;
p {
// width: 70%;
}
.follow-process-a {
text-decoration: underline;
position: absolute;
right: 50px;
bottom: 10px;
line-height: 24px;
color: #5850ff;
cursor: pointer;
......
......@@ -17,7 +17,7 @@
</div>
<div class="accurate-use-btn">
<el-button type="primary" size="small">立即使用</el-button>
<el-button type="primary" size="small" @click="jumpSquare">立即使用</el-button>
</div>
</div>
</div>
......@@ -38,7 +38,7 @@
</div>
<div class="accurate-use-btn">
<el-button type="primary" size="small">立即使用</el-button>
<el-button type="primary" size="small" @click="jumpSquare">立即使用</el-button>
</div>
</div>
</div>
......@@ -52,10 +52,9 @@ export default {
return {};
},
methods: {
test() {
console.log("点击了按钮");
this.$messenger.send({ from: 11, message: "11111" });
},
jumpSquare() {
this.$history.push('/drainage/square/drainage')
}
},
};
</script>
......
......@@ -4,40 +4,46 @@
<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>
<el-popover placement="top" width="200" trigger="hover" content="累计至统计截止时间,门店各业务产值之和。业务包括:精品升级、商城(秒杀、商品、券)、门店会员服务套餐。">
<img src="@/assets/img/question.png" slot="reference" />
</el-popover>
</div>
<div class="view-title-num">¥ - -</div>
<div class="view-title-num">{{ totalOutputValue ? totalOutputValue : '¥ - -' }}</div>
</div>
<div class="view-chart">
<div class="view-chart-empty">
<output-echart :output="output"></output-echart>
<!-- <div class="view-chart-empty">
<img src="@/assets/img/empty.png" />
<div>暂无数据</div>
</div>
</div> -->
</div>
</div>
<div class="chart-home-right">
<div class="view-l-title">
<div class="view-title-desc">
<span>当日新增总产值</span>
<el-popover placement="top" width="200" trigger="hover" content="统计截止时间当天,各业务产值之和。">
<img src="@/assets/img/question.png" slot="reference" />
</el-popover>
</div>
<div class="view-title-num">¥ - -</div>
<div class="view-title-num">{{ currentDayTotalOutputValue ? currentDayTotalOutputValue : '¥ - -' }}</div>
</div>
<linechart echartId="customerId1" :echartData="totalOutputValueTrends" echartHeight="90"></linechart>
<div class="view-r-value">
<div class="view-value-panle">
<div class="view-value">当日新增精品升级产值</div>
<div class="view-value-price" style="color: #fe9c1c">¥ - -</div>
<div class="view-value-p">
<div class="view-value">当日新增精品升级产值</div>
<div class="view-value-price" style="color: #fe9c1c">{{ currentDayBoutiqueUpgradeTotalOutputValue ? currentDayBoutiqueUpgradeTotalOutputValue : '¥ - -' }}</div>
</div>
<linechart echartId="customerId2" :echartData="boutiqueUpgradeOutputValueTrends" echartHeight="70"></linechart>
</div>
<div class="view-value-panle">
<div class="view-value">当日新增权益产值</div>
<div class="view-value-price" style="color: #716aff">¥ - -</div>
<div class="view-value-p">
<div class="view-value">当日新增商城产值</div>
<div class="view-value-price" style="color: #716aff">{{ currentDayShopmallTotalOutputValue ? currentDayShopmallTotalOutputValue : '¥ - -' }}</div>
</div>
<linechart echartId="customerId3" :echartData="shopmallOutputValueTrends" echartHeight="70"></linechart>
</div>
</div>
</div>
......@@ -45,20 +51,66 @@
</template>
<script>
import linechart from './linechart'
import outputEchart from './output-echart'
export default {
name: "customerEchart",
name: 'customerEchart',
components: {
linechart,
outputEchart
},
data() {
return {
permissions: [1211],
};
output: {},
totalOutputValueTrends: [],
shopmallOutputValueTrends: [],
boutiqueUpgradeOutputValueTrends: [],
liveOutputValueTrends: [],
equityOutputValueTrends: [],
totalOutputValue: 0,
todayTotalOutputValue: 0,
todayShopmallTotalOutputValue: 0,
todayBoutiqueUpgradeTotalOutputValue: 0,
liveTotalOutputValue: 0,
currentDayTotalOutputValue: 0,
currentDayShopmallTotalOutputValue: 0,
currentDayLiveTotalOutputValue: 0,
currentDayEquityTotalOutputValue: 0,
currentDayBoutiqueUpgradeTotalOutputValue: 0
}
},
props: {
summaryTimeFomat: {
type: String
}
},
watch: {
summaryTimeFomat() {
this.getOutput()
}
},
methods: {
test() {
console.log("点击了按钮");
this.$messenger.send({ from: 11, message: "11111" });
},
getOutput() {
this.$apis.home.outputValue({ dataEndDateStr: this.summaryTimeFomat }).then(res => {
this.output = res
this.totalOutputValue = res.totalOutputValue
this.currentDayTotalOutputValue = res.currentDayTotalOutputValue
this.currentDayShopmallTotalOutputValue = res.currentDayShopmallTotalOutputValue
this.currentDayLiveTotalOutputValue = res.currentDayLiveTotalOutputValue
this.currentDayEquityTotalOutputValue = res.currentDayEquityTotalOutputValue
this.currentDayBoutiqueUpgradeTotalOutputValue = res.currentDayBoutiqueUpgradeTotalOutputValue
this.totalOutputValueTrends = res.totalOutputValueTrends
this.shopmallOutputValueTrends = res.shopmallOutputValueTrends
this.boutiqueUpgradeOutputValueTrends = res.boutiqueUpgradeOutputValueTrends
this.liveOutputValueTrends = res.liveOutputValueTrends
this.equityOutputValueTrends = res.equityOutputValueTrends
})
}
},
};
mounted() {
this.getOutput()
}
}
</script>
<style lang="scss" scoped>
......@@ -70,7 +122,6 @@ export default {
padding: 20px;
.view-chart {
width: 100%;
height: 258px;
display: flex;
justify-content: center;
align-items: center;
......@@ -94,7 +145,7 @@ export default {
width: 50%;
padding: 20px 40px;
.view-r-value {
margin-top: 100px;
margin-top: 10px;
display: flex;
.view-value-panle {
width: 50%;
......@@ -116,12 +167,12 @@ export default {
font-weight: 600;
color: #333333;
line-height: 18px;
.view-title-num {
font-size: 14px;
>span {
font-size: 26px;
}
.view-title-num {
font-size: 14px;
> span {
font-size: 26px;
}
}
.view-title-desc {
display: flex;
}
......
<template>
<div :id="echartId" class="chart-line"></div>
<div :id="echartId" class="chart-line" :style="{ height: echartHeight + 'px' }"></div>
</template>
<script>
import * as echarts from "echarts";
import * as echarts from 'echarts'
export default {
name: "linechart",
name: 'linechart',
props: {
echartId: {
type: String,
default: "",
default: ''
},
echartData: {
type: Array
},
echartHeight: {
type: Number,
default: 70
}
},
data() {
return {};
return {}
},
methods: {
getChartTotal() {
console.log(this.echartId);
var chartDom = document.getElementById(this.echartId);
var myChart = echarts.init(chartDom);
var option;
watch: {
echartData: {
handler(value) {
console.log(value, this.echartId)
let data = value.map(item => {
return item.outputValue
})
let dateTime = value.map(item => {
return item.dateTime
})
console.log(data)
this.getChartTotal(dateTime, data)
},
deep: true
}
},
methods: {
getChartTotal(dateTime, lineData) {
console.log(this.echartId)
var chartDom = document.getElementById(this.echartId)
var myChart = echarts.init(chartDom)
var option
option = {
xAxis: {
type: "category",
type: 'category',
boundaryGap: false,
show: false,
data: ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"],
data: dateTime
},
yAxis: {
type: 'value',
show: false
},
grid: {
bottom: 0,
top: 0,
},
yAxis: {
type: "value",
show: false,
top: 0
},
series: [
{
data: [1, 12, 33, 23, 45, 65, 4445],
type: "line",
symbol: "none",
data: lineData,
type: 'line',
symbol: 'none',
color: '#5850FF',
areaStyle: {
color: {
type: "linear",
type: 'linear',
x: 0,
y: 0,
x2: 0,
......@@ -55,34 +78,27 @@ export default {
colorStops: [
{
offset: 0,
color: "#5850FF", // 100% 处的颜色
color: '#5850FF' // 100% 处的颜色
},
{
offset: 1,
color: "#FFFFFF", // 0% 处的颜色
},
color: '#FFFFFF' // 0% 处的颜色
}
],
global: false, // 缺省为 false
},
},
},
],
};
option && myChart.setOption(option);
},
},
global: false // 缺省为 false
}
}
}
]
}
mounted() {
this.getChartTotal();
},
};
option && myChart.setOption(option)
}
}
}
</script>
<style scoped lang="scss">
.chart-line {
height: 100px;
}
.summary-header {
display: flex;
color: #3a3a3a;
......@@ -129,7 +145,7 @@ export default {
}
}
.expand-more {
margin: 20px 0px;
margin-bottom: 20px;
text-align: center;
height: 56px;
background: rgba(0, 0, 0, 0.02);
......@@ -139,6 +155,6 @@ export default {
color: #000000;
}
#main-customer {
height: 300px;
height: 360px;
}
</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-item" v-for="(item, index) in tools" :key="index" @click="jumpSqure(item.url)">
<div class="marketing-icon">
<div class="hot" v-if="item.status"><img src="@/assets/img/hot.png"></div>
<div class="hot" v-if="item.status"><img src="@/assets/img/hot.png" /></div>
<img :src="require('../../../assets/img/service/tool' + (index + 1) + '.png')" />
</div>
<div class="marketing-desc">{{ item.name }}</div>
......@@ -12,40 +12,41 @@
<script>
export default {
name: "marketingTools",
name: 'marketingTools',
data() {
return {
tools: [
{
name: "活码引流",
name: '活码引流',
url: '/drainage/channel/index'
},
{
name: "批量加好友",
name: '批量加好友',
url: '/drainage/friends/index'
},
{
name: "群发助手",
name: '群发助手',
status: 1,
url: '/marketing/customerTransform/index'
},
{
name: "企业素材库",
},
{
name: "权益裂变",
name: '秒杀活动',
status: 1,
url: '/marketing/seckillActivity/index'
},
{
name: "优惠券营销",
},
],
};
name: '优惠券营销',
url: '/marketing/couponManage/index'
}
]
}
},
methods: {
test() {
console.log("点击了按钮");
this.$messenger.send({ from: 11, message: "11111" });
},
},
};
jumpSqure(url) {
this.$history.push(url)
}
}
}
</script>
<style lang="scss" scoped>
......@@ -54,20 +55,21 @@ export default {
justify-content: space-around;
padding: 25px;
.marketing-item {
cursor: pointer;
margin: 0 auto;
text-align: center;
.marketing-icon {
position: relative;
width: 76px;
text-align: center;
.hot img{
.hot img {
position: absolute;
right: -10px;
top: 0px;
width: 28px;
height: auto;
}
>img {
> img {
width: 50px;
height: 50px;
margin: 4px auto;
......
......@@ -4,19 +4,19 @@
<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 class="operational-btn" @click="jumpSquare('/services/inSale/introduct')">立即使用</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 class="operational-btn" @click="jumpSquare('/services/inSale/upgrade')">立即使用</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 class="operational-btn" @click="jumpSquare('/services/inSale/introduct')">立即使用</div>
</div>
</div>
</template>
......@@ -26,13 +26,11 @@ export default {
name: "operationalSercives",
data() {
return {
permissions: [1211],
};
},
methods: {
test() {
console.log("点击了按钮");
this.$messenger.send({ from: 11, message: "11111" });
jumpSquare(url) {
this.$history.push(url)
},
},
};
......@@ -43,7 +41,7 @@ export default {
display: flex;
justify-content: space-around;
.operational-item {
padding: 20px 55px;
padding: 20px 0px;
margin-right: 30px;
text-align: center;
width: 33.33%;
......@@ -69,6 +67,10 @@ export default {
font-weight: 400;
color: #666666;
line-height: 24px;
height: 48px;
width: 72%;
margin: 0 auto;
text-align: center;
}
.operational-btn {
cursor: pointer;
......
<template>
<div class="output-panel">
<div id="echarts1"></div>
<div id="echartOutput"></div>
</div>
</template>
<script>
import * as echarts from 'echarts';
import * as echarts from 'echarts'
export default {
name: 'outputEchart',
name: 'echartOutput',
data() {
return {
permissions: [1211]
}
},
methods: {
test() {
console.log('点击了按钮')
this.$messenger.send({ from: 11, message: '11111' })
props: {
output: {
type: Object
}
},
mounted() {
var chartDom = document.getElementById('echarts1');
var myChart = echarts.init(chartDom);
var option;
option = {
tooltip: {
trigger: 'item'
},
legend: {
left: 'left'
watch: {
output() {
this.getOutput()
}
},
color: ['#FE9C1C','#716AFF','#3DA4F4'],
series: [
{
methods: {
getOutput() {
var chartDom = document.getElementById('echartOutput')
var myChart = echarts.init(chartDom)
var option
option = {
tooltip: {
trigger: 'item'
},
legend: {
left: 'left',
top: '5%',
data: [
{
name: '精品升级',
icon: 'circle',
},
{
name: '商城',
icon: 'circle',
},
{
name: '其他',
icon: 'circle',
}
]
},
color: ['#FE9C1C', '#716AFF', '#3DA4F4', '#5850FF', '#34911A'],
series: [
{
name: '访问来源',
type: 'pie',
center: ['50%', '58%'],
data: [
{value: 580, name: '精品升级'},
{value: 484, name: '权益'},
{value: 300, name: '其他'}
{ value: this.output.boutiqueUpgradeTotalOutputValueRadio, name: '精品升级' },
{ value: this.output.shopmallTotalOutputValueRadio, name: '商城' },
{ value: this.output.otherTotalOutputValueRadio, name: '其他' }
]
}
]
};
option && myChart.setOption(option);
}
]
}
option && myChart.setOption(option)
}
}
};
}
</script>
<style>
#echarts1 {
height: 300px;
}
</style>
\ No newline at end of file
<style lang="scss" scoped>
.output-panel {
width: 100%;
}
#echartOutput {
height: 280px;
}
</style>>
\ No newline at end of file
......@@ -7,10 +7,9 @@
<span>客户总数</span>
<el-popover
placement="top"
title="说明"
width="200"
trigger="hover"
content="累计至统计截止时间,旗下各门店的客户总数之和,按手机号和企微双重去重。"
content="累计至统计截止时间,门店的客户总数之和,按手机号和企业微信双重去重。"
>
<img src="@/assets/img/question.png" slot="reference" />
</el-popover>
......@@ -41,7 +40,7 @@
>人
</div>
<div class="view-loss-btn">
<el-button type="primary" size="small" :class="{'emp-btn': !notAddEntmicroCount}">立即召回</el-button>
<el-button type="primary" size="small" :class="{'emp-btn': !notAddEntmicroCount}" @click="getBackUp">立即召回</el-button>
</div>
</div>
</div>
......@@ -105,6 +104,9 @@ export default {
},
methods: {
getBackUp() {
this.$alert('敬请期待', '提示');
},
getViewData() {
this.$apis.home.getStore({ date: this.summaryTime }).then((res) => {
this.customerCount = res.customerCount;
......@@ -138,7 +140,7 @@ export default {
display: flex;
.view-prise-l {
width: 60%;
padding: 20px 40px 20px 20px;
padding: 0px 40px 20px 0px;
border-right: 1px solid rgba(0, 0, 0, 0.06);
.view-l-title {
display: flex;
......
......@@ -16,6 +16,7 @@
/>
<div
class="jump-mf-btn"
@click="jumpSqure"
:style="{
left: headWidth / 1.36 + 'px',
}"
......@@ -40,7 +41,7 @@
</div>
</div>
<overview-enterprise :summaryTime="summaryTime"></overview-enterprise>
<customer-echart></customer-echart>
<customer-echart :summaryTimeFomat="summaryTime"></customer-echart>
<div class="home-overview-content"></div>
<div class="home-statistics-title">精准营销</div>
<accurate-marketing></accurate-marketing>
......@@ -205,6 +206,9 @@ export default {
},
methods: {
jumpSqure() {
this.$history.push('/drainage/square/index')
},
handleNext(val) {
if (val == 3) {
this.guideStatus = false;
......
<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>
......@@ -19,27 +19,19 @@
<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 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">
<img src="@/assets/img/service/s2.png" />
</div>
</div>
<div class="service-content-cause">
<div class="service-cause-border" v-for="(item, index) in cause" :key="index">
<div class="service-cause-border" v-for="(item, index) in cause" :key="index" @click="jumpSquare(item.url)">
<div class="cause-icon">
<div class="hot" v-if="item.status"><img src="@/assets/img/hot.png" /></div>
<img
:src="require('../../assets/img/service/tool' + (index + 1) + '.png')"
/>
<img :src="require('../../assets/img/service/tool' + (index + 1) + '.png')" />
</div>
<div class="cause-name">{{ item.name }}</div>
</div>
......@@ -47,71 +39,63 @@
<hr />
</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>
<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-f scrm-f20">
您也可在线申请,我们会24小时内安排工作人员主动跟您联系!
</div>
<div class="service-form">
<div class="sevice-qrcode">
<img src="@/assets/img/qrcode.png" alt="" />
<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">
<div class="sevice-qrcode">
<img src="@/assets/img/qrcode.png" alt="" />
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</template>
<script>
const cause = [
{ name: "活码引流" },
{ name: "批量加好友" },
{ name: "群发助手",status: 1 },
{ name: "企业素材库" },
{ name: "权益裂变" },
{ name: "会员中心",status: 1 },
{ name: "分销裂变" },
{ name: "优惠券营销" },
];
const cause = [{ name: '活码引流', url: '/drainage/channel/index' }, { name: '批量加好友',url: '/drainage/friends/index' }, { name: '群发助手', status: 1 ,url: '/marketing/customerTransform/index'}, { name: '秒杀活动' ,url: '/marketing/seckillActivity/index'}, { name: '会员中心', status: 1 ,url: '/marketing/memberCenter/center'}, { name: '分销裂变',url: '/marketing/couponManage/index' }, { name: '优惠券营销',url: '/marketing/couponManage/index' }]
export default {
name: "index",
name: 'index',
data() {
return {
cause,
form: {
name: "",
phone: "",
remark: "",
},
};
name: '',
phone: '',
remark: ''
}
}
},
};
methods: {
jumpSquare(url) {
this.$history.push(url)
}
}
}
</script>
<style scoped lang="scss">
......@@ -205,6 +189,7 @@ export default {
padding: 15px;
.service-cause-border {
text-align: center;
cursor: pointer;
.cause-icon {
position: relative;
width: 76px;
......
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-button__orig-radio:checked+.el-radio-button__inner {
background-color: $defaultColor;
border-color: $defaultColor;
-webkit-box-shadow: -1px 0 0 0 $defaultColor;
box-shadow: -1px 0 0 0 $defaultColor
}
.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!