| | |
| | | const openDialog = (type,choosedData,domainList) => { |
| | | research() |
| | | nextTick(() => { |
| | | tableRef.value.clearSelection() |
| | | if(tableRef.value){ |
| | | tableRef.value.clearSelection() |
| | | } |
| | | |
| | | }) |
| | | data.dialogVisible = true |
| | | data.choosed = choosedData.map(item => { |
| | |
| | | return{ |
| | | ...item, |
| | | birthdayName: item.birthday ? item.birthday.slice(0,10) : '', |
| | | supportName: item.supportDirectionSafety.split(',') |
| | | supportName: item.supportDirectionSafety?.split(',') |
| | | } |
| | | }) |
| | | data.expertList.forEach(item => { |
| | | item.supportName.forEach((s,index) => { |
| | | item.supportName?.forEach((s,index) => { |
| | | switch (s){ |
| | | case '1': |
| | | item.supportName[index] = '现场检查' |
| | |
| | | // tableRef.value.toggleRowSelection(item, true) |
| | | // }) |
| | | |
| | | // tableRef.value.clearSelection() |
| | | // if(selection.length == 0) { |
| | | // return |
| | | // } |
| | | // tableRef.value.toggleRowSelection(row, true); |
| | | tableRef.value.clearSelection() |
| | | if(selection.length == 0) { |
| | | return |
| | | } |
| | | tableRef.value.toggleRowSelection(row, true); |
| | | data.selected = [row] |
| | | }) |
| | | |
| | | const handleSelectionChange = (val) => { |
| | | data.selected = val |
| | | // debugger |
| | | // data.selected = val |
| | | } |
| | | |
| | | const search = ()=>{ |