Commit 07a71de2 by ym

bug

1 parent 5ebffb4e
{
"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.0.8",
"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",
"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"
]
}
"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
module.exports = {
plugins: {
autoprefixer: {}
}
}
\ No newline at end of file
......@@ -16,7 +16,7 @@
<% for (var i in htmlWebpackPlugin.options.cdn && htmlWebpackPlugin.options.cdn.js) { %>
<link href="<%= htmlWebpackPlugin.options.cdn.js[i] %>" rel="preload" as="script" />
<% } %>
<title>微前端子应用:博客</title>
<title>首页</title>
</head>
<body>
......
......@@ -107,11 +107,15 @@ img {
::-webkit-scrollbar {
/*滚动条整体样式*/
width: 6px;
height: 1px;
height: 4px;
}
::-webkit-scrollbar-thumb {
/*滚动条里面小方块*/
border-radius: 4px;
background-color: rgba(144, 147, 153, .3);
}
.glsx-table .line-ellipsis {
display: inline;
}
\ No newline at end of file

50.6 KB | W: | H:

42.9 KB | W: | H:

src/assets/img/home/cl.png
src/assets/img/home/cl.png
src/assets/img/home/cl.png
src/assets/img/home/cl.png
  • 2-up
  • Swipe
  • Onion skin

47.8 KB | W: | H:

60 KB | W: | H:

src/assets/img/home/yx.png
src/assets/img/home/yx.png
src/assets/img/home/yx.png
src/assets/img/home/yx.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -239,7 +239,8 @@ export default {
// 多选
handleSelect(val) {
this.mutiSelectArr[this.tableParams.mutiSelectName] = val
this.mutiSelectArr[this.tableParams.mutiSelectName] = val;
this.$emit('selectionTable', val)
},
// 清空多选
......@@ -252,12 +253,8 @@ export default {
//navHeight 传值底部高度
var baseNavEle = document.querySelector('.scrm-base-nav')
var baseSubNavEle = document.querySelector('.scrm-base-sub-nav')
var baseNavEleHeight = 0
var baseSubNavEleHeight = 0
if (baseNavEle && baseNavEle) {
baseNavEleHeight = baseNavEle.clientHeight //60
baseSubNavEleHeight = baseSubNavEle.clientHeight //14
}
var baseNavEleHeight = baseNavEle?baseNavEle.clientHeight : 0;
var baseSubNavEleHeight = baseSubNavEle?baseSubNavEle.clientHeight : 0
let paginationHeight
if (document.querySelector('.el-pagination')) {
paginationHeight = document.querySelector('.el-pagination').clientHeight + 20
......@@ -347,8 +344,6 @@ export default {
margin: 10px 0;
}
.glsx-table .line-ellipsis {
display: -webkit-box;
width: 100%;
overflow: hidden;
text-overflow: ellipsis;
/* -webkit-line-clamp: 2; */
......
import Vue from 'vue'
import { Message,Autocomplete,Popover,Tag,Tooltip, Table, TableColumn, Steps, Step, Loading, Drawer, Pagination, Button, ButtonGroup, Form, FormItem, Input, Radio, RadioGroup, Checkbox, CheckboxGroup, Switch, Select, Option, TimePicker,Row, Col, DatePicker, Tree } from 'element-ui'
import { Message, Autocomplete, Popover, Tag, Tooltip, Table, TableColumn, Steps, Step, Loading, Drawer, Pagination, Button, ButtonGroup, Form, FormItem, Input, Radio, RadioGroup, Checkbox, CheckboxGroup, Switch, Select, Option, TimePicker, Row, Col, DatePicker, Tree } from 'element-ui'
Vue.use(Button)
Vue.use(ButtonGroup)
Vue.use(Form)
Vue.use(FormItem)
Vue.use(Input)
Vue.use(Radio)
Vue.use(RadioGroup)
Vue.use(Checkbox)
Vue.use(CheckboxGroup)
Vue.use(Switch)
......
......@@ -3,7 +3,6 @@ import Vue from 'vue'
import { fetchConfig } from '@/config'
import ElementUI from 'element-ui'
import { GLButton, GLTable } from 'glsx-components' //权限按钮 (根据权限动态创建)
// import glsxTable from 'glsx-table'
import { getRoutes } from '@/router'
import render from './render'
Vue.use(ElementUI)
......@@ -17,11 +16,9 @@ let router = null
let instance = null
export async function bootstrap({ name, id, history, common, messenger, globalState }) {
const { response, request, sign, secret } = await fetchConfig()
console.log(request)
Vue.prototype.$history = history
Vue.prototype.$messenger = messenger
Vue.prototype.$globalState = globalState
console.log(globalState)
Vue.prototype.$common = common
Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: ElementUI.Message.error, headers: { token: globalState.session.token } })
// Vue.prototype.$setGlobalState = globalState.actions.setGlobalState
......
......@@ -19,16 +19,21 @@ const render = (base, routes) => {
})
router.beforeEach((to, from, next) => {
let modelStatus = false;
if (Vue.prototype.$globalState.session.merchantModel == 1 && Vue.prototype.$globalState.session.accountLevel == 1) {
let menu = JSON.parse(sessionStorage.getItem('SCRM_BASE_MENULIST'));
let menuStatus = menu[0].children.find(item => {
return item.path.indexOf('enterpriseWechat/index') != -1
})
if (menuStatus && Vue.prototype.$globalState.session.merchantModel == 1 && Vue.prototype.$globalState.session.accountLevel == 1) {
modelStatus = true;
}
if (Vue.prototype.$globalState.session.merchantModel == 2 && Vue.prototype.$globalState.session.accountLevel == 4) {
if (menuStatus && Vue.prototype.$globalState.session.merchantModel == 2 && Vue.prototype.$globalState.session.accountLevel == 4) {
modelStatus = true;
}
if (from.path == '/' && (to.path == '/home/index' || to.path == '/ehome/index') && modelStatus) {
if (!sessionStorage.getItem('wxStatus') && (to.path == '/home/index' || to.path == '/ehome/index') && modelStatus) {
Vue.prototype.$apis.ww.getStatus({}).then((res) => {
if (res.status != 'SUCCESS') {
next('/enterpriseWechat/index')
sessionStorage.setItem('wxStatus', 1)
} else {
next()
}
......
......@@ -10,7 +10,7 @@
import Vue from 'vue'
import { message } from '@/plugins/element.js'
import { fetchConfig } from '@/config'
import { GLButton } from 'glsx-components' //权限按钮 (根据权限动态创建)
// import { GLButton } from 'glsx-components' //权限按钮 (根据权限动态创建)
import { Http, utils } from 'glsx-common'
import render from './render'
import { routes } from '@/router'
......@@ -18,6 +18,6 @@ export async function start() {
if (window.__POWERED_BY_QIANKUN__) return
const { response, request, sign, secret } = await fetchConfig()
Vue.prototype.$http = new Http({ response, request, sign, secret, alert: message.error, headers: { token: '1112223333444' } })
Vue.use(GLButton, { permissions: ['1-1-1-1', '2-1-1-1', '3-1-1-1'] })
// Vue.use(GLButton, { permissions: ['1-1-1-1', '2-1-1-1', '3-1-1-1'] })
render('/', routes)
}
\ No newline at end of file
......@@ -11,8 +11,26 @@ util.cloneText = function(message) {
}
util.getBeforeDate = function(sign = '-') {
let day = new Date();
day.setTime(day.getTime() - 24 * 60 * 60 * 1000);
var s = day.getFullYear() + sign + (day.getMonth() + 1) + sign + day.getDate();
let month = day.getMonth() + 1;
let date = day.getDate();
if (month < 10) month = '0' + month;
if (date < 10) date = '0' + date;
var s = day.getFullYear() + sign + month + sign + date;
return s;
}
util.getBeforeMonth = function(days) {
let month = new Date().getMonth() + 1;
let year = new Date().getFullYear();
let arr = new Array();
for (let i = 0; i < days; i++) {
if (month <= 0) {
year = year - 1;
month = month + 12;
}
if (month < 10) month = '0' + month;
arr[i] = year + '年' + month + '月'
month--
}
return arr;
}
export default util
\ No newline at end of file
......@@ -7,14 +7,14 @@
<span>门店企微客户数排行</span>
<el-radio-group v-model="radioStore" @change="tabRank" size="mini">
<el-radio-button label="1">累计新增</el-radio-button>
<el-radio-button label="2">今日新增</el-radio-button>
<el-radio-button label="2">昨日新增</el-radio-button>
<el-radio-button label="3">累计流失</el-radio-button>
</el-radio-group>
</div>
<div class="summary-ranking-th">
<div class="summary-ranking-sno">排名</div>
<div class="summary-ranking-sno">排行</div>
<div class="summary-ranking-name">门店名称</div>
<div class="summary-ranking-value">加企微客户数</div>
<div class="summary-ranking-value">企微客户数</div>
</div>
<div class="chart-empty" v-if="custSortList.length == 0">
<img src="@/assets/img/empty.png" />
......@@ -55,14 +55,23 @@
}">
<div class="summary-ranking-title scrm-c3">
<span>各门店产值排行 </span>
<el-radio-group v-model="radioOutput" size="mini">
<el-radio-button label="1">累计新增</el-radio-button>
<el-radio-button label="2">今日新增</el-radio-button>
<el-radio-group v-model="radioOutput" size="mini" class="summary-time-select">
<el-radio-button label="1">累计产值</el-radio-button>
<el-radio-button label="2">昨日新增</el-radio-button>
<el-radio-button label="3">{{monthValue}}
</el-radio-button>
<el-select v-model="monthValue" placeholder="">
<el-option
v-for="item in getBeforeMonth"
:key="item"
:label="item"
:value="item">
</el-option>
</el-select>
</el-radio-group>
</div>
<div class="summary-ranking-th">
<div class="summary-ranking-sno">排名</div>
<div class="summary-ranking-sno">排行</div>
<div class="summary-ranking-name">门店名称</div>
<div class="summary-ranking-value">总产值</div>
</div>
......@@ -103,6 +112,7 @@
</template>
<script>
import util from "@/utils/util";
export default {
name: "summaryRanking",
......@@ -116,11 +126,13 @@ export default {
radioStore: "1",
radioOutput: "1",
custSortList: [],
monthOptions: [],
monthArr: [],
monthValue: new Date().getFullYear()+'年'+new Date().getMonth()+'月',
yearValue: new Date().getFullYear(),
summaryArr: [],
getBeforeMonth: util.getBeforeMonth(12),
};
},
methods: {
jumpStore() {
this.dialogVisible = false;
......@@ -135,10 +147,11 @@ export default {
sortType: this.radioStore,
})
.then((res) => {
this.custSortList = res.custSortList;
this.custSortList = res.custSortList?res.custSortList:[];
this.custAvergCount = res.custAvergCount;
if (this.custSortList.length == 0) {
if (this.custSortList.length == 0 && !sessionStorage.getItem('firstStatus') && this.$globalState.session.accountLevel == 1 && this.$globalState.session.accountLevel == 4 ) {
this.dialogVisible = true;
sessionStorage.setItem('firstStatus',1)
return;
}
this.custSortMax = 0;
......@@ -153,10 +166,7 @@ export default {
mounted() {
let clientHeight = document.documentElement.clientHeight;
this.rankHeight = clientHeight - 480;
window.addEventListener(resize=>{
})
this.rankHeight = clientHeight - 486;
this.getSort();
},
};
......@@ -180,6 +190,32 @@ export default {
justify-content: space-between;
align-items: center;
}
.summary-time-select {
position: relative;
/deep/ .el-select {
width: px;
position: absolute;
right: 0px;
top: 5px;
.el-input__inner {
line-height: 20px;
height: 20px;
border: none;
width: 0px;
padding: 0px;
}
.el-input--suffix {
transform: translateX(-50px);
}
.el-input__suffix {
transform: translateX(52px);
right: 0px;
.el-input__icon {
line-height: 20px;
}
}
}
}
.summary-ranking-th {
display: flex;
border-radius: 2px 2px 0px 0px;
......
......@@ -6,7 +6,7 @@
<span>统计截止至</span>
<el-date-picker
@change="changeTime"
format="yyyy-MM-dd"
value-format="yyyy-MM-dd"
v-model="summaryTime"
type="date"
placeholder="选择日期"
......@@ -25,7 +25,7 @@
title="说明"
width="200"
trigger="hover"
content="各门店客户总数之和,门店之间不去重"
content="累计至统计截止时间,旗下各门店的客户总数之和,按手机号和企微双重去重。"
>
<img src="@/assets/img/question.png" slot="reference" />
</el-popover>
......@@ -35,7 +35,8 @@
未加企微客户数:
<span>{{ notAddEntmicroCount ? notAddEntmicroCount : "- -" }}</span>
</div>
<linechart :echartId="echartId1" :echartData="custAddList"></linechart>
<linechart :echartId="echartId1" :echartData="custAddList" v-if="!custAddListEmpty"></linechart>
<div class="chart-empty-null" v-if="custAddListEmpty">暂无数据</div>
</div>
<div class="summary-item">
<div class="summary-item-title">
......@@ -45,7 +46,7 @@
title="说明"
width="200"
trigger="hover"
content="各门店客户总数之和,门店之间不去重"
content="累计至统计截止时间,旗下各门店已加企微客户数之和,客户按企微号+手机号去重。"
>
<img src="@/assets/img/question.png" slot="reference" />
</el-popover>
......@@ -56,7 +57,8 @@
<div class="summary-item-number">
当日新增: <span>{{ newEntmicroCount ? newEntmicroCount : "- -" }}</span>
</div>
<linechart :echartId="echartId2" :echartData="custEntmicroAdds"></linechart>
<linechart :echartId="echartId2" :echartData="custEntmicroAdds" v-if="!custEntmicroAddsEmpty"></linechart>
<div class="chart-empty-null" v-if="custEntmicroAddsEmpty">暂无数据</div>
</div>
<div class="summary-item">
<div class="summary-item-title">
......@@ -66,7 +68,7 @@
title="说明"
width="200"
trigger="hover"
content="各门店客户总数之和,门店之间不去重"
content="累计至统计截止时间,旗下各门店客户删除或者拉黑企微客户数之和,客户按企微号+手机号去重。"
>
<img src="@/assets/img/question.png" slot="reference" />
</el-popover>
......@@ -78,7 +80,8 @@
当日新增:
<span>{{ todayEntmicroLoseCount ? todayEntmicroLoseCount : "- -" }}</span>
</div>
<linechart :echartId="echartId3" :echartData="custLoseList"></linechart>
<linechart :echartId="echartId3" :echartData="custLoseList" v-if="!custLoseListEmpty"></linechart>
<div class="chart-empty-null" v-if="custLoseListEmpty">暂无数据</div>
</div>
<div class="summary-item">
<div class="summary-item-title">
......@@ -88,18 +91,18 @@
title="说明"
width="200"
trigger="hover"
content="各门店客户总数之和,门店之间不去重"
content="累计至统计截止时间,旗下各门店产值之和。"
>
<img src="@/assets/img/question.png" slot="reference" />
</el-popover>
</div>
<div class="summary-item-total">¥--</div>
<div class="summary-item-number">当日新增: <span>¥--</span></div>
<linechart :echartId="echartId4"></linechart>
<div class="chart-empty-null">暂无数据</div>
</div>
</div>
<div :class="{ 'expand-panel': expandStatus }" class="summary-line-panel">
<div class="summary-title">汇总</div>
<div class="summary-title"></div>
<div class="chart-empty" v-if="chartStatus">
<img src="@/assets/img/empty.png" />
<div class="chart-empty-d">暂无数据</div>
......@@ -154,6 +157,9 @@ export default {
custAddList: [],
custEntmicroAdds: [],
custLoseList: [],
custAddListEmpty: false,
custEntmicroAddsEmpty: false,
custLoseListEmpty: false,
};
},
......@@ -185,8 +191,11 @@ export default {
getChart() {
this.$apis.home.getChart({ day: 30, date: this.summaryTime }).then((res) => {
this.custAddList = res.custAddList;
this.custAddListEmpty = this.custEntmicroAdds.every(item=>item.customerCount == 0)
this.custEntmicroAdds = res.custEntmicroAdds;
this.custEntmicroAddsEmpty = this.custEntmicroAdds.every(item=>item.customerCount == 0)
this.custLoseList = res.custLoseList;
this.custLoseListEmpty = this.custLoseList.every(item=>item.customerCount == 0)
let custEntmicroAddsHalf = this.custEntmicroAdds.slice(15);
let custLoseListHalf = this.custLoseList.slice(15);
let dateTime = custEntmicroAddsHalf.map((item) => {
......@@ -198,6 +207,10 @@ export default {
let custLoseList = custLoseListHalf.map((item) => {
return item.customerCount;
});
if(custEntmicroAdds.every(item=>item == 0) && custLoseList.every(item=>item==0)) {
this.chartStatus = true;
return
}
let monthAverg = custEntmicroAddsHalf.map((item) => {
return item.monthAverg;
});
......@@ -214,14 +227,14 @@ export default {
formatter(params) {
let circleColor;
let Averg;
if (params.seriesName == "每日新增企微用户") {
if (params.seriesName == "每日新增企微客户") {
circleColor = "#5850FF";
Averg = monthAverg[params.dataIndex];
}
if (params.seriesName == "每日新增产值") {
circleColor = "#2CCA74";
}
if (params.seriesName == "每日企微消失用户") {
if (params.seriesName == "每日企微流失客户") {
circleColor = "#FF6D00";
Averg = monthAvergLoss[params.dataIndex];
}
......@@ -241,13 +254,13 @@ export default {
},
},
legend: {
data: ["每日新增企微用户", "每日新增产值", "每日企微消失用户"],
data: ["每日新增企微客户", "每日新增产值", "每日企微流失客户"],
left: "auto",
},
grid: {
left: "3%",
right: "4%",
bottom: "3%",
bottom: 0,
containLabel: true,
},
xAxis: {
......@@ -258,11 +271,16 @@ export default {
},
yAxis: {
type: "value",
show: false,
show: true,
name: '单位:人',
minInterval: 1,
splitLine: {
show: false
}
},
series: [
{
name: "每日新增企微用户",
name: "每日新增企微客户",
type: "line",
lineStyle: { color: "#5850FF " },
data: custEntmicroAdds,
......@@ -274,7 +292,7 @@ export default {
data: [],
},
{
name: "每日企微消失用户",
name: "每日企微流失客户",
type: "line",
lineStyle: { color: "#FF6D00 " },
data: custLoseList,
......@@ -287,14 +305,15 @@ export default {
},
mounted() {
console.log(document.URL)
this.getViewData();
this.getChart();
window.addEventListener("resize", () => {
this.getChart();
});
// window.addEventListener("resize", () => {
// this.getChart();
// });
},
beforeDestroy () {
window.removeEventListener('resize')
}
};
</script>
......@@ -335,6 +354,16 @@ export default {
&:last-of-type {
border: none;
}
.chart-empty-null {
height: 60px;
font-size: 14px;
font-weight: 400;
color: #000000;
line-height: 32px;
display: flex;
align-items: center;
justify-content: center;
}
.summary-item-title {
.item {
background: #ffffff;
......@@ -384,7 +413,7 @@ export default {
.summary-line-panel {
margin-top: 30px;
padding: 0px 20px;
height: 400px;
height: 360px;
overflow: hidden;
transition: height 0.2s;
.summary-title {
......
......@@ -18,7 +18,7 @@
:key="idx"
closable
:disable-transitions="false"
@close="remove(idx)"
@close="remove(tag)"
>
{{ tag.staffName }}
</el-tag>
......@@ -31,13 +31,13 @@
></el-input>
</div>
<div><el-button size="small" class="sale-select-btn" type="primary" @click="addEmp"
>确定</el-button
<div><el-button size="small" class="sale-select-btn" type="primary" @click="searchEmp"
>查询</el-button
></div>
</div>
<div>
<div class="select-sale-panel">
<select-emp ref="selectEmpTabel"></select-emp>
<select-emp @selectTable="selectTable" ref="selectEmpTabel"></select-emp>
<div class="popper__arrow"></div>
</div>
</div>
......@@ -52,7 +52,7 @@
:key="index"
>
{{ item.followName }}
<i class="el-icon-error" @click="delEmpType(item)" v-if="index > 1"></i>
<i class="el-icon-error" @click="delEmpType(item,index)" v-if="!item.commonFlag"></i>
</div>
</div>
<div class="sale-select">
......@@ -69,7 +69,7 @@
></div>
</div>
<div class="sale-type-desc">
跟进员工类型最多新增30个,已新增{{ empType.length - 2 }}个
跟进员工类型最多新增30个,已新增{{ empType.length - 3 }}个
</div>
</el-form-item>
<el-form-item style="text-align: center">
......@@ -106,6 +106,13 @@ export default {
this.newTag = "";
this.innerTags = [];
this.empTypeValue = "";
if(this.$refs.selectEmpTabel.listTree.length != 0) {
this.$refs.selectEmpTabel.listEntmicroStaff();
this.$refs.selectEmpTabel.clearSelection();
}
},
selectTable(val) {
this.innerTags = val;
},
listEntFollowerType() {
this.$apis.emp
......@@ -124,37 +131,19 @@ export default {
this.$el.querySelector(".tag-input").focus();
}
},
inputTag() {
this.ms = 1000;
clearTimeout(this.timeID);
this.timeID = setTimeout(() => {
this.$refs.selectEmpTabel.listEntmicroStaff(this.newTag);
}, this.ms);
},
remove(index) {
this.innerTags.splice(index, 1);
this.reloadTags();
},
//添加员工
addEmp() {
this.innerTags = this.innerTags.concat(
this.$refs.selectEmpTabel.$refs.saleTable.mutiSelectArr["salelist"]
);
this.reloadTags();
remove(row) {
this.$refs.selectEmpTabel.clearSelect(row);
},
reloadTags() {
const arr = [];
this.innerTags.forEach((item) => {
arr.push(item.id);
});
this.$refs.selectEmpTabel.clearSelect(arr);
//查询
searchEmp() {
this.$refs.selectEmpTabel.listEntmicroStaff(this.newTag);
},
addEmpType() {
if (!this.empTypeValue) {
this.$message.error("请输入类型名称");
return;
}
if(this.empType.length == 32) {
if(this.empType.length == 33) {
this.$message.error("跟进员工类型最多新增30个");
return;
}
......@@ -167,19 +156,22 @@ export default {
});
this.empTypeValue = "";
},
delEmpType(item) {
delEmpType(item,index) {
this.$apis.emp.deleteFollowerType({ id: item.id }).then((res) => {
this.listEntFollowerType();
if(res) {
this.listEntFollowerType();
this.typeIndex = 0;
}
});
},
syncEntmicroIsOutsiderStaff() {
console.log(this.$globalState);
let params = {
departmentId: 1,
merchantId: this.$globalState.session.merchantId,
};
this.$apis.emp.syncEntmicroIsOutsiderStaff(params).then((res) => {
if (res) {
this.$refs.selectEmpTabel.listEntmicroStaff();
this.$message({
message: "同步成功",
type: "success",
......@@ -286,7 +278,9 @@ export default {
border: none !important;
}
/deep/ .el-input {
width: 150px;
min-width: 150px;
width: auto;
flex: 1;
}
}
......
......@@ -30,6 +30,7 @@
:tableParams="tableParams"
:hasNum="false"
:hasPage="false"
@selectionTable="selectionTable"
>
</GLTable>
</el-col>
......@@ -75,6 +76,9 @@ export default {
},
methods: {
selectionTable(val) {
this.$emit('selectTable', val)
},
listDepartmentTree() {
this.$apis.emp.listDepartmentTree({ id: 1 }).then((res) => {
this.listTree = res;
......@@ -84,8 +88,10 @@ export default {
});
});
},
clearSelect(arr) {
this.tableParams.checkSelectVal = arr;
clearSelect(row) {
this.$refs.saleTable.$refs.salelistMutiTable.toggleRowSelection(row);
},
clearSelection() {
this.$refs.saleTable.$refs.salelistMutiTable.clearSelection();
},
handleNodeClick(data) {
......@@ -163,6 +169,9 @@ export default {
background: #ffffff;
box-shadow: 0px 2px 12px 0px rgba(0, 0, 0, 0.06);
border: 1px solid #e4e7ed;
/deep/ .el-checkbox__input.is-disabled .el-checkbox__inner {
background-color: #999999;
}
}
.emp-tree-panel {
margin-right: 10px;
......
<template>
<div className="scrm-main">
<div class="follow-header">
<p>1、跟进专员可以接收/发放活动任务;</p>
<p>2、跟进专员接收任务后可分发给客户;</p>
<p>3、拥有“添加外部联系人权限”的员工才允许设置为跟进专员;</p>
<p>1、跟进专员可以接收/发放活动任务,接收任务后可分发给客户。</p>
<p>2、拥有“添加外部联系人权限”的员工才允许设置为跟进专员。</p>
<div class="follow-process-a">企微管理员为员工“设置外部联系人权限”流程>></div>
</div>
<div class="follow-form">
......@@ -230,10 +229,6 @@ export default {
});
})
.catch(() => {
this.$message({
type: "info",
message: "已取消删除",
});
});
},
},
......@@ -264,6 +259,7 @@ export default {
}
}
.follow-form {
min-height: calc(100% - 200px);
margin-top: 20px;
background: #ffffff;
box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1);
......@@ -277,5 +273,8 @@ export default {
}
}
.drawer-panel {
/deep/ .el-drawer__body{
overflow-y: auto;
}
}
</style>
\ No newline at end of file
......@@ -4,8 +4,17 @@
<div class="view-l-title">
<div class="view-title-desc">
<span>总产值</span>
<el-popover
placement="top"
title="说明"
width="200"
trigger="hover"
content="累计至统计截止时间,旗下各门店产值之和。"
>
<img src="@/assets/img/question.png" slot="reference" />
</el-popover>
</div>
<div class="view-title-num"><span>- -</span>人</div>
<div class="view-title-num">¥ - -</div>
</div>
<div class="view-chart">
<div class="view-chart-empty">
......
......@@ -2,7 +2,7 @@
<div class="scrm-main">
<div class="info-border">
<div class="info-title">
企业信息 <span v-if="info.merchantModelName">{{ info.merchantModelName.substring(0,2) }}</span>
企业信息 <span v-if="info.merchantModelName">{{$globalState.session.accountLevel == 4?'门店':'集团' }}</span>
</div>
<div class="merchant-info">
<p>
......@@ -20,7 +20,7 @@
</p>
<p>
<span>企微成员:</span
><span>{{ info.numberStores ? info.numberStores : "- -" }}</span>
><span>{{ info.entMicroEmployeeCount ? info.entMicroEmployeeCount : "- -" }}</span>
</p>
</div>
</div>
......
......@@ -10,7 +10,7 @@
title="说明"
width="200"
trigger="hover"
content="各门店客户总数之和,门店之间不去重"
content="累计至统计截止时间,旗下各门店的客户总数之和,按手机号和企微双重去重。"
>
<img src="@/assets/img/question.png" slot="reference" />
</el-popover>
......
......@@ -2,25 +2,34 @@
<div class="scrm-main">
<div class="main-panel" :class="{ 'main-isScroll': guideStatus }">
<div class="main-left">
<div class="header-panel" :style="{
height: headHeight + 'px',
'font-size': headHeight / 5+'px'}">
<div
class="header-panel"
:style="{
height: headHeight + 'px',
'font-size': headHeight / 5 + 'px',
}"
>
<img
class="info-consulting-icon"
src="@/assets/img/home/home-header.png"
alt=""
/>
<div class="jump-mf-btn" :style="{
left: headWidth/1.36 + 'px'
}">立即使用</div>
<div
class="jump-mf-btn"
:style="{
left: headWidth / 1.36 + 'px',
}"
>
立即使用
</div>
</div>
<div class="summary-panel">
<div class="home-statistics-title">企业数据概览</div>
<div class="summary-time">
<span>统计截止至 </span>
<el-date-picker
size="mall"
format="yyyy-MM-dd"
size="mall"
value-format="yyyy-MM-dd"
v-model="summaryTime"
type="date"
placeholder="选择日期"
......@@ -64,7 +73,7 @@
class="guide-btn"
:style="{
left: guideLeft - imgWidth / 2 - borderLeft + 'px',
top: guideTop + imgHeight/2 + 'px',
top: guideTop + imgHeight / 2 + 'px',
}"
>
我知道了
......@@ -177,9 +186,9 @@ export default {
return {
summaryTime: util.getBeforeDate(),
pickerOptions: {
disabledDate:(time)=>{
return time.getTime() > Date.now();
}
disabledDate: (time) => {
return time.getTime() > Date.now();
},
},
guideStatus: false,
step: 1,
......@@ -220,15 +229,18 @@ export default {
} else if (this.step == 2) {
this.guideWidth = document.querySelector(".consult-box").offsetWidth;
this.guideHeight = document.querySelector(".consult-box").offsetHeight;
this.imgHeight = this.guideHeight/2;
this.imgHeight = this.guideHeight / 2;
this.imgWidth = (this.imgHeight * 759) / 128;
this.guideLeft =
document.querySelector(".consult-box").offsetLeft + this.borderLeft - 42;
this.guideTop = document.querySelector(".consult-box").offsetTop + this.borderTop;
} else {
let top = document.querySelector(".accurate-sercives").offsetTop + 150;
let domWrapper = document.querySelector(".main-panel");
let top = domWrapper.scrollHeight - domWrapper.offsetHeight - 150;
this.guideLeft =
document.querySelector(".operational-panel-s").offsetLeft + this.borderLeft - 40;
document.querySelector(".operational-panel-s").offsetLeft +
this.borderLeft -
40;
this.guideTop =
document.querySelector(".operational-panel-s").offsetTop -
top -
......@@ -243,13 +255,10 @@ export default {
}
},
findLogin() {
this.$apis.home.findLoginCount({loginType: 1}).then((res) => {
this.$apis.home.findLoginCount({ loginType: 1 }).then((res) => {
if (res) {
this.guideStatus = true;
this.getRezie();
window.addEventListener("resize", () => {
this.getRezie();
});
}
});
},
......@@ -264,6 +273,9 @@ export default {
});
this.findLogin();
},
beforeDestroy() {
window.removeEventListener("resize");
},
};
</script>
......@@ -290,7 +302,7 @@ export default {
line-height: 12px;
cursor: pointer;
bottom: 8px;
left: 73.5%!important;
left: 73.5% !important;
}
> img {
width: 100%;
......@@ -314,11 +326,12 @@ 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;
}
/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;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!