|
@@ -30,7 +30,7 @@
|
|
|
<el-button type="text" size="mini" @click="addProduct(scope.data)">添 加</el-button>
|
|
|
</template>
|
|
|
</Table>
|
|
|
- <div style="display:flex;justify-content:space-between;align-items:center;margin-top:10px">
|
|
|
+ <!-- <div style="display:flex;justify-content:space-between;align-items:center;margin-top:10px">
|
|
|
<span>已添加产品数:{{addProductLength}}</span>
|
|
|
<el-pagination
|
|
|
style="display:inline-block"
|
|
@@ -43,7 +43,7 @@
|
|
|
layout="total, prev, pager, next, jumper"
|
|
|
:total="total">
|
|
|
</el-pagination>
|
|
|
- </div>
|
|
|
+ </div> -->
|
|
|
</div>
|
|
|
|
|
|
<div class="fixed__btn__panel">
|
|
@@ -81,7 +81,7 @@ export default {
|
|
|
"content": {
|
|
|
"sa_contractid": '',
|
|
|
"pageNumber": 1,
|
|
|
- "pageSize": 20,
|
|
|
+ "pageSize": 99999,
|
|
|
"where": {
|
|
|
"condition": ""
|
|
|
}
|
|
@@ -104,7 +104,6 @@ export default {
|
|
|
methods: {
|
|
|
selectArr (data) {
|
|
|
this.selectProductLength = data.length
|
|
|
- console.log(this.selectProductLength);
|
|
|
},
|
|
|
addBtn () {
|
|
|
this.drawer = true
|
|
@@ -115,8 +114,8 @@ export default {
|
|
|
let res = await this.$api.requested(this.params)
|
|
|
this.productList = res.data
|
|
|
this.total = res.total
|
|
|
- console.log(this.productList);
|
|
|
-
|
|
|
+ this.params.content.pageNumber = res.pageNumber
|
|
|
+ console.log(this)
|
|
|
},
|
|
|
createTreeData (array) {
|
|
|
var that = this
|
|
@@ -199,10 +198,12 @@ export default {
|
|
|
handleSizeChange(val) {
|
|
|
// console.log(`每页 ${val} 条`);
|
|
|
this.params.content.pageSize = val
|
|
|
+ this.getProductList()
|
|
|
},
|
|
|
handleCurrentChange(val) {
|
|
|
// console.log(`当前页: ${val}`);
|
|
|
this.params.content.pageNumber = val
|
|
|
+ this.getProductList()
|
|
|
},
|
|
|
},
|
|
|
};
|