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() {
......
...@@ -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