diff --git a/components/select_measures/index.vue b/components/select_measures/index.vue index 2c5edfe..f617df6 100644 --- a/components/select_measures/index.vue +++ b/components/select_measures/index.vue @@ -91,6 +91,8 @@ export default { getWithSelectMeasuresList() { const {allSelectedMeasuresList, currentIndexSelectedMeasuresList} = this.getSelectedMeasuresList() const withSelectMeasuresList = [...this.measuresList] + + // 移除所有已选项目 if (allSelectedMeasuresList.length > 0) { for (let i = 0; i < allSelectedMeasuresList.length; i++) { for (let j = 0; j < withSelectMeasuresList.length; j++) { @@ -100,8 +102,15 @@ export default { } } } + + // 只添加当前页面的选中项 withSelectMeasuresList.push(...currentIndexSelectedMeasuresList) - this.withSelectMeasuresList = withSelectMeasuresList + + // 确保选中状态正确 + this.withSelectMeasuresList = withSelectMeasuresList.map(item => ({ + ...item, + check: item.check || false + })) }, change(event) { this.selectValue = event.detail.value diff --git a/pages/application/blindboard/blindboard-measures/blindboard-measures-detail.vue b/pages/application/blindboard/blindboard-measures/blindboard-measures-detail.vue index 63d51b1..70f67e0 100644 --- a/pages/application/blindboard/blindboard-measures/blindboard-measures-detail.vue +++ b/pages/application/blindboard/blindboard-measures/blindboard-measures-detail.vue @@ -494,6 +494,8 @@ export default { }) } } + console.log(signers.length) + console.log(this.measuresList.length) if (signers.length !== this.measuresList.length) { uni.showToast({ icon: 'none',