Commit f9a02d95 by 李长胜

提交修改

1 parent 8fdc3370
.DS_Store .DS_Store
node_modules node_modules
/dist /dist
package-lock.json
# local env files # local env files
.env.local .env.local
.env.*.local .env.*.local
...@@ -11,6 +11,7 @@ npm-debug.log* ...@@ -11,6 +11,7 @@ npm-debug.log*
yarn-debug.log* yarn-debug.log*
yarn-error.log* yarn-error.log*
# Editor directories and files # Editor directories and files
.idea .idea
.vscode .vscode
......
...@@ -14,11 +14,12 @@ ...@@ -14,11 +14,12 @@
"echarts": "^5.2.0", "echarts": "^5.2.0",
"element-ui": "^2.4.5", "element-ui": "^2.4.5",
"glsx-common": "^1.4.6", "glsx-common": "^1.4.6",
"glsx-components": "^1.1.8", "glsx-components": "^1.2.2",
"glsx-table": "^1.1.0", "glsx-table": "^1.1.0",
"jquery": "^3.6.0", "jquery": "^3.6.0",
"sha1": "^1.1.1", "sha1": "^1.1.1",
"vue": "^2.6.10", "vue": "^2.6.10",
"vue-animate-number": "^0.4.2",
"vue-router": "^3.1.3", "vue-router": "^3.1.3",
"vuex": "^3.1.2" "vuex": "^3.1.2"
}, },
......
...@@ -19,7 +19,7 @@ export const fetchConfig = function (isEnv = true) { ...@@ -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/6136bea6ceeb5a5c2bec6950/base
// https://oss-config.test.glsx.com.cn/mock/616d3b131072f92988f05a01/custom/config // 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 = { export const config = {
install(vue, cfg) { install(vue, cfg) {
......
...@@ -21,6 +21,8 @@ import * as echarts from 'echarts' ...@@ -21,6 +21,8 @@ import * as echarts from 'echarts'
import { Constants } from './common/constants' import { Constants } from './common/constants'
import { Util } from './common/util' import { Util } from './common/util'
import { common } from './common/common' import { common } from './common/common'
import VueAnimateNumber from 'vue-animate-number'
Vue.use(VueAnimateNumber)
Vue.config.productionTip = false Vue.config.productionTip = false
Vue.prototype.$apis = apis Vue.prototype.$apis = apis
......
...@@ -20,6 +20,8 @@ ...@@ -20,6 +20,8 @@
<span class="title">客户总数</span> <span class="title">客户总数</span>
<span class="subtitle">已加和未加企微的所有潜客和已购买客户</span> <span class="subtitle">已加和未加企微的所有潜客和已购买客户</span>
<span class="clientTotal"> <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 }} {{ (topDataObj.customerCount || 0) | overThousandFilter }}
<span class="person-text">人</span> <span class="person-text">人</span>
</span> </span>
...@@ -178,10 +180,6 @@ ...@@ -178,10 +180,6 @@
</div> </div>
<el-dialog title="提示" :visible.sync="dialogVisible" top="15vh" width="30%" :before-close="handleClose"> <el-dialog title="提示" :visible.sync="dialogVisible" top="15vh" width="30%" :before-close="handleClose">
<span>企微魔方正在开发中,敬请期待...</span> <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> </el-dialog>
</div> </div>
</template> </template>
...@@ -291,8 +289,10 @@ export default { ...@@ -291,8 +289,10 @@ export default {
//引流过企微魔方的数据 //引流过企微魔方的数据
// if (!this.isHasCustomerCountBanner) { // if (!this.isHasCustomerCountBanner) {
// 掉两个数据接口 // 掉两个数据接口
await this.getDataOverviewFun() // await this.getDataOverviewFun()
await this.getLoginCountFun() await this.getLoginCountFun()
//先看登录次数,首次进来为true,不管客户总数是否为0,都显示banner;
//不是首次进来,登录次数为2,客户总数大于0,不显示banner,小于0,继续显示banner;
this.getDataOverviewBarMapFun() this.getDataOverviewBarMapFun()
// } // }
}, },
...@@ -300,14 +300,16 @@ export default { ...@@ -300,14 +300,16 @@ export default {
methods: { methods: {
goNextPage() { goNextPage() {
// window.open('https://www.baidu.com', '_blank') // window.open('https://www.baidu.com', '_blank')
this.dialogVisible = true // this.dialogVisible = true
let timer = 3 // let timer = 3
setInterval(() => { // setInterval(() => {
timer-- // timer--
if (timer == 0) { // if (timer == 0) {
this.dialogVisible = false // this.dialogVisible = false
} // }
}, 1000) // }, 1000)
// this.$router.push('drainage/square/index')
this.$history.push('/drainage/square/index')
//要引流企微魔方 //要引流企微魔方
// this.getDataOverviewFun() // this.getDataOverviewFun()
// this.getDataOverviewBarMapFun() // this.getDataOverviewBarMapFun()
...@@ -376,16 +378,13 @@ export default { ...@@ -376,16 +378,13 @@ export default {
//loginType:2是查客户数据概览浏览次数 //loginType:2是查客户数据概览浏览次数
getLoginCount({ loginType: 2 }).then(res => { getLoginCount({ loginType: 2 }).then(res => {
// res = true // res = true
if (!res) { //true和false都接受
return // if (!res) {
} // return
// }
this.isShowModal = res this.isShowModal = res
// this.isShowModal = res
if (res) { this.getDataOverviewFun() //获取客户总数
setTimeout(() => {
this.showModalLayer()
}, 1000)
}
}) })
}, },
//获取上面的数据 //获取上面的数据
...@@ -407,15 +406,35 @@ export default { ...@@ -407,15 +406,35 @@ export default {
console.log(res, '这是上面数据') console.log(res, '这是上面数据')
this.isNoBuyUp = res.purposeUp this.isNoBuyUp = res.purposeUp
this.isBuyUp = res.purchaseUp this.isBuyUp = res.purchaseUp
//先看登录次数,首次进来为true,不管客户总数是否为0,都显示banner;
if (this.topDataObj.customerCount > 0) { //不是首次进来,登录次数为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 this.isHasCustomerCountBanner = false
} else { } else if (!this.isShowModal && this.topDataObj.customerCount <= 0) {
this.isHasCustomerCountBanner = true this.isHasCustomerCountBanner = true
this.$nextTick(() => { this.$nextTick(() => {
$('img[usemap]').rwdImageMaps() $('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') console.log(this.isHasCustomerCountBanner, 'true/fasle')
this.$set(this.titles[0], 'num', res.newCarCustomerCount) this.$set(this.titles[0], 'num', res.newCarCustomerCount)
this.$set(this.titles[1], 'num', res.needRenewalCustomerCount) this.$set(this.titles[1], 'num', res.needRenewalCustomerCount)
......
...@@ -32,6 +32,7 @@ import { getTableList, syncCustomerBase } from '@/api/modules/clientGroupManage' ...@@ -32,6 +32,7 @@ import { getTableList, syncCustomerBase } from '@/api/modules/clientGroupManage'
import url from '@/assets/clientDataOverview/nodata.png' import url from '@/assets/clientDataOverview/nodata.png'
export default { export default {
name: 'clientManage', name: 'clientManage',
// inject: ['reload'],
data() { data() {
return { return {
url: url, url: url,
...@@ -82,19 +83,23 @@ export default { ...@@ -82,19 +83,23 @@ export default {
tableColumns: [ tableColumns: [
{ {
label: '客户群名称', label: '客户群名称',
prop: 'custGroupName' prop: 'custGroupName',
width:180
}, },
{ {
label: '当前客户数', label: '当前客户数',
prop: 'totalCount' prop: 'totalCount',
width:100
}, },
{ {
label: '新增入群客户数', label: '新增入群客户数',
prop: 'newCustomerCount' prop: 'newCustomerCount',
width:120
}, },
{ {
label: '新增退群客户数', label: '新增退群客户数',
prop: 'delCustomerCount' prop: 'delCustomerCount',
width:120
}, },
{ {
label: '群主', label: '群主',
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<el-button plain @click="resetTable">重置</el-button> <el-button plain @click="resetTable">重置</el-button>
<el-button type="primary" @click="searchTable">查询</el-button> <el-button type="primary" @click="searchTable">查询</el-button>
<!-- v-if="(merchantModel == 1 && accountLevel == 1) || (merchantModel == 2 && accountLevel == 4)" 不做判定了, 允许所有人同步 --> <!-- 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> </span>
</search-form> </search-form>
...@@ -55,6 +55,7 @@ import { getTableList, getDictionaryFun, syncCustomer } from '@/api/modules/clie ...@@ -55,6 +55,7 @@ import { getTableList, getDictionaryFun, syncCustomer } from '@/api/modules/clie
import url from '@/assets/clientDataOverview/nodata.png' import url from '@/assets/clientDataOverview/nodata.png'
export default { export default {
name: 'clientManage', name: 'clientManage',
// inject: ['reload'],
data() { data() {
return { return {
url: url, url: url,
...@@ -165,12 +166,13 @@ export default { ...@@ -165,12 +166,13 @@ export default {
label: '客户名称', label: '客户名称',
prop: 'customerName', prop: 'customerName',
addHtml: 'customerName', addHtml: 'customerName',
width: 180 width: 160
}, },
{ {
label: '手机号', label: '手机号',
prop: 'customerPhone', prop: 'customerPhone',
addHtml: 'customerPhone' addHtml: 'customerPhone',
width: 100
}, },
{ {
label: '性别', label: '性别',
...@@ -185,7 +187,8 @@ export default { ...@@ -185,7 +187,8 @@ export default {
{ {
label: '来源', label: '来源',
prop: 'addWay', prop: 'addWay',
addHtml: 'addWay' addHtml: 'addWay',
width: 100
}, },
{ {
label: '是否加企微', //1. 加入,0.未加入 label: '是否加企微', //1. 加入,0.未加入
...@@ -334,6 +337,11 @@ export default { ...@@ -334,6 +337,11 @@ export default {
resetTable() { resetTable() {
this.searchForm = {} this.searchForm = {}
this.$refs.clientManage.refreshTable() this.$refs.clientManage.refreshTable()
// 点击之后强制页面刷新
// this.reload()
// this.$forceUpdate() // 没用
// this.$router.go(0)//没有预期效果,会出现一段空白页,用户体验不好
// location.reload() //没有预期效果,会出现一段空白页,用户体验不好
}, },
goDetail(id) { goDetail(id) {
this.$router.push({ this.$router.push({
......
...@@ -122,9 +122,7 @@ ...@@ -122,9 +122,7 @@
<span class="addTagText">新增标签</span> <span class="addTagText">新增标签</span>
</div> </div>
<!-- v-if="tagNameRules" --> <!-- v-if="tagNameRules" -->
<div class="el-form-item__error" v-if="tagNameRules"> <div class="el-form-item__error" v-if="tagNameRules">请至少添加一个标签</div>
请至少添加一个标签
</div>
</div> </div>
</rule-form> </rule-form>
</slot> </slot>
...@@ -609,7 +607,16 @@ export default { ...@@ -609,7 +607,16 @@ export default {
}, },
handleSelect(value) { handleSelect(value) {
console.log('值内容', 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> </script>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!