Commit 77f38544 authored by zhengke's avatar zhengke

修改

parent 54f84288
...@@ -38,18 +38,17 @@ ...@@ -38,18 +38,17 @@
<el-table <el-table
:data="list" :data="list"
border border
style="width: 1699px"> style="width: 100%">
<el-table-column <el-table-column
fixed fixed
prop="RulesName" prop="RulesName"
label="规则名称" label="规则名称">
width="1339">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
label="是否默认" label="是否默认"
width="180"> width="180">
<template slot-scope="scope"> <template slot-scope="scope">
<el-radio v-model="radio" :label="scope.row.ID" @change="radioChange"> <el-radio v-model="radio" :label="scope.row.IsDefault" @change="radioChange">
<span class="el-radio__label">默认</span> <span class="el-radio__label">默认</span>
</el-radio> </el-radio>
</template> </template>
...@@ -58,6 +57,7 @@ ...@@ -58,6 +57,7 @@
<el-table-column <el-table-column
fixed="right" fixed="right"
label="操作" label="操作"
width="180"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<el-tooltip class="item" effect="dark" content="编辑" placement="top" > <el-tooltip class="item" effect="dark" content="编辑" placement="top" >
...@@ -93,7 +93,7 @@ ...@@ -93,7 +93,7 @@
pageSize:20, pageSize:20,
RulesName:'', RulesName:'',
}, },
radio:'',//单选按钮绑定值 radio:1,//单选按钮绑定值
total:0,//总条数 total:0,//总条数
currentPage:1,//当前第几页 currentPage:1,//当前第几页
} }
...@@ -104,6 +104,7 @@ ...@@ -104,6 +104,7 @@
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.list = res.data.data.pageData; this.list = res.data.data.pageData;
this.total = res.data.data.count; this.total = res.data.data.count;
console.log(res,'ressss');
} else { } else {
this.Info(res.data.message); this.Info(res.data.message);
} }
......
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