Compare commits

..

2 Commits

Author SHA1 Message Date
Santaner 78db8d8611 优化 9 months ago
santaner d51a212095 240119 10 months ago
  1. 4
      src/api/user.js
  2. 3
      src/libs/settingMer.js
  3. 15
      src/views/user/list/index.vue
  4. 2
      src/views/user/list2/index.vue

@ -194,8 +194,8 @@ export function userLstApi11(id) {
return request.get(`user/partner/${id}`)
}
export function userLstApi12(data) {
return request.post(`user/partner/${data.uid}`,data)
export function userLstApi12(data,uid) {
return request.post(`user/partner/${uid}`,data)
}
/**
* @description 用户列表 -- 设置分组

@ -9,7 +9,8 @@
// +----------------------------------------------------------------------
import Cookies from "js-cookie";
// 请求接口地址 如果没有配置自动获取当前网址路径
const VUE_APP_API_URL = 'https://b2b2c.njrenzhou.cn'
// const VUE_APP_API_URL = 'https://b2b2c.njrenzhou.cn'
const VUE_APP_API_URL = 'https://shop.freelycar.cn'
const VUE_APP_WS_URL = process.env.VUE_APP_WS_URL || (location.protocol === 'https:' ? 'wss' : 'ws') + ':' + location.hostname
const login_title = Cookies.get('MerInfo') ? JSON.parse(Cookies.get('MerInfo')).login_title : ''
const SettingMer = {

@ -269,6 +269,11 @@
<!-- </template>-->
<!-- </el-table-column>-->
<el-table-column label="推荐人" min-width="140">
<template slot-scope="{row}">
<span>{{ row.spread2 ? row.spread2.nickname + ' / ' + row.spread2.uid : '-' }}</span>
</template>
</el-table-column>
<el-table-column label="辅导员" min-width="140">
<template slot-scope="{row}">
<span>{{ row.spread ? row.spread.nickname + ' / ' + row.spread.uid : '-' }}</span>
</template>
@ -307,7 +312,7 @@
<!-- </el-dropdown-item>-->
<el-dropdown-item @click.native="wmc(scope.row)">设置用户合作方角色
</el-dropdown-item>
<el-dropdown-item v-if="!scope.row.cancel_time" @click.native="setModify(scope.row)">修改推荐人
<el-dropdown-item v-if="!scope.row.cancel_time" @click.native="setModify(scope.row)">修改辅导员
</el-dropdown-item>
<el-dropdown-item v-if="!scope.row.cancel_time" @click.native="setPassword(scope.row)">修改密码
</el-dropdown-item>
@ -572,10 +577,10 @@ export default {
handleTypeChange4(value) {
var dd = {
user_role_id: this.sel,
uid: this.uid2
uid: this.uid2.uid
}
userLstApi12(dd).then(res => {
userLstApi12(dd,this.uid2.uid).then(res => {
this.dialogVisible = false //
this.$message.success('成功')
}).catch(res => {
@ -828,7 +833,7 @@ export default {
},
wmc(value) {
this.dialogVisible = true
this.uid2 = val
this.uid2 = value
userLstApi11(value.uid).then(res => {
this.ulist = res.data.option
this.sel = res.data.partner_id
@ -852,7 +857,7 @@ export default {
giveMember(row) {
this.$modalForm(giveMemberApi(row.uid)).then(() => this.getList(''))
},
//
//
setModify(row) {
this.$modalForm(modifyUserReferrer(row.uid)).then(({ message }) => {
this.getList('')

@ -47,7 +47,7 @@
<el-table-column label=" 角色代理类型" min-width="100">
<template slot-scope="{row}">
<span>{{
row.type == '1' ? '全部' : row.type == '2' ? '区' : row.type == '3' ? '品牌' : row.type == '4' ? '行业' : '无'
row.type == '1' ? '全部' : row.type == '2' ? '区' : row.type == '3' ? '品牌' : row.type == '4' ? '行业' : '无'
}}</span>
</template>
</el-table-column>

Loading…
Cancel
Save