|
@@ -151,7 +151,7 @@
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
|
- this.$http.get('/account/role/currentRole').then(res => {
|
|
|
+ this.$http.get('/btob/account/role/currentRole').then(res => {
|
|
|
this.thisUser = this.$store.state.option.user.data
|
|
|
this.enabled = res.data.count > 0 || this.thisUser.sys
|
|
|
})
|
|
@@ -164,7 +164,7 @@
|
|
|
if (this.modalObj.customer.myEnterprise.uu) {
|
|
|
// 当前用户是管理员时
|
|
|
if (this.thisUser.sys) {
|
|
|
- this.$http.post(`/account/user/transferUserToVendor/${this.modalObj.customer.id}`, this.modalObj.originList).then(data => {
|
|
|
+ this.$http.post(`/btob/account/user/transferUserToVendor/${this.modalObj.customer.id}`, this.modalObj.originList).then(data => {
|
|
|
this.onMind('转移成功!')
|
|
|
this.closeModal()
|
|
|
this.setSelect(true)
|
|
@@ -187,7 +187,7 @@
|
|
|
this.onMind('您未选择权限转移对象!')
|
|
|
this.closeModal()
|
|
|
} else {
|
|
|
- this.$http.post(`/account/user/transferMyDistribute?custUU=${this.modalObj.customer.myEnterprise.uu}&userUU=${this.target.userUU}`, {})
|
|
|
+ this.$http.post(`/btob/account/user/transferMyDistribute?custUU=${this.modalObj.customer.myEnterprise.uu}&userUU=${this.target.userUU}`, {})
|
|
|
.then(data => {
|
|
|
this.onMind('转移成功!')
|
|
|
this.closeModal()
|
|
@@ -202,7 +202,7 @@
|
|
|
this.closeModal()
|
|
|
}
|
|
|
} else {
|
|
|
- this.$http.post(`/account/user/bindUserToVendor/${this.modalObj.customer.id}`, this.modalObj.originList).then(res => {
|
|
|
+ this.$http.post(`/btob/account/user/bindUserToVendor/${this.modalObj.customer.id}`, this.modalObj.originList).then(res => {
|
|
|
this.onMind('分配成功!')
|
|
|
this.closeModal()
|
|
|
this.setSelect(true)
|
|
@@ -287,10 +287,10 @@
|
|
|
this.modalObj.keyword = ''
|
|
|
this.modalObj.type = 'add'
|
|
|
this.modalObj.customer = customer
|
|
|
- this.$http.get(`/account/user/getEnTransfer/${customer.myEnterprise.uu}`).then(res => {
|
|
|
+ this.$http.get(`/btob/account/user/getEnTransfer/${customer.myEnterprise.uu}`).then(res => {
|
|
|
customer.enTransfer = res.data.result
|
|
|
if (this.enabled || customer.enTransfer) {
|
|
|
- this.$http.get(`/account/user/customer/${customer.id}`, {params: this.modalParams}).then(data => {
|
|
|
+ this.$http.get(`/btob/account/user/customer/${customer.id}`, {params: this.modalParams}).then(data => {
|
|
|
customer.userinfos = data.data.content
|
|
|
this.modalObj.showModal = true
|
|
|
this.modalObj.showModalList = customer.userinfos
|
|
@@ -307,13 +307,13 @@
|
|
|
this.modalObj.keyword = ''
|
|
|
this.modalObj.type = 'chance'
|
|
|
this.modalObj.customer = customer
|
|
|
- this.$http.get(`/account/user/getDistribute/${customer.id}`).then(res => {
|
|
|
+ this.$http.get(`/btob/account/user/getDistribute/${customer.id}`).then(res => {
|
|
|
customer.enTransfer = res.data.result
|
|
|
if (this.enabled || customer.enTransfer) {
|
|
|
this.$http.get('/authentication').then(res => {
|
|
|
this.thisUser = res.data
|
|
|
})
|
|
|
- this.$http.get(`/account/user/customer/${customer.id}`, {params: this.modalParams}).then(data => {
|
|
|
+ this.$http.get(`/btob/account/user/customer/${customer.id}`, {params: this.modalParams}).then(data => {
|
|
|
customer.userinfos = data.data.content
|
|
|
customer.userinfos.forEach(user => {
|
|
|
if (this.$store.state.option.user.data.userUU === user.userUU && user.transfer) {
|