Commit 19a38e11 authored by 黄媛媛's avatar 黄媛媛

update

parent 524460d0
......@@ -1570,6 +1570,7 @@
this.addMsg.CategoryList.splice(k, 1);
}
})
this.ExitCateList();
},
getTree() {
let msg1 = {
......
......@@ -135,6 +135,7 @@
changeEnabled(item){
this.apipost("/api/user/SetGetHpDistributorEnabled",{CommissionId:item.Id}, res => {
if(res.data.resultCode==1){
this.Success(res.data.message)
this.getList()
}
})
......
......@@ -31,7 +31,7 @@
prop="address"
label="比例">
<template slot-scope="scope">
<el-input v-model="scope.row.CommissionRatio" size="small" placeholder="请输入">
<el-input @input="inputVal(scope.row)" type="number" min="1" v-model="scope.row.CommissionRatio" size="small" placeholder="请输入">
<el-button slot="append">%</el-button>
</el-input>
</template>
......@@ -159,7 +159,7 @@
flDig:false,
addMsg: {
Id: 0,
DecimalType: 1,
DecimalType: 2,
Name: '',
Enabled:2,
RatioList:[],
......@@ -196,6 +196,14 @@
this.getHpDistributorGrade();
},
methods: {
inputVal(row){
if(Number(row.CommissionRatio)<0){
row.CommissionRatio=1;
}
if(Number(row.CommissionRatio)>100){
row.CommissionRatio=100;
}
},
Delete(item,index){
this.addMsg.RatioList.splice(index, 1);
this.checkedCities.forEach((list,k)=>{
......@@ -306,6 +314,7 @@
this.addMsg.CategoryList.splice(k, 1);
}
})
this.ExitCateList();
},
getChild3(ChildList) {
this.childList3 = ChildList;
......
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