Commit 3500785f by ym

ui

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