Commit 3500785f by ym

ui

1 parent 600fe6a0
{
"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 newline at end of file
"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.4",
"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"
]
}
......@@ -49,7 +49,7 @@ export default {
this.myMessage = this.message
}
}
</script>
</script>
<style lang="scss">
.parent-child-communication {
......@@ -58,6 +58,6 @@ export default {
}
#app {
background: #F4F5FA;
padding-left: 40px;
padding: 0px 20px 20px 40px;
}
</style>
</style>
\ No newline at end of file
......@@ -7,11 +7,9 @@
* @returns
*/
import { http } from '@/main'
const sessionId = 'mini-e2d2767d-b50c-4258-973f-2d7c4c636ed5-rop'
const url = '/rop-scrm-entmicro/router'
const getChart = params => {
params.method = 'org.ore.api.home.view.chart'
params.sessionId = sessionId
return http({
url,
method: 'POST',
......@@ -22,7 +20,6 @@ const getChart = params => {
const getSort = params => {
params.method = 'org.ore.api.home.view.sort'
params.sessionId = sessionId
return http({
url,
......@@ -33,7 +30,6 @@ const getSort = params => {
}
const getStore = params => {
params.method = 'org.ore.api.home.view.store.data'
params.sessionId = sessionId
return http({
url,
......@@ -44,7 +40,6 @@ const getStore = params => {
}
const getShop = params => {
params.method = 'org.ore.api.home.view.shop.data'
params.sessionId = sessionId
return http({
url,
......@@ -55,7 +50,16 @@ const getShop = params => {
}
const getView = params => {
params.method = 'org.ore.api.home.view.data'
params.sessionId = sessionId
return http({
url,
method: 'POST',
data: params,
sign: true
})
}
const findLoginCount = params => {
params.method = 'org.ore.api.common.findLoginCount'
return http({
url,
......@@ -69,5 +73,6 @@ export default {
getView,
getSort,
getShop,
getStore
getStore,
findLoginCount
}
\ No newline at end of file
......@@ -108,4 +108,16 @@ img {
.scrm-box-f {
background: #FFFFFF;
box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.10);
}
::-webkit-scrollbar {
/*滚动条整体样式*/
width: 8px;
height: 1px;
}
::-webkit-scrollbar-thumb {
/*滚动条里面小方块*/
border-radius: 7px;
background-color: #E9E8FF;
}
\ No newline at end of file
......@@ -17,7 +17,7 @@ module.exports = {
code_message_map: {}
},
request: {
baseURL: 'http://192.168.3.191:8064',
baseURL: 'https://scrm.test.glsx.com.cn',
// 设置超时时间
timeout: 180000,
// 携带凭证
......
......@@ -11,12 +11,6 @@ const staticRoutes = Object.freeze([{
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/index',
component: resolve => require([`@/views/enterpriseWechat/index.vue`], resolve),
......
......@@ -28,6 +28,7 @@ export async function bootstrap({ name, id, history, common, messenger, globalSt
subscribe({ messenger })
}
export async function mount(props) {
console.log('11111', props)
const insts = render(props.routerBase, routes)
router = insts.router
instance = insts.vm
......
......@@ -18,16 +18,15 @@ const render = (base, routes) => {
mode: 'history'
})
router.beforeEach((to, from, next) => {
if (from.path == '/' && to.path == '/home/index') {
if (from.path == '/' && (to.path == '/home/index' || to.path == '/ehome/index')) {
next();
// next('/enterpriseWechat/index')
// Vue.prototype.$apis.ww.getStatus({}).then((res) => {
// if (res.status != 'SUCCESS') {
// next('/enterpriseWechat/index')
// } else {
// next()
// }
// })
Vue.prototype.$apis.ww.getStatus({}).then((res) => {
// if (res.status != 'SUCCESS') {
// next('/enterpriseWechat/index')
// } else {
// next()
// }
})
} else {
next();
}
......
......@@ -97,7 +97,7 @@
<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>
<el-button type="primary" @click="jumpStore">确 定</el-button>
</span>
</el-dialog>
</div>
......@@ -122,6 +122,10 @@ export default {
},
methods: {
jumpStore() {
this.dialogVisible = false;
this.$history.push('/settings/account/index');
},
tabRank() {
this.getSort();
},
......
......@@ -4,7 +4,14 @@
<div class="summary-title">汇总</div>
<div class="summary-time">
<span>统计截止至</span>
<el-date-picker @change="changeTime" format="yyyy-MM-dd" v-model="summaryTime" type="date" placeholder="选择日期" :clearable="false">
<el-date-picker
@change="changeTime"
format="yyyy-MM-dd"
v-model="summaryTime"
type="date"
placeholder="选择日期"
:clearable="false"
>
</el-date-picker>
</div>
</div>
......@@ -22,9 +29,10 @@
<img src="@/assets/img/question.png" slot="reference" />
</el-popover>
</div>
<div class="summary-item-total">{{ customerCount }}</div>
<div class="summary-item-total">{{ customerCount ? customerCount : "- -" }}</div>
<div class="summary-item-number">
未加企微客户数: <span>{{ notAddEntmicroCount }}</span>
未加企微客户数:
<span>{{ notAddEntmicroCount ? notAddEntmicroCount : "- -" }}</span>
</div>
<linechart :echartId="echartId1" :echartData="custAddList"></linechart>
</div>
......@@ -41,9 +49,11 @@
<img src="@/assets/img/question.png" slot="reference" />
</el-popover>
</div>
<div class="summary-item-total">{{ addEntmicroCount }}</div>
<div class="summary-item-total">
{{ addEntmicroCount ? addEntmicroCount : "- -" }}
</div>
<div class="summary-item-number">
当日新增: <span>{{ newEntmicroCount }}</span>
当日新增: <span>{{ newEntmicroCount ? newEntmicroCount : "- -" }}</span>
</div>
<linechart :echartId="echartId2" :echartData="custEntmicroAdds"></linechart>
</div>
......@@ -60,9 +70,12 @@
<img src="@/assets/img/question.png" slot="reference" />
</el-popover>
</div>
<div class="summary-item-total">{{ entmicroLoseCount }}</div>
<div class="summary-item-total">
{{ entmicroLoseCount ? entmicroLoseCount : "- -" }}
</div>
<div class="summary-item-number">
当日新增: <span>{{ todayEntmicroLoseCount }}</span>
当日新增:
<span>{{ todayEntmicroLoseCount ? todayEntmicroLoseCount : "- -" }}</span>
</div>
<linechart :echartId="echartId3" :echartData="custLoseList"></linechart>
</div>
......@@ -147,22 +160,24 @@ export default {
this.getChart();
},
getViewData() {
this.$apis.home.getShop({
date: this.summaryTime
}).then((res) => {
this.customerCount = res.customerCount;
this.newCustomerCount = res.newCustomerCount;
this.addEntmicroCount = res.addEntmicroCount;
this.notAddEntmicroCount = res.notAddEntmicroCount;
this.newEntmicroCount = res.newEntmicroCount;
this.entmicroLoseCount = res.entmicroLoseCount;
this.todayEntmicroLoseCount = res.todayEntmicroLoseCount;
this.packmenberCount = res.packmenberCount;
this.todayAddPackmenberCount = res.todayAddPackmenberCount;
});
this.$apis.home
.getShop({
date: this.summaryTime,
})
.then((res) => {
this.customerCount = res.customerCount;
this.newCustomerCount = res.newCustomerCount;
this.addEntmicroCount = res.addEntmicroCount;
this.notAddEntmicroCount = res.notAddEntmicroCount;
this.newEntmicroCount = res.newEntmicroCount;
this.entmicroLoseCount = res.entmicroLoseCount;
this.todayEntmicroLoseCount = res.todayEntmicroLoseCount;
this.packmenberCount = res.packmenberCount;
this.todayAddPackmenberCount = res.todayAddPackmenberCount;
});
},
getChart() {
this.$apis.home.getChart({ day: 30,date: this.summaryTime}).then((res) => {
this.$apis.home.getChart({ day: 30, date: this.summaryTime }).then((res) => {
this.custAddList = res.custAddList;
this.custEntmicroAdds = res.custEntmicroAdds;
this.custLoseList = res.custLoseList;
......@@ -180,7 +195,7 @@ export default {
let monthAverg = custEntmicroAddsHalf.map((item) => {
return item.monthAverg;
});
let monthAvergLoss = custLoseListHalf.map((item) => {
let monthAvergLoss = custLoseListHalf.map((item) => {
return item.monthAverg;
});
var chartDom = document.getElementById("main-customer");
......@@ -195,14 +210,14 @@ export default {
let Averg;
if (params.seriesName == "每日新增企微用户") {
circleColor = "#5850FF";
Averg = monthAverg[params.dataIndex]
Averg = monthAverg[params.dataIndex];
}
if (params.seriesName == "每日新增产值") {
circleColor = "#2CCA74";
}
if (params.seriesName == "每日企微消失用户") {
circleColor = "#FF6D00";
Averg = monthAvergLoss[params.dataIndex]
Averg = monthAvergLoss[params.dataIndex];
}
return (
params.name +
......@@ -213,7 +228,7 @@ export default {
params.value +
"<br>" +
`<span style="display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:${circleColor};"></span>` +
(new Date(params.name).getMonth()+1) +
(new Date(params.name).getMonth() + 1) +
"月均值:" +
Averg
);
......
......@@ -2,7 +2,11 @@
<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="syncEntmicroIsOutsiderStaff"
<el-button
size="small"
slot="append"
type="primary"
@click="syncEntmicroIsOutsiderStaff"
>同步有外部联系人权限的员工</el-button
>
</div>
......@@ -19,6 +23,7 @@
{{ tag.staffName }}
</el-tag>
<el-input
size="small"
v-model.trim="newTag"
placeholder="选择员工"
@input="inputTag"
......@@ -26,9 +31,9 @@
></el-input>
</div>
<el-button class="sale-select-btn" type="primary" @click="addEmp"
<div><el-button size="small" class="sale-select-btn" type="primary" @click="addEmp"
>确定</el-button
>
></div>
</div>
<div>
<div class="select-sale-panel">
......@@ -37,7 +42,7 @@
</div>
</div>
</el-form-item>
<el-form-item label="请选择跟进员工类型:">
<el-form-item label="请选择跟进员工类型">
<div class="emp-type">
<div
@click="handleType(index)"
......@@ -52,23 +57,24 @@
</div>
<div class="sale-select">
<el-input
size="small"
v-model="empTypeValue"
placeholder="添加类型名称"
maxlength="8"
show-word-limit
>
</el-input>
<el-button class="sale-select-btn" type="primary" @click="addEmpType"
<div><el-button size="small" class="sale-select-btn" type="primary" @click="addEmpType"
>新增</el-button
>
></div>
</div>
<div class="sale-type-desc">
跟进员工类型最多新增30个,已新增{{ empType.length - 2 }}个
</div>
</el-form-item>
<el-form-item>
<el-button @click="onCancel">取消</el-button>
<el-button type="primary" @click="onSubmit">确定</el-button>
<el-form-item style="text-align: center">
<el-button @click="onCancel" size="small">取消</el-button>
<el-button type="primary" @click="onSubmit" size="small">确定</el-button>
</el-form-item>
</el-form>
</div>
......@@ -87,11 +93,7 @@ export default {
return {
addForm: {},
typeIndex: 0,
empType: [
{ name: "新车跟进专员", status: 1 },
{ name: "售后跟进专员", status: 1 },
{ name: "sdfsdfsd" },
],
empType: [],
empTypeValue: "",
newTag: "",
innerTags: [],
......@@ -100,6 +102,10 @@ export default {
},
methods: {
init() {
(this.newTag = ""), (this.innerTags = []);
this.empTypeValue = "";
},
listEntFollowerType() {
this.$apis.emp
.listEntFollowerType({ merchantId: this.$globalState.session.merchantId })
......@@ -177,7 +183,13 @@ export default {
});
},
onSubmit() {
console.log(this.innerTags);
if(this.innerTags.length == 0) {
this.$message({
message: "请选择员工",
type: "error",
});
return
}
let userIds = [];
this.innerTags.forEach((item) => {
userIds.push(item.userId);
......@@ -203,6 +215,7 @@ export default {
}
.sale-select {
display: flex;
align-items: center;
}
.sale-select-btn {
margin-left: 8px;
......@@ -220,7 +233,7 @@ export default {
&-btn {
cursor: pointer;
display: inline-block;
padding: 10px 15px;
padding: 8px 10px;
margin-bottom: 10px;
margin-right: 10px;
position: relative;
......@@ -255,6 +268,8 @@ export default {
display: inline-block;
outline: none;
padding: 0 10px 0 5px;
line-height: 32px;
height: 35px;
transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
width: 100%;
display: flex;
......@@ -269,21 +284,23 @@ export default {
.el-tag {
margin-right: 4px;
height: 26px;
line-height: 24px;
}
.tag-input {
background: transparent;
border: none !important;
font-size: 14px;
height: 40px;
height: 32px;
outline: none;
padding-left: 0;
width: 100px;
}
.el-input-tag--mini .tag-input {
height: 28px;
line-height: 28px;
height: 24px;
line-height: 24px;
}
.el-input-tag--small .tag-input {
......@@ -292,7 +309,7 @@ export default {
}
.el-input-tag--medium .tag-input {
height: 36px;
line-height: 36px;
height: 32px;
line-height: 32px;
}
</style>
\ No newline at end of file
<template>
<div class="select-emp-panel">
<div class="scrm-p10 emp-tree-panel" :style="{
height: treeHeight + 'px',
}">
<div class="scrm-p10 emp-tree-panel">
<div class="popper-arrow"></div>
<div class="tree-title">所在门店/部门</div>
<el-tree
:data="listTree"
:expand-on-click-node="false"
highlight-current
:props="defaultProps"
@node-click="handleNodeClick"
></el-tree>
<div
class="emp-scroll-panel"
:style="{
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>
</div>
</div>
<el-col class="scrm-p10 emp-table-panel">
<el-col
class="scrm-p10 emp-table-panel"
:style="{
height: treeHeight+20 + 'px',
}"
>
<GLTable
ref="saleTable"
:tableData="tableEmpData"
......@@ -75,24 +85,24 @@ export default {
this.$refs.saleTable.$refs.salelistMutiTable.clearSelection();
},
handleNodeClick(data) {
this.departmentId = data.id
this.departmentId = data.id;
this.listEntmicroStaff();
},
listEntmicroStaff(staffName) {
let params = {
departmentId: this.departmentId,
staffName: staffName?staffName:this.staffName,
staffName: staffName ? staffName : this.staffName,
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.treeHeight = clientHeight - 450;
this.listDepartmentTree();
this.listEntmicroStaff();
},
......@@ -109,6 +119,11 @@ export default {
background: #ffffff;
box-shadow: 0px 2px 12px 0px rgba(0, 0, 0, 0.06);
border: 1px solid #e4e7ed;
.emp-scroll-panel {
min-height: 200px;
overflow: auto;
box-sizing: border-box;
}
.popper-arrow {
border-top-width: 0;
border-width: 6px;
......@@ -139,6 +154,8 @@ export default {
}
.emp-table-panel {
flex: 1;
min-height: 200px;
overflow: auto;
margin-top: 10px;
background: #ffffff;
box-shadow: 0px 2px 12px 0px rgba(0, 0, 0, 0.06);
......
......@@ -38,7 +38,7 @@
size="small"
icon="el-icon-plus"
type="primary"
@click="drawer = true"
@click="openDrawer"
class="scrm-mr10"
>跟进专员</el-button
>
......@@ -59,13 +59,14 @@
</GLTable>
</div>
<el-drawer
class="drawer-panel"
size="60%"
title="添加跟进员工"
:visible.sync="drawer"
:direction="direction"
:before-close="handleClose"
>
<add-sale @closeDrawer="closeDrawer" @handSelectdEmp="handSelectdEmp"></add-sale>
<add-sale ref="drawerForm" @closeDrawer="closeDrawer" @handSelectdEmp="handSelectdEmp"></add-sale>
</el-drawer>
</div>
</template>
......@@ -150,6 +151,10 @@ export default {
},
methods: {
openDrawer() {
this.drawer = true;
// this.$refs.drawerForm.init();
},
beforeSearchFn() {
return new Promise((resolve) => {
// 调接口前,操作
......@@ -230,14 +235,14 @@ export default {
<style scoped lang="scss">
.follow-header {
background: #ffffff;
border: 1px solid #5850ff;
border-radius: 4px;
line-height: 27px;
line-height: 20px;
padding: 10px 20px;
font-size: 15px;
color: rgba(0, 0, 0, 0.65);
position: relative;
.follow-process-a {
text-decoration: underline;
position: absolute;
right: 50px;
bottom: 10px;
......@@ -259,4 +264,7 @@ export default {
}
}
}
.drawer-panel {
}
</style>
\ No newline at end of file
......@@ -101,11 +101,13 @@ export default {
color: #000000;
line-height: 22px;
margin-bottom: 10px;
text-align: left;
}
.accurate-desc {
font-size: 14px;
font-weight: 400;
color: #999999;
text-align: left;
line-height: 20px;
}
}
......
......@@ -74,7 +74,7 @@ export default {
box-sizing: border-box;
.info-title {
font-size: 20px;
font-weight: 500;
font-weight: 600;
color: #333333;
line-height: 24px;
letter-spacing: 1px;
......
......@@ -4,41 +4,42 @@
<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>
<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">{{customerCount}}人</div>
<div class="view-title-num">{{ customerCount ? customerCount : "- -" }}人</div>
</div>
<div class="view-num-panel">
<div class="view-num-y">
<img
class="accurate-img"
src="@/assets/img/home/count1.png"
alt=""
/>
<img class="accurate-img" src="@/assets/img/home/count1.png" alt="" />
<div class="view-customer-desc">企微客户数</div>
<div class="view-customer-num">{{addEntmicroCount}}人</div>
<div class="view-customer-num">
{{ addEntmicroCount ? addEntmicroCount : "- -" }}人
</div>
</div>
<div class="view-num-n">
<img
class="accurate-img"
src="@/assets/img/home/count2.png"
alt=""
/>
<img class="accurate-img" src="@/assets/img/home/count2.png" alt="" />
<div class="view-customer-desc">未加企微客户数</div>
<div class="view-customer-num">{{notAddEntmicroCount}}人</div>
<div class="view-customer-num">
{{ notAddEntmicroCount ? notAddEntmicroCount : "- -" }}人
</div>
</div>
</div>
<div class="view-l-loss">
<div class="view-loss-desc">企微流失客户总数<span>{{entmicroLoseCount}}</span>人</div>
<div class="view-loss-desc">
企微流失客户总数<span>{{
entmicroLoseCount ? entmicroLoseCount : "- -"
}}</span
>人
</div>
<div class="view-loss-btn">
<el-button type="primary" size="small">立即召回</el-button>
</div>
......@@ -46,15 +47,29 @@
</div>
<div class="view-prise-r">
<div class="view-prise-h">
<div class="view-h-title">当日新增客户数<span>{{newCustomerCount}}人</span></div>
<div class="view-h-desc">当日新增企微客户数:{{addEntmicroCount}}人</div>
<div class="view-h-title">
当日新增客户数<span>{{ newCustomerCount ? newCustomerCount : "- -" }}人</span>
</div>
<div class="view-h-desc">
当日新增企微客户数:{{ addEntmicroCount ? addEntmicroCount : "- -" }}人
</div>
</div>
<div class="view-prise-h">
<div class="view-h-title">当日新增群客户数<span>{{todayAddPackmenberCount}}人</span></div>
<div class="view-h-desc">群客户总数:{{packmenberCount}}人</div>
<div class="view-h-title">
当日新增群客户数<span
>{{ todayAddPackmenberCount ? todayAddPackmenberCount : "- -" }}人</span
>
</div>
<div class="view-h-desc">
群客户总数:{{ packmenberCount ? packmenberCount : "- -" }}人
</div>
</div>
<div class="view-prise-f">
<div class="view-h-title">当日企微流失数<span>{{todayEntmicroLoseCount}}人</span></div>
<div class="view-h-title">
当日企微流失数<span
>{{ todayEntmicroLoseCount ? todayEntmicroLoseCount : "- -" }}人</span
>
</div>
</div>
</div>
</div>
......@@ -65,6 +80,12 @@
export default {
name: "overviewEnterprise",
props: {
summaryTime: {
type: String,
},
},
data() {
return {
customerCount: 0,
......@@ -78,19 +99,16 @@ export default {
todayAddPackmenberCount: 0,
};
},
props: {
summaryTime: {
type: String
}
},
watch: {
summaryTime() {
this.getViewData()
}
this.getViewData();
},
},
methods: {
getViewData() {
this.$apis.home.getStore({date: this.summaryTime}).then((res) => {
this.$apis.home.getStore({ date: this.summaryTime }).then((res) => {
this.customerCount = res.customerCount;
this.newCustomerCount = res.newCustomerCount;
this.addEntmicroCount = res.addEntmicroCount;
......@@ -103,9 +121,10 @@ export default {
});
},
},
mounted() {
this.getViewData();
}
},
};
</script>
......@@ -115,7 +134,7 @@ export default {
.view-prise-l {
width: 60%;
padding: 20px 40px 20px 20px;
border-right: 1px solid rgba(0,0,0,.06);
border-right: 1px solid rgba(0, 0, 0, 0.06);
.view-l-title {
display: flex;
justify-content: space-between;
......@@ -124,7 +143,7 @@ export default {
color: #333333;
line-height: 18px;
.view-title-desc {
display: flex;
display: flex;
}
img {
width: 14px;
......@@ -144,8 +163,8 @@ export default {
display: inline-block;
}
.view-num-y {
width: 25%;
text-align: center;
width: 25%;
text-align: center;
.view-customer-desc {
font-size: 14px;
font-weight: 400;
......@@ -161,8 +180,8 @@ export default {
}
}
.view-num-n {
width: 25%;
text-align: center;
width: 25%;
text-align: center;
.view-customer-desc {
font-size: 14px;
font-weight: 400;
......@@ -195,7 +214,7 @@ export default {
}
}
.view-prise-r {
margin-left: 60px;
margin-left: 60px;
width: 40%;
.view-prise-h {
padding-bottom: 30px;
......
......@@ -2,7 +2,8 @@
<div class="main">
<div class="main-panel" :class="{ 'main-isScroll2': guideStatus }">
<div class="main-left">
<div class="header-panel">
<div class="header-panel" :style="{
height: headHeight + 'px'}">
<img
class="info-consulting-icon"
src="@/assets/img/home/home-header.png"
......@@ -15,6 +16,7 @@
<div class="summary-time">
<span>统计截止至 </span>
<el-date-picker
size="mall"
format="yyyy-MM-dd"
v-model="summaryTime"
type="date"
......@@ -143,6 +145,7 @@
}"
></div>
</div>
<div class="box-fixed" v-if="guideStatus"></div>
</div>
</template>
......@@ -171,6 +174,7 @@ export default {
summaryTime: util.getBeforeDate(),
guideStatus: false,
step: 1,
headHeight: 0,
guideWidth: "",
guideHeight: "",
guideLeft: 0,
......@@ -193,15 +197,14 @@ export default {
}
},
getRezie() {
this.borderLeft = document.querySelector(".el-main").offsetLeft + 5;
this.borderTop = document.querySelector(".el-main").offsetTop + 5;
this.borderLeft = document.querySelector(".el-main").offsetLeft + 38;
this.borderTop = document.querySelector(".el-main").offsetTop;
if (this.step == 1) {
this.guideWidth = document.querySelector(".header-panel").offsetWidth;
this.guideHeight = document.querySelector(".header-panel").offsetHeight;
this.guideWidth = document.querySelector(".header-panel").offsetWidth + 20;
this.guideHeight = this.headHeight;
this.imgWidth = this.guideWidth / 2;
this.imgHeight = (this.imgWidth * 246) / 541;
this.guideLeft =
document.querySelector(".header-panel").offsetLeft + this.borderLeft;
this.guideLeft = this.borderLeft;
this.guideTop =
document.querySelector(".header-panel").offsetTop + this.borderTop;
} else if (this.step == 2) {
......@@ -213,7 +216,7 @@ export default {
document.querySelector(".consult-box").offsetLeft + this.borderLeft;
this.guideTop = document.querySelector(".consult-box").offsetTop + this.borderTop;
} else {
let top = document.querySelector(".accurate-sercives").offsetTop + 100;
let top = document.querySelector(".accurate-sercives").offsetTop + 150;
this.guideLeft =
document.querySelector(".operational-panel-s").offsetLeft + this.borderLeft;
this.guideTop =
......@@ -229,21 +232,37 @@ export default {
this.imgHeight = (this.imgWidth * 222) / 668;
}
},
findLogin() {
this.$apis.home.findLoginCount({loginType: 1}).then((res) => {
if (res) {
this.guideStatus = true;
this.getRezie();
window.addEventListener("resize", () => {
this.getRezie();
});
}
});
},
},
mounted() {
this.getRezie();
window.addEventListener("onresize", () => {
this.getRezie();
});
this.headHeight = document.querySelector(".header-panel").offsetWidth / 8;
this.findLogin();
},
};
</script>
</script>
<style lang="scss" scoped>
.box-fixed {
position: fixed;
width: 100%;
height: 100%;
left: 0px;
top: 0px;
background: rgba(0, 0, 0, 0.1);
}
.header-panel {
width: 100%;
height: 140px;
position: relative;
.jump-mf-btn {
position: absolute;
......@@ -255,18 +274,17 @@ export default {
color: #ffffff;
line-height: 12px;
cursor: pointer;
bottom: 10px;
right: 21%;
bottom: 15px;
right: 20.6%;
}
> img {
width: 100%;
height: 140px;
height: auto;
}
}
.main-isScroll2 {
position: absolute;
overflow-y: hidden;
width: 100%;
height: 100%;
}
.main-panel {
......@@ -276,14 +294,19 @@ export default {
display: flex;
justify-content: space-between;
align-items: center;
/deep/ .el-date-editor.el-input, .el-date-editor.el-input__inner {
winth: 100px;
line-height: 32px;
height: 32px;
}
}
.home-statistics-title {
font-size: 20px;
font-weight: 500;
font-weight: 600;
color: #333333;
line-height: 20px;
letter-spacing: 1px;
margin: 20px 0;
margin: 30px 0px 20px;
}
.operational-panel-s {
margin-top: 20px;
......@@ -354,4 +377,4 @@ export default {
position: absolute;
}
}
</style>
</style>
\ No newline at end of file
......@@ -112,7 +112,7 @@ export default {
};
},
};
</script>
</script>
<style scoped lang="scss">
.service-panel {
......@@ -127,7 +127,7 @@ export default {
display: flex;
.service-active-l {
width: 50%;
margin-top: 100px;
margin-top: 150px;
}
.service-active-r {
width: 50%;
......@@ -323,4 +323,4 @@ export default {
}
}
}
</style>
</style>
\ No newline at end of file
......@@ -20,7 +20,7 @@ const cdn = {
}
module.exports = {
outputDir: `../dist/${packageName}`,
publicPath: node_env ? baseUrl : '/',
// publicPath: node_env ? baseUrl : '/',
assetsDir: 'static',
configureWebpack: {
resolve: {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!