Authored by htoooth

fix

1 <template> 1 <template>
2 <div class="check-image"> 2 <div class="check-image">
3 - <div v-for="i in list" class="check-image-cell" @click="onClick(i)">  
4 - <img :src="splitUrl(i.url)" width="150px" height="150px">  
5 - <Checkbox :value="i.isMark == 1">检查</Checkbox> 3 + <div v-for="i in list" class="check-image-cell">
  4 + <div @click="onClick(i,$event)">
  5 + <img :src="splitUrl(i.url)" width="150px" height="150px">
  6 + </div>
  7 + <Checkbox :value="i.isMark == 1" @on-change="onClick(i)">检查</Checkbox>
6 </div> 8 </div>
7 </div> 9 </div>
8 </template> 10 </template>
@@ -34,7 +36,8 @@ export default { @@ -34,7 +36,8 @@ export default {
34 this.api = new ApiService() 36 this.api = new ApiService()
35 }, 37 },
36 methods: { 38 methods: {
37 - onChange(i) { 39 + onChange(i,e) {
  40 + console.log(e)
38 const obj = Object.assign({}, i) 41 const obj = Object.assign({}, i)
39 obj.imageId = [obj.imageId] 42 obj.imageId = [obj.imageId]
40 if (i.isMark) { 43 if (i.isMark) {