Commit 323d9575 authored by dragondean@qq.com's avatar dragondean@qq.com

优化商品选择组件

parent e2f482c4
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
<el-button type="primary" @click="reLoad" :loading="loading">{{$t('搜索')}}</el-button> <el-button type="primary" @click="reLoad" :loading="loading">{{$t('搜索')}}</el-button>
<div style="height: 36px; display: flex; align-items: center"> <div style="height: 36px; display: flex; align-items: center">
<el-checkbox :label="$t('全选') + `(${$t('{total}个', {total})})`" @change="toggleAll" :disabled="isAllProduct || loading"></el-checkbox> <el-checkbox :label="$t('全选') + `(${$t('{total}个', {total})})`" @change="toggleAll" v-model="isCheckedAll" :disabled="isAllProduct || loading"></el-checkbox>
</div> </div>
</div> </div>
<div class="list"> <div class="list">
...@@ -102,7 +102,9 @@ export default { ...@@ -102,7 +102,9 @@ export default {
// 右侧页码 // 右侧页码
rightPage: 1, rightPage: 1,
// 页大小 // 页大小
pageSize: 100 pageSize: 100,
// 是否选中全选
isCheckedAll: false
} }
}, },
computed: { computed: {
...@@ -229,6 +231,8 @@ export default { ...@@ -229,6 +231,8 @@ export default {
let res = await getSimpleProductList(this.queryParams) let res = await getSimpleProductList(this.queryParams)
this.loading = false this.loading = false
this.list = res.data this.list = res.data
this.choosedList = []
this.isCheckedAll = false
}, },
// 获得指定条件的商品的全部ID // 获得指定条件的商品的全部ID
getFilteredIds(){ getFilteredIds(){
......
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