|
@@ -90,7 +90,7 @@
|
|
|
<el-table-column label="是否有效" align="center" show-overflow-tooltip>
|
|
|
<template slot-scope="scope">
|
|
|
<span v-if="scope.row.isValid==1">有效</span>
|
|
|
- <span v-if="scope.row.isValid==2">无效</span>
|
|
|
+ <span v-if="scope.row.isValid==0">无效</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
|
|
@@ -171,8 +171,8 @@
|
|
|
|
|
|
<div class="pagination">
|
|
|
<el-pagination
|
|
|
- current-page.sync="body.page"
|
|
|
- :current-page="body.page"
|
|
|
+ current-page.sync="body.current"
|
|
|
+ :current-page="body.current"
|
|
|
:page-sizes="[10, 20, 30, 50]"
|
|
|
:page-size="body.size"
|
|
|
layout="total, sizes, prev, pager, next, jumper"
|
|
@@ -194,7 +194,7 @@ export default {
|
|
|
data() {
|
|
|
return {
|
|
|
body: {
|
|
|
- page: 1,
|
|
|
+ current: 1,
|
|
|
size: 10,
|
|
|
supplierName: ''
|
|
|
},
|
|
@@ -215,7 +215,7 @@ export default {
|
|
|
},
|
|
|
|
|
|
Search() {
|
|
|
- this.body.page = 1
|
|
|
+ this.body.current = 1
|
|
|
this.reLoad()
|
|
|
},
|
|
|
// 新建供应商
|
|
@@ -241,7 +241,7 @@ export default {
|
|
|
},
|
|
|
// 换页
|
|
|
handleCurrentChange: function(val) {
|
|
|
- this.body.page = val
|
|
|
+ this.body.current = val
|
|
|
this.reLoad()
|
|
|
}
|
|
|
}
|