Commit 01434f90 authored by zhengke's avatar zhengke

修改

parent 110634d1
...@@ -93,7 +93,24 @@ ...@@ -93,7 +93,24 @@
<el-form-item label="年收入"> <el-form-item label="年收入">
<el-radio v-model="addMsg.YearMoneyType" v-for="(x,y) in yearMoneyList" :key="y" :label="x.Id">{{x.Name}}</el-radio> <el-radio v-model="addMsg.YearMoneyType" v-for="(x,y) in yearMoneyList" :key="y" :label="x.Id">{{x.Name}}</el-radio>
</el-form-item> </el-form-item>
<el-form-item label="是否显示用户资料">
<el-switch v-model="addMsg.IsShow" active-color="#409EFF" :active-value="1" :inactive-value="0">
</el-switch>
<span class="tip">关闭后,用户将无法显示</span>
</el-form-item>
<el-form-item label="可查看微信次数">
<el-input v-model="addMsg.LookTimes" style="width:478px" size="small" :min="0" type="number"
placeholder="请输入次数">
<template slot="append"></template>
</el-input>
</el-form-item>
<el-form-item label="所属分组">
<el-select v-model="addMsg.BelongGroupIdList" multiple class="w300">
<el-option v-for="item in groupArray" :key="item.GroupId" :label="item.GroupName" :value="item.GroupId">
</el-option>
</el-select>
</el-form-item>
<!-- <el-form-item label="年收入" prop="YearMoney" > <!-- <el-form-item label="年收入" prop="YearMoney" >
<el-input v-model="addMsg.YearMoney" style="width:478px" size="small" :min="0" type="number" placeholder="请输入年收入"> <el-input v-model="addMsg.YearMoney" style="width:478px" size="small" :min="0" type="number" placeholder="请输入年收入">
<template slot="append">万</template> <template slot="append">万</template>
...@@ -295,8 +312,9 @@ ...@@ -295,8 +312,9 @@
DWProvince:'', DWProvince:'',
DWCity:'', DWCity:'',
DWDistrict:'', DWDistrict:'',
IsShow: 1, //默认显示
LookTimes:'',
BelongGroupIdList:[]
}, },
rules: { rules: {
...@@ -364,7 +382,7 @@ ...@@ -364,7 +382,7 @@
addressName2:'请选择个人定位', addressName2:'请选择个人定位',
provinceList: [], //省市县列表 provinceList: [], //省市县列表
props: {value: 'value', children: 'cities'}, props: {value: 'value', children: 'cities'},
groupArray:[] //可查看分组
}; };
}, },
created() { created() {
...@@ -376,7 +394,7 @@ ...@@ -376,7 +394,7 @@
this.GetCarInfoEnumList()//车子情况 this.GetCarInfoEnumList()//车子情况
this.getPosition(null) //地址的请求 this.getPosition(null) //地址的请求
this.getYearMoneyType()//获取年收入的枚举 this.getYearMoneyType()//获取年收入的枚举
this.getgroupList();
}, },
methods: { methods: {
GetEducationTypeEnumList(){//学历 GetEducationTypeEnumList(){//学历
...@@ -601,9 +619,15 @@ ...@@ -601,9 +619,15 @@
// return // return
// } // }
// }) // })
},
//获取分组下来列表
getgroupList() {
this.apipost("/api/User/GetMemberGroupList", {}, res => {
if (res.data.resultCode == 1) {
this.groupArray = res.data.data;
}
});
} }
}, },
mounted() { mounted() {
......
...@@ -3,254 +3,125 @@ ...@@ -3,254 +3,125 @@
<div class="head-title"> <div class="head-title">
用户管理 用户管理
<el-button <el-button @click="dialogVisible = true" style="float: right; margin-top: -5px" size="small" type="primary">批量导出
@click="dialogVisible = true"
style="float: right; margin-top: -5px"
size="small"
type="primary"
>批量导出
</el-button> </el-button>
<el-button <el-button @click="addusers()" style="float: right; margin-top: -5px; margin-right: 10px" size="small"
@click="addusers" type="primary">新增
style="float: right; margin-top: -5px; margin-right: 10px"
size="small"
type="primary"
>新增
</el-button> </el-button>
<el-button <el-button @click="quanxian(0)" style="float: right; margin-top: -5px; margin-right: 10px" size="small"
@click="quanxian(0)" type="primary">发帖权限关闭
style="float: right; margin-top: -5px; margin-right: 10px"
size="small"
type="primary"
>发帖权限关闭
</el-button> </el-button>
<el-button <el-button @click="quanxian(1)" style="float: right; margin-top: -5px; margin-right: 10px" size="small"
@click="quanxian(1)" type="primary">发帖权限开启
style="float: right; margin-top: -5px; margin-right: 10px"
size="small"
type="primary"
>发帖权限开启
</el-button> </el-button>
</div> </div>
<div class="content"> <div class="content">
<div style="display: flex; align-items: center; flex-wrap: wrap"> <div style="display: flex; align-items: center; flex-wrap: wrap">
<el-select <el-select class="w100" @change="(msg.pageIndex = 1), getList()" style="margin-right: 10px; margin-bottom: 10px"
class="w100" v-model="msg.MemberGrade" size="small" placeholder="请选择">
@change="(msg.pageIndex = 1), getList()"
style="margin-right: 10px; margin-bottom: 10px"
v-model="msg.MemberGrade"
size="small"
placeholder="请选择"
>
<el-option label="全部会员" :value="0"></el-option> <el-option label="全部会员" :value="0"></el-option>
<el-option <el-option v-for="item in memberGradeList" :key="item.Id" :label="item.Name" :value="item.Id">
v-for="item in memberGradeList"
:key="item.Id"
:label="item.Name"
:value="item.Id"
>
</el-option> </el-option>
</el-select> </el-select>
<el-select <el-select class="w100" @change="(msg.pageIndex = 1), getList()" style="margin-right: 10px; margin-bottom: 10px"
class="w100" v-model="msg.Source" size="small" placeholder="请选择">
@change="(msg.pageIndex = 1), getList()"
style="margin-right: 10px; margin-bottom: 10px"
v-model="msg.Source"
size="small"
placeholder="请选择"
>
<el-option label="全部平台" :value="0"></el-option> <el-option label="全部平台" :value="0"></el-option>
<el-option <el-option v-for="item in platList" :key="item.Id" :label="item.Name" :value="item.Id">
v-for="item in platList"
:key="item.Id"
:label="item.Name"
:value="item.Id"
>
</el-option> </el-option>
</el-select> </el-select>
<div class="searchInput" style="width: 150px"> <div class="searchInput" style="width: 150px">
<el-input <el-input @keyup.enter.native="(msg.pageIndex = 1), getList()" @clear="(msg.pageIndex = 1), getList()"
@keyup.enter.native="(msg.pageIndex = 1), getList()" style="display: inline-block; width: 125px; height: 30px" placeholder="请输入ID" v-model="msg.Id" size="small"
@clear="(msg.pageIndex = 1), getList()" clearable>
style="display: inline-block; width: 125px; height: 30px"
placeholder="请输入ID"
v-model="msg.Id"
size="small"
clearable
>
</el-input> </el-input>
<span <span @click="(msg.pageIndex = 1), getList()" class="el-icon-search" style="
@click="(msg.pageIndex = 1), getList()"
class="el-icon-search"
style="
color: #979dad; color: #979dad;
font-size: 14px; font-size: 14px;
position: relative; position: relative;
top: 1px; top: 1px;
" "></span>
></span>
</div> </div>
<div class="searchInput" style="width: 150px"> <div class="searchInput" style="width: 150px">
<el-input <el-input @keyup.enter.native="(msg.pageIndex = 1), getList()" @clear="(msg.pageIndex = 1), getList()"
@keyup.enter.native="(msg.pageIndex = 1), getList()" style="display: inline-block; width: 125px; height: 30px" placeholder="请输入昵称" v-model="msg.Name"
@clear="(msg.pageIndex = 1), getList()" size="small" clearable>
style="display: inline-block; width: 125px; height: 30px"
placeholder="请输入昵称"
v-model="msg.Name"
size="small"
clearable
>
</el-input> </el-input>
<span <span @click="(msg.pageIndex = 1), getList()" class="el-icon-search" style="
@click="(msg.pageIndex = 1), getList()"
class="el-icon-search"
style="
color: #979dad; color: #979dad;
font-size: 14px; font-size: 14px;
position: relative; position: relative;
top: 1px; top: 1px;
" "></span>
></span>
</div> </div>
<div class="searchInput" style="width: 150px"> <div class="searchInput" style="width: 150px">
<el-input <el-input @keyup.enter.native="(msg.pageIndex = 1), getList()" @clear="(msg.pageIndex = 1), getList()"
@keyup.enter.native="(msg.pageIndex = 1), getList()" style="display: inline-block; width: 125px; height: 30px" placeholder="请输入手机号" v-model="msg.Moblie"
@clear="(msg.pageIndex = 1), getList()" size="small" clearable>
style="display: inline-block; width: 125px; height: 30px"
placeholder="请输入手机号"
v-model="msg.Moblie"
size="small"
clearable
>
</el-input> </el-input>
<span <span @click="(msg.pageIndex = 1), getList()" class="el-icon-search" style="
@click="(msg.pageIndex = 1), getList()"
class="el-icon-search"
style="
color: #979dad; color: #979dad;
font-size: 14px; font-size: 14px;
position: relative; position: relative;
top: 1px; top: 1px;
" "></span>
></span>
</div> </div>
<el-date-picker <el-date-picker v-model="dateList" @change="(msg.pageIndex = 1), getList()"
v-model="dateList" style="margin-bottom: 10px; margin-right: 20px" size="small" type="datetimerange" range-separator="至"
@change="(msg.pageIndex = 1), getList()" value-format="yyyy-MM-dd HH:mm:ss" start-placeholder="开始日期" end-placeholder="结束日期">
style="margin-bottom: 10px; margin-right: 20px"
size="small"
type="datetimerange"
range-separator="至"
value-format="yyyy-MM-dd HH:mm:ss"
start-placeholder="开始日期"
end-placeholder="结束日期"
>
</el-date-picker> </el-date-picker>
<div <div style="
style="
display: flex; display: flex;
align-items: center; align-items: center;
margin-bottom: 10px; margin-bottom: 10px;
margin-right: 20px; margin-right: 20px;
" ">
>
<span style="margin-right: 5px">学历</span> <span style="margin-right: 5px">学历</span>
<el-select <el-select class="w100" @change="(msg.pageIndex = 1), getList()" style="margin-right: 10px"
class="w100" v-model="msg.EducationType" size="small" placeholder="请选择">
@change="(msg.pageIndex = 1), getList()"
style="margin-right: 10px"
v-model="msg.EducationType"
size="small"
placeholder="请选择"
>
<el-option label="不限" :value="0"></el-option> <el-option label="不限" :value="0"></el-option>
<el-option <el-option v-for="item in EducationList" :key="item.Id" :label="item.Name" :value="item.Id">
v-for="item in EducationList"
:key="item.Id"
:label="item.Name"
:value="item.Id"
>
</el-option> </el-option>
</el-select> </el-select>
</div> </div>
<div <div style="
style="
display: flex; display: flex;
align-items: center; align-items: center;
margin-bottom: 10px; margin-bottom: 10px;
margin-right: 20px; margin-right: 20px;
" ">
>
<span style="margin-right: 5px">婚姻</span> <span style="margin-right: 5px">婚姻</span>
<el-select <el-select class="w100" @change="(msg.pageIndex = 1), getList()" style="margin-right: 10px"
class="w100" v-model="msg.Marriage" size="small" placeholder="请选择">
@change="(msg.pageIndex = 1), getList()"
style="margin-right: 10px"
v-model="msg.Marriage"
size="small"
placeholder="请选择"
>
<el-option label="不限" :value="0"></el-option> <el-option label="不限" :value="0"></el-option>
<el-option <el-option v-for="item in MarriageList" :key="item.Id" :label="item.Name" :value="item.Id">
v-for="item in MarriageList"
:key="item.Id"
:label="item.Name"
:value="item.Id"
>
</el-option> </el-option>
</el-select> </el-select>
</div> </div>
<div <div style="
style="
display: flex; display: flex;
align-items: center; align-items: center;
margin-bottom: 10px; margin-bottom: 10px;
margin-right: 20px; margin-right: 20px;
" ">
>
<span style="margin-right: 5px">房产</span> <span style="margin-right: 5px">房产</span>
<el-select <el-select class="w100" @change="(msg.pageIndex = 1), getList()" style="margin-right: 10px"
class="w100" v-model="msg.HouseInfo" size="small" placeholder="请选择">
@change="(msg.pageIndex = 1), getList()"
style="margin-right: 10px"
v-model="msg.HouseInfo"
size="small"
placeholder="请选择"
>
<el-option label="不限" :value="0"></el-option> <el-option label="不限" :value="0"></el-option>
<el-option <el-option v-for="item in HouseList" :key="item.Id" :label="item.Name" :value="item.Id">
v-for="item in HouseList"
:key="item.Id"
:label="item.Name"
:value="item.Id"
>
</el-option> </el-option>
</el-select> </el-select>
</div> </div>
<div <div style="
style="
display: flex; display: flex;
align-items: center; align-items: center;
margin-bottom: 10px; margin-bottom: 10px;
margin-right: 20px; margin-right: 20px;
" ">
>
<span style="margin-right: 5px">车产</span> <span style="margin-right: 5px">车产</span>
<el-select <el-select class="w100" @change="(msg.pageIndex = 1), getList()" style="margin-right: 10px"
class="w100" v-model="msg.CarInfo" size="small" placeholder="请选择">
@change="(msg.pageIndex = 1), getList()"
style="margin-right: 10px"
v-model="msg.CarInfo"
size="small"
placeholder="请选择"
>
<el-option label="不限" :value="0"></el-option> <el-option label="不限" :value="0"></el-option>
<el-option <el-option v-for="item in CarInfoList" :key="item.Id" :label="item.Name" :value="item.Id">
v-for="item in CarInfoList"
:key="item.Id"
:label="item.Name"
:value="item.Id"
>
</el-option> </el-option>
</el-select> </el-select>
</div> </div>
...@@ -259,93 +130,51 @@ ...@@ -259,93 +130,51 @@
<div style="display: flex; align-items: center"> <div style="display: flex; align-items: center">
年龄{{ ages[0] }}-{{ ages[1] }} 年龄{{ ages[0] }}-{{ ages[1] }}
<div class="block" style="width: 200px; margin-left: 15px"> <div class="block" style="width: 200px; margin-left: 15px">
<el-slider <el-slider v-model="ages" range @change="(msg.pageIndex = 1), getList()" :max="100">
v-model="ages"
range
@change="(msg.pageIndex = 1), getList()"
:max="100"
>
</el-slider> </el-slider>
</div> </div>
</div> </div>
<div style="display: flex; align-items: center; margin-left: 25px"> <div style="display: flex; align-items: center; margin-left: 25px">
身高{{ Heights[0] }}-{{ Heights[1] }}cm 身高{{ Heights[0] }}-{{ Heights[1] }}cm
<div class="block" style="width: 200px; margin-left: 15px"> <div class="block" style="width: 200px; margin-left: 15px">
<el-slider <el-slider v-model="Heights" range @change="(msg.pageIndex = 1), getList()" :max="230">
v-model="Heights"
range
@change="(msg.pageIndex = 1), getList()"
:max="230"
>
</el-slider> </el-slider>
</div> </div>
</div> </div>
<div style="display: flex; align-items: center; margin-left: 25px"> <div style="display: flex; align-items: center; margin-left: 25px">
体重{{ Weights[0] }}-{{ Weights[1] }}kg 体重{{ Weights[0] }}-{{ Weights[1] }}kg
<div class="block" style="width: 200px; margin-left: 15px"> <div class="block" style="width: 200px; margin-left: 15px">
<el-slider <el-slider v-model="Weights" range @change="(msg.pageIndex = 1), getList()" :max="200">
v-model="Weights"
range
@change="(msg.pageIndex = 1), getList()"
:max="200"
>
</el-slider> </el-slider>
</div> </div>
</div> </div>
<div style="display: flex; align-items: center; margin-left: 25px"> <div style="display: flex; align-items: center; margin-left: 25px">
年收入{{ YearMoeys[0] }}-{{ YearMoeys[1] }} 年收入{{ YearMoeys[0] }}-{{ YearMoeys[1] }}
<div class="block" style="width: 300px; margin-left: 15px"> <div class="block" style="width: 300px; margin-left: 15px">
<el-slider <el-slider v-model="YearMoeys" range @change="(msg.pageIndex = 1), getList()" :max="500">
v-model="YearMoeys"
range
@change="(msg.pageIndex = 1), getList()"
:max="500"
>
</el-slider> </el-slider>
</div> </div>
</div> </div>
</div> </div>
<el-table <el-table :data="tableData" v-loading="loading" border style="width: 100%; margin: 20px 0"
:data="tableData" @selection-change="handleSelectionChange">
v-loading="loading"
border
style="width: 100%; margin: 20px 0"
@selection-change="handleSelectionChange"
>
<el-table-column type="selection" width="55" :selectable="checkSelectable"></el-table-column> <el-table-column type="selection" width="55" :selectable="checkSelectable"></el-table-column>
<el-table-column prop="Id" label="ID" width="100"> </el-table-column> <el-table-column prop="Id" label="ID" width="100"> </el-table-column>
<el-table-column prop="address" width="280" label="头像"> <el-table-column prop="address" width="280" label="头像">
<template slot-scope="scope"> <template slot-scope="scope">
<div <div class="app-image" :style="{
class="app-image"
:style="{
backgroundImage: 'url(' + scope.row.Photo + ')', backgroundImage: 'url(' + scope.row.Photo + ')',
backgroundSize: 'cover', backgroundSize: 'cover',
}" }"></div>
></div>
<div flex="dir:left cross:center"> <div flex="dir:left cross:center">
{{ scope.row.Name }} {{ scope.row.Name }}
<span <span v-if="scope.row.AliasName && scope.row.AliasName != ''"
v-if="scope.row.AliasName && scope.row.AliasName != ''" class="remark_name">备注名:{{ scope.row.AliasName }}</span>
class="remark_name"
>备注名:{{ scope.row.AliasName }}</span
>
</div> </div>
<img <img v-if="scope.row.Source == 1" style="width: 24px; height: 24px" src="../../assets/img/userman/wx.png"
v-if="scope.row.Source == 1" alt="" class="platform-img" />
style="width: 24px; height: 24px" <button type="button" class="el-button el-button--success" style="float: right; padding: 5px !important">
src="../../assets/img/userman/wx.png" <span @click="ChangeOpenidState(scope.$index, scope.row)">显示OpenId</span>
alt=""
class="platform-img"
/>
<button
type="button"
class="el-button el-button--success"
style="float: right; padding: 5px !important"
>
<span @click="ChangeOpenidState(scope.$index, scope.row)"
>显示OpenId</span
>
</button> </button>
<div v-show="scope.row.OpenIdState">{{ scope.row.OpenId }}</div> <div v-show="scope.row.OpenIdState">{{ scope.row.OpenId }}</div>
<div v-if="scope.row.WechatNo!=''">微信号:{{scope.row.WechatNo}}</div> <div v-if="scope.row.WechatNo!=''">微信号:{{scope.row.WechatNo}}</div>
...@@ -354,36 +183,19 @@ ...@@ -354,36 +183,19 @@
</el-table-column> </el-table-column>
<el-table-column label="会员类型"> <el-table-column label="会员类型">
<template slot-scope="scope"> <template slot-scope="scope">
<span <span>{{ scope.row.MemberGradeName }}
>{{ scope.row.MemberGradeName }}
<span> <span>
<el-tag <el-tag v-if="scope.row.UserPageTypeStr == '全部'" size="mini">{{ scope.row.UserPageTypeStr }}</el-tag>
v-if="scope.row.UserPageTypeStr == '全部'" <el-tag v-if="scope.row.UserPageTypeStr == '商城'" type="success" size="mini">
size="mini" {{ scope.row.UserPageTypeStr }}</el-tag>
>{{ scope.row.UserPageTypeStr }}</el-tag <el-tag v-if="scope.row.UserPageTypeStr == '校园'" type="danger" size="mini">
> {{ scope.row.UserPageTypeStr }}</el-tag>
<el-tag
v-if="scope.row.UserPageTypeStr == '商城'"
type="success"
size="mini"
>{{ scope.row.UserPageTypeStr }}</el-tag
>
<el-tag
v-if="scope.row.UserPageTypeStr == '校园'"
type="danger"
size="mini"
>{{ scope.row.UserPageTypeStr }}</el-tag
>
</span> </span>
</span> </span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column prop="SuperiorName" label="上级" width="150"></el-table-column>
prop="SuperiorName"
label="上级"
width="150"
></el-table-column>
<el-table-column prop="Age" label="基础资料" width="120"> <el-table-column prop="Age" label="基础资料" width="120">
<template slot-scope="scope"> <template slot-scope="scope">
<div>年龄:{{scope.row.Age}}</div> <div>年龄:{{scope.row.Age}}</div>
...@@ -400,7 +212,7 @@ ...@@ -400,7 +212,7 @@
<div>车产:{{ scope.row.CarInfoStr }}</div> <div>车产:{{ scope.row.CarInfoStr }}</div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="Age" label="是否认证" > <el-table-column prop="Age" label="是否认证">
<template slot-scope="scope"> <template slot-scope="scope">
<!-- <span v-if="scope.row.BaseInfoId>0" style="color:#409EFF">认证</span> <!-- <span v-if="scope.row.BaseInfoId>0" style="color:#409EFF">认证</span>
<span v-if="scope.row.BaseInfoId==0" style="color:#F56C6C">未认证</span> --> <span v-if="scope.row.BaseInfoId==0" style="color:#F56C6C">未认证</span> -->
...@@ -416,17 +228,8 @@ ...@@ -416,17 +228,8 @@
<span style="font-size: 11px"> <span style="font-size: 11px">
{{ scope.row.PointNum }} {{ scope.row.PointNum }}
</span> </span>
<el-tooltip <el-tooltip class="item" effect="dark" content="修改星星点数" placement="top">
class="item" <img @click="editGoods(scope.row, scope.$index)" src="../../assets/img/userman/edit1.png" alt="" />
effect="dark"
content="修改星星点数"
placement="top"
>
<img
@click="editGoods(scope.row, scope.$index)"
src="../../assets/img/userman/edit1.png"
alt=""
/>
</el-tooltip> </el-tooltip>
</div> </div>
</template> </template>
...@@ -434,122 +237,59 @@ ...@@ -434,122 +237,59 @@
<el-table-column prop="CarInfoStr" label="发帖权限"> <el-table-column prop="CarInfoStr" label="发帖权限">
<template slot-scope="scope"> <template slot-scope="scope">
<el-switch <el-switch v-model="scope.row.IsFaTie" @change="ChangeEnabled(scope.row)" active-color="#409EFF"
v-model="scope.row.IsFaTie" :active-value="1" :inactive-value="0" :disabled='scope.row.BaseInfoId==0?true:false'>
@change="ChangeEnabled(scope.row)"
active-color="#409EFF"
:active-value="1"
:inactive-value="0"
:disabled='scope.row.BaseInfoId==0?true:false'
>
</el-switch> </el-switch>
<!-- <div v-if="scope.row.IsFaTie==0">关闭</div> <!-- <div v-if="scope.row.IsFaTie==0">关闭</div>
<div v-if="scope.row.IsFaTie==1">开启</div> --> <div v-if="scope.row.IsFaTie==1">开启</div> -->
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column prop="CreateDate" width="150" label="加入时间"></el-table-column>
prop="CreateDate"
width="150"
label="加入时间"
></el-table-column>
<el-table-column prop="address" width="140" label="操作" fixed="right"> <el-table-column prop="address" width="140" label="操作" fixed="right">
<template slot-scope="scope"> <template slot-scope="scope">
<el-tooltip <el-tooltip class="item" effect="dark" content="编辑" placement="top">
class="item" <img @click="EditgoUrl(scope.row)" style="width: 32px; height: 32px"
effect="dark" src="../../assets/img/userman/edit.png" alt="" />
content="编辑"
placement="top"
>
<img
@click="EditgoUrl(scope.row)"
style="width: 32px; height: 32px"
src="../../assets/img/userman/edit.png"
alt=""
/>
</el-tooltip> </el-tooltip>
<el-tooltip <el-tooltip class="item" effect="dark" content="二维码" placement="top">
class="item" <img @click="showQRcode(scope.row)" style="width: 32px; height: 32px"
effect="dark" src="../../assets/img/userman/QRcode.png" alt="" />
content="二维码"
placement="top"
>
<img
@click="showQRcode(scope.row)"
style="width: 32px; height: 32px"
src="../../assets/img/userman/QRcode.png"
alt=""
/>
</el-tooltip> </el-tooltip>
<el-tooltip <el-tooltip class="item" effect="dark" content="查看详情" placement="top">
class="item" <img @click="showDetail(scope.row)" style="width: 32px; height: 32px"
effect="dark" src="../../assets/img/userman/icon-show.png" alt="" />
content="查看详情"
placement="top"
>
<img
@click="showDetail(scope.row)"
style="width: 32px; height: 32px"
src="../../assets/img/userman/icon-show.png"
alt=""
/>
</el-tooltip> </el-tooltip>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<el-pagination <el-pagination style="text-align: right" background @current-change="handleCurrentChange"
style="text-align: right" :page-size="msg.pageSize" :current-page.sync="msg.pageIndex" layout="total,prev, pager, next" :total="total">
background
@current-change="handleCurrentChange"
:page-size="msg.pageSize"
:current-page.sync="msg.pageIndex"
layout="total,prev, pager, next"
:total="total"
>
</el-pagination> </el-pagination>
</div> </div>
<!-- 选择导出信息 --> <!-- 选择导出信息 -->
<el-dialog title="选择导出信息" :visible.sync="dialogVisible" width="960px"> <el-dialog title="选择导出信息" :visible.sync="dialogVisible" width="960px">
<el-form <el-form style="border: 1px solid #f0f2f7" :model="addMsg" ref="addMsg" label-width="100px">
style="border: 1px solid #f0f2f7" <div style="
:model="addMsg"
ref="addMsg"
label-width="100px"
>
<div
style="
box-sizing: border-box; box-sizing: border-box;
background-color: #f3f5f6; background-color: #f3f5f6;
width: 100%; width: 100%;
padding-left: 20px; padding-left: 20px;
height: 50px; height: 50px;
line-height: 50px; line-height: 50px;
" ">
> <el-checkbox :indeterminate="isIndeterminate" v-model="checkAll" @change="handleCheckAllChange">全选
<el-checkbox
:indeterminate="isIndeterminate"
v-model="checkAll"
@change="handleCheckAllChange"
>全选
</el-checkbox> </el-checkbox>
</div> </div>
<div style="margin: 15px 0"></div> <div style="margin: 15px 0"></div>
<div style="padding: 10px 25px 20px"> <div style="padding: 10px 25px 20px">
<el-checkbox-group <el-checkbox-group v-model="checkedCities" @change="handleCheckedCitiesChange">
v-model="checkedCities" <el-checkbox style="margin-bottom: 10px; width: 135px" v-for="city in cities" :label="city.Id"
@change="handleCheckedCitiesChange" :key="city.Name">
> {{ city.Name }}</el-checkbox>
<el-checkbox
style="margin-bottom: 10px; width: 135px"
v-for="city in cities"
:label="city.Id"
:key="city.Name"
>
{{ city.Name }}</el-checkbox
>
</el-checkbox-group> </el-checkbox-group>
</div> </div>
</el-form> </el-form>
...@@ -559,19 +299,9 @@ ...@@ -559,19 +299,9 @@
</el-dialog> </el-dialog>
<!-- 修改星星数 --> <!-- 修改星星数 -->
<el-dialog <el-dialog title="修改星星数" :visible.sync="Egoods" width="600px" :close-on-click-modal="false">
title="修改星星数"
:visible.sync="Egoods"
width="600px"
:close-on-click-modal="false"
>
<div> <div>
<el-form <el-form :model="modifyobj" :rules="rules" ref="modifyobj" label-width="150px">
:model="modifyobj"
:rules="rules"
ref="modifyobj"
label-width="150px"
>
<el-form-item label="修改模式"> <el-form-item label="修改模式">
<el-radio v-model="modifyobj.IsAdd" :label="1">增加</el-radio> <el-radio v-model="modifyobj.IsAdd" :label="1">增加</el-radio>
<el-radio v-model="modifyobj.IsAdd" :label="2">减少</el-radio> <el-radio v-model="modifyobj.IsAdd" :label="2">减少</el-radio>
...@@ -580,31 +310,20 @@ ...@@ -580,31 +310,20 @@
<span>{{ PNum }}</span> <span>{{ PNum }}</span>
</el-form-item> </el-form-item>
<el-form-item label="修改星星数"> <el-form-item label="修改星星数">
<el-input <el-input v-model="modifyobj.PonitNum" style="width: 260px" size="small" :min="0" type="number"
v-model="modifyobj.PonitNum" placeholder="请输入星星数"></el-input>
style="width: 260px"
size="small"
:min="0"
type="number"
placeholder="请输入星星数"
></el-input>
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<el-button size="small" @click="Egoods = false">关 闭</el-button> <el-button size="small" @click="Egoods = false">关 闭</el-button>
<el-button size="small" type="primary" @click="setUpdatePointNum()" <el-button size="small" type="primary" @click="setUpdatePointNum()">修 改</el-button>
>修 改</el-button
>
</span> </span>
</el-dialog> </el-dialog>
<!-- 充值积分 --> <!-- 充值积分 -->
<el-dialog title="二维码" :visible.sync="qrshow" width="600px"> <el-dialog title="二维码" :visible.sync="qrshow" width="600px">
<div style="display: flex; align-items: center; justify-content: center"> <div style="display: flex; align-items: center; justify-content: center">
<el-image <el-image style="width: 200px; height: 200px" :src="qrcodeImg"></el-image>
style="width: 200px; height: 200px"
:src="qrcodeImg"
></el-image>
</div> </div>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<el-button size="small" @click="qrshow = false">关 闭</el-button> <el-button size="small" @click="qrshow = false">关 闭</el-button>
...@@ -620,9 +339,9 @@ ...@@ -620,9 +339,9 @@
</div> </div>
</template> </template>
<script> <script>
import ChooseImg from "@/components/global/ChooseImg.vue"; import ChooseImg from "@/components/global/ChooseImg.vue";
import detail from "./components/seeDetail"; import detail from "./components/seeDetail";
export default { export default {
components: { components: {
ChooseImg, ChooseImg,
detail, detail,
...@@ -673,20 +392,16 @@ export default { ...@@ -673,20 +392,16 @@ export default {
platList: [], platList: [],
memberGradeList: [], memberGradeList: [],
rules: { rules: {
Type: [ Type: [{
{
required: true, required: true,
message: "请选择类型", message: "请选择类型",
trigger: "change", trigger: "change",
}, }, ],
], Integral: [{
Integral: [
{
required: true, required: true,
message: "请输入积分", message: "请输入积分",
trigger: "blur", trigger: "blur",
}, }, ],
],
}, },
addMsg: { addMsg: {
MallBaseId: 0, MallBaseId: 0,
...@@ -712,9 +427,9 @@ export default { ...@@ -712,9 +427,9 @@ export default {
PonitNum: 0, PonitNum: 0,
}, },
PNum: 0, PNum: 0,
quanxianMsg:{ quanxianMsg: {
UserIds:'', UserIds: '',
IsFaTie:0, IsFaTie: 0,
} }
}; };
}, },
...@@ -777,8 +492,10 @@ export default { ...@@ -777,8 +492,10 @@ export default {
showQRcode(row) { showQRcode(row) {
this.apipost( this.apipost(
"/api/user/GetWeiXinQRCodeForHT", "/api/user/GetWeiXinQRCodeForHT", {
{ Path: "/pages/index/index?user_id=" + row.Id, With: 212 }, Path: "/pages/index/index?user_id=" + row.Id,
With: 212
},
(res) => { (res) => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
if (res.data.data) { if (res.data.data) {
...@@ -791,25 +508,27 @@ export default { ...@@ -791,25 +508,27 @@ export default {
} }
); );
}, },
checkSelectable(row){//判断是否可以选择 checkSelectable(row) { //判断是否可以选择
return row.BaseInfoId>0 return row.BaseInfoId > 0
}, },
handleSelectionChange(val){ handleSelectionChange(val) {
let data = []; let data = [];
this.quanxianMsg.UserIds='', this.quanxianMsg.UserIds = '',
val.map(x=>{ val.map(x => {
data.push(x.Id) data.push(x.Id)
}) })
this.quanxianMsg.UserIds = data.join(',') this.quanxianMsg.UserIds = data.join(',')
}, },
quanxian(type){ quanxian(type) {
if(this.quanxianMsg.UserIds==''){ if (this.quanxianMsg.UserIds == '') {
this.Error('选择要设置的用户') this.Error('选择要设置的用户')
return return
} }
this.apipost( this.apipost(
"/api/Miai/UpdateFaTie", "/api/Miai/UpdateFaTie", {
{ UserIds:this.quanxianMsg.UserIds , IsFaTie: type }, UserIds: this.quanxianMsg.UserIds,
IsFaTie: type
},
(res) => { (res) => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.Success(res.data.message) this.Success(res.data.message)
...@@ -821,10 +540,12 @@ export default { ...@@ -821,10 +540,12 @@ export default {
); );
}, },
ChangeEnabled(row){ ChangeEnabled(row) {
this.apipost( this.apipost(
"/api/Miai/UpdateFaTie", "/api/Miai/UpdateFaTie", {
{ UserIds:row.Id , IsFaTie: row.IsFaTie }, UserIds: row.Id,
IsFaTie: row.IsFaTie
},
(res) => { (res) => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.Success(res.data.message) this.Success(res.data.message)
...@@ -982,42 +703,43 @@ export default { ...@@ -982,42 +703,43 @@ export default {
}, },
}, },
mounted() {}, mounted() {},
}; };
</script> </script>
<style> <style>
.blindDateUsersList .remark_name { .blindDateUsersList .remark_name {
color: #888888; color: #888888;
font-size: 12px; font-size: 12px;
margin-left: 10px; margin-left: 10px;
float: right; float: right;
} }
.blindDateUsersList .app-image { .blindDateUsersList .app-image {
background-position: center center; background-position: center center;
width: 50px; width: 50px;
height: 50px; height: 50px;
border-radius: 0%; border-radius: 0%;
float: left; float: left;
margin-right: 8px; margin-right: 8px;
} }
.blindDateUsersList .blue { .blindDateUsersList .blue {
color: #409eff; color: #409eff;
} }
.blindDateUsersList .content .searchInput { .blindDateUsersList .content .searchInput {
border: 1px solid #dcdfe6; border: 1px solid #dcdfe6;
border-radius: 4px; border-radius: 4px;
} }
.blindDateUsersList .content .searchInput .el-input__inner { .blindDateUsersList .content .searchInput .el-input__inner {
border: none; border: none;
outline: none; outline: none;
height: 30px; height: 30px;
line-height: 30px; line-height: 30px;
} }
.blindDateUsersList .content .searchInput { .blindDateUsersList .content .searchInput {
line-height: normal; line-height: normal;
display: inline-table; display: inline-table;
width: 100%; width: 100%;
...@@ -1026,12 +748,13 @@ export default { ...@@ -1026,12 +748,13 @@ export default {
width: 250px; width: 250px;
margin-right: 20px; margin-right: 20px;
margin-bottom: 10px; margin-bottom: 10px;
} }
.blindDateUsersList .content { .blindDateUsersList .content {
background: #fff; background: #fff;
margin-top: 10px; margin-top: 10px;
padding: 20px; padding: 20px;
box-sizing: border-box; box-sizing: border-box;
} }
</style> </style>
...@@ -118,7 +118,10 @@ ...@@ -118,7 +118,10 @@
</el-input> </el-input>
</el-form-item> </el-form-item>
<el-form-item label="所属分组"> <el-form-item label="所属分组">
addMsg.BelongGroupIdList <el-select v-model="addMsg.BelongGroupIdList" multiple class="w300">
<el-option v-for="item in groupArray" :key="item.GroupId" :label="item.GroupName" :value="item.GroupId">
</el-option>
</el-select>
</el-form-item> </el-form-item>
<el-form-item label="现据地"> <el-form-item label="现据地">
...@@ -303,6 +306,7 @@ ...@@ -303,6 +306,7 @@
value: 'value', value: 'value',
children: 'cities' children: 'cities'
}, },
groupArray:[] //可查看分组
}; };
}, },
created() { created() {
...@@ -313,6 +317,7 @@ ...@@ -313,6 +317,7 @@
this.GetCarInfoEnumList() //车子情况 this.GetCarInfoEnumList() //车子情况
this.getPosition(null) //地址的请求 this.getPosition(null) //地址的请求
this.getYearMoneyType() //获取年收入的枚举 this.getYearMoneyType() //获取年收入的枚举
this.getgroupList() //获取用户分组
if (this.$route.query.UserId) { if (this.$route.query.UserId) {
this.UserId = this.$route.query.UserId; this.UserId = this.$route.query.UserId;
...@@ -560,6 +565,14 @@ ...@@ -560,6 +565,14 @@
this.yearMoneyList = res.data.data; this.yearMoneyList = res.data.data;
}); });
}, },
//获取分组下来列表
getgroupList() {
this.apipost("/api/User/GetMemberGroupList", {}, res => {
if (res.data.resultCode == 1) {
this.groupArray = res.data.data;
}
});
}
}, },
mounted() { mounted() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment