Commit 07c7150a by 胡悦

一客一群修改

1 parent cab1c744
......@@ -14,7 +14,7 @@ const PATH2 = 'entmicro.api.group.'
const templateList = params => {
params.method = `${PATH}page`
return http2({
return http3({
url: URL,
method: 'GET',
data: params,
......@@ -24,7 +24,7 @@ const templateList = params => {
const insert = params => {
params.method = `${PATH}insert`
return http2({
return http3({
url: URL,
method: 'POST',
data: params,
......@@ -34,7 +34,7 @@ const insert = params => {
const update = params => {
params.method = `${PATH}update`
return http2({
return http3({
url: URL,
method: 'POST',
data: params,
......@@ -44,7 +44,7 @@ const update = params => {
const detail = params => {
params.method = `${PATH}detail`
return http2({
return http3({
url: URL,
method: 'GET',
data: params,
......@@ -54,7 +54,7 @@ const detail = params => {
const status = params => {
params.method = `${PATH}status`
return http2({
return http3({
url: URL,
method: 'GET',
data: params,
......@@ -64,7 +64,7 @@ const status = params => {
const listDepartmentTree = params => {
params.method = 'entmicro.api.department.listDepartmentTree'
return http2({
return http3({
url: URL,
method: 'GET',
data: params,
......@@ -74,7 +74,7 @@ const listDepartmentTree = params => {
const nameVaild = params => {
params.method = 'entmicro.api.one.template.name.valid'
return http2({
return http3({
url: URL,
method: 'GET',
data: params,
......@@ -84,7 +84,7 @@ const nameVaild = params => {
const updateNameVaild = params => {
params.method = 'entmicro.api.one.template.name.update.valid'
return http2({
return http3({
url: URL,
method: 'GET',
data: params,
......@@ -104,7 +104,7 @@ const getStatus = params => {
//一客一群详情页
const getListApi = params => {
params.method = `${PATH}page`
return http2({
return http3({
url: URL,
method: 'GET',
data: params,
......@@ -114,7 +114,7 @@ const getListApi = params => {
const customerList = params => {
params.method = `${PATH2}template.customer.page`
return http2({
return http3({
url: URL,
method: 'GET',
data: params,
......@@ -124,7 +124,7 @@ const customerList = params => {
const getFollower = params => {
params.method = 'entmicro.api.staff.listFollowerStaffByPage'
return http2({
return http3({
url: '/rop-scrm-entmicro/router',
method: 'POST',
data: params,
......
......@@ -43,7 +43,7 @@
<span>{{ basicForm.followList ? basicForm.followList.length : 0 }}</span>
人
</span>
<div :key="key" class="sale-select" v-show="basicForm.followList.length">
<div :key="followkey" class="sale-select" v-show="basicForm.followList.length">
<div class="el-input-tag input-tag-wrapper">
<div style="max-height: 64px">
<el-tag
......@@ -230,6 +230,7 @@ export default {
},
membersVisible: false,
key: new Date(),
followkey: new Date(),
previewFlag: false,
selectData: [],
editStatus: false,
......@@ -310,6 +311,11 @@ export default {
message: '操作成功!'
})
this.$router.push('/guestGroup/index')
} else {
this.$message({
type: 'error',
message: '操作失败'
})
}
})
.catch(err => {
......@@ -386,9 +392,11 @@ export default {
staffName: item.staffName
}
})
this.followkey = new Date()
},
removeFollow(idx) {
this.basicForm.followList.splice(idx, 1)
this.followkey = new Date()
}
}
}
......
......@@ -399,7 +399,7 @@ export default {
},
getGroupList(id) {
// const id = this.userId
this.$apis.groupGuest.getListApi({id}).then(res => {
this.$apis.groupGuest.detail({id}).then(res => {
if (res) {
this.followList = []
this.memberList = []
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!