This commit is contained in:
yanran200730
2022-06-17 16:24:43 +08:00
2 changed files with 2 additions and 1 deletions

View File

@@ -86,7 +86,7 @@ export default {
}).then(res => { }).then(res => {
if (res?.data) { if (res?.data) {
this.selectList.push(row) this.selectList.push(row)
this.options = res.data.map(id => ({id, name: id, isChecked: !!this.selected[id]})) this.options = res.data.map(e => ({...e, isChecked: !!this.selected[e.id]}))
} }
}).finally(() => row.locked = false) }).finally(() => row.locked = false)
} }

View File

@@ -19,6 +19,7 @@
</div> </div>
</AiCell> </AiCell>
</div> </div>
<AiEmpty description="暂无数据" v-if="!data.length"/>
</div> </div>
</div> </div>
</template> </template>