|
@@ -68,7 +68,7 @@
|
|
<el-checkbox :indeterminate="isIndeterminate" v-model="checkAll" @change="handleCheckAllChange">全选</el-checkbox>
|
|
<el-checkbox :indeterminate="isIndeterminate" v-model="checkAll" @change="handleCheckAllChange">全选</el-checkbox>
|
|
<div style="margin-top: 20px"></div>
|
|
<div style="margin-top: 20px"></div>
|
|
<el-checkbox-group v-model="selectClothTypeList" @change="handleCheckedClothTypeChange">
|
|
<el-checkbox-group v-model="selectClothTypeList" @change="handleCheckedClothTypeChange">
|
|
- <el-checkbox v-for="item in allClothTypeList" style="height: 50px" :label="item.id" :key="item.id">{{ item.name }}</el-checkbox>
|
|
|
|
|
|
+ <el-checkbox v-for="item in allClothTypeList" style="height: 50px" :label="item.id" :key="item.id+''">{{ item.name }}</el-checkbox>
|
|
</el-checkbox-group>
|
|
</el-checkbox-group>
|
|
</div>
|
|
</div>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -299,7 +299,9 @@ export default {
|
|
this.relationOpen = false
|
|
this.relationOpen = false
|
|
},
|
|
},
|
|
handleCheckAllChange(val) {
|
|
handleCheckAllChange(val) {
|
|
- this.selectClothTypeList = val ? this.allClothTypeList : []
|
|
|
|
|
|
+ let ids = this.allClothTypeList.map((item) => item.id)
|
|
|
|
+ this.selectClothTypeList = val ? ids : []
|
|
|
|
+ console.log(this.selectClothTypeList)
|
|
this.isIndeterminate = false
|
|
this.isIndeterminate = false
|
|
},
|
|
},
|
|
handleCheckedClothTypeChange(value) {
|
|
handleCheckedClothTypeChange(value) {
|