Commit 1a1293dd by xuyl

Merge branch 'v2.3.0' of http://192.168.3.233:8090/saas/scrm-micro-custom into xuyl_dev_v2.4.0

2 parents cf783254 eb77ecd8
...@@ -126,7 +126,7 @@ const staticRoutes = Object.freeze([{ ...@@ -126,7 +126,7 @@ const staticRoutes = Object.freeze([{
}, },
{ {
name: 'crowdDetail', name: 'crowdDetail',
path: '/crowdManage/crowdDetail/:id/:type', path: '/crowdManage/crowdDetail:id',
component: resolve => require([`@/views/crowdManage/crowdDetail.vue`], resolve), component: resolve => require([`@/views/crowdManage/crowdDetail.vue`], resolve),
meta: {} meta: {}
}, },
......
...@@ -206,7 +206,8 @@ export default { ...@@ -206,7 +206,8 @@ export default {
let { id } = this let { id } = this
this.init(id) this.init(id)
// 针对广汇替换字段 // 针对广汇替换字段
if (this.id == 1 && location.host.includes('cgacar')) { // cgacar
if ((this.id == 1 || this.id == 2 || this.id == 3) && location.host.includes('cgacar')) {
this.tableParams.tableColumns.splice( this.tableParams.tableColumns.splice(
3, 3,
3, 3,
......
...@@ -254,11 +254,12 @@ export default { ...@@ -254,11 +254,12 @@ export default {
tableOption: false, tableOption: false,
// mutiSelectName: 'employeeList', // mutiSelectName: 'employeeList',
// mutiSelectUniqueKey: 'id', // mutiSelectUniqueKey: 'id',
tableColumns: [ tableColumns: [
{ {
label: '客户ID', label: '客户ID',
prop: 'oneId', prop: 'oneId',
width:140, width: 140,
line: 1 line: 1
}, },
{ {
...@@ -266,7 +267,7 @@ export default { ...@@ -266,7 +267,7 @@ export default {
prop: 'customerName', prop: 'customerName',
addHtml: 'customerName', addHtml: 'customerName',
width: 120, width: 120,
line:1 line: 1
}, },
{ {
label: '企微名称', label: '企微名称',
...@@ -323,30 +324,30 @@ export default { ...@@ -323,30 +324,30 @@ export default {
label: '车系', label: '车系',
prop: 'audi', prop: 'audi',
width: 120, width: 120,
line:1 line: 1
}, },
{ {
label: '车架号', label: '车架号',
prop: 'carVin', prop: 'carVin',
width: 180, width: 180,
line:1 line: 1
}, },
{ {
label: '车牌号', label: '车牌号',
prop: 'carNumber', prop: 'carNumber',
width: 140, width: 140,
line:1 line: 1
}, },
{ {
label: '购车时间', label: '购车时间',
prop: 'buyDate', prop: 'buyDate',
width: 170, width: 170,
line:1 line: 1
}, },
{ {
label: '操作', label: '操作',
prop: 'optionBtns', prop: 'optionBtns',
width: '65px', width: '66px',
addHtml: 'optionBtns', addHtml: 'optionBtns',
fixed: 'right' fixed: 'right'
} }
......
...@@ -107,7 +107,7 @@ export default { ...@@ -107,7 +107,7 @@ export default {
crowdDesc: '' crowdDesc: ''
}, },
crowdId: this.$route.params.id ? this.$route.params.id : '', crowdId: this.$route.params.id ? this.$route.params.id : '',
crowdPage: this.$route.params.crowdType ? this.$route.params.crowdType : '', crowdPage: this.$route.query.crowdType ? this.$route.query.crowdType : '',
tableTotal: '', tableTotal: '',
isShowCloseBtn: true, isShowCloseBtn: true,
dialogRuleVisible: false, dialogRuleVisible: false,
...@@ -152,7 +152,7 @@ export default { ...@@ -152,7 +152,7 @@ export default {
this.getCrowdDetails() this.getCrowdDetails()
}, },
mounted() { mounted() {
console.log(this.$route.params) console.log(this.$route.query.crowdPage)
}, },
methods: { methods: {
goBack() { goBack() {
......
...@@ -108,12 +108,12 @@ export default { ...@@ -108,12 +108,12 @@ export default {
// this.activeName = 'second' // this.activeName = 'second'
// // window.history.pushState(null, null, location.origin + location.pathname) // // window.history.pushState(null, null, location.origin + location.pathname)
// } // }
// console.log(this.$route.query)
if (this.$route.query.selectTab) { if (this.$route.query.selectTab) {
this.$route.query.selectTab == 1 ? (this.activeName = 'first') : (this.activeName = 'second') this.$route.query.selectTab == 1 ? (this.activeName = 'first') : (this.activeName = 'second')
} }
}, },
mounted() { mounted() {
console.log(this.$route.params)
}, },
methods: { methods: {
// 跳转到营销SOPs // 跳转到营销SOPs
...@@ -124,7 +124,7 @@ export default { ...@@ -124,7 +124,7 @@ export default {
btnClick(type, data) { btnClick(type, data) {
const crowdType = this.activeName == 'first' ? 1 : 2 const crowdType = this.activeName == 'first' ? 1 : 2
if (type == 'detail') { if (type == 'detail') {
this.$router.push(`/crowdManage/crowdDetail/${data.crowdId}/${crowdType}`) this.$router.push(`/crowdManage/crowdDetail/${data.crowdId}?crowdType=${crowdType}`)
} }
if (type == 'view') { if (type == 'view') {
this.$router.push(`/clientDataOverview/group/${data.crowdId}/${crowdType}`) this.$router.push(`/clientDataOverview/group/${data.crowdId}/${crowdType}`)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!