Commit 07c7150a by 胡悦

一客一群修改

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