Commit c159d7a7 authored by zhengke's avatar zhengke

修改

parent 77f38544
......@@ -48,7 +48,7 @@
label="是否默认"
width="180">
<template slot-scope="scope">
<el-radio v-model="radio" :label="scope.row.IsDefault" @change="radioChange">
<el-radio v-model="radio" :label="scope.row.ID" @change="radio=scope.row.ID">
<span class="el-radio__label">默认</span>
</el-radio>
</template>
......@@ -93,7 +93,7 @@
pageSize:20,
RulesName:'',
},
radio:1,//单选按钮绑定值
radio:0,//单选按钮绑定值
total:0,//总条数
currentPage:1,//当前第几页
}
......@@ -104,7 +104,11 @@
if (res.data.resultCode == 1) {
this.list = res.data.data.pageData;
this.total = res.data.data.count;
console.log(res,'ressss');
this.list.forEach(x=>{
if(x.IsDefault==1){
this.radio=x.ID;
}
})
} else {
this.Info(res.data.message);
}
......@@ -115,7 +119,7 @@
this.msg.pageSize=20;
this.GetLogisticsRulesPage()
},
radioChange(){
radioChange(item){
},
handleCurrentChange(val){
......
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