Commit e31bc8d7 authored by 黄媛媛's avatar 黄媛媛

update

parent 06c0c844
...@@ -26,11 +26,11 @@ ...@@ -26,11 +26,11 @@
label="ID"> label="ID">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="Name" prop="Grade"
label="会员等级"> label="会员等级">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="name" prop="Name"
label="会员名称"> label="会员名称">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
...@@ -55,8 +55,13 @@ ...@@ -55,8 +55,13 @@
prop="name" prop="name"
label="启用状态"> label="启用状态">
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="scope.row.Enabled==1"></span> <el-switch
<span v-if="scope.row.Enabled==2"></span> @change="ChangeEnabled(scope.row)"
v-model="scope.row.Enabled"
active-color="#409EFF"
:active-value="1"
:inactive-value="2">
</el-switch>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
...@@ -110,6 +115,19 @@ ...@@ -110,6 +115,19 @@
this.getList(); this.getList();
}, },
methods: { methods: {
ChangeEnabled(msg){
msg.MallBaseId=this.getLocalStorage().MallBaseId;
this.apipost('/api/user/SetMemberGradeInfo', msg,
res => {
if (res.data.resultCode === 1) {
this.getList();
} else {
this.Error(res.data.message);
}
},
null
);
},
Edit(row){ Edit(row){
this.$router.push({ this.$router.push({
name: 'setMember', name: 'setMember',
......
...@@ -152,6 +152,7 @@ ...@@ -152,6 +152,7 @@
pageIndex:1, pageIndex:1,
pageSize:15, pageSize:15,
AuditStatus:0, AuditStatus:0,
UserId:0,
}, },
total:0, total:0,
platList:[], platList:[],
...@@ -199,6 +200,9 @@ ...@@ -199,6 +200,9 @@
}; };
}, },
created() { created() {
if(this.$route.query.UserId){
this.msg.UserId=this.$route.query.UserId;
}
this.getList(); this.getList();
this.getplat(); this.getplat();
this.getDown(); this.getDown();
......
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
@select="SingelCheck" style="width: 100%;margin:0 0 20px 0"> @select="SingelCheck" style="width: 100%;margin:0 0 20px 0">
<el-table-column type="selection"> <el-table-column type="selection">
</el-table-column> </el-table-column>
<el-table-column prop="Id" label="用户ID" width="80"> <el-table-column prop="UserId" label="用户ID" width="80">
</el-table-column> </el-table-column>
<el-table-column prop="address" label="基本信息"> <el-table-column prop="address" label="基本信息">
<template slot-scope="scope"> <template slot-scope="scope">
...@@ -120,6 +120,11 @@ ...@@ -120,6 +120,11 @@
<img v-if="scope.row.AuditStatus==2" @click="CommonJump('distributionOrder')" style="width:32px;height:32px" <img v-if="scope.row.AuditStatus==2" @click="CommonJump('distributionOrder')" style="width:32px;height:32px"
src="../../assets/img/userman/order.png" alt=""> src="../../assets/img/userman/order.png" alt="">
</el-tooltip> </el-tooltip>
<el-tooltip class="item" effect="dark" content="提现详情" placement="top-start">
<img v-if="scope.row.AuditStatus==2" @click="CommonJump('disWithdrawal',{UserId:scope.row.UserId})" style="width:32px;height:32px"
src="../../assets/img/userman/detail1.png" alt="">
</el-tooltip>
<el-tooltip class="item" effect="dark" content="同意" placement="top-start"> <el-tooltip class="item" effect="dark" content="同意" placement="top-start">
<img v-if="scope.row.AuditStatus==1" @click="openReason(1,scope.row)" style="width:32px;height:32px" <img v-if="scope.row.AuditStatus==1" @click="openReason(1,scope.row)" style="width:32px;height:32px"
src="../../assets/img/userman/pass.png" alt=""> src="../../assets/img/userman/pass.png" alt="">
...@@ -141,10 +146,10 @@ ...@@ -141,10 +146,10 @@
<img @click="Delete(3,scope.row)" style="width:32px;height:32px" src="../../assets/img/userman/del.png" <img @click="Delete(3,scope.row)" style="width:32px;height:32px" src="../../assets/img/userman/del.png"
alt=""> alt="">
</el-tooltip> </el-tooltip>
<img @click="OpenczjfDig(scope.row,1)" style="width:32px;height:32px;" <!-- <img @click="OpenczjfDig(scope.row,1)" style="width:32px;height:32px;"
src="../../assets/img/userman/integral.png" alt=""> src="../../assets/img/userman/integral.png" alt="">
<img @click="OpenczjfDig(scope.row,2)" style="width:32px;height:32px" <img @click="OpenczjfDig(scope.row,2)" style="width:32px;height:32px"
src="../../assets/img/userman/balance.png" alt=""> src="../../assets/img/userman/balance.png" alt=""> -->
</template> </template>
</template> </template>
......
...@@ -7,7 +7,11 @@ ...@@ -7,7 +7,11 @@
<el-form :model="addMsg" :rules="rules" ref="addMsg" label-width="150px"> <el-form :model="addMsg" :rules="rules" ref="addMsg" label-width="150px">
<el-form-item label="会员等级" prop="Grade"> <el-form-item label="会员等级" prop="Grade">
<el-select style="width:293px;" size="small" v-model="addMsg.Grade" placeholder="请选择"> <el-select style="width:293px;" size="small" v-model="addMsg.Grade" placeholder="请选择">
<el-option v-for="(item,index) in 100" :key="index" :label="`等级${index+1}`" :value="index+1"> <el-option v-for="(item,index) in numList"
:key="index" :label="`等级${index+1}`"
:value="item.Id"
:disabled="item.dis"
>
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
...@@ -194,17 +198,28 @@ ...@@ -194,17 +198,28 @@
imgType: '', imgType: '',
imgIndex: -1, imgIndex: -1,
GradeId: 0, GradeId: 0,
gradeList:[],
numList:[],
}; };
}, },
created() { created() {
this.numList=[]
for(let i=1;i<101;i++){
let obj={
Id:i,
dis:false,
}
this.numList.push(obj)
}
}, },
mounted() { mounted() {
this.$refs.ue.InitData(); this.$refs.ue.InitData();
if (this.$route.query.GradeId) { if (this.$route.query.GradeId) {
this.GradeId = this.$route.query.GradeId; this.GradeId = this.$route.query.GradeId;
this.getData() this.getData()
} }
this.getgradeList();
}, },
methods: { methods: {
input(){}, input(){},
...@@ -287,6 +302,24 @@ ...@@ -287,6 +302,24 @@
}) })
}, },
getgradeList(){
this.apipost("/api/user/GetMemberGrade", {}, res => {
if (res.data.resultCode == 1) {
this.gradeList = res.data.data;
this.numList.forEach(item=>{
this.gradeList.forEach(val=>{
if(item.Id==val){
item.dis=true;
}
})
})
console.log("this.numList",this.numList)
}
})
},
}, },
}; };
......
...@@ -125,7 +125,7 @@ ...@@ -125,7 +125,7 @@
<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 v-model="checkedCities" @change="handleCheckedCitiesChange"> <el-checkbox-group v-model="checkedCities" @change="handleCheckedCitiesChange">
<el-checkbox style="margin-bottom:10px" v-for="city in cities" :label="city.Id" :key="city.Name"> <el-checkbox style="margin-bottom:10px;width:135px" v-for="city in cities" :label="city.Id" :key="city.Name">
{{city.Name}}</el-checkbox> {{city.Name}}</el-checkbox>
</el-checkbox-group> </el-checkbox-group>
</div> </div>
...@@ -186,7 +186,7 @@ ...@@ -186,7 +186,7 @@
checkedCities: [], checkedCities: [],
cities: [], cities: [],
cityOptions: [], cityOptions: [],
isIndeterminate: true, isIndeterminate: false,
addMsg: {}, addMsg: {},
dialogVisible: false, dialogVisible: false,
value: '', value: '',
......
...@@ -50,7 +50,6 @@ ...@@ -50,7 +50,6 @@
}, },
methods: { methods: {
SetVal(val){ SetVal(val){
console.log("sfsdf",val);
this.editor.setContent(val); this.editor.setContent(val);
}, },
InitData() { InitData() {
......
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