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

update

parent 06c0c844
......@@ -26,11 +26,11 @@
label="ID">
</el-table-column>
<el-table-column
prop="Name"
prop="Grade"
label="会员等级">
</el-table-column>
<el-table-column
prop="name"
prop="Name"
label="会员名称">
</el-table-column>
<el-table-column
......@@ -55,8 +55,13 @@
prop="name"
label="启用状态">
<template slot-scope="scope">
<span v-if="scope.row.Enabled==1"></span>
<span v-if="scope.row.Enabled==2"></span>
<el-switch
@change="ChangeEnabled(scope.row)"
v-model="scope.row.Enabled"
active-color="#409EFF"
:active-value="1"
:inactive-value="2">
</el-switch>
</template>
</el-table-column>
<el-table-column
......@@ -110,6 +115,19 @@
this.getList();
},
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){
this.$router.push({
name: 'setMember',
......
......@@ -152,6 +152,7 @@
pageIndex:1,
pageSize:15,
AuditStatus:0,
UserId:0,
},
total:0,
platList:[],
......@@ -199,6 +200,9 @@
};
},
created() {
if(this.$route.query.UserId){
this.msg.UserId=this.$route.query.UserId;
}
this.getList();
this.getplat();
this.getDown();
......
......@@ -56,7 +56,7 @@
@select="SingelCheck" style="width: 100%;margin:0 0 20px 0">
<el-table-column type="selection">
</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 prop="address" label="基本信息">
<template slot-scope="scope">
......@@ -120,6 +120,11 @@
<img v-if="scope.row.AuditStatus==2" @click="CommonJump('distributionOrder')" style="width:32px;height:32px"
src="../../assets/img/userman/order.png" alt="">
</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">
<img v-if="scope.row.AuditStatus==1" @click="openReason(1,scope.row)" style="width:32px;height:32px"
src="../../assets/img/userman/pass.png" alt="">
......@@ -141,10 +146,10 @@
<img @click="Delete(3,scope.row)" style="width:32px;height:32px" src="../../assets/img/userman/del.png"
alt="">
</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="">
<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>
......
......@@ -7,7 +7,11 @@
<el-form :model="addMsg" :rules="rules" ref="addMsg" label-width="150px">
<el-form-item label="会员等级" prop="Grade">
<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-select>
</el-form-item>
......@@ -194,10 +198,19 @@
imgType: '',
imgIndex: -1,
GradeId: 0,
gradeList:[],
numList:[],
};
},
created() {
this.numList=[]
for(let i=1;i<101;i++){
let obj={
Id:i,
dis:false,
}
this.numList.push(obj)
}
},
mounted() {
this.$refs.ue.InitData();
......@@ -205,6 +218,8 @@
this.GradeId = this.$route.query.GradeId;
this.getData()
}
this.getgradeList();
},
methods: {
input(){},
......@@ -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 @@
<div style="margin: 15px 0;"></div>
<div style="padding: 10px 25px 20px;">
<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>
</el-checkbox-group>
</div>
......@@ -186,7 +186,7 @@
checkedCities: [],
cities: [],
cityOptions: [],
isIndeterminate: true,
isIndeterminate: false,
addMsg: {},
dialogVisible: false,
value: '',
......
......@@ -50,7 +50,6 @@
},
methods: {
SetVal(val){
console.log("sfsdf",val);
this.editor.setContent(val);
},
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