Commit 70b51888 authored by Mac's avatar Mac

1

parent 46edf94e
......@@ -161,7 +161,7 @@
<el-form-item label="希望的TA是..." >
<el-input v-model="addMsg.HopeYou" style="width:478px" size="small" placeholder="希望心中的TA是一个什么样的人" type="textarea" maxlength="500" show-word-limit></el-input>
</el-form-item>
<el-form-item label="约会时间" >
<!-- <el-form-item label="约会时间" >
<el-date-picker
v-model="addMsg.Appointment"
type="datetime"
......@@ -171,10 +171,14 @@
</el-form-item>
<el-form-item label="约会地点" >
<el-input v-model="addMsg.AppointmentAddress" style="width:478px" size="small" placeholder="请输入约会地点" ></el-input>
</el-form-item>
</el-form-item> -->
<el-form-item label="活动范围" >
<el-input v-model="addMsg.ActivityRegion" style="width:478px" size="small" placeholder="请输入活动范围" type="textarea" maxlength="500" show-word-limit></el-input>
</el-form-item>
<el-form-item label="发帖权利">
<el-radio v-model="addMsg.IsFaTie" :label="1">开启</el-radio>
<el-radio v-model="addMsg.IsFaTie" :label="0">关闭</el-radio>
</el-form-item>
......@@ -213,7 +217,7 @@
UserPageType:0,
CounponPassword:0,
KeyWord:'',
IsFaTie:0,
Sex:'1',
Weight:0,
Height:0,
......
......@@ -17,13 +17,27 @@
type="primary"
>新增
</el-button>
<el-button
@click="quanxian(0)"
style="float: right; margin-top: -5px; margin-right: 10px"
size="small"
type="primary"
>发布权限关闭
</el-button>
<el-button
@click="quanxian(1)"
style="float: right; margin-top: -5px; margin-right: 10px"
size="small"
type="primary"
>发布权限开启
</el-button>
</div>
<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
class="w100"
@change="(msg.pageIndex = 1), getList()"
style="margin-right: 10px;margin-bottom: 10px"
style="margin-right: 10px; margin-bottom: 10px"
v-model="msg.MemberGrade"
size="small"
placeholder="请选择"
......@@ -40,7 +54,7 @@
<el-select
class="w100"
@change="(msg.pageIndex = 1), getList()"
style="margin-right: 10px;margin-bottom: 10px"
style="margin-right: 10px; margin-bottom: 10px"
v-model="msg.Source"
size="small"
placeholder="请选择"
......@@ -123,7 +137,7 @@
<el-date-picker
v-model="dateList"
@change="(msg.pageIndex = 1), getList()"
style="margin-bottom: 10px;margin-right: 20px"
style="margin-bottom: 10px; margin-right: 20px"
size="small"
type="datetimerange"
range-separator="至"
......@@ -132,7 +146,14 @@
end-placeholder="结束日期"
>
</el-date-picker>
<div style="display: flex;align-items: center;margin-bottom: 10px;margin-right: 20px">
<div
style="
display: flex;
align-items: center;
margin-bottom: 10px;
margin-right: 20px;
"
>
<span style="margin-right: 5px">学历</span>
<el-select
class="w100"
......@@ -152,7 +173,14 @@
</el-option>
</el-select>
</div>
<div style="display: flex;align-items: center;margin-bottom: 10px;margin-right: 20px">
<div
style="
display: flex;
align-items: center;
margin-bottom: 10px;
margin-right: 20px;
"
>
<span style="margin-right: 5px">婚姻</span>
<el-select
class="w100"
......@@ -172,7 +200,14 @@
</el-option>
</el-select>
</div>
<div style="display: flex;align-items: center;margin-bottom: 10px;margin-right: 20px">
<div
style="
display: flex;
align-items: center;
margin-bottom: 10px;
margin-right: 20px;
"
>
<span style="margin-right: 5px">房产</span>
<el-select
class="w100"
......@@ -192,7 +227,14 @@
</el-option>
</el-select>
</div>
<div style="display: flex;align-items: center;margin-bottom: 10px;margin-right: 20px">
<div
style="
display: flex;
align-items: center;
margin-bottom: 10px;
margin-right: 20px;
"
>
<span style="margin-right: 5px">车产</span>
<el-select
class="w100"
......@@ -213,44 +255,52 @@
</el-select>
</div>
</div>
<div style="margin-top: 10px;display: flex;flex-wrap: wrap">
<div style="display: flex;align-items: center">年龄{{ages[0]}}-{{ages[1]}}
<div class="block" style="width: 200px;margin-left: 15px">
<div style="margin-top: 10px; display: flex; flex-wrap: wrap">
<div style="display: flex; align-items: center">
年龄{{ ages[0] }}-{{ ages[1] }}
<div class="block" style="width: 200px; margin-left: 15px">
<el-slider
v-model="ages"
range
@change="(msg.pageIndex = 1), getList()"
:max="100">
:max="100"
>
</el-slider>
</div>
</div>
<div style="display: flex;align-items: center;margin-left: 25px">身高{{Heights[0]}}-{{Heights[1]}}cm
<div class="block" style="width: 200px;margin-left: 15px">
<div style="display: flex; align-items: center; margin-left: 25px">
身高{{ Heights[0] }}-{{ Heights[1] }}cm
<div class="block" style="width: 200px; margin-left: 15px">
<el-slider
v-model="Heights"
range
@change="(msg.pageIndex = 1), getList()"
:max="230">
:max="230"
>
</el-slider>
</div>
</div>
<div style="display: flex;align-items: center;margin-left: 25px">体重{{Weights[0]}}-{{Weights[1]}}kg
<div class="block" style="width: 200px;margin-left: 15px">
<div style="display: flex; align-items: center; margin-left: 25px">
体重{{ Weights[0] }}-{{ Weights[1] }}kg
<div class="block" style="width: 200px; margin-left: 15px">
<el-slider
v-model="Weights"
range
@change="(msg.pageIndex = 1), getList()"
:max="200">
:max="200"
>
</el-slider>
</div>
</div>
<div style="display: flex;align-items: center;margin-left: 25px">年收入{{YearMoeys[0]}}-{{YearMoeys[1]}}
<div class="block" style="width: 300px;margin-left: 15px">
<div style="display: flex; align-items: center; margin-left: 25px">
年收入{{ YearMoeys[0] }}-{{ YearMoeys[1] }}
<div class="block" style="width: 300px; margin-left: 15px">
<el-slider
v-model="YearMoeys"
range
@change="(msg.pageIndex = 1), getList()"
:max="500">
:max="500"
>
</el-slider>
</div>
</div>
......@@ -260,7 +310,9 @@
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 prop="Id" label="ID" width="100"> </el-table-column>
<el-table-column prop="address" width="280" label="头像">
<template slot-scope="scope">
......@@ -325,22 +377,58 @@
</template>
</el-table-column>
<el-table-column prop="Age" label="年龄"></el-table-column>
<el-table-column prop="Height" label="身高">
<el-table-column
prop="SuperiorName"
label="上级"
width="150"
></el-table-column>
<el-table-column prop="Age" label="基础资料" width="120">
<template slot-scope="scope">
<span>{{scope.row.Height}}cm</span>
</template>
</el-table-column>
<el-table-column prop="Weight" label="体重">
<template slot-scope="scope">
<span>{{scope.row.Weight}}kg</span>
<div>年龄:{{scope.row.Age}}</div>
<div>身高:{{ scope.row.Height }}cm</div>
<div>体重:{{ scope.row.Weight }}kg</div>
</template>
</el-table-column>
<el-table-column prop="EducationTypeStr" label="学历"></el-table-column>
<el-table-column prop="MarriageStr" label="婚姻"></el-table-column>
<el-table-column prop="HouseInfoStr" label="房产"></el-table-column>
<el-table-column prop="CarInfoStr" label="车产"></el-table-column>
<el-table-column prop="CreateDate" width="150" label="加入时间"></el-table-column>
<el-table-column prop="Number" label="星星点数" style="font-size: 11px">
<template slot-scope="scope">
<div>
<span style="font-size: 11px">
{{ scope.row.PointNum }}
</span>
<el-tooltip
class="item"
effect="dark"
content="修改星星点数"
placement="top"
>
<img
@click="editGoods(scope.row, scope.$index)"
src="../../assets/img/userman/edit1.png"
alt=""
/>
</el-tooltip>
</div>
</template>
</el-table-column>
<el-table-column prop="CarInfoStr" label="发布权限">
<template slot-scope="scope">
<div v-if="scope.row.IsFaTie==0">关闭</div>
<div v-if="scope.row.IsFaTie==1">开启</div>
</template>
</el-table-column>
<el-table-column
prop="CreateDate"
width="150"
label="加入时间"
></el-table-column>
<el-table-column prop="address" width="200" label="操作">
<template slot-scope="scope">
......@@ -446,8 +534,46 @@
</div>
</el-dialog>
<!-- 充值积分 -->
<!-- 修改星星数 -->
<el-dialog
title="修改星星数"
:visible.sync="Egoods"
width="600px"
:close-on-click-modal="false"
>
<div>
<el-form
:model="modifyobj"
:rules="rules"
ref="modifyobj"
label-width="150px"
>
<el-form-item label="修改模式">
<el-radio v-model="modifyobj.IsAdd" :label="1">增加</el-radio>
<el-radio v-model="modifyobj.IsAdd" :label="2">减少</el-radio>
</el-form-item>
<el-form-item label="原始星星数">
<span>{{ PNum }}</span>
</el-form-item>
<el-form-item label="修改星星数">
<el-input
v-model="modifyobj.PonitNum"
style="width: 260px"
size="small"
:min="0"
type="number"
placeholder="请输入星星数"
></el-input>
</el-form-item>
</el-form>
</div>
<span slot="footer" class="dialog-footer">
<el-button size="small" @click="Egoods = false">关 闭</el-button>
<el-button size="small" type="primary" @click="setUpdatePointNum()"
>修 改</el-button
>
</span>
</el-dialog>
<!-- 充值积分 -->
<el-dialog title="二维码" :visible.sync="qrshow" width="600px">
<div style="display: flex; align-items: center; justify-content: center">
......@@ -470,9 +596,9 @@
</div>
</template>
<script>
import ChooseImg from "@/components/global/ChooseImg.vue";
import detail from "./components/seeDetail";
export default {
import ChooseImg from "@/components/global/ChooseImg.vue";
import detail from "./components/seeDetail";
export default {
components: {
ChooseImg,
detail,
......@@ -481,6 +607,7 @@
return {
czType: 1,
changeState: false,
Egoods: false,
loading: false,
checkAll: false,
checkedCities: [],
......@@ -501,23 +628,23 @@
Moblie: "",
StartTime: "",
EndTime: "",
Age:0,
EndAge:0,
Height:0,
EndHeight:0,
Weight:0,
EndWeight:0,
YearMoney:0,
EndYearMoney:0,
CarInfo:0,
HouseInfo:0,
EducationType:0,
Marriage:0,
},
ages:[0,0],//年龄
Heights:[0,0],//身高
Weights:[0,0],//体重
YearMoeys:[0,0],//年收入
Age: 0,
EndAge: 0,
Height: 0,
EndHeight: 0,
Weight: 0,
EndWeight: 0,
YearMoney: 0,
EndYearMoney: 0,
CarInfo: 0,
HouseInfo: 0,
EducationType: 0,
Marriage: 0,
},
ages: [0, 0], //年龄
Heights: [0, 0], //身高
Weights: [0, 0], //体重
YearMoeys: [0, 0], //年收入
total: 0,
platList: [],
memberGradeList: [],
......@@ -550,11 +677,21 @@
qrshow: false,
//查看详情
detailData: {},
detailShow:false,
EducationList:[],//学历
MarriageList:[],//婚姻
HouseList:[],//房子情况
CarInfoList:[],//车子情况
detailShow: false,
EducationList: [], //学历
MarriageList: [], //婚姻
HouseList: [], //房子情况
CarInfoList: [], //车子情况
modifyobj: {
UserId: 0,
IsAdd: 1,
PonitNum: 0,
},
PNum: 0,
quanxianMsg:{
UserIds:'',
IsFaTie:0,
}
};
},
created() {
......@@ -564,14 +701,38 @@
this.GetMemberGradeList();
this.addMsg.MallBaseId = this.getLocalStorage().MallBaseId;
this.GetEducationTypeEnumList()//学历
this.GetMarriageEnumList()//婚姻
this.GetHouseInfoEnumList()//房子情况
this.GetCarInfoEnumList()//车子情况
this.GetEducationTypeEnumList(); //学历
this.GetMarriageEnumList(); //婚姻
this.GetHouseInfoEnumList(); //房子情况
this.GetCarInfoEnumList(); //车子情况
},
methods: {
editGoods(obj, index) {
this.Egoods = true;
this.modifyobj.UserId = obj.Id;
this.modifyobj.IsAdd = 1;
this.modifyobj.PonitNum = 0;
this.PNum = obj.PointNum;
},
setUpdatePointNum() {
if (this.modifyobj.PonitNum == 0 || this.modifyobj.PonitNum == "") {
this.Error("修改星星数量必须大于0");
return;
}
if (this.modifyobj.IsAdd == 2 && this.modifyobj.PonitNum > this.PNum) {
this.Error("减少数量不能大于原始数量");
return;
}
this.apipost("/api/miai/UpdatePointNum", this.modifyobj, (res) => {
if (res.data.resultCode == 1) {
this.Success(res.data.message)
this.getList();
this.Egoods = false;
} else {
this.Error(res.data.message);
}
});
},
EditgoUrl(row) {
this.$router.push({
name: "blindDateUsersListEdit",
......@@ -590,7 +751,6 @@
});
},
showQRcode(row) {
this.apipost(
"/api/user/GetWeiXinQRCodeForHT",
......@@ -607,6 +767,36 @@
}
);
},
checkSelectable(row){//判断是否可以选择
return row.BaseInfoId>0
},
handleSelectionChange(val){
let data = [];
this.quanxianMsg.UserIds='',
val.map(x=>{
data.push(x.Id)
})
this.quanxianMsg.UserIds = data.join(',')
},
quanxian(type){
if(this.quanxianMsg.UserIds==''){
this.Error('选择要设置的用户')
return
}
this.apipost(
"/api/Miai/UpdateFaTie",
{ UserIds:this.quanxianMsg.UserIds , IsFaTie: type },
(res) => {
if (res.data.resultCode == 1) {
this.Success(res.data.message)
this.getList();
} else {
this.Error(res.data.message);
}
}
);
},
openChangeDig() {
this.changeState = true;
setTimeout(() => {
......@@ -694,22 +884,26 @@
this.platList = res.data.data;
});
},
GetEducationTypeEnumList(){//学历
GetEducationTypeEnumList() {
//学历
this.apipost("/api/Miai/GetEducationTypeEnumList", {}, (res) => {
this.EducationList = res.data.data;
});
},
GetMarriageEnumList(){//婚姻
GetMarriageEnumList() {
//婚姻
this.apipost("/api/Miai/GetMarriageEnumList", {}, (res) => {
this.MarriageList = res.data.data;
});
},
GetHouseInfoEnumList(){//房子情况
GetHouseInfoEnumList() {
//房子情况
this.apipost("/api/Miai/GetHouseInfoEnumList", {}, (res) => {
this.HouseList = res.data.data;
});
},
GetCarInfoEnumList(){//车子情况
GetCarInfoEnumList() {
//车子情况
this.apipost("/api/Miai/GetCarInfoEnumList", {}, (res) => {
this.CarInfoList = res.data.data;
});
......@@ -737,8 +931,8 @@
console.log(res);
if (res.data.resultCode == 1) {
this.detailData = res.data.data;
this.detailData.RealName = row.Name
this.detailShow=true
this.detailData.RealName = row.Name;
this.detailShow = true;
} else {
this.$message({
message: res.data.message,
......@@ -749,42 +943,42 @@
},
},
mounted() {},
};
};
</script>
<style>
.blindDateUsersList .remark_name {
.blindDateUsersList .remark_name {
color: #888888;
font-size: 12px;
margin-left: 10px;
float: right;
}
}
.blindDateUsersList .app-image {
.blindDateUsersList .app-image {
background-position: center center;
width: 50px;
height: 50px;
border-radius: 0%;
float: left;
margin-right: 8px;
}
}
.blindDateUsersList .blue {
.blindDateUsersList .blue {
color: #409eff;
}
}
.blindDateUsersList .content .searchInput {
.blindDateUsersList .content .searchInput {
border: 1px solid #dcdfe6;
border-radius: 4px;
}
}
.blindDateUsersList .content .searchInput .el-input__inner {
.blindDateUsersList .content .searchInput .el-input__inner {
border: none;
outline: none;
height: 30px;
line-height: 30px;
}
}
.blindDateUsersList .content .searchInput {
.blindDateUsersList .content .searchInput {
line-height: normal;
display: inline-table;
width: 100%;
......@@ -793,12 +987,12 @@
width: 250px;
margin-right: 20px;
margin-bottom: 10px;
}
}
.blindDateUsersList .content {
.blindDateUsersList .content {
background: #fff;
margin-top: 10px;
padding: 20px;
box-sizing: border-box;
}
}
</style>
......@@ -173,7 +173,7 @@
<el-form-item label="希望的TA是..." >
<el-input v-model="addMsg.HopeYou" style="width:478px" size="small" placeholder="希望心中的TA是一个什么样的人" type="textarea" maxlength="500" show-word-limit></el-input>
</el-form-item>
<el-form-item label="约会时间" >
<!-- <el-form-item label="约会时间" >
<el-date-picker
v-model="addMsg.Appointment"
type="datetime"
......@@ -183,9 +183,13 @@
</el-form-item>
<el-form-item label="约会地点" >
<el-input v-model="addMsg.AppointmentAddress" style="width:478px" size="small" placeholder="请输入约会地点" ></el-input>
</el-form-item>
</el-form-item> -->
<el-form-item label="活动范围" >
<el-input v-model="addMsg.ActivityRegion" style="width:478px" size="small" placeholder="请输入活动范围" type="textarea" maxlength="500" show-word-limit></el-input>
</el-form-item>
<el-form-item label="发帖权利" v-if="addMsg.BaseInfoId>0">
<el-radio v-model="addMsg.IsFaTie" :label="1">开启</el-radio>
<el-radio v-model="addMsg.IsFaTie" :label="0">关闭</el-radio>
</el-form-item>
<el-form-item label="备注">
<el-input v-model="addMsg.Remark" style="width:478px" size="small"></el-input>
......
......@@ -82,8 +82,8 @@ export default {
{ prop: "情话:", field: "LoveTalk", type: 1 },
{ prop: "单身原因:", field: "SingleReason", type: 1 },
{ prop: "希望的TA是:", field: "HopeYou", type: 1 },
{ prop: "约会时间:", field: "Appointment", type: 1 },
{ prop: "约会地址:", field: "AppointmentAddress", type: 1 },
// { prop: "约会时间:", field: "Appointment", type: 1 },
// { prop: "约会地址:", field: "AppointmentAddress", type: 1 },
{ prop: "身份证正面:", field: "IDCard", type: 2 },
{ prop: "身份证反面:", field: "IDCardBack", type: 2 },
......
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