| | |
| | | return state.workType.find((i: { id: number }) => i.id === Number(item))?.name; |
| | | }); |
| | | state.details = JSON.parse(JSON.stringify(row)); |
| | | // state.details.workDetail.otherSpecialWork = state.details.workDetail.otherSpecialWork.split(','); |
| | | // if (state.details.workDetail.otherSpecialWork == null || state.details.workDetail.otherSpecialWork == []) { |
| | | // state.details.workDetail.otherSpecialWork = []; |
| | | // } else { |
| | | // state.details.workDetail.otherSpecialWork.map((item) => { |
| | | // console.log(item, 'item'); |
| | | // if (item == '1') { |
| | | // item = '动火作业'; |
| | | // return item; |
| | | // } else if (item == '2') { |
| | | // item = '受限空间作业'; |
| | | // return item; |
| | | // } else if (item == '3') { |
| | | // item = '吊装作业'; |
| | | // return item; |
| | | // } else if (item == '4') { |
| | | // item = '动土作业'; |
| | | // return item; |
| | | // } else if (item == '5') { |
| | | // item = '断路作业'; |
| | | // return item; |
| | | // } else if (item == '6') { |
| | | // item = '高处作业'; |
| | | // return item; |
| | | // } else if (item == '7') { |
| | | // item = '临时用电作业'; |
| | | // return item; |
| | | // } else { |
| | | // item = '盲板抽堵作业'; |
| | | // return item; |
| | | // } |
| | | // }); |
| | | // } |
| | | // console.log(state.details.workDetail.otherSpecialWork, '666666'); |
| | | state.dialogDetails = true; |
| | | }; |
| | | |