Commit d94a1a45 by 王志慧

跳转详情修改

1 parent 14f025d5
......@@ -243,10 +243,10 @@ export default {
},
mounted() {
this.showLoading()
let { id, customerId } = this.getQuery()
let { id, customerId, isTrue } = this.getQuery()
// console.log(id,'测试测试')
// id = 'wo_pmOEQAAr93aXGLTNtAjLGZZxpwXuQ'
if (id) {
if (id || isTrue) {
this.id = id
this.customerId = customerId //用来判断。若员工尚未添加该客户为好友,则暂不允许在客户跟进中修改客户的信息,仅只读。
this.getCustomerDetail(id)
......
......@@ -46,6 +46,7 @@
<script>
import index from '@/views/customer'
import { detailApi, wxConfig } from '@/api'
import { Dialog } from 'vant'
export default {
components: { index },
data() {
......
......@@ -102,7 +102,7 @@ export default {
Toast('该用户尚未成为企业微信客户,请先添加为客户')
return
}
if (this.tabIndex == 0) this.$router.push({ path: '/customer/detail', query: { id: data.userId, customerId: data.isMyCustomer } })
if (this.tabIndex == 0) this.$router.push({ name: 'customer.detail', query: { id: data.userId, customerId: data.isMyCustomer,isTrue:true } })
if (this.tabIndex == 1) {
let seach = {
userIds: [this.workUserId], //参与会话的企业成员列表,格式为userid1;userid2;...,用分号隔开。
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!