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

update

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