|
@@ -40,7 +40,7 @@
|
|
|
:key="index"
|
|
|
style="width: 50%; display: inline-block; margin-bottom: 20rpx"
|
|
|
>
|
|
|
- <checkbox :value="item.workerId" />{{ item.workerName }}
|
|
|
+ <checkbox :value="item.workerId" :checked="checkboxValues.includes(item.workerId)" />{{ item.workerName }}
|
|
|
</label>
|
|
|
</checkbox-group>
|
|
|
</view>
|
|
@@ -103,6 +103,10 @@ export default {
|
|
|
.then(res => {
|
|
|
this.isShow = true
|
|
|
this.workerList = res.data
|
|
|
+ var selectData = this.workerList.find(item => item.isSelect)
|
|
|
+ if (selectData && selectData.workerId) {
|
|
|
+ this.checkboxValues.push(selectData.workerId)
|
|
|
+ }
|
|
|
})
|
|
|
}
|
|
|
},
|