Commit f9a02d95 by 李长胜

提交修改

1 parent 8fdc3370
.DS_Store
node_modules
/dist
package-lock.json
# local env files
.env.local
.env.*.local
......@@ -11,6 +11,7 @@ npm-debug.log*
yarn-debug.log*
yarn-error.log*
# Editor directories and files
.idea
.vscode
......
......@@ -14,11 +14,12 @@
"echarts": "^5.2.0",
"element-ui": "^2.4.5",
"glsx-common": "^1.4.6",
"glsx-components": "^1.1.8",
"glsx-components": "^1.2.2",
"glsx-table": "^1.1.0",
"jquery": "^3.6.0",
"sha1": "^1.1.1",
"vue": "^2.6.10",
"vue-animate-number": "^0.4.2",
"vue-router": "^3.1.3",
"vuex": "^3.1.2"
},
......
......@@ -19,7 +19,7 @@ export const fetchConfig = function (isEnv = true) {
}
// https://oss-config.test.glsx.com.cn/mock/6136bea6ceeb5a5c2bec6950/base
// https://oss-config.test.glsx.com.cn/mock/616d3b131072f92988f05a01/custom/config
return new Http().get('https://oss-config.test.glsx.com.cn/mock/616d3b131072f92988f05a01/custom/config')
return new Http({request:{timeout:3000}}).get('https://oss-config.test.glsx.com.cn/mock/616d3b131072f92988f05a01/custom/config')
}
export const config = {
install(vue, cfg) {
......
......@@ -21,6 +21,8 @@ import * as echarts from 'echarts'
import { Constants } from './common/constants'
import { Util } from './common/util'
import { common } from './common/common'
import VueAnimateNumber from 'vue-animate-number'
Vue.use(VueAnimateNumber)
Vue.config.productionTip = false
Vue.prototype.$apis = apis
......
......@@ -11,7 +11,7 @@
<img class="bannerWrap" usemap="#planetmap" src="@/assets/clientDataOverview/companyBanner.png" alt="" />
<map name="planetmap" id="planetmap" style="cursor: pointer">
<!-- href="https://www.baidu.com" -->
<area shape="rect" coords="849,97,933,121" @click="goNextPage" target="_blank" />
<area shape="rect" coords="849,97,933,121" @click="goNextPage" target="_blank" />
</map>
</div>
<h3 class="pageSubTitle">客户分层</h3>
......@@ -20,6 +20,8 @@
<span class="title">客户总数</span>
<span class="subtitle">已加和未加企微的所有潜客和已购买客户</span>
<span class="clientTotal">
<!-- 可以动态跑数字 -->
<!-- <animate-number from="0" :to="(topDataObj.customerCount || 0) | overThousandFilter" :key="(topDataObj.customerCount || 0) | overThousandFilter" duration="2000"></animate-number> -->
{{ (topDataObj.customerCount || 0) | overThousandFilter }}
<span class="person-text">人</span>
</span>
......@@ -178,10 +180,6 @@
</div>
<el-dialog title="提示" :visible.sync="dialogVisible" top="15vh" width="30%" :before-close="handleClose">
<span>企微魔方正在开发中,敬请期待...</span>
<!-- <span slot="footer" class="dialog-footer">
<el-button @click="dialogVisible = false">取 消</el-button>
<el-button type="primary" @click="dialogVisible = false">确 定</el-button>
</span> -->
</el-dialog>
</div>
</template>
......@@ -291,8 +289,10 @@ export default {
//引流过企微魔方的数据
// if (!this.isHasCustomerCountBanner) {
// 掉两个数据接口
await this.getDataOverviewFun()
// await this.getDataOverviewFun()
await this.getLoginCountFun()
//先看登录次数,首次进来为true,不管客户总数是否为0,都显示banner;
//不是首次进来,登录次数为2,客户总数大于0,不显示banner,小于0,继续显示banner;
this.getDataOverviewBarMapFun()
// }
},
......@@ -300,14 +300,16 @@ export default {
methods: {
goNextPage() {
// window.open('https://www.baidu.com', '_blank')
this.dialogVisible = true
let timer = 3
setInterval(() => {
timer--
if (timer == 0) {
this.dialogVisible = false
}
}, 1000)
// this.dialogVisible = true
// let timer = 3
// setInterval(() => {
// timer--
// if (timer == 0) {
// this.dialogVisible = false
// }
// }, 1000)
// this.$router.push('drainage/square/index')
this.$history.push('/drainage/square/index')
//要引流企微魔方
// this.getDataOverviewFun()
// this.getDataOverviewBarMapFun()
......@@ -376,16 +378,13 @@ export default {
//loginType:2是查客户数据概览浏览次数
getLoginCount({ loginType: 2 }).then(res => {
// res = true
if (!res) {
return
}
//true和false都接受
// if (!res) {
// return
// }
this.isShowModal = res
// this.isShowModal = res
if (res) {
setTimeout(() => {
this.showModalLayer()
}, 1000)
}
this.getDataOverviewFun() //获取客户总数
})
},
//获取上面的数据
......@@ -407,15 +406,35 @@ export default {
console.log(res, '这是上面数据')
this.isNoBuyUp = res.purposeUp
this.isBuyUp = res.purchaseUp
if (this.topDataObj.customerCount > 0) {
//先看登录次数,首次进来为true,不管客户总数是否为0,都显示banner;
//不是首次进来,登录次数为2,客户总数大于0,不显示banner,小于0,继续显示banner;
console.log(this.isShowModal,this.topDataObj.customerCount,'myData')
if (this.isShowModal) {
this.isHasCustomerCountBanner = true
this.$nextTick(() => {
$('img[usemap]').rwdImageMaps()
})
//打开遮罩层
setTimeout(() => {
this.showModalLayer()
}, 1000)
} else if (!this.isShowModal && this.topDataObj.customerCount > 0) {
this.isHasCustomerCountBanner = false
} else {
} else if (!this.isShowModal && this.topDataObj.customerCount <= 0) {
this.isHasCustomerCountBanner = true
this.$nextTick(() => {
$('img[usemap]').rwdImageMaps()
})
}
// if (this.topDataObj.customerCount > 0) {
// this.isHasCustomerCountBanner = false
// } else {
// this.isHasCustomerCountBanner = true
// this.$nextTick(() => {
// $('img[usemap]').rwdImageMaps()
// })
// }
console.log(this.isHasCustomerCountBanner, 'true/fasle')
this.$set(this.titles[0], 'num', res.newCarCustomerCount)
this.$set(this.titles[1], 'num', res.needRenewalCustomerCount)
......
......@@ -32,6 +32,7 @@ import { getTableList, syncCustomerBase } from '@/api/modules/clientGroupManage'
import url from '@/assets/clientDataOverview/nodata.png'
export default {
name: 'clientManage',
// inject: ['reload'],
data() {
return {
url: url,
......@@ -82,19 +83,23 @@ export default {
tableColumns: [
{
label: '客户群名称',
prop: 'custGroupName'
prop: 'custGroupName',
width:180
},
{
label: '当前客户数',
prop: 'totalCount'
prop: 'totalCount',
width:100
},
{
label: '新增入群客户数',
prop: 'newCustomerCount'
prop: 'newCustomerCount',
width:120
},
{
label: '新增退群客户数',
prop: 'delCustomerCount'
prop: 'delCustomerCount',
width:120
},
{
label: '群主',
......
......@@ -8,7 +8,7 @@
<el-button plain @click="resetTable">重置</el-button>
<el-button type="primary" @click="searchTable">查询</el-button>
<!-- v-if="(merchantModel == 1 && accountLevel == 1) || (merchantModel == 2 && accountLevel == 4)" 不做判定了, 允许所有人同步 -->
<el-button type="primary" @click="syncClick" :loading="sloading" >同步数据</el-button>
<el-button type="primary" @click="syncClick" :loading="sloading">同步数据</el-button>
</span>
</search-form>
......@@ -55,6 +55,7 @@ import { getTableList, getDictionaryFun, syncCustomer } from '@/api/modules/clie
import url from '@/assets/clientDataOverview/nodata.png'
export default {
name: 'clientManage',
// inject: ['reload'],
data() {
return {
url: url,
......@@ -165,12 +166,13 @@ export default {
label: '客户名称',
prop: 'customerName',
addHtml: 'customerName',
width: 180
width: 160
},
{
label: '手机号',
prop: 'customerPhone',
addHtml: 'customerPhone'
addHtml: 'customerPhone',
width: 100
},
{
label: '性别',
......@@ -185,7 +187,8 @@ export default {
{
label: '来源',
prop: 'addWay',
addHtml: 'addWay'
addHtml: 'addWay',
width: 100
},
{
label: '是否加企微', //1. 加入,0.未加入
......@@ -334,6 +337,11 @@ export default {
resetTable() {
this.searchForm = {}
this.$refs.clientManage.refreshTable()
// 点击之后强制页面刷新
// this.reload()
// this.$forceUpdate() // 没用
// this.$router.go(0)//没有预期效果,会出现一段空白页,用户体验不好
// location.reload() //没有预期效果,会出现一段空白页,用户体验不好
},
goDetail(id) {
this.$router.push({
......
......@@ -122,9 +122,7 @@
<span class="addTagText">新增标签</span>
</div>
<!-- v-if="tagNameRules" -->
<div class="el-form-item__error" v-if="tagNameRules">
请至少添加一个标签
</div>
<div class="el-form-item__error" v-if="tagNameRules">请至少添加一个标签</div>
</div>
</rule-form>
</slot>
......@@ -609,7 +607,16 @@ export default {
},
handleSelect(value) {
console.log('值内容', value)
}
},
//注意问问他们后台怎么处理转义字符
//限制输入特殊字符
// keyUp(e) {
// e.target.value = e.target.value.replace(/[`~!@#$%^&*()_\-+=<>?:"{}|,.\/;'\\[\]·~!@#¥%……&*()——\-+={}|《》?:“”【】、;‘’,。、]/g, '')
// },
// // 只能输入汉字、英文、数字
// keydown(e) {
// e.target.value = e.target.value.replace(/[^\a-\z\A-\Z0-9\u4E00-\u9FA5]/g, '')
// }
}
}
</script>
......@@ -620,7 +627,7 @@ export default {
.scrm-sub-client-container {
.pageTitle {
position: relative;
// margin-top: 30px;
// margin-top: 30px;
margin-bottom: 20px;
height: 20px;
font-size: 20px;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!