| | |
| | | import { $fysp } from '../index'; |
| | | |
| | | export default { |
| | | /** |
| | | * 获取巡查中的任意图片 |
| | | */ |
| | | getRoutineByStGuid(stGuid) { |
| | | const params = `?stGuid=${stGuid}`; |
| | | return $fysp.get(`mediafile/routine${params}`).then((res) => res.data); |
| | | }, |
| | | getRoutineByiGuid(iGuid) { |
| | | const params = `?iGuid=${iGuid}`; |
| | | return $fysp.get(`mediafile/routine${params}`).then((res) => res.data); |
| | | } |
| | | } |
| | | /** |
| | | * 获取巡查中的任意图片 |
| | | */ |
| | | getRoutineByStGuid(stGuid) { |
| | | const params = `?stGuid=${stGuid}`; |
| | | return $fysp.get(`mediafile/routine${params}`).then((res) => res.data); |
| | | }, |
| | | getRoutineByiGuid(iGuid) { |
| | | const params = `?iGuid=${iGuid}`; |
| | | return $fysp.get(`mediafile/routine${params}`).then((res) => res.data); |
| | | }, |
| | | updateMediaFile(mediafile) { |
| | | return $fysp.post('mediafile', mediafile).then((res) => res.data); |
| | | } |
| | | }; |