Commit 5ebffb4e by ym

test

1 parent 229777a0
{
"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.4",
"glsx-components": "^1.0.4",
"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"
]
}
\ 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.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"
]
}
......@@ -5,6 +5,7 @@
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<meta name="referrer" content="no-referrer">
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
<!-- 使用CDN的CSS文件 -->
<% for (var i in htmlWebpackPlugin.options.cdn && htmlWebpackPlugin.options.cdn.css) { %>
......
......@@ -106,12 +106,12 @@ img {
::-webkit-scrollbar {
/*滚动条整体样式*/
width: 8px;
width: 6px;
height: 1px;
}
::-webkit-scrollbar-thumb {
/*滚动条里面小方块*/
border-radius: 7px;
background-color: #E9E8FF;
border-radius: 4px;
background-color: rgba(144, 147, 153, .3);
}
\ No newline at end of file

27.9 KB | W: | H:

23.8 KB | W: | H:

src/assets/img/home/guide2.png
src/assets/img/home/guide2.png
src/assets/img/home/guide2.png
src/assets/img/home/guide2.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -17,7 +17,7 @@ module.exports = {
code_message_map: {}
},
request: {
baseURL: 'https://scrm.test.glsx.com.cn',
baseURL: 'http://192.168.1.254',
// 设置超时时间
timeout: 180000,
// 携带凭证
......
......@@ -11,8 +11,14 @@ VueRouter.prototype.push = function push(location) {
function getRoutes(routesData) {
return routesData.reduce((routes, route) => {
routes.push({...route,
component: () =>
import ('@/views' + route.path + '.vue')
component: () => {
if (route.path == '/home/index' && Vue.prototype.$globalState.session.accountLevel != 4) {
return import ('@/views/ehome/index.vue')
} else {
return import ('@/views' + route.path + '.vue')
}
}
})
return routes
}, [])
......
......@@ -5,12 +5,6 @@ const staticRoutes = Object.freeze([{
component: resolve => require([`@/views/home/index.vue`], resolve)
},
{
name: 'Ehome',
path: '/ehome/index',
meta: {},
component: resolve => require([`@/views/ehome/index.vue`], resolve)
},
{
name: 'EnterpriseWechat',
path: '/enterpriseWechat/index',
component: resolve => require([`@/views/enterpriseWechat/index.vue`], resolve),
......
......@@ -8,6 +8,8 @@ import { getRoutes } from '@/router'
import render from './render'
Vue.use(ElementUI)
Vue.use(GLTable)
// import GLTable from '@/components/glsx-table/index'
// Vue.component('GLTable', GLTable)
import 'glsx-components/src/theme/theme.scss'
import '@/assets/css/common.scss'
let routes = []
......
......@@ -18,14 +18,20 @@ const render = (base, routes) => {
mode: 'history'
})
router.beforeEach((to, from, next) => {
if (from.path == '/' && (to.path == '/home/index' || to.path == '/ehome/index')) {
next();
let modelStatus = false;
if (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) {
modelStatus = true;
}
if (from.path == '/' && (to.path == '/home/index' || to.path == '/ehome/index') && modelStatus) {
Vue.prototype.$apis.ww.getStatus({}).then((res) => {
// if (res.status != 'SUCCESS') {
// next('/enterpriseWechat/index')
// } else {
// next()
// }
if (res.status != 'SUCCESS') {
next('/enterpriseWechat/index')
} else {
next()
}
})
} else {
next();
......
......@@ -12,9 +12,9 @@
</el-radio-group>
</div>
<div class="summary-ranking-th">
<div class="summary-ranking-sno">序号</div>
<div class="summary-ranking-name">名店名称</div>
<div class="summary-ranking-value">总产值</div>
<div class="summary-ranking-sno">排名</div>
<div class="summary-ranking-name">门店名称</div>
<div class="summary-ranking-value">加企微客户数</div>
</div>
<div class="chart-empty" v-if="custSortList.length == 0">
<img src="@/assets/img/empty.png" />
......@@ -40,10 +40,11 @@
<div class="summary-progress-barout"></div>
<div
class="summary-progress-barin"
:style="{ width: (100 * item.addEntmicroCount) / custSortMax + '%' }"
:style="{ width: (100 * item.custCount) / custSortMax + '%' }"
></div>
<div class="summary-progress-avg" :style="{ width: (100 * custAvergCount) / custSortMax + '%' }"></div>
</div>
<div class="summary-progress-value">{{ item.addEntmicroCount }}</div>
<div class="summary-progress-value">{{ item.custCount }}</div>
</div>
</div>
</div>
......@@ -61,8 +62,8 @@
</el-radio-group>
</div>
<div class="summary-ranking-th">
<div class="summary-ranking-sno">序号</div>
<div class="summary-ranking-name">名店名称</div>
<div class="summary-ranking-sno">排名</div>
<div class="summary-ranking-name">门店名称</div>
<div class="summary-ranking-value">总产值</div>
</div>
<div class="chart-empty" v-if="summaryArr.length == 0">
......@@ -110,6 +111,7 @@ export default {
dialogVisible: false,
rankHeight: 0,
custSortMax: 0,
custAvergCount: 0,
chartStatus: false,
radioStore: "1",
radioOutput: "1",
......@@ -134,6 +136,7 @@ export default {
})
.then((res) => {
this.custSortList = res.custSortList;
this.custAvergCount = res.custAvergCount;
if (this.custSortList.length == 0) {
this.dialogVisible = true;
return;
......@@ -164,8 +167,10 @@ export default {
display: flex;
.summary-ranking-box {
width: 50%;
margin-right: 20px;
min-height: 100px;
min-height: 220px;
&:first-child {
margin-right: 20px;
}
}
.summary-ranking-title {
height: 64px;
......@@ -254,13 +259,19 @@ export default {
position: absolute;
top: 0px;
left: 0px;
width: 50%;
height: 100%;
background-color: #5850ff;
}
.summary-progress-avg {
position: absolute;
bottom: -5px;
left: 0px;
height: 2px;
background-color: #FE9C1C;
}
}
.summary-progress-value {
width: 80px;
width: 64px;
margin-left: 20px;
}
}
......
......@@ -11,6 +11,7 @@
type="date"
placeholder="选择日期"
:clearable="false"
:picker-options="pickerOptions"
>
</el-date-picker>
</div>
......@@ -139,6 +140,11 @@ export default {
packmenberCount: 0,
todayAddPackmenberCount: 0,
summaryTime: util.getBeforeDate(),
pickerOptions: {
disabledDate:(time)=>{
return time.getTime() > Date.now();
}
},
expandStatus: true,
chartStatus: false,
echartId1: "customerEchartId1",
......@@ -258,21 +264,18 @@ export default {
{
name: "每日新增企微用户",
type: "line",
stack: "总量",
lineStyle: { color: "#5850FF " },
data: custEntmicroAdds,
},
{
name: "每日新增产值",
type: "line",
stack: "总量",
lineStyle: { color: "#2CCA74 " },
data: [],
},
{
name: "每日企微消失用户",
type: "line",
stack: "总量",
lineStyle: { color: "#FF6D00 " },
data: custLoseList,
},
......@@ -284,6 +287,8 @@ export default {
},
mounted() {
console.log(document.URL)
this.getViewData();
this.getChart();
window.addEventListener("resize", () => {
......
......@@ -303,7 +303,8 @@ export default {
timer: null,
timerQrcode: null,
statusQrcode: "",
URL: "wwww.baidu.com",
URL: "",
nextStatus: false,
Token: "",
Secret_1: "",
Secret_2: "",
......@@ -324,7 +325,7 @@ export default {
window.open(url);
},
jumpHome() {
this.$router.push("/home/index");
this.$router.push("/home/index?id=2");
},
jumpStore() {
this.$history.push("/settings/account/index");
......@@ -363,12 +364,14 @@ export default {
type: "success",
});
},
jumpConfig() {
window.open("https://www.baidu.com");
},
handleNext() {
if (this.active == 1) {
this.statusQrcode == "SUCCESS"?this.active = 3 : this.handleGetSecret();
if(this.statusQrcode == "SUCCESS") {
this.nextStatus?this.active = 2 : this.active = 3;
}else {
this.handleGetSecret();
}
return
}
if (this.active == 2) {
if (this.statusQrcode == "SUCCESS") {
......@@ -389,6 +392,9 @@ export default {
}
},
handlePrev() {
if(this.active == 3) {
this.nextStatus = true;
}
this.active--;
},
closeDalog() {
......
......@@ -103,7 +103,8 @@ export default {
methods: {
init() {
(this.newTag = ""), (this.innerTags = []);
this.newTag = "";
this.innerTags = [];
this.empTypeValue = "";
},
listEntFollowerType() {
......@@ -272,8 +273,8 @@ export default {
display: inline-block;
outline: none;
padding: 0 10px 0 5px;
flex-wrap: wrap;
line-height: 32px;
height: 35px;
transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
width: 100%;
display: flex;
......@@ -284,6 +285,9 @@ export default {
outline: none !important;
border: none !important;
}
/deep/ .el-input {
width: 150px;
}
}
.el-tag {
......
......@@ -66,7 +66,7 @@ export default {
},
{
label: "职务",
prop: "departmentName",
prop: "staffTitle",
},
],
},
......@@ -78,6 +78,10 @@ export default {
listDepartmentTree() {
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();
});
});
},
clearSelect(arr) {
......@@ -104,7 +108,6 @@ export default {
let clientHeight = document.documentElement.clientHeight;
this.treeHeight = clientHeight - 450;
this.listDepartmentTree();
this.listEntmicroStaff();
},
};
</script>
......
......@@ -118,23 +118,23 @@ export default {
tableColumns: [
{
label: "姓名",
prop: "staffName",
prop: "staffName"
},
{
label: "部门",
prop: "departmentName",
prop: "departmentName"
},
{
label: "跟进专员类型",
prop: "followerTypeName",
prop: "followerTypeName"
},
{
label: "手机号",
prop: "staffPhone",
prop: "staffPhone"
},
{
label: "首次开通时间",
prop: "followerCreatedTime",
prop: "followerCreatedTime"
},
{
label: "是否有外部联系人权限",
......@@ -163,7 +163,9 @@ export default {
methods: {
openDrawer() {
this.drawer = true;
this.$refs.drawerForm.init();
this.$nextTick(() => {
this.$refs.drawerForm.init();
})
},
beforeSearchFn() {
return new Promise((resolve) => {
......
......@@ -25,6 +25,7 @@
type="date"
placeholder="选择日期"
:clearable="false"
:picker-options="pickerOptions"
>
</el-date-picker>
</div>
......@@ -63,7 +64,7 @@
class="guide-btn"
:style="{
left: guideLeft - imgWidth / 2 - borderLeft + 'px',
top: guideTop + 30 + 'px',
top: guideTop + imgHeight/2 + 'px',
}"
>
我知道了
......@@ -101,7 +102,7 @@
width: imgWidth + 'px',
height: imgHeight + 'px',
left: guideLeft - imgWidth - borderLeft + 'px',
top: guideTop - borderTop + 'px',
top: guideTop - borderTop - 40 + 'px',
}"
/>
<img
......@@ -175,6 +176,11 @@ export default {
data() {
return {
summaryTime: util.getBeforeDate(),
pickerOptions: {
disabledDate:(time)=>{
return time.getTime() > Date.now();
}
},
guideStatus: false,
step: 1,
headHeight: 0,
......@@ -210,14 +216,14 @@ export default {
this.imgHeight = (this.imgWidth * 246) / 541;
this.guideLeft = this.borderLeft;
this.guideTop =
document.querySelector(".header-panel").offsetTop + this.borderTop;
document.querySelector(".header-panel").offsetTop + this.borderTop - 2;
} else if (this.step == 2) {
this.guideWidth = document.querySelector(".consult-box").offsetWidth;
this.guideHeight = document.querySelector(".consult-box").offsetHeight;
this.imgHeight = this.guideHeight;
this.imgWidth = (this.imgHeight * 614) / 222;
this.imgHeight = this.guideHeight/2;
this.imgWidth = (this.imgHeight * 759) / 128;
this.guideLeft =
document.querySelector(".consult-box").offsetLeft + this.borderLeft - 44;
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;
......@@ -277,17 +283,18 @@ export default {
position: absolute;
background: #f4c647;
border-radius: 4px;
padding: 0.6em 0.9em;
padding: 6px 9px;
font-size: 10px;
font-weight: 500;
color: #ffffff;
line-height: 12px;
cursor: pointer;
bottom: 7px;
bottom: 8px;
left: 73.5%!important;
}
> img {
width: 100%;
height: auto;
height: 100%;
}
}
.main-isScroll {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!