index.js 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292
  1. import { apiResquest,apiResquestForm,apiResquestJsonList,apiResquestFormVideo,apiResquestTimer } from '@/api/request/request.js'
  2. //登录
  3. export const login = (data) => {
  4. return apiResquest({
  5. url: `/auth/appletLogin`,
  6. method: 'POST',
  7. data: { ...data }
  8. })
  9. };
  10. //退出登录
  11. export const logout = (data) => {
  12. return apiResquest({
  13. url: `/auth/logout`,
  14. method: 'GET',
  15. data: data,
  16. })
  17. };
  18. //查询公共配置
  19. export const configInfo = (data) => {
  20. return apiResquest({
  21. url: `/auth/configInfo`,
  22. method: 'GET',
  23. data: data,
  24. })
  25. };
  26. //获取公共配置的图片
  27. export const getLogoInfo = (data) => {
  28. return apiResquest({
  29. url: `/system/config/info/getConfigByType`,
  30. method: 'GET',
  31. data: data,
  32. })
  33. };
  34. //化学品登录-扫码验证
  35. export const chemicalAioIdentityScanLogin = (data) => {
  36. return apiResquest({
  37. url: `/chemical/aio/identity/scanLogin`,
  38. method: 'GET',
  39. data: data,
  40. })
  41. };
  42. //实验室-列表
  43. export const laboratoryAppletSubList = (data) => {
  44. return apiResquest({
  45. url: `/laboratory/applet/subList`,
  46. method: 'POST',
  47. data: { ...data }
  48. })
  49. };
  50. //实验室-详情
  51. export const laboratoryAppletGetSubDetailInfo = (data) => {
  52. return apiResquest({
  53. url: `/laboratory/applet/getSubDetailInfo`,
  54. method: 'GET',
  55. data: data,
  56. })
  57. };
  58. //实验室-查询喇叭列表
  59. export const iotAppSpeakerFindHorn = (data) => {
  60. return apiResquest({
  61. url: `/iot/app/speaker/findHorn`,
  62. method: 'GET',
  63. data: data,
  64. })
  65. };
  66. //实验室-喇叭播放
  67. export const iotAppSpeakerPlayVoice = (data) => {
  68. return apiResquest({
  69. url: `/iot/app/speaker/playVoice`,
  70. method: 'GET',
  71. data: data,
  72. })
  73. };
  74. //扫码-查询化学品详情
  75. export const chemicalAppletCabinetDetail = (data) => {
  76. return apiResquest({
  77. url: `/chemical/applet/cabinetDetail`,
  78. method: 'GET',
  79. data: data,
  80. })
  81. };
  82. //查询化学品目录清单
  83. export const chemicalAppletGetCabinetByChemical = (data) => {
  84. return apiResquest({
  85. url: `/chemical/applet/getCabinetByChemical`,
  86. method: 'GET',
  87. data: data,
  88. })
  89. };
  90. //扫码-查询化学品信息
  91. export const chemicalAppletGetStockDetail = (data) => {
  92. return apiResquest({
  93. url: `/chemical/applet/getStockDetail`,
  94. method: 'GET',
  95. data: data,
  96. })
  97. };
  98. //个人中心-获取个人信息
  99. export const systemUserProfile = (data) => {
  100. return apiResquest({
  101. url: `/system/user/profile`,
  102. method: 'GET',
  103. data: data,
  104. })
  105. };
  106. //用户修改头像接口
  107. export const systemMineUserEdit = (data) => {
  108. return apiResquest({
  109. url: `/system/mine/user/edit`,
  110. method: 'POST',
  111. data: { ...data }
  112. })
  113. };
  114. /*查询用户列表-下拉列表
  115. * userName : '', 名称
  116. * userType: '', 0.系统 1.老师 2.学生
  117. */
  118. export const systemUserDropList = (data) => {
  119. return apiResquest({
  120. url: `/system/user/dropList`,
  121. method: 'POST',
  122. data: { ...data }
  123. })
  124. };
  125. /* 分类获取公共配置
  126. * category 1.系统参数 2.公共配置
  127. * configType 1.基础配置 2.管控一体机 3.化学品终端 4.小程序配置 5.开发配置 6.首页配置
  128. */
  129. export function getConfigByType(data) {
  130. return apiResquest({
  131. url: '/system/config/info/getConfigByType',
  132. method: 'post',
  133. data: {
  134. ...data
  135. }
  136. })
  137. }
  138. //查询人员身份标识
  139. export const getGentleIdentifier = (data) => {
  140. return apiResquest({
  141. url: `/security/checkSet/getGentle`,
  142. method: 'GET',
  143. data: data,
  144. })
  145. };
  146. //查询小程序布局配置
  147. export const systemAppletLayoutSelect = (data) => {
  148. return apiResquest({
  149. url: '/system/applet/layout/select',
  150. method: 'GET',
  151. data: data,
  152. })
  153. };
  154. //查询权限字段
  155. export const systemAppletRolePermission = (data) => {
  156. return apiResquest({
  157. url: '/system/applet/role/permission',
  158. method: 'GET',
  159. data: data,
  160. })
  161. };
  162. /************************扫码相关************************/
  163. //化学品终端-扫码登录
  164. export const chemicalAioVerifyScanLogin = (data) => {
  165. return apiResquest({
  166. url: `/chemical/aio/verify/scanLogin`,
  167. method: 'GET',
  168. data: data,
  169. })
  170. };
  171. //化学品终端-双人认证
  172. export const chemicalAioVerifyAppletLogin = (data) => {
  173. return apiResquest({
  174. url: `/chemical/aio/verify/appletLogin`,
  175. method: 'GET',
  176. data: data,
  177. })
  178. };
  179. /************************消息相关************************/
  180. //消息-未读消息数量
  181. export const systemNoticeGetNoticeCount = (id,data) => {
  182. return apiResquest({
  183. url: `/system/notice/getNoticeCount`,
  184. method: 'GET',
  185. data: data,
  186. })
  187. };
  188. //消息-列表
  189. export const systemNoticeGetNoticeList = (data) => {
  190. return apiResquest({
  191. url: `/system/notice/getNoticeList`,
  192. method: 'GET',
  193. data: data,
  194. })
  195. };
  196. //消息-详情
  197. export const systemNoticeGetNoticeDetail = (data) => {
  198. return apiResquest({
  199. url: `/system/notice/getNoticeDetail`,
  200. method: 'GET',
  201. data: data,
  202. })
  203. };
  204. //消息-获取系统消息类型
  205. export const systemNoticeGetNoticeType = (data) => {
  206. return apiResquest({
  207. url: `/system/notice/getNoticeType`,
  208. method: 'GET',
  209. data: data,
  210. })
  211. };
  212. //查询人脸信息与认证状态
  213. export const studentinfoFacemy = (data) => {
  214. return apiResquest({
  215. url: `/base/app/lab/api/studentinfo/my`,
  216. method: 'GET',
  217. })
  218. };
  219. /************************未调试************************/
  220. //获取离开检查配置
  221. export const outSubjectPhoto = (id,data) => {
  222. return apiResquestForm({
  223. url: `/base/app/lab/api/outSubjectPhoto`,
  224. method: 'GET',
  225. data: data,
  226. })
  227. };
  228. //分级管控未完成工作列表
  229. export const gradingControl = (data) => {
  230. return apiResquest({
  231. url: `/base/app/lab/manage/havingList`,
  232. method: 'POST',
  233. data: {...data}
  234. })
  235. };
  236. //积分信息
  237. export const examPointsRecordGetMyPointsLogInfo = (data) => {
  238. return apiResquest({
  239. url: `/exam/points/record/getMyPointsLogInfo`,
  240. method: 'POST',
  241. data: {...data}
  242. })
  243. };
  244. //实验室-列表-获取学院列表下拉列表
  245. export const systemDeptDropList = (data) => {
  246. return apiResquest({
  247. url: `/system/dept/dropList`,
  248. method: 'POST',
  249. data: { ...data }
  250. })
  251. };
  252. //实验室-列表-获取分类下拉列表
  253. export const laboratoryClassTypeGetList = (data) => {
  254. return apiResquest({
  255. url: `/laboratory/classType/getList`,
  256. method: 'POST',
  257. data: { ...data }
  258. })
  259. };
  260. //实验室-列表-获取分级
  261. export const laboratoryClassLevelGetList = (data) => {
  262. return apiResquest({
  263. url: `/laboratory/classLevel/getList`,
  264. method: 'POST',
  265. data: { ...data }
  266. })
  267. };