Authored by htoooth

fix

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