| | |
| | | }; |
| | | |
| | | const showInspectTaskDialog = (type: string, value: { id: number; uuid: string }, workTypeList: [], department: [], timeType: [], classGroupList: [], quotaList: [], inspectPointAllList: [], regionNameList: [], RFIDList: []) => { |
| | | debugger; |
| | | data.regionNameList = regionNameList; |
| | | data.RFIDList = RFIDList; |
| | | data.quotaList = JSON.parse(JSON.stringify(quotaList)); |
| | |
| | | giveClassGroup(); |
| | | data.inspectTaskForm = JSON.parse(JSON.stringify(res.data.data)); |
| | | } else { |
| | | ElMessage({ |
| | | type: 'warning', |
| | | message: res.data.msg |
| | | }); |
| | | } |
| | | }) |
| | | .catch((error) => {}); |
| | |
| | | if (res.data.code === '200') { |
| | | data.inspectTaskForm = JSON.parse(JSON.stringify(res.data.data)); |
| | | } else { |
| | | ElMessage({ |
| | | type: 'warning', |
| | | message: res.data.msg |
| | | }); |
| | | } |
| | | }) |
| | | .catch((error) => {}); |
| | |
| | | data.inspectTaskForm.points.push(data.inspectPointForm); |
| | | data.inspectPointDialog = false; |
| | | } else if (data.title === '新增巡检任务' && data.pointTitle === '修改巡检点') { |
| | | let result = data.inspectTaskForm.points.findIndex((item) => item.id === data.inspectPointForm.id); |
| | | debugger; |
| | | let result = data.inspectTaskForm.points.findIndex((item) => item.execSequence === data.inspectPointForm.execSequence); |
| | | data.inspectTaskForm.points[result] = data.inspectPointForm; |
| | | data.inspectPointDialog = false; |
| | | } else if (data.title === '修改巡检任务' && data.pointTitle === '新增巡检点') { |
| | |
| | | message: '巡检点修改成功', |
| | | duration: 2000 |
| | | }); |
| | | let result = data.inspectTaskForm.points.findIndex((item) => item.id === data.inspectPointForm.id); |
| | | let result = data.inspectTaskForm.points.findIndex((item) => item.execSequence === data.inspectPointForm.execSequence); |
| | | data.inspectTaskForm.points[result] = data.inspectPointForm; |
| | | data.inspectPointDialog = false; |
| | | } else { |
| | |
| | | <style scoped lang="scss"> |
| | | $homeNavLengh: 8; |
| | | .home-container { |
| | | height: calc(100vh - 114px); |
| | | height: calc(100vh - 144px); |
| | | box-sizing: border-box; |
| | | overflow: hidden; |
| | | .homeCard { |