//表格列表中已选的标记
initSelFn(data){ let listData = [] listData = data.content ? data.content : []; let num = 0 if (listData.length > 0) { listData.map((item, i) => { let selId = '' selId = this.selectedArr.find(p => p == item.id) item.selStatus = (selId && selId != '') ? 1 : 0 item.selStatus == 1 ? num += 1 : '' }) } this.isShowBtn = (listData.length == num && num != 0) ? true : false this.datagrid.List = listData this.datagrid.Pagination.total = data.totalCount}